-
-
Notifications
You must be signed in to change notification settings - Fork 179
Issue creating database backup #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have also tried same command (to backup the database) with docker stopped with same result. |
It looks like a permission issue (See #210). Did |
Nope, isn't |
In any case, I can confirm user used to backup the database (1001.1001) is the same that was restored (using tar with root permissions). |
Unless you build your own image for |
Yes, yes. I build my own for 1001 user due to the user that runs dockers in my machine is "hal", that has the id 1001 ;) |
You can close and forget this. I have also tried it now and seems to working fine. I really do not know why was yesterday not working but now it does. |
Version
4.2.3
Details & Steps to reproduce
I'm trying to create a backup from the database from outside the container while container is running.
To do it I'm executing the following command, that is working fine with other apps/dockers:
sqlite3 -cmd ".timeout 60000" "file:/home/hal/dockers-data/2fa/database.sqlite?mode=ro" ".backup 'database.sqlite'"
The backup is correctly done but when I restore it and I try to login the app from the web UI I'm getting the following error:
SQLSTATE[HY000]: General error: 8 attempt to write a readonly database (Connection: sqlite, SQL: update "users" set "last_seen_at" = 2023-11-08 08:18:29, "updated_at" = 2023-11-08 08:18:29 where "id" = 1)
Laravel logs says this error:
Expectation
I can restore the backups I made.
The text was updated successfully, but these errors were encountered: