Project

General

Profile

Bug #4266

Error 500 on integrations page after setting up Webhook

Added by Alexis Jeandet almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
06.10.2016
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

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.

RhodecodeIntegration.png (99.1 KB) RhodecodeIntegration.png Alexis Jeandet, 06.10.2016 16:06
1304

History

#1 Updated by Marcin Kuzminski [staff] almost 3 years ago

Hi Alexis,

could you check in logs what exception details are shown in there?

Cheers

#2 Updated by Alexis Jeandet almost 3 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

#3 Updated by Marcin Kuzminski [staff] almost 3 years ago

Hi,

there are no error here, is this the log from the time when you see the exception 500 ?

#4 Updated by Alexis Jeandet almost 3 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.

#5 Updated by Marcin Kuzminski [staff] almost 3 years ago

{{rum(45, Daniel D)}} any idea why the error could be surpressed ?

#6 Updated by Marcin Kuzminski [staff] almost 3 years ago

  • Target version set to v4.5

#7 Updated by Daniel D almost 3 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?

#8 Updated by Alexis Jeandet almost 3 years ago

1304

Yes,

here is the screenshot RhodecodeIntegration.png

#9 Updated by Daniel D almost 3 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?

#10 Updated by Alexis Jeandet almost 3 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.

#11 Updated by Daniel D almost 3 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.

#12 Updated by Alexis Jeandet almost 3 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.

#14 Updated by Redmine Integration almost 3 years ago

  • Status changed from New to Resolved

#17 Updated by Alexis Jeandet almost 3 years ago

I applied the patch and it works, thanks guys! The fix was really fast.

Best regards,
Alexis.

Also available in: Atom PDF