Bug #4266
openError 500 on integrations page after setting up Webhook
0%
Description
I set up a webhook for TeamCity with the following request on "hg push events" for one repository.
http://server:port/httpAuth/action.html?add2Queue=ourBuildId
I tried, it triggered a build on TeamCity but I can't access any more to integrations page in settings menu of this repository.
Our Rhodecode version is 4.4.1 Enterprise Edition.
Files
Updated by Marcin Kuzminski [CTO] about 8 years ago
Hi Alexis,
could you check in logs what exception details are shown in there?
Cheers
Updated by Alexis Jeandet about 8 years ago
Here are the logs
2016-10-06 01:06:46.130 DEBUG [beaker.container] get_value creating new value
2016-10-06 01:06:46.134 DEBUG [beaker.container] set_value stored time 1475708806.134006 expire time 10
2016-10-06 01:06:46.134 DEBUG [beaker.container] released create lock
2016-10-06 01:06:46.151 DEBUG [rc_license.models] License check: expires:1497619173.22 active_users:43 limit:70
2016-10-06 01:06:46.170 DEBUG [rhodecode.lib.auth] checking cls:HasRepoPermissionAll set(['repository.admin']) usr:<AuthUser('id:3[jeandet] ip:129.104.27.3 auth:True')> repo:HG_REPOSITORIES/LPP/SciQLOP_Repos/QCdf @ unspecified location
2016-10-06 01:06:46.170 DEBUG [rhodecode.lib.auth] Computing PERMISSION tree for scope None
2016-10-06 01:06:46.265 DEBUG [rhodecode.lib.auth] PERMISSION tree computed [('repositories_groups', 61), ('global', 11), ('repositories', 205), ('user_groups', 3)]
2016-10-06 01:06:46.265 DEBUG [rhodecode.lib.auth] Permission to repo:`repo:HG_REPOSITORIES/LPP/SciQLOP_Repos/QCdf` GRANTED for user:`<AuthUser('id:3[jeandet] ip:129.104.27.3 auth:True')>` @ unspecified location
2016-10-06 01:06:46.279 INFO [rhodecode.lib.middleware.request_wrapper] IP: 129.104.27.3 Request to /HG_REPOSITORIES/LPP/SciQLOP_Repos/QCdf/settings/integrations time: 0.128s
2016-10-06 01:06:46.280 DEBUG [rhodecode.config.middleware] sa pool status: NullPool
Updated by Marcin Kuzminski [CTO] about 8 years ago
Hi,
there are no error here, is this the log from the time when you see the exception 500 ?
Updated by Alexis Jeandet about 8 years ago
Hi,
Yes I do a "tail .rccontrol/enterprise-2/enterprise.log" right after refreshing integrations page.
In VCS server I also don't get error.
Updated by Marcin Kuzminski [CTO] about 8 years ago
{{rum(45, Daniel D)}} any idea why the error could be surpressed ?
Updated by Daniel D about 8 years ago
No idea if there is no exception but a 500 is displayed?
Is it the grey 500 page with rhodecode logo or different 500 page?
Updated by Alexis Jeandet about 8 years ago
- File RhodecodeIntegration.png RhodecodeIntegration.png added
Yes,
here is the screenshot
Updated by Daniel D about 8 years ago
I will investigate - it might be an issue with the url routing - could you try moving this repository to root level ie. accessible at http://rhodecode/QCdf
and see if it opens?
Updated by Alexis Jeandet about 8 years ago
I've just tried, it didn't change anything BUT when I connect as server admin it works, while my account is owner of the repo can't access to this page.
Updated by Daniel D about 8 years ago
Okay so a repo owner can't access the page, but the global admin can. This should be enough to find the bug. Thanks for the report.
Updated by Alexis Jeandet about 8 years ago
Even better if I directly connect to https://hephaistos.lpp.polytechnique.fr/rhodecode/QCdf/settings/integrations/webhook/2 with own account it works but not https://hephaistos.lpp.polytechnique.fr/rhodecode/QCdf/settings/integrations.
So it seem that only Integrations page has this bug.
Updated by Redmine Integration about 8 years ago
pullrequest created by dan (status: under_review). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2775
Updated by Redmine Integration about 8 years ago
- Status changed from New to Resolved
Commit 839758185a0f by Daniel Dourvaris daniel@rhodecode.com on default branch changed this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/839758185a0fc671265bd778c7da8306541f707d
Updated by Redmine Integration about 8 years ago
pullrequest merged by marcink (status: approved). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2775
Updated by Marcin Kuzminski [CTO] about 8 years ago
Alexis,
Here's the small fix if you wish to apply it to your instance: https://code.rhodecode.com/rhodecode-enterprise-ce/changeset/839758185a0fc671265bd778c7da8306541f707d
Updated by Alexis Jeandet about 8 years ago
I applied the patch and it works, thanks guys! The fix was really fast.
Best regards,
Alexis.
Updated by Redmine Integration almost 8 years ago
Commit e4de27703876 by Daniel Dourvaris daniel@rhodecode.com on stable branch changed this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/e4de2770387698407af5ae8da9ef02054597e663