Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
config: Fix the autorec entries migration
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c2680b5There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, "tar" always exits with error code 1, tvh does not start at all.
c2680b5There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log output:
2014-09-09 17:27:08.188 [ INFO] main: Log started
2014-09-09 17:27:08.202 [ INFO] config: backup: migrating config from unknown (running 3.9.1427~g05783ac)
2014-09-09 17:27:08.202 [ INFO] config: backup: running, output file /storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend/backup/unknown.tar.bz2
2014-09-09 17:27:08.222 [ ERROR] config: command '/bin/tar cjf /storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend/backup/unknown.tar.bz2 --exclude backup .' returned error code 1
c2680b5There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try 'cd /storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend' in shell.
Then '/bin/tar cjf /storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend/backup/unknown.tar.bz2 --exclude backup .' and show the reported error...
c2680b5There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine.
OpenELEC:~ # cd /storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend
OpenELEC:
/.xbmc/userdata/addon_data/service.multimedia.tvheadend # rm -rf backup//.xbmc/userdata/addon_data/service.multimedia.tvheadend # mkdir backupOpenELEC:
OpenELEC:
/.xbmc/userdata/addon_data/service.multimedia.tvheadend # /bin/tar cjf /storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend/backup/unknown.tar.bz2 --exclude backup ./.xbmc/userdata/addon_data/service.multimedia.tvheadend # ls -la backup/OpenELEC:
total 15648
drwxr-xr-x 2 root root 4096 Sep 9 19:53 .
drwxr-xr-x 15 root root 4096 Sep 9 19:53 ..
-rw-r--r-- 1 root root 16013908 Sep 9 19:53 unknown.tar.bz2
OpenELEC:~/.xbmc/userdata/addon_data/service.multimedia.tvheadend #
c2680b5There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be the case the writing to service.log while tar-ing the directory containing service.log is problematic? Just guessing.
c2680b5There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that's the case - that tar is backing up a file that's changing - then 'quite possibly'. If OpenElec tar follows GNU tar (from https://www.gnu.org/software/tar/manual/html_section/tar_19.html) then exit 1 suggests that
some files differ- although that should only be if certain command line options are used.