Comments (10)
Thanks @celevra,
We will try to reproduce and we will push a hotfix soon.
from bunkerweb.
all my data from mounted bw-data is also gone, all custom modsec rules and so on...
here is my compose.yaml
version: "3.5"
services:
bunkerweb:
image: bunkerity/bunkerweb:1.5.5
ports:
- 80:8080
- 443:8443
volumes:
- ./bw-data/plugins:/etc/bunkerweb/plugins
- ./errors:/errors
labels:
- "bunkerweb.INSTANCE=yes"
environment:
- SERVER_NAME=
- MULTISITE=yes
- API_WHITELIST_IP=127.0.0.0/8 10.20.30.0/24
- UI_HOST=http://bw-ui:7000 # Change it if needed
- USE_WEBHOOK=yes
- WEBHOOK_URL=https://xxx/bw
- USE_CROWDSEC=yes
- CROWDSEC_API=http://xxx:8181
- CROWDSEC_API_KEY=xxx
- CROWDSEC_REQUEST_TIMEOUT=3000
- CROWDSEC_CACHE_EXPIRATION=30000
- USE_CLAMAV=yes
- CLAMAV_HOST=clamav
- USE_MODSECURITY=yes # We don't need modsecurity anymore
- USE_CORAZA=no
- CORAZA_API=http://bw-coraza:8080
networks:
- bw-universe
- bw-services
logging:
driver: syslog
options:
syslog-address: "udp://10.20.30.254:514"
bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.5
volumes:
- ./bw-data:/data
depends_on:
- bunkerweb
- bw-docker
environment:
- DATABASE_URI=mariadb+pymysql://bunkerweb:xxx@bw-db:3306/db # Remember to set a stronger password for the database
- DOCKER_HOST=tcp://bw-docker:2375
#- EXTERNAL_PLUGIN_URLS=https://github.com/bunkerity/bunkerweb-plugins/archive/refs/tags/v1.2.zip
networks:
- bw-universe
- bw-docker
bw-docker:
image: tecnativa/docker-socket-proxy:nightly
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CONTAINERS=1
- LOG_LEVEL=warning
networks:
- bw-docker
bw-coraza:
image: bunkerity/bunkerweb-coraza:latest
networks:
- bw-universe
clamav:
image: clamav/clamav:1.2
volumes:
- ./clamav-data:/var/lib/clamav
networks:
- bw-universe
syslog:
image: balabit/syslog-ng:4.4.0
volumes:
- ./syslog-ng.conf:/etc/syslog-ng/syslog-ng.conf
- ./logs:/var/log
networks:
bw-universe:
ipv4_address: 10.20.30.254
bw-ui:
image: bunkerity/bunkerweb-ui:1.5.5
depends_on:
- bw-docker
environment:
- DATABASE_URI=mariadb+pymysql://bunkerweb:xxx@bw-db:3306/db # Remember to set a stronger password for the database
- DOCKER_HOST=tcp://bw-docker:2375
networks:
- bw-universe
- bw-docker
bw-db:
image: mariadb:10.10
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=db
- MYSQL_USER=bunkerweb
- MYSQL_PASSWORD=xxx # Remember to set a stronger password for the database
volumes:
- ./mysql:/var/lib/mysql
networks:
- bw-docker
networks:
bw-universe:
name: bw-universe
ipam:
driver: default
config:
- subnet: 10.20.30.0/24
bw-services:
name: bw-services
bw-docker:
name: bw-docker
not your fault, but the system was relative new so we have no backup, couldn't think of that there is an error that deletes the bw-data Folder....
from bunkerweb.
Hello @celevra,
Maybe config is not gone and still in your database.
Can you try to run your mysql container only, and connect using mysql -u bunkerweb -pxxx db
then show tables;
and select * from bw_custom_configs;
We are trying to reproduce your problem and will come back to you.
from bunkerweb.
i appreciate your work, thank you.
But i allready started over (now with backups ;-))
from bunkerweb.
Hi @celevra, I couldn't reproduce the problem could you give us more information? :
- The logs you provided are after the whole procedure or during it ?
- Do you have more relevant logs ? The ones you provided doesn't help really much
from bunkerweb.
Unfortunately, we do not support database downgrades. Therefore, you would need to recreate a new one since the models are different.
from bunkerweb.
i've just copied these parts, because i thought that it seems like a failure in shema update.
After i updated the fields my self (DEFAULT 0) it seemed it worked, but all my configuration was gone.
so i started from the beginning.
but i have other problems with not updateting services (enable reverse proxy after a service was created) but for that i will create a new issue
from bunkerweb.
Okay, thank you for that information.
We modified the migration part to create a backup inside the database in case something goes wrong.
We also wrote a migration procedure that will be available in the documentation shortly ! 😄
from bunkerweb.
I have also upgraded from 1.5.5 to 1.5.6 in a kubernetes deployment of bunkerweb and my db also broke down
from bunkerweb.
1.5.6 to 1.5.7 should now be smooth.
We also added a backup plugin to rollback if it's needed. More info here : https://docs.bunkerweb.io/1.5.7/security-tuning/#backup-and-restore
from bunkerweb.
Related Issues (20)
- [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.