Repository: IgnisDa/ryot

Issue #543: Reverse proxy error?
Created: 2024-01-01T13:14:25Z
After migrating successfully to v4 (I can access ryot via the exposed port) I found that I can no longer access it via my reverse proxy (Traefik).
I always get Traefik's 404 page not found although I haven't changed anything with the reverse proxy.
I'm running v4.0.8-beta.1 because of #540.
Logs are clean:
2024-01-01 14:08:12,532 INFO Set uid to user 1001 succeeded
2024-01-01 14:08:12,533 INFO supervisord started with pid 1
2024-01-01 14:08:13,535 INFO spawned: 'backend' with pid 8
2024-01-01 14:08:13,537 INFO spawned: 'frontend' with pid 9
2024-01-01 14:08:13,537 INFO spawned: 'reverse-proxy' with pid 10
2024-01-01 14:08:14,560 INFO success: backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-01-01 14:08:14,560 INFO success: frontend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-01-01 14:08:14,560 INFO success: reverse-proxy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Duplicate issue #647: [BUG] Application error when deploying the stack the first time
Created: 2024-02-18T16:49:25Z
The following error is displayed after spinning up the application for the first time:

And the logs from the container:
2024-02-18T16:39:44.502671442Z [frontend]     at queryImpl (/home/ryot/node_modules/@remix-run/router/router.ts:3076:20)
2024-02-18T16:39:44.502674069Z [frontend]     at Object.query (/home/ryot/node_modules/@remix-run/router/router.ts:2952:18) {
2024-02-18T16:39:44.502676562Z [frontend]   response: {
2024-02-18T16:39:44.502679013Z [frontend]     data: null,
2024-02-18T16:39:44.502681500Z [frontend]     errors: [ [Object] ],
2024-02-18T16:39:44.502683981Z [frontend]     status: 200,
2024-02-18T16:39:44.502686425Z [frontend]     headers: Headers { [Symbol(map)]: [Object: null prototype] }
2024-02-18T16:39:44.502688974Z [frontend]   },
2024-02-18T16:39:44.502691369Z [frontend]   request: {
2024-02-18T16:39:44.502693983Z [frontend]     query: 'query CoreDetails {\n' +
2024-02-18T16:39:44.502696555Z [frontend]       '  coreDetails {\n' +
2024-02-18T16:39:44.502698985Z [frontend]       '    version\n' +
2024-02-18T16:39:44.502701407Z [frontend]       '    timezone\n' +
2024-02-18T16:39:44.502703843Z [frontend]       '    authorName\n' +
2024-02-18T16:39:44.502706251Z [frontend]       '    repositoryLink\n' +
2024-02-18T16:39:44.502708702Z [frontend]       '    docsLink\n' +
2024-02-18T16:39:44.502711825Z [frontend]       '    defaultCredentials\n' +
2024-02-18T16:39:44.502714261Z [frontend]       '    credentialsChangeAllowed\n' +
2024-02-18T16:39:44.502716639Z [frontend]       '    preferencesChangeAllowed\n' +
2024-02-18T16:39:44.502719082Z [frontend]       '    itemDetailsHeight\n' +
2024-02-18T16:39:44.502721459Z [frontend]       '    reviewsDisabled\n' +
2024-02-18T16:39:44.502723946Z [frontend]       '    videosDisabled\n' +
2024-02-18T16:39:44.502726334Z [frontend]       '    upgrade\n' +
2024-02-18T16:39:44.502728817Z [frontend]       '    pageLimit\n' +
2024-02-18T16:39:44.502731122Z [frontend]       '    deployAdminJobsAllowed\n' +
2024-02-18T16:39:44.502733547Z [frontend]       '  }\n' +
2024-02-18T16:39:44.502738551Z [frontend]       '}',
2024-02-18T16:39:44.502741057Z [frontend]     variables: undefined
2024-02-18T16:39:44.502743603Z [frontend]   }
2024-02-18T16:39:44.502745959Z [frontend] }
2024-02-18T16:39:44.507350420Z [frontend] [Error: Unexpected Server Error]
2024-02-18T16:39:44.516819643Z [frontend] GET /auth/login?redirectTo=%2F 500 - - 177.297 ms

My set-up is quite straight forward, apart from small changes to the proposed docker-compose.yml file, but I do not think that is causing the issue.
Have you encountered something like this before?
Here is my docker-compose.yml file:
version: "3.9"

services:
  ryot-db:
    image: postgres:16-alpine
    container_name: ryot-db
    restart: unless-stopped
    volumes:
      - ryot_db:/var/lib/postgresql/data
    networks:
      - ryot
    environment:
      - POSTGRES_PASSWORD=***
      - POSTGRES_USER=***
      - POSTGRES_DB=***
    healthcheck:
      test: ['CMD-SHELL', 'pg_isready -U ***']
      interval: 5s
      timeout: 5s
      retries: 5

  ryot:
    image: "ghcr.io/ignisda/ryot:latest"
    container_name: ryot
    restart: unless-stopped
    depends_on:
      - ryot-db
    environment:
      - DATABASE_URL=postgres://***:***@ryot-db:5432/***
      - DISABLE_TELEMETRY=true
      - TZ=Europe/Paris
      - VIDEO_GAMES_TWITCH_CLIENT_ID=***
      - VIDEO_GAMES_TWITCH_CLIENT_SECRET=***
    healthcheck:
      test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000/backend/config"]
      interval: 30s
      timeout: 10s
      retries: 5
    networks:
      - ryot
      - proxy_ryot
    expose:
      - 8000
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.ryot.entrypoints=https"
      - "traefik.http.routers.ryot.rule=Host(`ryot.***`)"
      - "traefik.http.routers.ryot.tls=true"

volumes:
  ryot_db:

networks:
  ryot:
  proxy_ryot:
    external: true

Closing comment (2024-02-18T17:02:50Z): Could it be related to #543?