On 5 Sep 2024, at 11:03, Peter Bruin <peterb...@gmail.com> wrote:
On 2 Sep 2024, at 07:59, Peter Bruin <peterb...@gmail.com> wrote:After upgrading to 3.10 from 3.6.8 we can't access the url directly anymore.Example: http://server/r/project/123 fails when copy/paste but works when it is redirected from the dash board. Also, using F5 to refresh will also result in error 404Also: http://server/r/q/123 works
We are using gerrit behind an apache reverse proxy.
Do we maybe need to set some cookie? Seems like some authentication issue.Although this is not a major issue it is a but annoying as this breaks the link from Jenkins jobs to gerrit.
Thanks,Peter Bruin--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/08f58481-0903-412c-863b-5bbe1e638d3en%40googlegroups.com.
On 2 Sep 2024, at 13:19, Peter Bruin <peterb...@gmail.com> wrote:Hi Luca,Thanks for your quick reply.Yes you are right.Sorry for my mistakeThe url is indeed like this:The apache config:ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
# Gerrit reverse proxy configuration
AllowEncodedSlashes On
ProxyPass /r/ http://gerrit3:8081/r/ nocanongerrit.conf:
[gerrit]
basePath = git
canonicalWebUrl = https:// server.domain.net/r/[httpd]
listenUrl = proxy-https://*:8081/r/I have been looking into it a bit more and noticed that some of the other projects are working. The main project, with 99% of all commits, has a lot a access rules. Could there be an issue there.Basically I can see all the changes, just when I refresh the page I get the error 404..
I don't see any errors in neither the apache logs or the gerrit logs.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/391d008f-8d6d-440c-9fa5-f1a05c5b6be8n%40googlegroups.com.
On 2 Sep 2024, at 15:09, Peter Bruin <peterb...@gmail.com> wrote:Found the one line in the apache log:172.25.11.231 - - [02/Sep/2024:21:50:25 +0800] "GET /r/c/group/project/+/11280 HTTP/1.1" 404 9[02/Sep/2024:21:50:25 +0800] 172.25.11.231 TLSv1.3 TLS_AES_256_GCM_SHA384 "GET /r/c/group/project/+/11280 HTTP/1.1" 9In the gerrit error_log:[2024-09-02T21:57:57.561+08:00] [HTTP-903] DEBUG com.google.gerrit.server.logging.TraceContext.TraceTimer : Starting timer for Loading accounts (Metadata{pluginMetadata=[], resourceCount=1})
[2024-09-02T21:57:57.562+08:00] [HTTP-903] DEBUG com.google.gerrit.server.logging.TraceContext.TraceTimer : Loading accounts (Metadata{pluginMetadata=[], resourceCount=1}) done (0 ms)
[2024-09-02T21:57:57.562+08:00] [HTTP-903] DEBUG com.google.gerrit.server.logging.TraceContext.TraceTimer : Starting timer for Loading accounts (Metadata{pluginMetadata=[], resourceCount=1})
[2024-09-02T21:57:57.562+08:00] [HTTP-903] DEBUG com.google.gerrit.server.logging.TraceContext.TraceTimer : Loading accounts (Metadata{pluginMetadata=[], resourceCount=1}) done (0 ms)
[2024-09-02T21:58:45.344+08:00] [PluginScanner] DEBUG com.google.gerrit.server.plugins.UniversalServerPluginProvider : File /var/gerrit/plugins/avatars-gravatar.jar handled by gerrit ? => true [CONTEXT PLUGIN="gerrit" ]
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/c723a23b-f8d5-4798-a7ba-741d7f15a58dn%40googlegroups.com.
On 3 Sep 2024, at 01:31, Peter Bruin <peterb...@gmail.com> wrote:172.25.54.144 [HTTP-127] - BRUIN_ADMIN [2024-09-03T08:28:31.558+08:00] "GET /r/c/group/project/+/11280 HTTP/1.1" 404 9 3 - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" 2 - 96376 -I have tried both my normal account and my admin account, as I am a global admin, there should not be any restrictions.
On Tuesday 3 September 2024 at 05:13:57 UTC+8 Luca Milanesio wrote:On 2 Sep 2024, at 15:09, Peter Bruin <peterb...@gmail.com> wrote:Found the one line in the apache log:172.25.11.231 - - [02/Sep/2024:21:50:25 +0800] "GET /r/c/group/project/+/11280 HTTP/1.1" 404 9[02/Sep/2024:21:50:25 +0800] 172.25.11.231 TLSv1.3 TLS_AES_256_GCM_SHA384 "GET /r/c/group/project/+/11280 HTTP/1.1" 9In the gerrit error_log:[2024-09-02T21:57:57.561+08:00] [HTTP-903] DEBUG com.google.gerrit.server.logging.TraceContext.TraceTimer : Starting timer for Loading accounts (Metadata{pluginMetadata=[], resourceCount=1})
[2024-09-02T21:57:57.562+08:00] [HTTP-903] DEBUG com.google.gerrit.server.logging.TraceContext.TraceTimer : Loading accounts (Metadata{pluginMetadata=[], resourceCount=1}) done (0 ms)
[2024-09-02T21:57:57.562+08:00] [HTTP-903] DEBUG com.google.gerrit.server.logging.TraceContext.TraceTimer : Starting timer for Loading accounts (Metadata{pluginMetadata=[], resourceCount=1})
[2024-09-02T21:57:57.562+08:00] [HTTP-903] DEBUG com.google.gerrit.server.logging.TraceContext.TraceTimer : Loading accounts (Metadata{pluginMetadata=[], resourceCount=1}) done (0 ms)
[2024-09-02T21:58:45.344+08:00] [PluginScanner] DEBUG com.google.gerrit.server.plugins.UniversalServerPluginProvider : File /var/gerrit/plugins/avatars-gravatar.jar handled by gerrit ? => true [CONTEXT PLUGIN="gerrit" ]You should look at the Gerrit’s httpd_log and see if you can find the call:GET /c/group/project/+/11280(It should be without the ‘/r’)
172.25.54.144 [HTTP-127] - BRUIN_ADMIN [2024-09-03T08:28:31.558+08:00] "GET /r/c/group/project/+/11280 HTTP/1.1" 404 9 3 - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" 2 - 96376 -
Also, is the project / change public or does it require authentication?Is the call reaching Gerrit authenticated or not?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/7f810975-ae8c-48c4-9eef-6c9350d2509fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/ab24b395-f825-402a-a05a-3ead9be59a9dn%40googlegroups.com.
On 5 Sep 2024, at 15:30, Peter Bruin <peterb...@gmail.com> wrote:You can reproduce this on gerrithub: https://gerrithub.io/c/118DBK/GerritTest/+/484166
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/48380dd7-2edf-4d47-848a-2cda3d414fe7n%40googlegroups.com.
On 7 Sep 2024, at 22:55, Luca Milanesio <luca.mi...@gmail.com> wrote:On 5 Sep 2024, at 15:30, Peter Bruin <peterb...@gmail.com> wrote:You can reproduce this on gerrithub: https://gerrithub.io/c/118DBK/GerritTest/+/484166That is useful, thanks for doing that.Also, I believe Paradox has already proposed a fix with [2], reviewing it right now.