Files
NetAlertX/docs/DEBUG_TIPS.md
Jokob-sk 79b5429a01 docs
2023-07-07 08:05:21 +10:00

1.1 KiB
Executable File

More Logging

When debugging an issue always set the highest log level:

LOG_LEVEL='debug'

Check the _dev image and open issues

If possible, check if your issue got fixed in the _dev image before opening a new issue. The container is:

jokobsk/pi.alert_dev:latest

⚠ Please backup your DB and config beforehand!

PLease also search open issues.

Surfacing errors when container restarts

Start the container via the terminal with a command similar to this one:

docker run --rm --network=host \
  -v local/path/pialert/config:/home/pi/pialert/config \
  -v local/path/pialert/db:/home/pi/pialert/db \
  -e TZ=Europe/Berlin \
  -e PORT=20211 \
  jokobsk/pi.alert:latest

⚠ Please note, don't use the -d parameter so you see the error when the container crashes. Use this error in your issue description.

Disable restart behavior

To prevent a Docker container from automatically restarting in a Docker Compose file, specify the restart policy as no:

version: '3'

services:
  your-service:
    image: your-image:tag
    restart: no
    # Other service configurations...