Validator Not Working #13

Closed
opened 2025-03-18 23:17:50 +00:00 by Quaternions · 10 comments
Owner

The validator does not seem to be receiving/running nats events whether that is due to nats or rust or something else. As I don't know how to access the server logs and configuration, I cannot debug this. The validator can be triggered by setting the StatusID of a submission to 1 in the database and then clicking the "Accept" button on the submission page (https://maps.staging.strafes.net/submissions/2).

The validator does not seem to be receiving/running nats events whether that is due to nats or rust or something else. As I don't know how to access the server logs and configuration, I cannot debug this. The validator can be triggered by setting the StatusID of a submission to 1 in the database and then clicking the "Accept" button on the submission page (https://maps.staging.strafes.net/submissions/2).
itzaname was assigned by Quaternions 2025-03-18 23:21:57 +00:00
Owner

Try again:

  • Didn't have a protocol specified for the api env
  • No cookie
Try again: - Didn't have a protocol specified for the api env - No cookie
Author
Owner

Seems like it's at least running now, thanks.

Seems like it's at least running now, thanks.
Author
Owner

I don't know how I broke it, it's working on my local docker compose... I really thought would fix it. Impossible to debug on staging when I can't see the console.

Debugging:

Edit: looking at 4fec1bba47, could it ever have been working at all? Appending /v1 was typo'd as v1/... it sure seemed like it was working.

Edit2: looking at an older commit ecb88c14a4 this must have been when it broke. I don't know why didn't fix it.

I don't know how I broke it, it's working on my local docker compose... I really thought https://git.itzana.me/StrafesNET/infra/pulls/3 would fix it. Impossible to debug on staging when I can't see the console. Debugging: - Click "Validate" on https://maps.staging.strafes.net/submissions/2 to trigger the validator - Click "Reset Validating" to reset it to Accepted status to be able to try again Edit: looking at 4fec1bba4773256ab799f6000026578d63870ca8, could it ever have been working at all? Appending `/v1` was typo'd as `v1/`... it sure seemed like it was working. Edit2: looking at an older commit ecb88c14a4f9acf9d3f23e23d5a6121df90b8ad6 this must have been when it broke. I don't know why https://git.itzana.me/StrafesNET/infra/pulls/3 didn't fix it.
Owner

I can get you logs access via the ArgoCD dashboard, I just need to setup the SSO roles for it. As for the rest of this: write better code/skill issue

I can get you logs access via the ArgoCD dashboard, I just need to setup the SSO roles for it. As for the rest of this: write better code/skill issue
Owner

Log access has been provided.

Log access has been provided.
Author
Owner

The validator is receiving nats events, but cannot report its output to the internal api.

The error I'm seeing is the following:

ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })

When trying to connect to the URL:
http://maptest-api:8081/v1/submissions/5/status/validator-failed

The validator is receiving nats events, but cannot report its output to the internal api. The error I'm seeing is the following: ``` ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }) ``` When trying to connect to the URL: http://maptest-api:8081/v1/submissions/5/status/validator-failed
Owner

Try again, kustomize was injecting labels that caused traffic to route to unintended services:

a49c65a8d6

Try again, kustomize was injecting labels that caused traffic to route to unintended services: https://git.itzana.me/StrafesNET/infra/commit/a49c65a8d6378da25a2ec65882706627534ffa6e
Author
Owner

https://maps.staging.strafes.net/ is showing HTTP 503

https://maps.staging.strafes.net/ is showing HTTP 503
Owner

Staging builds get garbage collected after 24hrs so I had to re-run the pipeline to get a new image built. It's up now.

Staging builds get garbage collected after 24hrs so I had to re-run the pipeline to get a new image built. It's up now.
Author
Owner

Mission success.

Mission success.
Quaternions added this to the 1.0 Release milestone 2025-03-29 06:31:38 +00:00
Sign in to join this conversation.
No description provided.