DB unable to be initialized
What installation are you running?
Production (netalertx) π¦
Did I research?
- [x] I have searched the docs https://jokob-sk.github.io/NetAlertX/
- [x] I have searched the existing open and closed issues
- [x] I confirm my SCAN_SUBNETS is configured and tested as per https://github.com/jokob-sk/NetAlertX/blob/main/docs/SUBNETS.md
The issue occurs in the following browsers. Select at least 2.
- [ ] Firefox
- [ ] Chrome
- [ ] Other (unsupported) - PRs welcome
- [x] N/A - This is an issue with the backend
What I want to do
Install/run the app.
Relevant settings you changed
run --network=host -v ./data:/data -v /etc/localtime:/etc/localtime --tmpfs /tmp:uid=${NETALERTX_UID:-20211},gid=${NETALERTX_GID:-20211},mode=1700 -e PORT=20211 -e APP_CONF_OVERRIDE={"GRAPHQL_PORT":"20214"} ghcr.io/jokob-sk/netalertx:latest
docker-compose.yml
app.log
Startup pre-checks --> storage permission.sh --> data migration.sh --> mounts.py env: can't execute 'python3': Operation not permitted mounts.py: FAILED with 126 Failure detected in: /entrypoint.d/10-mounts.py --> first run config.sh --> first run db.sh ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ π First run detected. Building initial database schema in /data/db/app.db.
Do not interrupt this step. Once complete, consider backing up the fresh
database before onboarding sensitive networks.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Error: unable to open database "/data/db/app.db": unable to open database file ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β CRITICAL: Database schema creation failed for /data/db/app.db.
NetAlertX cannot start without a properly initialized database. This
failure typically indicates:
* Insufficient disk space or write permissions in the database directory
* Corrupted or inaccessible SQLite installation
* File system issues preventing database file creation
Check the logs for detailed SQLite error messages. Ensure the container
has write access to the database path and adequate storage space.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Debug enabled
- [x] I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.