Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Coolify generates mixed key types causing "non-string key" error #5259

Open
svallory opened this issue Feb 28, 2025 · 1 comment
Open
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@svallory
Copy link

Error Message and Logs

After upgrading from v4.0.0-beta.360 to v4.0.0-beta.396, my Appwrite service stopped working. I've figured out that Coolify is using mixed key "styles" in the labels.

labels:
      0: coolify.managed=true
      1: coolify.version=4.0.0-beta.396
      2: coolify.serviceId=20
      3: coolify.type=service
      4: coolify.name=appwrite-kgwckg4cggws080googsw88g
      5: coolify.resourceName=appwrite
      6: coolify.projectName=toki-tools
      7: coolify.serviceName=appwrite
      8: coolify.environmentName=production
      9: coolify.pullRequestId=0
      10: coolify.service.subId=100
      11: coolify.service.subType=application
      12: coolify.service.subName=appwrite
      traefik.enable: 'true'
      traefik.http.middlewares.gzip.compress: 'true'
      traefik.http.middlewares.redirect-to-https.redirectscheme.scheme: https
      traefik.http.routers.http-0-kgwckg4cggws080googsw88g-appwrite.entryPoints: http
      traefik.http.routers.http-0-kgwckg4cggws080googsw88g-appwrite.middlewares: redirect-to-https
      traefik.http.routers.http-0-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`auth.cva.design`) && PathPrefix(`/`)'
      traefik.http.routers.http-1-kgwckg4cggws080googsw88g-appwrite.entryPoints: http
      traefik.http.routers.http-1-kgwckg4cggws080googsw88g-appwrite.middlewares: redirect-to-https
      traefik.http.routers.http-1-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`back.cva.design`) && PathPrefix(`/`)'
      traefik.http.routers.http-2-kgwckg4cggws080googsw88g-appwrite.entryPoints: http
      traefik.http.routers.http-2-kgwckg4cggws080googsw88g-appwrite.middlewares: redirect-to-https
      traefik.http.routers.http-2-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`fn.cva.design`) && PathPrefix(`/`)'
      traefik.http.routers.http-3-kgwckg4cggws080googsw88g-appwrite.entryPoints: http
      traefik.http.routers.http-3-kgwckg4cggws080googsw88g-appwrite.middlewares: redirect-to-https
      traefik.http.routers.http-3-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`back.toki.space`) && PathPrefix(`/`)'
      traefik.http.routers.http-4-kgwckg4cggws080googsw88g-appwrite.entryPoints: http
      traefik.http.routers.http-4-kgwckg4cggws080googsw88g-appwrite.middlewares: redirect-to-https
      traefik.http.routers.http-4-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`fn.toki.space`) && PathPrefix(`/`)'
      traefik.http.routers.https-0-kgwckg4cggws080googsw88g-appwrite.entryPoints: https
      traefik.http.routers.https-0-kgwckg4cggws080googsw88g-appwrite.middlewares: gzip
      traefik.http.routers.https-0-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`auth.cva.design`) && PathPrefix(`/`)'
      traefik.http.routers.https-0-kgwckg4cggws080googsw88g-appwrite.tls.certresolver: letsencrypt
      traefik.http.routers.https-0-kgwckg4cggws080googsw88g-appwrite.tls: 'true'
      traefik.http.routers.https-1-kgwckg4cggws080googsw88g-appwrite.entryPoints: https
      traefik.http.routers.https-1-kgwckg4cggws080googsw88g-appwrite.middlewares: gzip
      traefik.http.routers.https-1-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`back.cva.design`) && PathPrefix(`/`)'
      traefik.http.routers.https-1-kgwckg4cggws080googsw88g-appwrite.tls.certresolver: letsencrypt
      traefik.http.routers.https-1-kgwckg4cggws080googsw88g-appwrite.tls: 'true'
      traefik.http.routers.https-2-kgwckg4cggws080googsw88g-appwrite.entryPoints: https
      traefik.http.routers.https-2-kgwckg4cggws080googsw88g-appwrite.middlewares: gzip
      traefik.http.routers.https-2-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`fn.cva.design`) && PathPrefix(`/`)'
      traefik.http.routers.https-2-kgwckg4cggws080googsw88g-appwrite.tls.certresolver: letsencrypt
      traefik.http.routers.https-2-kgwckg4cggws080googsw88g-appwrite.tls: 'true'
      traefik.http.routers.https-3-kgwckg4cggws080googsw88g-appwrite.entryPoints: https
      traefik.http.routers.https-3-kgwckg4cggws080googsw88g-appwrite.middlewares: gzip
      traefik.http.routers.https-3-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`back.toki.space`) && PathPrefix(`/`)'
      traefik.http.routers.https-3-kgwckg4cggws080googsw88g-appwrite.tls.certresolver: letsencrypt
      traefik.http.routers.https-3-kgwckg4cggws080googsw88g-appwrite.tls: 'true'
      traefik.http.routers.https-4-kgwckg4cggws080googsw88g-appwrite.entryPoints: https
      traefik.http.routers.https-4-kgwckg4cggws080googsw88g-appwrite.middlewares: gzip
      traefik.http.routers.https-4-kgwckg4cggws080googsw88g-appwrite.rule: 'Host(`fn.toki.space`) && PathPrefix(`/`)'
      traefik.http.routers.https-4-kgwckg4cggws080googsw88g-appwrite.tls.certresolver: letsencrypt
      traefik.http.routers.https-4-kgwckg4cggws080googsw88g-appwrite.tls: 'true'
      caddy_0.encode: 'zstd gzip'
      caddy_0.handle_path.0_reverse_proxy: '{{upstreams}}'
      caddy_0.handle_path: '/*'
      caddy_0.header: '-Server'
      caddy_0.try_files: '{path} /index.html /index.php'
      caddy_0: 'https://auth.cva.design'
      caddy_1.encode: 'zstd gzip'
      caddy_1.handle_path.1_reverse_proxy: '{{upstreams}}'
      caddy_1.handle_path: '/*'
      caddy_1.header: '-Server'
      caddy_1.try_files: '{path} /index.html /index.php'
      caddy_1: 'https://back.cva.design'
      caddy_2.encode: 'zstd gzip'
      caddy_2.handle_path.2_reverse_proxy: '{{upstreams}}'
      caddy_2.handle_path: '/*'
      caddy_2.header: '-Server'
      caddy_2.try_files: '{path} /index.html /index.php'
      caddy_2: 'https://fn.cva.design'
      caddy_3.encode: 'zstd gzip'
      caddy_3.handle_path.3_reverse_proxy: '{{upstreams}}'
      caddy_3.handle_path: '/*'
      caddy_3.header: '-Server'
      caddy_3.try_files: '{path} /index.html /index.php'
      caddy_3: 'https://back.toki.space'
      caddy_4.encode: 'zstd gzip'
      caddy_4.handle_path.4_reverse_proxy: '{{upstreams}}'
      caddy_4.handle_path: '/*'
      caddy_4.header: '-Server'
      caddy_4.try_files: '{path} /index.html /index.php'
      caddy_4: 'https://fn.toki.space'
      caddy_ingress_network: kgwckg4cggws080googsw88g

Steps to Reproduce

I could not reproduce it. Creating a new Appwrite service and replacing the dockerfile with my old one worked just fine. This seems to be a caching issue, but using "Force cleanup containers" and "force deploy" did not work either

Example Repository URL

No response

Coolify Version

v4.0.0-beta.396

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22.04.3 LTS

Additional Information

No response

@svallory svallory added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Feb 28, 2025
@svallory
Copy link
Author

I just figured out that if I remove the domain configuration, I'm able to start the old service, since the traefik labels won't be added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant