bunkerweb icon indicating copy to clipboard operation
bunkerweb copied to clipboard

[BUG] After updating 1.6.2rc7 to 1.6.2, bunkerweb is ko

Open YouKyi opened this issue 1 year ago • 0 comments

What happened?

Hello, I have update my linux bunkerweb isntance 1.6.2-rc7 to 1.6.2 final release, my bunkerweb is reset.

How to reproduce?

I have followed all instructions to upgrade, all commands i have executed

BACKUP_DIRECTORY=/path/to/backup/directory bwcli plugin backup save
sudo apt-mark unhold bunkerweb nginx
sudo apt update && \
sudo apt install -y --allow-downgrades bunkerweb=1.6.2
sudo apt-mark hold bunkerweb nginx
sudo systemctl start bunkerweb
sudo systemctl start bunkerweb-ui
sudo systemctl start bunkerweb-scheduler

After this, the bw can't reboot,

Configuration file(s) (yaml or .env)


Relevant log output

These logs were extracted after the update and before the database restore attempt.

==> scheduler.log <==
[2025-07-04 12:21:16 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Instance http://127.0.0.1:5000/ is loading, sending config ...
[2025-07-04 12:21:16 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Instance http://127.0.0.1:5000/ is loading, sending config ...
[2025-07-04 12:21:16 +0200] [GENERATOR] [1305349] [ℹ️ ] - Generator started ...
[2025-07-04 12:21:16 +0200] [GENERATOR] [1305349] [ℹ️ ] - Settings : /usr/share/bunkerweb/settings.json
[2025-07-04 12:21:16 +0200] [GENERATOR] [1305349] [ℹ️ ] - Templates : /usr/share/bunkerweb/confs
[2025-07-04 12:21:16 +0200] [GENERATOR] [1305349] [ℹ️ ] - Core : /usr/share/bunkerweb/core
[2025-07-04 12:21:16 +0200] [GENERATOR] [1305349] [ℹ️ ] - Plugins : /etc/bunkerweb/plugins
[2025-07-04 12:21:16 +0200] [GENERATOR] [1305349] [ℹ️ ] - Pro plugins : /etc/bunkerweb/pro/plugins
[2025-07-04 12:21:16 +0200] [GENERATOR] [1305349] [ℹ️ ] - Output : /etc/nginx
[2025-07-04 12:21:16 +0200] [GENERATOR] [1305349] [ℹ️ ] - Target : /etc/nginx
[2025-07-04 12:21:17 +0200] [GENERATOR] [1305349] [ℹ️ ] - ✅ Database connection established
[2025-07-04 12:21:17 +0200] [GENERATOR] [1305349] [ℹ️ ] - Removing old files ...
[2025-07-04 12:21:17 +0200] [GENERATOR] [1305349] [ℹ️ ] - Rendering templates ...
[2025-07-04 12:21:17 +0200] [GENERATOR] [1305349] [ℹ️ ] - Generator successfully executed !
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /etc/bunkerweb/configs to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /etc/bunkerweb/configs to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /etc/bunkerweb/plugins to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /etc/bunkerweb/plugins to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /etc/bunkerweb/pro/plugins to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /etc/bunkerweb/pro/plugins to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /etc/nginx to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /etc/nginx to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /var/cache/bunkerweb to specific BunkerWeb instances ...
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Sending /var/cache/bunkerweb to specific BunkerWeb instances ...

==> error.log <==
2025/07/04 12:21:17 [notice] 1303421#1303421: *171 [API] validated access from IP 127.0.0.1, client: 127.0.0.1, server: bwapi, request: "POST /pro_plugins HTTP/1.1", host: "bwapi"
2025/07/04 12:21:17 [notice] 1303421#1303421: signal 17 (SIGCHLD) received from 1305367
2025/07/04 12:21:17 [notice] 1303421#1303421: signal 17 (SIGCHLD) received from 1305369
2025/07/04 12:21:17 [notice] 1303421#1303421: *171 [API] successful call from 127.0.0.1 on /pro_plugins : saved data at /etc/bunkerweb/pro/plugins, client: 127.0.0.1, server: bwapi, request: "POST /pro_plugins HTTP/1.1", host: "bwapi"

==> access.log <==
bwapi 127.0.0.1 - 32521e4630858a8001e59db4476ad502 - [04/Jul/2025:12:21:17 +0200] "POST /pro_plugins HTTP/1.1" 200 85 "-" "bwapi"

==> scheduler.log <==
[2025-07-04 12:21:17 +0200] [API] [1303395] [ℹ️ ] - Successfully sent API request to http://127.0.0.1:5000/pro_plugins
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /etc/bunkerweb/pro/plugins folder to reachable BunkerWeb instances
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /etc/bunkerweb/pro/plugins folder to reachable BunkerWeb instances

==> error.log <==
2025/07/04 12:21:17 [notice] 1303422#1303422: *172 [API] validated access from IP 127.0.0.1, client: 127.0.0.1, server: bwapi, request: "POST /custom_configs HTTP/1.1", host: "bwapi"
2025/07/04 12:21:17 [notice] 1303422#1303422: signal 17 (SIGCHLD) received from 1305373
2025/07/04 12:21:17 [notice] 1303422#1303422: signal 17 (SIGCHLD) received from 1305375
2025/07/04 12:21:17 [notice] 1303422#1303422: *172 [API] successful call from 127.0.0.1 on /custom_configs : saved data at /etc/bunkerweb/configs, client: 127.0.0.1, server: bwapi, request: "POST /custom_configs HTTP/1.1", host: "bwapi"

==> access.log <==
bwapi 127.0.0.1 - 2771b173a50a2ef7447d435875f5f8cf - [04/Jul/2025:12:21:17 +0200] "POST /custom_configs HTTP/1.1" 200 80 "-" "bwapi"

==> scheduler.log <==
[2025-07-04 12:21:17 +0200] [API] [1303395] [ℹ️ ] - Successfully sent API request to http://127.0.0.1:5000/custom_configs
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /etc/bunkerweb/configs folder to reachable BunkerWeb instances
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /etc/bunkerweb/configs folder to reachable BunkerWeb instances

==> error.log <==
2025/07/04 12:21:17 [notice] 1303423#1303423: *173 [API] validated access from IP 127.0.0.1, client: 127.0.0.1, server: bwapi, request: "POST /plugins HTTP/1.1", host: "bwapi"
2025/07/04 12:21:17 [notice] 1303423#1303423: signal 17 (SIGCHLD) received from 1305379
2025/07/04 12:21:17 [notice] 1303423#1303423: signal 17 (SIGCHLD) received from 1305381
2025/07/04 12:21:17 [notice] 1303423#1303423: *173 [API] successful call from 127.0.0.1 on /plugins : saved data at /etc/bunkerweb/plugins, client: 127.0.0.1, server: bwapi, request: "POST /plugins HTTP/1.1", host: "bwapi"

==> access.log <==
bwapi 127.0.0.1 - 54dc152b4cbdc5be2dc3c5d05b5dddc9 - [04/Jul/2025:12:21:17 +0200] "POST /plugins HTTP/1.1" 200 80 "-" "bwapi"

==> scheduler.log <==
[2025-07-04 12:21:17 +0200] [API] [1303395] [ℹ️ ] - Successfully sent API request to http://127.0.0.1:5000/plugins
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /etc/bunkerweb/plugins folder to reachable BunkerWeb instances
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /etc/bunkerweb/plugins folder to reachable BunkerWeb instances

==> error.log <==
2025/07/04 12:21:17 [notice] 1303420#1303420: *174 [API] validated access from IP 127.0.0.1, client: 127.0.0.1, server: bwapi, request: "POST /confs HTTP/1.1", host: "bwapi"
2025/07/04 12:21:17 [notice] 1303420#1303420: signal 17 (SIGCHLD) received from 1305385
2025/07/04 12:21:17 [notice] 1303420#1303420: signal 17 (SIGCHLD) received from 1305387
2025/07/04 12:21:17 [notice] 1303420#1303420: *174 [API] successful call from 127.0.0.1 on /confs : saved data at /etc/nginx, client: 127.0.0.1, server: bwapi, request: "POST /confs HTTP/1.1", host: "bwapi"

==> access.log <==
bwapi 127.0.0.1 - e1de512f8949dc2ef0421e3971204c7c - [04/Jul/2025:12:21:17 +0200] "POST /confs HTTP/1.1" 200 67 "-" "bwapi"

==> scheduler.log <==
[2025-07-04 12:21:17 +0200] [API] [1303395] [ℹ️ ] - Successfully sent API request to http://127.0.0.1:5000/confs
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /etc/nginx folder to reachable BunkerWeb instances
[2025-07-04 12:21:17 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /etc/nginx folder to reachable BunkerWeb instances

==> error.log <==
2025/07/04 12:21:17 [notice] 1303420#1303420: *175 [API] validated access from IP 127.0.0.1, client: 127.0.0.1, server: bwapi, request: "POST /cache HTTP/1.1", host: "bwapi"
2025/07/04 12:21:18 [notice] 1303420#1303420: signal 17 (SIGCHLD) received from 1305391
2025/07/04 12:21:18 [notice] 1303420#1303420: signal 17 (SIGCHLD) received from 1305393
2025/07/04 12:21:18 [notice] 1303420#1303420: *175 [API] successful call from 127.0.0.1 on /cache : saved data at /var/cache/bunkerweb, client: 127.0.0.1, server: bwapi, request: "POST /cache HTTP/1.1", host: "bwapi"

==> access.log <==
bwapi 127.0.0.1 - 6d79d54db9cf82cd2c94cb7bd8f65f68 - [04/Jul/2025:12:21:17 +0200] "POST /cache HTTP/1.1" 200 78 "-" "bwapi"

==> scheduler.log <==
[2025-07-04 12:21:18 +0200] [API] [1303395] [ℹ️ ] - Successfully sent API request to http://127.0.0.1:5000/cache
[2025-07-04 12:21:18 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /var/cache/bunkerweb folder to reachable BunkerWeb instances
[2025-07-04 12:21:18 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [ℹ️ ] - Successfully sent /var/cache/bunkerweb folder to reachable BunkerWeb instances

==> error.log <==
2025/07/04 12:21:18 [notice] 1303420#1303420: *176 [API] validated access from IP 127.0.0.1, client: 127.0.0.1, server: bwapi, request: "POST /reload?test=yes HTTP/1.1", host: "bwapi"
2025/07/04 12:21:18 [notice] 1303420#1303420: *176 [API] Checking Nginx configuration, client: 127.0.0.1, server: bwapi, request: "POST /reload?test=yes HTTP/1.1", host: "bwapi"
2025/07/04 12:21:18 [notice] 1303420#1303420: signal 17 (SIGCHLD) received from 1305398
2025/07/04 12:21:18 [notice] 1303420#1303420: unknown process 1305398 exited with code 1
2025/07/04 12:21:18 [warn] 1303420#1303420: *176 [API] call from 127.0.0.1 on /reload failed : config check failed: nginx: [emerg] "modsecurity_rules_file" directive Rules must have an ID. File: /etc/nginx/http/ui.modsec-crs at line: 43
 in /etc/nginx/http/modsecurity.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
, client: 127.0.0.1, server: bwapi, request: "POST /reload?test=yes HTTP/1.1", host: "bwapi"

==> access.log <==
bwapi 127.0.0.1 - 734e182114be9a2357238713e3a5c245 - [04/Jul/2025:12:21:18 +0200] "POST /reload?test=yes HTTP/1.1" 500 297 "-" "bwapi"

==> scheduler.log <==
[2025-07-04 12:21:18 +0200] [API] [1303395] [❌] - Error while sending API request to http://127.0.0.1:5000/reload?test=yes : status = 500, msg = config check failed: nginx: [emerg] "modsecurity_rules_file" directive Rules must have an ID. File: /etc/nginx/http/ui.modsec-crs at line: 43
 in /etc/nginx/http/modsecurity.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed

[2025-07-04 12:21:18 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [❌] - Error while reloading instance http://127.0.0.1:5000/
[2025-07-04 12:21:18 +0200] [SCHEDULER.HEALTHCHECK] [1303395] [❌] - Error while reloading instance http://127.0.0.1:5000/

BunkerWeb version

1.6.2

What integration are you using?

Linux

Linux distribution (if applicable)

Debian 12

Removed private data

  • [x] I have removed all private data from the configuration file and the logs

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

YouKyi avatar Jul 04 '25 12:07 YouKyi