Skip to content

Wrong permissions on app.conf prevent start of NetAlertX when using docker #1352

Description

@git24chris

Is there an existing issue for this?

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

  • Firefox
  • Chrome
  • Edge
  • Safari (unsupported) - PRs welcome
  • N/A - This is an issue with the backend

Current Behavior

Installation: Proxmox-Server (V9, Trixie) -> LXC (Debian Trixie) -> Docker with Portainer-Agent -> Portainer GUI -> deploy portainer-default-yaml using bind mounts (with access rights as per documentation).

ATTENTION: Read permission denied.
    The application cannot read from "/data/config/app.conf". This will cause
    unpredictable errors. Please correct the file system permissions.

default by container deployment:
-------r-- 1 20211 20211 3963 18. Dez 20:57 app.conf (permission 004?)

should be? (at least it works that way)
-rw-r--r-- 1 20211 20211 160367 18. Dez 21:33 app.conf (permission 644)

Expected Behavior

Well, since you're setting the file during initialization, I would expect it to be correct from the start. Thanks.

Steps To Reproduce

Simply setup a NetAlerX instance using Portainer and the proposed default yaml.

Relevant app.conf settings

docker-compose.yml

What installation are you running?

Production (netalertx)

Debug or Trace 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.

Relevant app.log section

  PASTE LOG HERE. Using the triple backticks preserves format. 

Docker Logs

  PASTE DOCKER LOG HERE. Using the triple backticks preserves format. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Docker 🐋Docker relatedbug 🐛Something isn't workingnext release/in dev image 🚀This is coming in the next release or was already released if the issue is Closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions