Closed thelittlefireman closed 1 month ago
On v1.5.9, port 5100 disappear after an nginx reload and setup of bunkerweb-ui
[2024-07-31 21:47:51 +0000] [SCHEDULER] [21] [ℹ️ ] - Plugins config changed, generating ...
[2024-07-31 21:48:40 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job backup-data from plugin backup ...
[2024-07-31 21:48:40 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job blacklist-download from plugin blacklist ...
[2024-07-31 21:48:40 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job bunkernet-register from plugin bunkernet ...
[2024-07-31 21:48:40 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job custom-cert from plugin customcert ...
[2024-07-31 21:48:40 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job greylist-download from plugin greylist ...
[2024-07-31 21:48:40 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job mmdb-country from plugin jobs ...
[2024-07-31 21:48:40 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job certbot-new from plugin letsencrypt ...
[2024-07-31 21:48:40 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job default-server-cert from plugin misc ...
[2024-07-31 21:48:41 +0000] [BUNKERNET] [528] [ℹ️ ] - BunkerNet is not activated, skipping registration...
[2024-07-31 21:48:41 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job bunkernet-data from plugin bunkernet ...
[2024-07-31 21:48:41 +0000] [GREYLIST] [541] [ℹ️ ] - Greylist is not activated, skipping downloads...
[2024-07-31 21:48:41 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job coreruleset-nightly from plugin modsecurity ...
[2024-07-31 21:48:41 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job bunkernet-register from plugin bunkernet
[2024-07-31 21:48:42 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job greylist-download from plugin greylist
[2024-07-31 21:48:42 +0000] [MODSECURITY.CORERULESET-NIGHTLY] [577] [ℹ️ ] - Core Rule Set (CRS) nightly is not being used, skipping download...
[2024-07-31 21:48:42 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job download-pro-plugins from plugin pro ...
[2024-07-31 21:48:43 +0000] [BUNKERNET] [575] [ℹ️ ] - BunkerNet is not activated, skipping download...
[2024-07-31 21:48:43 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job realip-download from plugin realip ...
[2024-07-31 21:48:43 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job coreruleset-nightly from plugin modsecurity
[2024-07-31 21:48:43 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job bunkernet-data from plugin bunkernet
[2024-07-31 21:48:43 +0000] [REALIP] [581] [ℹ️ ] - RealIP is not activated, skipping download...
[2024-07-31 21:48:43 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job self-signed from plugin selfsigned ...
[2024-07-31 21:48:44 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job realip-download from plugin realip
[2024-07-31 21:49:01 +0000] [CUSTOM-CERT] [533] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:01 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job whitelist-download from plugin whitelist ...
[2024-07-31 21:49:02 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:02 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job custom-cert from plugin customcert
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) auth.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) bazarr.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) bitwarden.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) bookstack.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) dashboard.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) gitea.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) gitlab.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) home.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) jackett.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) jellyfin.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) kopia.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) ltf.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) mail.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) matrix.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) nextcloud.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) onlyoffice.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) phpmyadmin.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) plex.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) portainer.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) prowlarr.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) radarr.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) rdtclient.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) readarr.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) sonarr.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Certificates already exists for domain(s) syno.XXXXX.XX
[2024-07-31 21:49:05 +0000] [LETS-ENCRYPT.NEW] [546] [ℹ️ ] - Asking certificates for domain(s) : www.XXXXX.XX (email = admin@XXXXX.XX) to Let's Encrypt ...
[2024-07-31 21:49:05 +0000] [DEFAULT-SERVER-CERT] [550] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:05 +0000] [DEFAULT-SERVER-CERT] [550] [ℹ️ ] - Skipping generation of self-signed certificate for default server (already present)
[2024-07-31 21:49:06 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job anonymous-report from plugin misc ...
[2024-07-31 21:49:06 +0000] [BLACKLIST] [526] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:06 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job default-server-cert from plugin misc
[2024-07-31 21:49:06 +0000] [BLACKLIST] [526] [ℹ️ ] - Blacklist for IP is not cached, processing downloads..
[2024-07-31 21:49:06 +0000] [BLACKLIST] [526] [ℹ️ ] - Blacklist for USER_AGENT is not cached, processing downloads..
[2024-07-31 21:49:06 +0000] [BLACKLIST] [526] [ℹ️ ] - Downloading blacklist data from https://www.dan.me.uk/torlist/?exit ...
[2024-07-31 21:49:06 +0000] [BLACKLIST] [526] [ℹ️ ] - Downloaded 1921 bad IP
[2024-07-31 21:49:06 +0000] [BLACKLIST] [526] [ℹ️ ] - New file IP.list is different than cache file, reload is needed
[2024-07-31 21:49:06 +0000] [BACKUP] [524] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:07 +0000] [LETS-ENCRYPT.NEW.CERTBOT] [546] [ℹ️ ] - Saving debug log to /var/log/bunkerweb/letsencrypt.log
[2024-07-31 21:49:07 +0000] [BACKUP] [524] [ℹ️ ] - Creating a backup for the MariaDB/MySQL database ...
[2024-07-31 21:49:07 +0000] [BLACKLIST] [526] [ℹ️ ] - Downloading blacklist data from https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list ...
[2024-07-31 21:49:07 +0000] [BLACKLIST] [526] [ℹ️ ] - Downloaded 665 bad USER_AGENT
[2024-07-31 21:49:07 +0000] [BLACKLIST] [526] [ℹ️ ] - New file USER_AGENT.list is identical to cache file, reload is not needed
[2024-07-31 21:49:07 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job crowdsec-conf from plugin crowdsec ...
[2024-07-31 21:49:07 +0000] [JOBS.MMDB-COUNTRY] [548] [ℹ️ ] - ✅ Database connection established
Requesting a certificate for www.XXXXX.XX
[2024-07-31 21:49:07 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job blacklist-download from plugin blacklist
[2024-07-31 21:49:07 +0000] [CROWDSEC] [603] [ℹ️ ] - CrowdSec is not activated, skipping job...
[2024-07-31 21:49:07 +0000] [JOBS.MMDB-COUNTRY] [548] [ℹ️ ] - country.mmdb is already the latest version and is cached, skipping...
[2024-07-31 21:49:07 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job crowdsec-conf from plugin crowdsec
[2024-07-31 21:49:08 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job mmdb-asn from plugin jobs ...
[2024-07-31 21:49:08 +0000] [SELF-SIGNED] [588] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:08 +0000] [BACKUP] [524] [ℹ️ ] - Creating a backup for the MariaDB/MySQL database ...
[2024-07-31 21:49:08 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job mmdb-country from plugin jobs
[2024-07-31 21:49:08 +0000] [SELF-SIGNED] [588] [ℹ️ ] - Service www.XXXXX.XX is using self-signed SSL certificates, checking ...
[2024-07-31 21:49:08 +0000] [SELF-SIGNED] [588] [ℹ️ ] - Generating self-signed certificate for www.XXXXX.XX
[2024-07-31 21:49:08 +0000] [JOBS.DOWNLOAD-PRO-PLUGINS] [579] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:08 +0000] [JOBS.DOWNLOAD-PRO-PLUGINS] [579] [ℹ️ ] - Checking BunkerWeb Pro status...
[2024-07-31 21:49:08 +0000] [JOBS.DOWNLOAD-PRO-PLUGINS] [579] [ℹ️ ] - Skipping the check for BunkerWeb Pro license (already checked today)
[2024-07-31 21:49:08 +0000] [SELF-SIGNED] [588] [ℹ️ ] - Successfully generated self-signed certificate for www.XXXXX.XX
[2024-07-31 21:49:08 +0000] [WHITELIST] [596] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:08 +0000] [BACKUP] [524] [ℹ️ ] - Creating a backup for the MariaDB/MySQL database ...
[2024-07-31 21:49:08 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job download-pro-plugins from plugin pro
[2024-07-31 21:49:08 +0000] [WHITELIST] [596] [ℹ️ ] - No whitelist URL is configured, nothing to do...
[2024-07-31 21:49:09 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job self-signed from plugin selfsigned
[2024-07-31 21:49:09 +0000] [SCHEDULER] [21] [ℹ️ ] - Successfully updated database for the job whitelist-download from plugin whitelist
[2024-07-31 21:49:09 +0000] [ANONYMOUS-REPORT] [600] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:09 +0000] [BACKUP] [524] [ℹ️ ] - Creating a backup for the MariaDB/MySQL database ...
[2024-07-31 21:49:09 +0000] [ANONYMOUS-REPORT] [600] [ℹ️ ] - Skipping the sending of anonymous report (already sent today)
[2024-07-31 21:49:09 +0000] [SCHEDULER] [21] [ℹ️ ] - Executing job download-plugins from plugin misc ...
[2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.NEW.CERTBOT] [546] [ℹ️ ] - Hook '--manual-auth-hook' for www.XXXXX.XX reported error code 1
[2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.NEW.CERTBOT] [546] [ℹ️ ] - Hook '--manual-auth-hook' for www.XXXXX.XX ran with error output:
[2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.NEW.CERTBOT] [546] [ℹ️ ] - [2024-07-31 21:49:09 +0000] [LETS-ENCRYPT.AUTH] [607] [ℹ️ ] - Detected Docker integration
[2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.NEW.CERTBOT] [546] [ℹ️ ] - [2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.AUTH] [607] [ℹ️ ] - ✅ Database connection established
[2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.NEW.CERTBOT] [546] [ℹ️ ] - [2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.AUTH] [607] [ℹ️ ] - Sending challenge to 1 instances
[2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.NEW.CERTBOT] [546] [ℹ️ ] - [2024-07-31 21:49:12 +0000] [LETS-ENCRYPT.AUTH] [607] [❌] - Can't send API request to http://nginx:5100//lets-encrypt/challenge : Request failed: HTTPConnectionPool(host='nginx', port=5100): Max retries exceeded with url: /lets-encrypt/challenge (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f72677e6180>: Failed to establish a new connection: [Errno 111] Connection refused'))
quick temporary workaround 'docker stop nginx bw-scheduler' 'docker start nginx bw-scheduler'
If I monitor watch -n 1 netstat -lt | grep 443
I confirm that just after an [2024-07-31 22:02:03 +0000] [API] [22] [ℹ️ ] - Successfully sent API request to http://nginx:5100/reload
the port 5100 disappear. I think something break the api port after sending new configuration to nginx. Could it be possible to fix this please ?
I found the issue, it's my mistake a miss-configuration
What happened?
Afters some times i lost the api endpoint in nginx. Everything is working but the api endpoint is missing.
i check by
netstat
and the port related to the api is not listed.i'v notice some lua errors but i don't know if there are related.
How to reproduce?
Juste run the containers and after a while bw-schduler can't reach the api endpoint and api port is not listen anymore by nginx
Configuration file(s) (yaml or .env)