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
- I recently applied for the free plan und...
I recently applied for the free plan under the GitHub Student Developer Pack. However, my billing status still shows $15, and it mentions that this amount will ...
- Bug Report: Appwrite Console UI Issue on...
Steps to Reproduce: - Navigate to any collection page in the Appwrite console UI. - Open the menu and click on "Create Collection." - Observe that the dialog to...
- Current User is Not authorized
recreating same Thread