Back

Error 500 after update to 1.4.0

  • 3
  • Self Hosted
Bill.IHCha
31 Aug, 2023, 06:28

ye, mb, it worked

TL;DR
After updating to version 1.4.0, some users experienced a 500 error. Upgrading to version 1.4.1 resolved the issue for some, but caused SSL certificate problems. To fix this, change the APP_DOMAIN and APP_DOMAIN_TARGET entries in the .env file from "localhost" to the web address of the site. One user also suggested skipping the migration and changing the APP_DOMAIN and APP_DOMAIN_TARGET entries without success. Additionally, one user mentioned successfully upgrading from 1.3.2 to 1.4.0 to 1.4.1 without any issues. Another user suggested trying a
Bill.IHCha
31 Aug, 2023, 06:28
Bill.IHCha
31 Aug, 2023, 06:30

but I did change APPDOMAIN and APP_DOMAINTARGET to my domain instead of localhost, idk if that helped as well

D5
31 Aug, 2023, 06:37

Yes, probably

D5
31 Aug, 2023, 06:37

Did you have go to 1.4.1 directly or previously through 1.4.0?

Bill.IHCha
31 Aug, 2023, 06:38

I went through 1.4.0, and 500 error. Then I upgraded to 1.4.0

Bill.IHCha
31 Aug, 2023, 06:38

just a question, how do I upgrade the cloud version or is it not possible?

Łukasz
31 Aug, 2023, 06:40

Same error 500 after update to 1.4.1

Bill.IHCha
31 Aug, 2023, 06:41

maybe check the docker log

Bill.IHCha
31 Aug, 2023, 06:41

docker logs appwrite

D5
31 Aug, 2023, 06:48

Did you run migration after updating?

Łukasz
31 Aug, 2023, 06:56
TypeScript
Worker 2 started successfully
Worker 3 started successfully
Worker 4 started successfully
Worker 5 started successfully
Worker 6 started successfully
[Setup] - Server database init started...
[Setup] - Creating database: appwrite...
[Setup] - Server database init completed...
Server started successfully (max payload is 6,291,456 bytes)
Master pid 1, manager pid 1
Worker 1 started successfully
[Error] Timestamp: 2023-08-31T06:39:18+00:00
[Error] Method: GET
[Error] URL: /console/*
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Domain environment variables not configured. Please configure domain environment variables before using Appwrite outside of localhost.
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 65
[Error] Timestamp: 2023-08-31T06:39:24+00:00
[Error] Method: GET
[Error] URL: /console/*
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Domain environment variables not configured. Please configure domain environment variables before using Appwrite outside of localhost.
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 65
[Error] Timestamp: 2023-08-31T06:39:27+00:00
[Error] Method: GET
[Error] URL: /console/*
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Domain environment variables not configured. Please configure domain environment variables before using Appwrite outside of localhost.
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 65
[Error] Timestamp: 2023-08-31T06:39:29+00:00
[Error] Method: GET
[Error] URL: /console/*
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Domain environment variables not configured. Please configure domain environment variables before using Appwrite outside of localhost.
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 65
Łukasz
31 Aug, 2023, 06:58

Yes, but I checked without migration also (same effect)

Łukasz
31 Aug, 2023, 07:16

Can I somehow export the project database from mariadb? Maybe in the meantime I will try to put up a new installation of appwrite 1.4 locally, upload projects there. Then maybe it would be possible to reinstall appwrite on the server and using the new import/export projects function, transfer the project to the fresh installation?

ilikechicken77
31 Aug, 2023, 08:29

I also have the same issue and 1.4.1 did not resolve it as well..

D5
31 Aug, 2023, 10:49

@Łukasz From what version did you have migrated from?

Łukasz
31 Aug, 2023, 10:50

1.3.2 -> 1.4.0 -> 1.4.1

Łukasz
31 Aug, 2023, 10:58

We did it!!! I changed the APP_DOMAIN and APP_DOMAIN_TARGET entries in the .env file from "localhost" to the web address of the site

Bill.IHCha
31 Aug, 2023, 11:25

^

Łukasz
31 Aug, 2023, 11:51

with protocol http/https e.g. https://webpage.com or without webpage.com?. I wrote without and it worked immediately

ilikechicken77
31 Aug, 2023, 11:58

I tried both and neither seems to work.. still results in router_domain_not_configured

Łukasz
31 Aug, 2023, 12:47

The steps I followed:

  1. upgrade to 1.4.0 - successfully completed
  2. migration - completed with an error
  3. Execute instruction: https://discord.com/channels/564160730845151244/1146463435245228174/1146489088736759888 Do not skip any step.
  4. migration - completed successfully
  5. upgrade to 1.4.1 - successfully completed
  6. migration - successfully completed
  7. change APP_DOMAIN and APP_DOMAIN_TARGET from "localhost" to web address
  8. execute the command: docker compose up -d
Osman
31 Aug, 2023, 12:56

I had the same issue. Think https://appwrite.io/docs/self-hosting and https://appwrite.io/docs/upgrade should be changed to 1.4.1 installations so people avoid this bug.

chaos
31 Aug, 2023, 18:46

I had the same issue on 1.4.0 fresh install. After migrating to 1.4.1 it is working, but the SSL certificate is not working. Any ideas? I already setup de domain record and I'm able to access the appwrite server, but the SSL certificate its not valid.

Drake
31 Aug, 2023, 18:47

please create a new post

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