coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.54k stars 1.88k forks source link

[Bug]: Appwrite - ERR_TOO_MANY_REDIRECTS #4279

Closed ArsenioInojosa closed 5 days ago

ArsenioInojosa commented 5 days ago

Error Message and Logs

Image

Steps to Reproduce

  1. New Resource: Add Appwrite

Image

Docker Compose:

services: appwrite: image: 'appwrite/appwrite:1.6.0' container_name: appwrite volumes:

Example Repository URL

No response

Coolify Version

v4.0.0-beta.367

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04.1 LTS

Additional Information

No response

mbuxmann commented 5 days ago

Are you by any chance using cloudflare also?

djsisson commented 5 days ago

@ArsenioInojosa you need to untick strip prefix in console and realtime in service stack

this is being worked on i believe

ArsenioInojosa commented 5 days ago

Are you by any chance using cloudflare also?

No, the system does not use cloudflare

Image

ArsenioInojosa commented 5 days ago

@ArsenioInojosa you need to untick strip prefix in console and realtime in service stack

this is being worked on i believe

Hi!

I deleted the service, recreated the service and unchecked the options. It doesn't work.

Image

Image

Image

Image

djsisson commented 5 days ago

@ArsenioInojosa after unticking did you redeploy?

ArsenioInojosa commented 5 days ago

@djsisson yes, I did.

In this video you can see the step by step.

Video

By the way, there is an error in the image of the Apprise Api service.

djsisson commented 5 days ago

@ArsenioInojosa can you run

curl -v http://appwrite.192.168.100.23.sslip.io/console

in a terminal

ArsenioInojosa commented 5 days ago

Image

djsisson commented 5 days ago

@ArsenioInojosa can you run docker ps on the server

ArsenioInojosa commented 5 days ago

@djsisson

docker_ps.txt

djsisson commented 5 days ago

@ArsenioInojosa

docker container inspect d848fa80cadb | jq -r '.[] | .Config.Labels[]'

djsisson commented 5 days ago

@ArsenioInojosa youre using caddy?

i believe there is currently a bug where it doesnt remove strip prefix for caddy, so you will need to do the label yourself manually,

you will have to look at show deployable compose to get the labels you need, then remove the domains from realtime and console, and add the labels back in to the compose for console and realtime

there is no way around this, till the fix is implemented in next version i think

ArsenioInojosa commented 5 days ago

@ArsenioInojosa youre using caddy?

@djsisson

Yes, I used to use Caddy.

I switched to Traefik and it works now.

Thanks a lot!

Image

Mini-Sylar commented 4 days ago

@ArsenioInojosa are you able to create attributes? they're endlessly stuck in processing for me, everything else works i'm using cloudflare btw

ArsenioInojosa commented 4 days ago

@Mini-Sylar

There shouldn't be any problem as this doesn't depend on Coolify.

I'll test it tomorrow and confirm.

Mini-Sylar commented 4 days ago

@ArsenioInojosa

Thanks!

ArsenioInojosa commented 4 days ago

@ArsenioInojosa

Thanks!

@Mini-Sylar Documents and attributes are created without any problems.

Mini-Sylar commented 4 days ago

@ArsenioInojosa Weird, it's still not working for me even after reinstalling coolify. Not sure what the issue is

! EDIT Found the issue, in the appwrite-worker-databases container, there were some environment variables not found in the appwrite .env

    - '_APP_WORKERS_NUM=${_APP_WORKERS_NUM:-1}'
    - '_APP_QUEUE_NAME=${_APP_QUEUE_NAME:-appwrite}'
    - '_APP_DATABASE_SHARED_TABLES=${_APP_DATABASE_SHARED_TABLES}'

Removing these 3 fixed the issue for me

djsisson commented 4 days ago

this is in official compose

Image

Mini-Sylar commented 4 days ago

@djsisson Weird, I was using the one from their website:

Appwrite Documentation

Appwrite Compose

Appwrite ENV

Image

djsisson commented 3 days ago

@Mini-Sylar hmm, github one is for dev and I guess it's different

Should prob fix this then

Mini-Sylar commented 3 days ago

@djsisson nice! When you're done can you mention the PR here as well?

Aside that, everything is working, functions, storage buckets.

Tried the caddy fix you mentioned, that's working as well

djsisson commented 3 days ago

@Mini-Sylar https://github.com/coollabsio/coolify/pull/4317

Mini-Sylar commented 3 days ago

@djsisson Nice, Tested and everything still works