
Parent folder is /docker, appwrite is inside the /docker folder, inside of /docker/appwrite is my docker-compose.yml.
ran the following to update appwrite:
docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw --entrypoint="upgrade" appwrite/appwrite:1.3.0
Tried manually specifying the folder:
docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --volume /docker/appwrite:/usr/src/code/appwrite:rw --entrypoint="upgrade" appwrite/appwrite:1.3.0
both resulted in the following errors:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "upgrade": executable file not found in $PATH: unknown.
i can confirm this was run from the parent "/docker" folder as specified in the directions.
i also tried to run it with other versions of appwrite 1.3.x and it also failed. Docker-compose.yml has been minimally changed to facilitate some volume binding. docker-compose attached.
Just wanted to know if this is due to me changing the volumes in the docker compose, or if theres some other issue at play here, and if there is, what it might be.

Change from upgrade to install

The entry point upgrade is only from version 1.4

Understood, ill give that a go! thank you.

that was able to work just fine, but i did run into an interesting issue when testing the upgrade, i was no longer able to log into appwrite, but as far as i can tell it still sees my users.
is there a way to reset my password from CLI?

Nope. Only by connecting to the database or use SMTP to reset the password Did you try to reload your docker?

i did, but ill give it another try, heres the error seen inthe logs: appwrite | [Error] Timestamp: 2023-10-12T00:33:28+00:00 appwrite | [Error] Method: POST appwrite | [Error] URL: /v1/account/sessions/email appwrite | [Error] Type: Appwrite\Extend\Exception appwrite | [Error] Message: Invalid credentials. Please check the email and password. appwrite | [Error] File: /usr/src/code/app/controllers/api/account.php appwrite | [Error] Line: 184

Connect to your database and check the console users table

Use this gist to connect directly to your database and check if the data is being update in realtime

it looks to have over written my volumes, which is fine as this was test before the actual upgrade.
im thinking this has to do with my docker volume binds, i have a docker-compose.override.yml set so i wouldnt expect it to have done that to my data, did i make a mistake somewhere?

i was wrong, i was looking at the wrong table, the _console_users do show correctly in the DB, but im still unable to log in, so the data is there, but its not logging in for some reason

the passwords also show for the users as well

Compare your current .env to your previous one. Is the openssl key correct?

as always Steven, your the best, that was absolutely it, it got changed, i set it correctly and it resolved the issue.

[Solved] Upgrade from appwrite 1.2.1 to 1.3.0 issues
Recommended threads
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
- Is Appwrite Pro available for teachers?
Hi everyone 👋 I noticed that Appwrite Pro is available for free as part of the GitHub Student Developer Pack, which is amazing! I’m a university faculty memb...
- Change Plan Issue
Hello, I’m running at pro plan at the moment, But I want to go back and change the plan to free plan, But in my billing section my free plan is unable and I can...
