Skip to content

DB unable to be initialized #1392

@droidus

Description

@droidus

What installation are you running?

Production (netalertx) 📦

Did I research?

The issue occurs in the following browsers. Select at least 2.

  • Firefox
  • Chrome
  • Other (unsupported) - PRs welcome
  • 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

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Docker 🐋Docker relatedSetup 📥These are probably setup or user environment related issues.Waiting for reply⏳Waiting for the original poster to respond, or discussion in progress.next release/in dev image 🚀This is coming in the next release or was already released if the issue is Closed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions