Back

Cannot Access Appwrite Server after Upgrade

  • 0
  • Self Hosted
  • Databases
  • General
hosnipogi
24 Nov, 2023, 10:58

Hello, i've recently upgraded our self hosted appwrite instance from v1.3.8 to v1.4.9 and did the migration. Our Appwrite instance is using a custom port mapping, and before the upgrade we can access the dashboard by just going to http://xx.xxx.xxx:1234

the cli also is now not working. When checking the docker appwrite container logs i get: xx.xxx.xxx is not a publicly accessible domain. Skipping SSL certificate generation.

some notables variables defined in my .env as follows:

TypeScript
_APP_LOCALE=en
_APP_OPTIONS_ABUSE=disabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS=disabled
_APP_OPTIONS_ROUTER_PROTECTION=disabled
_APP_OPENSSL_KEY_V1="\$6YS^pxxxxrandomxxx\$sjuYZ"
_APP_DOMAIN=
_APP_DOMAIN_FUNCTIONS=functions.localhost
_APP_DOMAIN_TARGET=
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
_APP_SYSTEM_EMAIL_NAME="xxx.xxx"
_APP_SYSTEM_EMAIL_ADDRESS="xx@xxx.xxx"
_APP_SYSTEM_RESPONSE_FORMAT=
_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=certs@appwrite.io
_APP_USAGE_STATS=enabled
_APP_LOGGING_PROVIDER=```
TL;DR
User upgraded their self-hosted Appwrite instance from v1.3.8 to v1.4.9. After the upgrade, they cannot access the dashboard using their custom port mapping. The CLI is also not working. They checked the container logs and found an error saying the IP is not a publicly accessible domain. They have defined some variables in their .env file. They also shared a diff of their docker-compose.yml file. User wants to access the dashboard from a different port like they were before. They tried mapping traefik ports to 80 and 443 but still cannot access the dashboard. They asked why their domain
Drake
24 Nov, 2023, 14:45

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

Drake
24 Nov, 2023, 14:46

Why are your domain variables blank?

What happens when you try to access Appwrite?

hosnipogi
24 Nov, 2023, 19:45

I initially had it to something like

TypeScript
_APP_DOMAIN_TARGET=domain.com
_APP_DOMAIN_TARGET=domain.com

then removed it to test since I was thinking i supposedly only needed to access it from localhost. just now I put the domain variables back and tried to map traefik ports to 80:80 & 443:443 but still can't access dashboard

hosnipogi
24 Nov, 2023, 19:58

okay, it just took a while but it now works when we exposed 80 and 443, but we wanted to access the dashboard from another port - like how we were doing it before http://xxx.xxx.xxx:1234

Drake
24 Nov, 2023, 20:20

i highly suggest accessing appwrite on the standard ports. Doing otherwise may run into problems

Drake
24 Nov, 2023, 20:21

but if you really want to...what did you put in your docker-compose.yml file?

Drake
24 Nov, 2023, 20:21

also is xxx.xxx.xxx a domain? If so, you should set the DOMAIN env vars

hosnipogi
24 Nov, 2023, 20:47

the xxx.xxx.xxx is an ipv4 ip btw, so before we could access the dashboard just by going to http://12.13.14.123:1234/ so i've also now set the DOMAIN env vars and here is a diff on my docker-compose.yml https://www.diffchecker.com/uXx67yai/

hosnipogi
24 Nov, 2023, 20:55

Ahh the reason is we needed the ports for our NextJs server, then our NextJs server access appwrite on the custom port

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more