Back

Issue with upgrading to 1.5 on self-hosted docker compose

  • 0
  • Self Hosted
  • Web
Brinamite
8 Mar, 2024, 18:17

I replaced the docker compose file I obtained from https://appwrite.io/install/compose and I ran a docker compose up -d --remove-orphans and it updated the containers.

When I tried to login, I got a server error. The appwrite logs show the following: `

2024-03-08T18:01:23.700072369Z [Setup] - Server database init started... 2024-03-08T18:01:23.700107036Z [Setup] - Creating database: appwrite... 2024-03-08T18:01:23.743469536Z [Setup] - Server database init completed... 2024-03-08T18:01:23.743497962Z Server started successfully (max payload is 6,291,456 bytes) 2024-03-08T18:01:23.743501999Z Master pid 1, manager pid 7 2024-03-08T18:01:55.717961307Z Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393 2024-03-08T18:01:55.718006918Z 2024-03-08T18:01:55.718013161Z Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393 2024-03-08T18:01:55.721683506Z [Error] Timestamp: 2024-03-08T18:01:55+00:00 2024-03-08T18:01:55.721694973Z [Error] Method: POST 2024-03-08T18:01:55.721708108Z [Error] URL: /v1/account/sessions/email 2024-03-08T18:01:55.721711387Z [Error] Type: TypeError 2024-03-08T18:01:55.721714203Z [Error] Message: count(): Argument #1 ($value) must be of type Countable|array, null given 2024-03-08T18:01:55.721717223Z [Error] File: /usr/src/code/app/controllers/shared/api.php 2024-03-08T18:01:55.721720168Z [Error] Line: 292`

TL;DR
Developers ran an upgrade to version 1.5 on a self-hosted Docker Compose but encountered a server error upon login. The logs point to a TypeError related to a null value. A possible solution is to ensure all migrations were run properly before initiating the upgrade.
Brinamite
8 Mar, 2024, 18:34

hm reading general it seems I forgot to run a migration... let me check

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