On 24 Jun 2021, at 17:13, elzoc...@gmail.com <elzoc...@gmail.com> wrote:Hi all,Gerrit 3.3.4, I am trying to setup a replica.I am using the healthcheck plugin to monitor the main and failover Gerrit servers, so was planning to do the same for the replicas.Unfortunately I am getting a 404 instead of a 200 with a json.
In [1] is the healthcheck call for my new Gerrit instance, created from a prod backup so not in replica mode (with container.replica = false). All good, just like prod.In [2] the same call on the same instance but with container.replica = true. Call return a 404.Doing some testing I saw that on a new install of Gerrit, everything by default the healthcheck was working in replica mode, so doing some config diffs, I tried to remove the last 'r/' from httpd.listenUrl = proxy-https://*:8081/r/ obviously that's not a production solution as all the infra / manifests / ... need that '/r/' but...In [3], it is the same as [2] (without the 'r/' as I removed it from the listenUrl). it works.(Note: strangely the json is pretty-printed).
--
--
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/cc5de6bb-61fc-490b-ac6b-27e3bb417cden%40googlegroups.com.
On 24 Jun 2021, at 17:13, elzoc...@gmail.com <elzoc...@gmail.com> wrote:Hi all,Gerrit 3.3.4, I am trying to setup a replica.I am using the healthcheck plugin to monitor the main and failover Gerrit servers, so was planning to do the same for the replicas.Unfortunately I am getting a 404 instead of a 200 with a json.Which version of the plugin are you running?
In [1] is the healthcheck call for my new Gerrit instance, created from a prod backup so not in replica mode (with container.replica = false). All good, just like prod.In [2] the same call on the same instance but with container.replica = true. Call return a 404.Doing some testing I saw that on a new install of Gerrit, everything by default the healthcheck was working in replica mode, so doing some config diffs, I tried to remove the last 'r/' from httpd.listenUrl = proxy-https://*:8081/r/ obviously that's not a production solution as all the infra / manifests / ... need that '/r/' but...In [3], it is the same as [2] (without the 'r/' as I removed it from the listenUrl). it works.(Note: strangely the json is pretty-printed).Can you raise a bug for this?The plugin is doing some “magic” on replicas and I may have forgotten a non-root path for the magic to work.
Le jeudi 24 juin 2021 à 17:24:40 UTC+1, lucamilanesio a écrit :On 24 Jun 2021, at 17:13, elzoc...@gmail.com <elzoc...@gmail.com> wrote:Hi all,Gerrit 3.3.4, I am trying to setup a replica.I am using the healthcheck plugin to monitor the main and failover Gerrit servers, so was planning to do the same for the replicas.Unfortunately I am getting a 404 instead of a 200 with a json.Which version of the plugin are you running?My Prod is on v3.3.0-9-g383ddf0b58, so first tests were with that. then I tried the latest on stable3.3. v3.3.0-20-gd3387e44ca. bellow curls are on latest.In [1] is the healthcheck call for my new Gerrit instance, created from a prod backup so not in replica mode (with container.replica = false). All good, just like prod.In [2] the same call on the same instance but with container.replica = true. Call return a 404.Doing some testing I saw that on a new install of Gerrit, everything by default the healthcheck was working in replica mode, so doing some config diffs, I tried to remove the last 'r/' from httpd.listenUrl = proxy-https://*:8081/r/ obviously that's not a production solution as all the infra / manifests / ... need that '/r/' but...In [3], it is the same as [2] (without the 'r/' as I removed it from the listenUrl). it works.(Note: strangely the json is pretty-printed).Can you raise a bug for this?The plugin is doing some “magic” on replicas and I may have forgotten a non-root path for the magic to work.Ok will do.
Le jeudi 24 juin 2021 à 17:29:02 UTC+1, elzoc...@gmail.com a écrit :Le jeudi 24 juin 2021 à 17:24:40 UTC+1, lucamilanesio a écrit :On 24 Jun 2021, at 17:13, elzoc...@gmail.com <elzoc...@gmail.com> wrote:Hi all,Gerrit 3.3.4, I am trying to setup a replica.I am using the healthcheck plugin to monitor the main and failover Gerrit servers, so was planning to do the same for the replicas.Unfortunately I am getting a 404 instead of a 200 with a json.Which version of the plugin are you running?My Prod is on v3.3.0-9-g383ddf0b58, so first tests were with that. then I tried the latest on stable3.3. v3.3.0-20-gd3387e44ca. bellow curls are on latest.In [1] is the healthcheck call for my new Gerrit instance, created from a prod backup so not in replica mode (with container.replica = false). All good, just like prod.In [2] the same call on the same instance but with container.replica = true. Call return a 404.Doing some testing I saw that on a new install of Gerrit, everything by default the healthcheck was working in replica mode, so doing some config diffs, I tried to remove the last 'r/' from httpd.listenUrl = proxy-https://*:8081/r/ obviously that's not a production solution as all the infra / manifests / ... need that '/r/' but...In [3], it is the same as [2] (without the 'r/' as I removed it from the listenUrl). it works.(Note: strangely the json is pretty-printed).Can you raise a bug for this?The plugin is doing some “magic” on replicas and I may have forgotten a non-root path for the magic to work.Ok will do.I tried to raise a bug https://bugs.chromium.org/p/gerrit/issues/list, New Issue, Template Bug Report, I filled everything but when I clicked on Submit issue, a wheel spinned for a sec and that's it, no reload, nothing appeared on the dashboard.tried on both Safari and Goggle Chrome same result. attaching a copy/paste of what I filled in if you want to try. hopefully it really didn't work and they are not waiting moderation else I might have raised a few of them 😅