
When I run this command docker-compose exec -T mariadb sh -c 'exec mysql -u"$MYSQL_USER" -p"$MYSQL_PASSWORD"' < dump.sql
I get this error. The file is uploaded and named accordingly
ERROR: The Compose file './docker-compose.yml' is invalid because:
Invalid top-level property "x-logging". Valid top-level sections for this Compose file are: version, services, networks, volumes, and extensions starting with "x-".
You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/```
I am following this guide.
https://dev.to/appwrite/appwrite-in-production-backups-and-restores-4beg
I was able to create the dump file but cant restore it .

what version of docker and docker compose do you have?

Docker version 24.0.2, build cb74dfc
docker-compose version 1.25.0, build unknown

You need to use docker compose v2

Ty

I have updated compose to 2.18.1 and still same error

What's docker-compose version
show?

1.25v

How do I update then. I tired and it did not work

So you might be using the old one still

You can try uninstalling the old one

Ok I got it to work but when i go to look at the web panel I got logged out and cant login

I got it all working! I had to reset password in order to beable to login

If i change my username and password to the db in the the .env will that break anything?

what do you mean? you can't change those values after the database has started

Is there anyway to change the username password?

you do it like any other mariadb database: https://linuxconfig.org/how-to-change-mariadb-user-password
Recommended threads
- I have troubles with login to appwrite c...
errors occured in migration
- New Provider isn't working | Invalid OAu...
Hallo, I set up a new provider in Appwrite. I followed all the documentation, I set up everything, I successfully ran both Appwrite console and backend, and I f...
- Appwrite Sites: Error At Deployment
Hello, I am using Appwrite 1.7.4 on a self-hosted instance and am experiencing an issue with Appwrite Site's manual deployment. ```powershell [12:44:43] [open-...
