[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    Re: [Nix-dev] [Fixed?] Re: environment in systemd services
From:       zimbatm <zimbatm () zimbatm ! com>
Date:       2016-01-30 16:35:17
Message-ID: CANEP-f5SkcZUAEFAvQVY7oqbos=bP57LuPdTQbusBvyUeA2m0g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


My guess is that it's probably an environnent variable that's missing and
bash is sourcing the profiles.

On Sat, 30 Jan 2016 17:30 Arnold Krille <arnold@arnoldarts.de> wrote:

> Hi all,
>
> I kind of fixed it. I played around with the duply config, but that
> didn't really change anything.
>
> Then I went back to getting fcron installed and sending emails. And
> there I encountered the same problem with the same backtrace with the
> empty error message!
>
> So there seems to be something different between the system environment
> and roots login shell. So I started not `duply amazon status` but `bash
> -l -c "duply amazon status"`, thus running duply in roots login shell.
> And now it works! Both when run in cron and when run in its own system
> service!
>
> I am not sure if this is the right solution, but at least I got some
> backups working now.
>
> As soon as I add backups to a local disk I will check again if duply
> can't run with the system environment…
>
> Have fun,
>
> Arnold
>
> On Sat, 30 Jan 2016 14:34:21 +0100 Arnold Krille <arnold@arnoldarts.de>
> wrote:
> > Nope, the aws credentials are in the url given in the config file.
> >
> > I also tried setting serviceConfig with options privateTmp=false and
> > privateNetwork=false but these options seem to be for a later version
> > of systemd. I am on stock 15.09 here.
> >
> > - Arnold
> >
> > (Before anyone asks, the backup is encrypted and only the public part
> > of the gpg key is present on the server.)
> >
> > On Sat, 30 Jan 2016 13:27:52 +0000 zimbatm <zimbatm@zimbatm.com>
> > wrote:
> > > Did you try to pass the AWS keypair trough an environment
> > > variable ? I don't know it that would fix it but it's a 3rd
> > > solution, not having access to the right keys.
>
> _______________________________________________
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>

[Attachment #5 (text/html)]

<p dir="ltr">My guess is that it&#39;s probably an environnent variable that&#39;s \
missing and bash is sourcing the profiles.</p> <br><div class="gmail_quote"><div \
dir="ltr">On Sat, 30 Jan 2016 17:30  Arnold Krille &lt;<a \
href="mailto:arnold@arnoldarts.de">arnold@arnoldarts.de</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br> <br>
I kind of fixed it. I played around with the duply config, but that<br>
didn&#39;t really change anything.<br>
<br>
Then I went back to getting fcron installed and sending emails. And<br>
there I encountered the same problem with the same backtrace with the<br>
empty error message!<br>
<br>
So there seems to be something different between the system environment<br>
and roots login shell. So I started not `duply amazon status` but `bash<br>
-l -c &quot;duply amazon status&quot;`, thus running duply in roots login shell.<br>
And now it works! Both when run in cron and when run in its own system<br>
service!<br>
<br>
I am not sure if this is the right solution, but at least I got some<br>
backups working now.<br>
<br>
As soon as I add backups to a local disk I will check again if duply<br>
can&#39;t run with the system environment…<br>
<br>
Have fun,<br>
<br>
Arnold<br>
<br>
On Sat, 30 Jan 2016 14:34:21 +0100 Arnold Krille &lt;<a \
href="mailto:arnold@arnoldarts.de" target="_blank">arnold@arnoldarts.de</a>&gt;<br> \
wrote:<br> &gt; Nope, the aws credentials are in the url given in the config \
file.<br> &gt;<br>
&gt; I also tried setting serviceConfig with options privateTmp=false and<br>
&gt; privateNetwork=false but these options seem to be for a later version<br>
&gt; of systemd. I am on stock 15.09 here.<br>
&gt;<br>
&gt; - Arnold<br>
&gt;<br>
&gt; (Before anyone asks, the backup is encrypted and only the public part<br>
&gt; of the gpg key is present on the server.)<br>
&gt;<br>
&gt; On Sat, 30 Jan 2016 13:27:52 +0000 zimbatm &lt;<a \
href="mailto:zimbatm@zimbatm.com" target="_blank">zimbatm@zimbatm.com</a>&gt;<br> \
&gt; wrote:<br> &gt; &gt; Did you try to pass the AWS keypair trough an \
environment<br> &gt; &gt; variable ? I don&#39;t know it that would fix it but \
it&#39;s a 3rd<br> &gt; &gt; solution, not having access to the right keys.<br>
<br>
_______________________________________________<br>
nix-dev mailing list<br>
<a href="mailto:nix-dev@lists.science.uu.nl" \
target="_blank">nix-dev@lists.science.uu.nl</a><br> <a \
href="http://lists.science.uu.nl/mailman/listinfo/nix-dev" rel="noreferrer" \
target="_blank">http://lists.science.uu.nl/mailman/listinfo/nix-dev</a><br> \
</blockquote></div>



_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic