![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
You can also check Stevne's gist for database backup.
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
so after backup i just run this command ?
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.2.1
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
That should work
Just, in older versions the --entrypoint
was "install" so like so:
docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw --entrypoint="install" appwrite/appwrite:1.2.1
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
I tried install to 1.2.1 and then migrate still 500 internal error
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
Run
docker logs appwrite
And share the results
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
Check your .env
file for all the right values
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
which one is .env file
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
In the same folder you'll have .env
file which contains all the information for your Appwrite instance.
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
Do you have a snapshot backup for your server?
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
I ran the backup script as in here
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
why i dont see .env file
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
It's hidden run
ls -lah
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
And you should have backup of all your old .env
files
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
ya i do see all env is there
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
Good
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
Now you can compere current .env
file with some backup to see that all the values are correct
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
Hi there I am able to fix the 500 already but
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
all my database gone i think. The account all missing
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
I cant login back
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
Restore to the DB backup you've made
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
gg I tried to restore but still same
![](https://cdn.discordapp.com/avatars/298820089195790336/b31efc0ef0c89855690c8aecfdc89a75.webp)
so means that all my file are gone?
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
Files?
![](https://cdn.discordapp.com/avatars/501682973754654721/67f65cc488c429ad93589cb21b1c85fe.webp)
Have you made a db backup?
Recommended threads
- Self hosting ssl error
Hello , I have install appwrite on a VPS and ssl is working without issue just to load but login register is only working when it is http , it is https the it...
- Cannot access console from external IP
I have an Appwrite container on Linux hosted on port 5000, with the port also being open and when I try to access it with the external ip of the IP it doesn't c...
- Region and mfa field missing
made this a separate thread. Please excuse my ignorance. Does downgrading Appwrite have any effect on the data itself.? I’m facing problems from 1.5.10 after u...
![](/images/bgs/pre-footer.png)