Project

General

Profile

Backup error upgrading in docker

Added by Josu Lazkano 6 months ago

Hello,

I have a docker image that run well from years, now I update the image and I have this error:

2021-03-22 10:54:19.198 [ ERROR] spawn: /bin/tar: ./.bash_history: Cannot open: Permission denied
2021-03-22 10:54:24.574 [ ERROR] spawn: /bin/tar: Exiting with failure status due to previous errors
2021-03-22 10:54:24.591 [ INFO] config: backup: completed
2021-03-22 10:54:24.591 [ ERROR] config: command '/bin/tar cjf /config/backup/4.3-1940~gfe0e5f1f9.tar.bz2 --exclude backup --exclude epggrab/*.sock --exclude timeshift/buffer --exclude imagecache/meta --exclude imagecache/data .' returned error code 2
2021-03-22 10:54:24.591 [ ERROR] config: executed in directory '/config'
2021-03-22 10:54:24.591 [ ERROR] config: please DON'T report this as an error, you may use --nobackup to skip
2021-03-22 10:54:24.591 [ ERROR] config: ... or run the above command in the printed directory
2021-03-22 10:54:24.591 [ ERROR] config: ... using the same user/group as for the Tvheadend executable
2021-03-22 10:54:24.591 [ ERROR] config: ... to check the reason for the unfinished backup
2021-03-22 10:54:24.591 [ ERROR] config: backup: fatal error
2021-03-22 10:54:24.637 [ INFO] main: Log started
2021-03-22 10:54:24.637 [ INFO] http: Starting HTTP server 0.0.0.0:9981
2021-03-22 10:54:24.637 [ INFO] htsp: Starting HTSP server 0.0.0.0:9982
2021-03-22 10:54:24.663 [ INFO] config: backup: migrating config from 4.3-1940~gfe0e5f1f9 (running 4.3-1947~gdbaa0f850)
2021-03-22 10:54:24.663 [ INFO] config: backup: running, output file /config/backup/4.3-1940~gfe0e5f1f9.tar.bz2
2021-03-22 10:54:24.664 [ INFO] spawn: Executing "/bin/tar"

The service is not started. How could I solve this problem?

I am using linuxserver docker image: https://hub.docker.com/r/linuxserver/tvheadend

Best regards.


Replies (2)

RE: Backup error upgrading in docker - Added by Josu Lazkano 6 months ago

Hello,

The error is in loop: https://paste.debian.net/1190432/

And I can not start the service, someone with similar problem? How could I fix it?

Regards.

RE: Backup error upgrading in docker - Added by Josu Lazkano 6 months ago

Hello,

I solve the problem, the ".bash_history" file has root:root permissions.

So I delete the "/config/.bash_history" file and now it is working.

Kind regards.

    (1-2/2)