#router_host_not_found after Upgrading to 1.4.0
40 messages · Page 1 of 1 (latest)
how are you accessing your appwrite instance?
{"message":"Error: Server Error","code":500,"version":"1.4.0"}
I was accessing it via a custom domain domain
Is this domain is set up in your .env file?
And after migrating I refresh to see what's new but boom na error I ran to, I restarted but it's still there
YES
_APP_DOMAIN = example.com
_APP_DOMAIN_FUNCTIONS=example.com
_APP_DOMAIN_TARGET=appwrite.example.com
And It was working before the upgrade
I'm getting exactly the same message 😅:
I replaced my domain name for example.com
You will need to put there your domain name
Yes it carries my real domain, I change for the sake of example
would you please run docker compose exec appwrite vars and validate the vars?
router_host_not_found after Upgrading to 1.4.0
I run it but it just list out my .env items out
It shows
The "_APP_CONNECTIONS_MAX" variable is not set. Defaulting to a blank string.
before listing out other items in .env
Follow the [MariaDB](#1146463435245228174 message) steps here
mariadb:
image: mariadb:10.7 # fix issues when upgrading using: mysql_upgrade -u root -p
container_name: appwrite-mariadb
<<: *x-logging
restart: unless-stopped
networks:
- appwrite
volumes:
- appwrite-mariadb:/var/lib/mysql:rw
environment:
- MYSQL_ROOT_PASSWORD=${_APP_DB_ROOT_PASS}
- MYSQL_DATABASE=${_APP_DB_SCHEMA}
- MYSQL_USER=${_APP_DB_USER}
- MYSQL_PASSWORD=${_APP_DB_PASS}
command: 'mysqld --innodb-flush-method=fsync'
Oh, okay
Tried that but still the same
do you have a reverse proxy in front?
Cloudflare won't affect that's okay
Nothing else?
Nothing else
This doesn't seem right...usually domain and domain target are the same.
Is the domain your accessing appwrite == that domain env var?
Can I downgrade to previous version then upgrade again
You have db backup?
It's a new APP, no data yet
Then you can just reinstall it
And also change the _APP_DOMAIN to match the _APP_DOMAIN_TARGET
I'm acccesing Appwrite via appwrite.mydomain.com
Then set _APP_DOMAIN to that domain
_APP_DOMAIN is not your outside app but is the Appwrite domain
After changing - if it's a live Appwrite - run
docker compose down && docker compose up -d
And you should be set to go
Wow, it's working now
Thanks alot ✌🏽

And now it error 500
For this part check [this](#1146463435245228174 message)
This is just a temporary solution till Appwrite will release the patch