[Nix-dev] Going through hell with systemd timers
exi
e-nixos at wthack.de
Thu Jan 28 10:34:05 CET 2016
Hi Erik,
does duplicity use an ssh connection? Does it depend on your ssh
passphrase to be present? Do you use a ssh agent?
"BackendException" from the traceback looks more like a connection issue
than a nix issue.
Which user is running the timer command?
Could you post your timer config?
Regards,
exi
On 28.01.2016 09:07, 4levels wrote:
> Hi Nix-Devs,
>
> yesterday I came to a point of really wanting to break something out
> of sheer frustration over failing systemd timer calls.
>
> I've setup a duplicity backup script over s3 that works flawlessly
> when invoked from terminal, but fails misrably when being called from
> a timer.
>
> I've tried everything I know, including but not limited to adding my
> full user $PATH to the script, adding all possible related packages to
> the path directive, .. nothing seems to work.
>
> The duplicity error is very vague (BackendException) and when adding
> maximum verbosity to the duplicity call ( -v9 ) I do get some error
> which seems to be related to a very old duplicity bug. Since
> duplicity uses python (the version I could trace seems to be 2.7) with
> python-boto for the s3 backend - the issue seems to be related to
> this, but I can't figure out what could be the reason since all
> required packages are installed and operational from the commandline.
>
> Has anyone experience with running python-based code in systemd timer
> calls (without being bitten)?
>
> On top of that, Github went down for a couple of hours last night and
> to make things even worse, NixOps cannot finish a deploy on any of the
> 5 machines I'm managing with it anymore, with a vague error message:
>
> v-ams02...> updating GRUB 2 menu...
> v-ams02...> Died at
> /nix/var/nix/profiles/system/bin/switch-to-configuration line 264.
> v-ams02...> error: unable to activate new configuration
>
> Kind regards.
>
> Erik
>
> Duplicity error with maximum verbosity:
> Backend error detail: Traceback (most recent call last):
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/bin/.duplicity-wrapped",
> line 1519, in <module>
> with_tempdir(main)
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/bin/.duplicity-wrapped",
> line 1513, in with_tempdir
> fn()
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/bin/.duplicity-wrapped",
> line 1354, in main
> action = commandline.ProcessCommandLine(sys.argv[1:])
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/lib/python2.7/site-packages/duplicity/commandline.py",
> line 1070, in ProcessCommandLine
> backup, local_pathname = set_backend(args[0], args[1])
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/lib/python2.7/site-packages/duplicity/commandline.py",
> line 961, in set_backend
> globals.backend = backend.get_backend(bend)
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/lib/python2.7/site-packages/duplicity/backend.py",
> line 223, in get_backend
> obj = get_backend_object(url_string)
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/lib/python2.7/site-packages/duplicity/backend.py",
> line 209, in get_backend_object
> return factory(pu)
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/lib/python2.7/site-packages/duplicity/backends/_boto_single.py",
> line 161, in __init__
> self.resetConnection()
> File
> "/nix/store/ap2bv0p5m8napigg7f6yciap4nm61ap8-duplicity-0.7.02/lib/python2.7/site-packages/duplicity/backends/_boto_single.py",
> line 187, in resetConnection
> raise BackendException(err.message)
>
>
>
> !DSPAM:56a9cc5f200881139745903!
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
> !DSPAM:56a9cc5f200881139745903!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160128/7e7a1f7e/attachment-0001.html
More information about the nix-dev
mailing list