borgmatic-collective / docker-borgmatic

Borgmatic in Docker
GNU General Public License v3.0
312 stars 88 forks source link

Where can I find logs? #333

Open r-vd-woude opened 2 weeks ago

r-vd-woude commented 2 weeks ago

Hey! Thanks for this awesome container, great work.

This might be a very simple question, but my container is failing (changing status to unhealthy and not making backups). I can access and backup to my remote repo after execing into the container, so something goes probably wrong with the configuration settings. However, I can not seem to find logs. The default docker logs contains no info except the following

s6-overlay-suexec: warning: unable to gain root privileges (is the suid bit set?)
[custom-init] Docker CLI variable not set, skipping...
[custom-init] No custom packages found, skipping...
-----------------------------------
Software Versions:
-----------------------------------
apprise 1.7.6
borg 1.2.8
borgmatic 1.8.11
dockercli not installed
composecli not installed
python 3.12.3
-----------------------------------
Time Zone: Europe/Berlin
-----------------------------------
Applying crontab.txt
Cron job set as: 
 */5 * * * *

    all values are hidden

crond: crond (busybox 1.36.1) started, log level 8

I have looked into the temp directory in the container, but could not find any info there.

Not sure how to troubleshoot my failing container now.

Thanks again!

ericswpark commented 2 weeks ago

If your cronjobs are set up, then the output from the cronjobs should be redirected to the Docker logs. Manual invocations of Borgmatic within the Docker container will just go directly to stdout if you have an interactive TTY.