App deployed but not displaying when I visit url #415

Closed
opened 2023-02-13 08:20:44 +00:00 by codegod100 · 2 comments

I have a suspicion it has to do with coop-cloud/organising#412

I've paired this down to a fairly simple setup.

output of logs for app

❯ abra app logs agora.cloud.vera.pink
 2023-02-13T08:16:02.806036551Z
'2023-02-13T08:16:02.806083256Z > build
k2023-02-13T08:16:02.806089228Z > npx esbuild app/js-src/index.ts --bundle --outfile=app/static/js/index.js
 2023-02-13T08:16:02.806092593Z
 2023-02-13T08:16:03.607612864Z
A2023-02-13T08:16:03.607645152Z   app/static/js/index.js  279.7kb
 2023-02-13T08:16:03.607648593Z
02023-02-13T08:16:03.607651296Z ⚡ Done in 30ms
I2023-02-13T08:16:04.457121769Z  * Serving Flask app "app" (lazy loading)
;2023-02-13T08:16:04.457314498Z  * Environment: development
12023-02-13T08:16:04.457450688Z  * Debug mode: on
Y2023-02-13T08:16:04.472356376Z  * Running on http://0.0.0.0:5017/ (Press CTRL+C to quit)
72023-02-13T08:16:04.473206667Z  * Restarting with stat
62023-02-13T08:16:04.868492793Z  * Debugger is active!
<2023-02-13T08:16:04.878487009Z  * Debugger PIN: 143-377-986

my compose file (created new from template and slightly configured)

---
version: "3.8"

services:
  app:
    image: moonlion/agora-server
    networks:
      - proxy
    deploy:
      restart_policy:
        condition: none
      labels:
        - "traefik.enable=true"
        - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5017"
        - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
        - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
        - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
        ## Redirect from EXTRA_DOMAINS to DOMAIN
        #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
        #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
        #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
        - "coop-cloud.${STACK_NAME}.version="
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5017"]
      interval: 30s
      timeout: 10s
      retries: 10
      start_period: 1m

networks:
  proxy:
    external: true
I have a suspicion it has to do with https://git.coopcloud.tech/coop-cloud/organising/issues/412 I've paired this down to a fairly simple setup. output of logs for app ``` ❯ abra app logs agora.cloud.vera.pink  2023-02-13T08:16:02.806036551Z '2023-02-13T08:16:02.806083256Z > build k2023-02-13T08:16:02.806089228Z > npx esbuild app/js-src/index.ts --bundle --outfile=app/static/js/index.js  2023-02-13T08:16:02.806092593Z  2023-02-13T08:16:03.607612864Z A2023-02-13T08:16:03.607645152Z app/static/js/index.js 279.7kb  2023-02-13T08:16:03.607648593Z 02023-02-13T08:16:03.607651296Z ⚡ Done in 30ms I2023-02-13T08:16:04.457121769Z * Serving Flask app "app" (lazy loading) ;2023-02-13T08:16:04.457314498Z * Environment: development 12023-02-13T08:16:04.457450688Z * Debug mode: on Y2023-02-13T08:16:04.472356376Z * Running on http://0.0.0.0:5017/ (Press CTRL+C to quit) 72023-02-13T08:16:04.473206667Z * Restarting with stat 62023-02-13T08:16:04.868492793Z * Debugger is active! <2023-02-13T08:16:04.878487009Z * Debugger PIN: 143-377-986 ``` my compose file (created new from template and slightly configured) ``` --- version: "3.8" services: app: image: moonlion/agora-server networks: - proxy deploy: restart_policy: condition: none labels: - "traefik.enable=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5017" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" ## Redirect from EXTRA_DOMAINS to DOMAIN #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" - "coop-cloud.${STACK_NAME}.version=" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5017"] interval: 30s timeout: 10s retries: 10 start_period: 1m networks: proxy: external: true ```
codegod100 added the
bug
label 2023-02-13 08:20:44 +00:00
Owner

Yeh certainly to do with coop-cloud/organising#412. It would be nice to be able to indicate that the app is not routable somehow, without relying on this implicit traefik knowledge (which you have to learn anyway but yanno).

Yeh certainly to do with https://git.coopcloud.tech/coop-cloud/organising/issues/412. It would be nice to be able to indicate that the app is not routable somehow, without relying on this implicit traefik knowledge (which you have to learn anyway but yanno).
Owner

Can confirm it is #412 after debugging. Further data point is that we should write some docs to point out that when hacking new recipes, it's better to disable the healthcheck because it's really easy to screw up and stops your app being routable.

Can confirm it is #412 after debugging. Further data point is that we should write some docs to point out that when hacking new recipes, it's better to disable the healthcheck because it's really easy to screw up and stops your app being routable.
Sign in to join this conversation.
No description provided.