Forum archive
tklbam backup throws error
Hi,
I am running tklbam backup in the local mode (no Amazon) like the following:
sudo tklbam-backup --address file:///mnt/dir/backup --disable-resume
When I don't use --disable-resume I get the message:
Implicit --resume: Detected a rerun of an aborted backup session
You can disable this with the --disable-resume option
Ultimately, I get the following error:
Traceback (most recent call last):
File "/usr/bin/tklbam-backup", line 510, in <module>
main()
File "/usr/bin/tklbam-backup", line 443, in main
opt_resume, True, dump_path if dump_path else "/")
File "/usr/lib/tklbam/backup.py", line 218, in __init__
saved_backup_conf = BackupConf.fromfile(extras_paths.backup_conf)
File "/usr/lib/tklbam/backup.py", line 76, in fromfile
d = simplejson.load(file(path))
File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 448, in load
use_decimal=use_decimal, **kw)
File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 505, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
It doesn't make sense to me. The log file is empty, even when trying with --debug flags.
Any ideas?
So first up it would be good to understand which appliance you are using, it's version and the version of TKLBAM (and dependencies). You can get that info like so:
If you don't have the most recent version of TKLBAM (or would like to make sure you have), then it's worth trying to update that first:
(That will tell you if it already has the latest version available for your version of TurnKey)
Also could you please share how you initialised TKLBAM. I assume that you used the '--solo' switch? Did you create a profile? Or did you use an empty one? (i.e. '--force-profile=empty'). If you used a profile, could you please also share that. Please also share what overrides that you have configured (if any).
Unfortunately the stack trace is not all that helpful (as you noted), but it's clearly choking on some info that it is expecting but not receiving ("Expecting value: line 1 column 1 (char 0)").
As for the issue where it's trying to resume a failed backup, that suggests that it has previously had a failed backup and is trying to complete that. Do you get the same error if you allow it to try to complete the previous backup?
FWIW, you could also try using the '--dump' switch and see if that makes any difference. I.e.: