Project

General

Profile

Actions

Bug #4266

open

Error 500 on integrations page after setting up Webhook

Added by Alexis Jeandet over 7 years ago. Updated over 7 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.


Files

RhodecodeIntegration.png (99.1 KB) RhodecodeIntegration.png Alexis Jeandet, 06.10.2016 16:06
Actions #1

Updated by Marcin Kuzminski [CTO] over 7 years ago

Hi Alexis,

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

Cheers

Actions #2

Updated by Alexis Jeandet over 7 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

Actions #3

Updated by Marcin Kuzminski [CTO] over 7 years ago

Hi,

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

Actions #4

Updated by Alexis Jeandet over 7 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.

Actions #5

Updated by Marcin Kuzminski [CTO] over 7 years ago

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

Actions #6

Updated by Marcin Kuzminski [CTO] over 7 years ago

  • Target version set to v4.5
Actions #7

Updated by Daniel D over 7 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?

Actions #8

Updated by Alexis Jeandet over 7 years ago

Yes,

here is the screenshot RhodecodeIntegration.png

Actions #9

Updated by Daniel D over 7 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?

Actions #10

Updated by Alexis Jeandet over 7 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.

Actions #11

Updated by Daniel D over 7 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.

Actions #12

Updated by Alexis Jeandet over 7 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.

Actions #14

Updated by Redmine Integration over 7 years ago

  • Status changed from New to Resolved
Actions #16

Updated by Marcin Kuzminski [CTO] over 7 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

Actions #17

Updated by Alexis Jeandet over 7 years ago

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

Best regards,
Alexis.

Actions

Also available in: Atom PDF