Re: [Nix-dev] Going through hell with systemd timers

2016-01-28 Thread zimbatm
We really need to get rid of that SSL_CERT_FILE environment variable... related issue: https://github.com/NixOS/nixpkgs/issues/8486 On Thu, 28 Jan 2016 at 15:06 4levels <4lev...@gmail.com> wrote: > Dear Guillaume, > > you saved my day (and sleepless last night)! > This line worked all the magic

Re: [Nix-dev] Going through hell with systemd timers

2016-01-28 Thread exi
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?

[Nix-dev] Going through hell with systemd timers

2016-01-28 Thread 4levels
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

Re: [Nix-dev] Going through hell with systemd timers

2016-01-28 Thread 4levels
Hi Exi, thank you for your reply. This is the timers config I'm using (note that I'm starting this every 5 minutes to troubleshoot, is supposed to run every 2 hours or so) backup = { description = "Backup service"; after = [ "network.target" "mysql.target" ]; path = [ pkgs.procps

Re: [Nix-dev] Going through hell with systemd timers

2016-01-28 Thread 4levels
Hi Zimbatm (is that your name :-) I'm currently trying to debug by using printenv to view the differences in both environments. I'm not yet familiar with using nix-shell :-s But since I cannot even deploy or rebuild switch anymore (see my other email to this list) I'm pretty stuck. I'm

Re: [Nix-dev] Going through hell with systemd timers

2016-01-28 Thread Guillaume Maudoux (Layus)
Hi, My experience with urlwatch was that the SSL_CERT_FILE env var was missing. This may also be your issue if you are using the network. It is however always possible to run the service manually, and see the logs. A service declaration with a startAt attribute creates two services, .service and

Re: [Nix-dev] Going through hell with systemd timers

2016-01-28 Thread zimbatm
One common error with system services are missing environment variable. When testing with your shell you will have $HOME set for example. On Thu, 28 Jan 2016 09:43 4levels <4lev...@gmail.com> wrote: > Hi Exi, > > thank you for your reply. > > This is the timers config I'm using (note that I'm

Re: [Nix-dev] Going through hell with systemd timers

2016-01-28 Thread 4levels
Dear Guillaume, you saved my day (and sleepless last night)! This line worked all the magic for me: environment = { inherit (config.environment.variables) SSL_CERT_FILE; }; Make sure to pass through our office whenever you're near Gent, Belgium, we're keeping a bottle of champagne chilled for