Comments (11)
Hi @weizhuangzhi, I couldn't manage to reproduce your error. Is it possible that you give us more information about the steps to reproduce your error ?
from bunkerweb.
Could it be related to url accessibility in Global_config's DNSBL list?
Sometimes these URLs cannot be accessed in an intranet environment, and Plugins sometimes displays: PLUGINS ERRORS 1
Can it be reproduced if the URL in the DNSBL list is set to a non-existent URL?
If this affects whether the configuration can be saved, ignore this accessibility issue. I have tested it many times and it seems that it cannot be reproduced every time. If a problem occurs and it seems that the program has interrupted execution, delete the configuration directory of the site and execute this process. But the re-creation process is not executed.
from bunkerweb.
Reinstalled and tested again.
sudo dnf update -y
sudo dnf install -y nginx-1.24.0
curl -s https://packagecloud.io/install/repositories/bunkerity/bunkerweb/script.rpm.sh | \
sed 's/yum install -y pygpgme --disablerepo='\''bunkerity_bunkerweb'\''/yum install -y python-gnupg/g' | \
sed 's/pypgpme_check=`rpm -qa | grep -qw pygpgme`/python-gnupg_check=`rpm -qa | grep -qw python-gnupg`/g' | sudo bash && \
sudo dnf makecache && \
sudo dnf install -y bunkerweb-1.5.2
sudo tee /etc/bunkerweb/ui.env >/dev/null <<EOF
ADMIN_USERNAME=administrator
ADMIN_PASSWORD=*************
EOF
sudo tee /etc/bunkerweb/variables.env >/dev/null <<EOF
DNS_RESOLVERS=8.8.8.8 8.8.4.4
HTTP_PORT=80
HTTPS_PORT=443
API_LISTEN_IP=127.0.0.1
API_HTTP_PORT=7001
SERVER_NAME=bunker6.tt
MULTISITE=yes
bunker6.tt_USE_UI=yes
bunker6.tt_USE_REVERSE_PROXY=yes
bunker6.tt_REVERSE_PROXY_URL=/manage
bunker6.tt_REVERSE_PROXY_HOST=http://127.0.0.1:7000
bunker6.tt_INTERCEPTED_ERROR_CODES=400 404 405 413 429 500 501 502 503 504
EOF
# restart service
sudo systemctl restart bunkerweb
sudo systemctl status bunkerweb --no-pager
sudo systemctl restart bunkerweb-ui
sudo systemctl status bunkerweb-ui --no-pager
# open firewall web ports
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
Visit http://bunker6.tt/manage/
to enter the Web UI. In order to simulate the situation where the DNSBL URL is inaccessible, set the Global configs DNSBL list to: dnsbl.unknown.net
, and then save it.
To avoid the impact of caching, etc., run the following command:
sudo systemctl restart bunkerweb
sudo systemctl restart bunkerweb-ui
Enter the Web UI, create a service, set the Server name to: mysite.net
, save other settings without setting them, and view the files in the /etc/nginx directory:
Enter the Web UI, edit the mysite.net service, save it directly without modifying any settings, and view the files in the /etc/nginx directory:
It is not a problem of slow execution of the background program, because after waiting for a long time, there is still no mysite.net directory generated.
from bunkerweb.
Hi @weizhuangzhi, we'll shortly push a new testing
release for Linux packages, could you test if the issue still occurs with it ?
from bunkerweb.
Okay, I'll test it as soon as it's released.
from bunkerweb.
Hi @weizhuangzhi the dev
finally passed (after a lot of tinkering), you can test it on this release if you want
from bunkerweb.
I updated the file using the dev branch.
This problem could always be reproduced before, but now it occurs occasionally.
The other test environments have not changed. Edit the service (modify or not modify the configuration items) and save it. About 5-10 times, the mysite.net
folder will not be generated, and there seems to be no pattern. (Deleted, recreated, modified many times)
I use watch -n 0.1 -d "ls -l /etc/nginx"
on the command line to monitor whether the folder is generated.
In addition, after modifying the service, I encountered "err_connection_refused" errors 2 to 3 times, and the web ui site was also inaccessible. No abnormalities were found using "systemctl status bunkerweb" and "systemctl status bunkerweb-ui". I think the generated nginx configuration may be problems, use "nginx -t":
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
No configuration error was found, so nginx -s reload
was executed.
nginx: [error] invalid PID number "" in "/var/run/bunkerweb/nginx.pid"
It was found that the nginx.pid file was empty and had no pid number. However, this problem is more difficult to reproduce. It may not be a problem with bunkerweb but a problem with my environment. This is for reference only.
from bunkerweb.
Comparison of nginx configuration directories when generating files successfully and unsuccessfully:
http.conf : There is one line of difference.
variables.env : All variable definitions starting with "mysite.net_" are missing.
from bunkerweb.
Interesting, i'll try this again when I have the time
from bunkerweb.
Hi @weizhuangzhi a few fixes and optimisation have been done since yesterday. If you have the time, you can test the latests changes with the dev
tag.
This commit might have fixed your issue : 48096d7
from bunkerweb.
@TheophileDiot Thank you, this problem no longer exists in the dev branch.
from bunkerweb.
Related Issues (20)
- [BUG] upgrade 1.5.5 -> 1.5.6 SQL Errors HOT 10
- [BUG] Infinite page loading when using Chrome browser in developer mode HOT 4
- [BUG] exception while running mmdb-country.py HOT 3
- [BUG] changes are not saved HOT 7
- 1.5.6 virustotal plugin error HOT 1
- [license] is it ok to redistribute the maxmind mmdb files? HOT 2
- [FEATURE] Ability to export and import config via the Web UI
- [BUG] REVERSE_PROXY_WS not working in KUBERNETES_MODE HOT 6
- [BUG] Web UI unavailable after fresh install, Ubuntu 24.04, Linux Integration HOT 9
- How to use bunker with services in different hosts without weakening security HOT 7
- [BUG] 500 error when accessing Web Bans page HOT 4
- [HELP] Custom certificates producing exceptions HOT 3
- [BUG] I'm testing this in a new instance and seems like lets encrypt does not work? HOT 1
- [DOC] nextcloud examples are out of date (compose)
- [FEATURE] Is there a way to deploy 2 services as reverse proxy where leaving a one without any protections and just bypassing everything HOT 4
- [FEATURE] hardened security on the 401 pages HOT 3
- [BUG] Incorrect nginx dependency for Ubuntu Noble package HOT 1
- [BUG] Do I still need to add a crowdsec container? Why can't crowdsec start and there are no logs HOT 1
- [BUG] Certs for non-autoconf sites are not applied HOT 2
- [FEATURE] Bunkerweb has lua dependencies checked into the repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bunkerweb.