Skip to content
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

[BUG] Docker image "bunkerity/bunkerweb-all-in-one" manual backup and restore does not work #2127

Open
ScorpionKing34 opened this issue Mar 25, 2025 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@ScorpionKing34
Copy link

Dear creators of Bunkerweb,

Other Issue I found is creating of backup manually, see command below:

PS C:\Users\Administrator\Documents> docker exec -it c89713960277 sh
/usr/share/bunkerweb $ bwcli plugin backup save
[2025-03-25 10:22:38 +0000] [CLI] [35905] [ℹ️ ] - Getting variables from database
[2025-03-25 10:22:38 +0000] [CLI] [35905] [ℹ️ ] - ✅ Database connection established

ℹ️ Executing /usr/share/bunkerweb/core/backup/bwcli/save.py

[2025-03-25 10:22:40 +0000] [BACKUP] [35906] [ℹ️ ] - ✅ Database connection established
[2025-03-25 10:22:40 +0000] [BACKUP] [35906] [ℹ️ ] - Backing up 26 tables defined in the model
[2025-03-25 10:22:40 +0000] [BACKUP] [35906] [ℹ️ ] - Creating a backup for the SQLite database ...
[2025-03-25 10:22:51 +0000] [BACKUP] [35906] [❌] - Failed to dump the database: Timeout reached
[2025-03-25 10:22:51 +0000] [CLI] [35905] [❌] - CLI command status : ❌ (fail)

 ❌ ERROR
────────────────────────────────────────────────────────────────────────────────
• Command save for plugin backup failed with exit code 1
────────────────────────────────────────────────────────────────────────────────

Also restore does not work, see command below:

/usr/share/bunkerweb $ bwcli plugin backup restore /data/lib/backups/backup-sqlite-2025-03-20_10-25-44.zip
[2025-03-25 10:28:56 +0000] [CLI] [36556] [ℹ️ ] - Getting variables from database
[2025-03-25 10:28:56 +0000] [CLI] [36556] [ℹ️ ] - ✅ Database connection established

ℹ️ Executing /usr/share/bunkerweb/core/backup/bwcli/restore.py /data/lib/backups/backup-sqlite-2025-03-20_10-25-44.zip

[2025-03-25 10:28:58 +0000] [BACKUP] [36578] [ℹ️ ] - Backing up the current database before restoring the backup ...
[2025-03-25 10:28:58 +0000] [BACKUP] [36578] [ℹ️ ] - ✅ Database connection established
[2025-03-25 10:28:58 +0000] [BACKUP] [36578] [ℹ️ ] - Backing up 26 tables defined in the model
[2025-03-25 10:28:58 +0000] [BACKUP] [36578] [ℹ️ ] - Creating a backup for the SQLite database ...
[2025-03-25 10:29:09 +0000] [BACKUP] [36578] [❌] - Failed to dump the database: Timeout reached
[2025-03-25 10:29:09 +0000] [CLI] [36556] [❌] - CLI command status : ❌ (fail)

 ❌ ERROR
────────────────────────────────────────────────────────────────────────────────
• Command restore for plugin backup failed with exit code 1
────────────────────────────────────────────────────────────────────────────────

Cannot found out why it shows an error. The logs are never been updated:

/usr/share/bunkerweb $ ls -la /var/log/bunkerweb/
total 8
drwxrwx---    2 root     nginx         4096 Mar 15 15:30 .
drwxr-xr-x    1 root     root          4096 Mar 15 15:30 ..
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 access.log -> /proc/1/fd/1
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 autoconf.stderr.log -> /proc/1/fd/2
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 autoconf.stdout.log -> /proc/1/fd/1
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 bunkerweb.stderr.log -> /proc/1/fd/2
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 bunkerweb.stdout.log -> /proc/1/fd/1
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 error.log -> /proc/1/fd/2
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 modsec_audit.log -> /proc/1/fd/2
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 scheduler.stderr.log -> /proc/1/fd/2
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 scheduler.stdout.log -> /proc/1/fd/1
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 ui.stderr.log -> /proc/1/fd/2
lrwxrwxrwx    1 root     root            12 Mar 15 15:30 ui.stdout.log -> /proc/1/fd/1

Virtual Machine host OS: Windows server 2022
Application: Docker Desktop v4.38.0

@TheophileDiot
Copy link
Member

Hi @ScorpionKing34, thank you for opening this issue. I'll have a look at it and let you know!

@TheophileDiot TheophileDiot self-assigned this Mar 25, 2025
@TheophileDiot TheophileDiot added the bug Something isn't working label Mar 25, 2025
@TheophileDiot
Copy link
Member

Just a quick note for next time — it’d be super helpful if you could use one of the available issue templates when creating a new issue. It helps us keep everything organized and makes it easier to assist you more quickly.

Appreciate your understanding!

@TheophileDiot TheophileDiot changed the title Docker image "bunkerity/bunkerweb-all-in-one" manual backup and restore does not work!!! [BUG] Docker image "bunkerity/bunkerweb-all-in-one" manual backup and restore does not work Mar 25, 2025
@ScorpionKing34
Copy link
Author

Sorry, I will that do for in the future. In advanced, thanks for your support.

@TheophileDiot
Copy link
Member

@ScorpionKing34, digging this up to tell you that I couldn't reproduce the bug.

@ScorpionKing34
Copy link
Author

Strange, I tested to day and reboot the vm. still got error 'Failed to dump the database: Timeout reached' is there a way to extend the timeout?

@TheophileDiot
Copy link
Member

What you can do is use another database like MariaDB

@ScorpionKing34
Copy link
Author

I have MariaDB installed on Windows that is not a docker. how to connect outside docker to database on OS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@ScorpionKing34 @TheophileDiot and others