[Nix-dev] Did services become pure?

Manuel Pages amarr.industrial at gmail.com
Fri Aug 14 16:27:12 CEST 2015


Hmm, indeed that helped.

I made a directory called /public_services, allowed everyone to read from
it and moved my config there.
Rebuild worked. Now I'm confused with why doesn't postfix work (permission
denied on master.lock) and
what am I doing wrong there.

If anybody has a working postfix installation on NixOS, please share.

On Fri, Aug 14, 2015 at 3:32 PM, Luca Bruno <lethalman88 at gmail.com> wrote:

> What about checking the permission of the /root directory. Most probably
> nix doesn't have the permission to even list that directory.
>
> On Fri, Aug 14, 2015 at 3:30 PM, Manuel Pages <amarr.industrial at gmail.com>
> wrote:
>
>> Dear Luca,
>> How do you mean?
>> Strace rebuild having only this expression? I'd rather do git-bissect
>> to find out at which commit it stopped working. I hope, however, that
>> some of core developers will shed some light on this weird behaviour...
>>
>> Here is the clean log of rebuilding without debug information —
>>
>> ```
>> Fri Aug 14 12:28:46:118271388 root at thoughtflare /etc/nixos
>> λ nixos-rebuild test
>> building Nix...
>> building the system configuration...
>> these derivations will be built:
>>   /nix/store/ps53z9zylm12b4prfyvm23khyv95k4zx-crontabs.drv
>>   /nix/store/0bmzag2m3619bjbdpfnfdssynks3w0dg-etc.drv
>>
>> /nix/store/mx5fyhmbd3agfpkzsmgi956jbg2lqc7n-nixos-15.07pre67160.d921092.drv
>> building path(s) ‘/nix/store/splmgb1gaxq175h949rrszxzh14nmb8w-crontabs’
>> cat: /root/cron.conf: Permission denied
>> builder for ‘/nix/store/ps53z9zylm12b4prfyvm23khyv95k4zx-crontabs.drv’
>> failed with exit code 1
>> cannot build derivation
>> ‘/nix/store/0bmzag2m3619bjbdpfnfdssynks3w0dg-etc.drv’: 1 dependencies
>> couldn't be built
>> cannot build derivation
>> ‘/nix/store/mx5fyhmbd3agfpkzsmgi956jbg2lqc7n-nixos-15.07pre67160.d921092.drv’:
>> 1 dependencies couldn't be built
>> error: build of
>> ‘/nix/store/mx5fyhmbd3agfpkzsmgi956jbg2lqc7n-nixos-15.07pre67160.d921092.drv’
>> failed
>> Fri Aug 14 16:26:57:917082929 root at thoughtflare /etc/nixos
>> λ ls -la /root/cron.conf
>> -rw-rw-rw- 1 root root 0 Aug 13 08:37 /root/cron.conf
>> ```
>>
>> the only reference to this file is from the expression in question. In
>> fact, I
>> did my best to clean up system expressions to be sure that there's no
>> weird side-effects anywhere, removed all the services, then just added
>> this
>> small expression and it (reproducibly) exploded.
>>
>> On Fri, Aug 14, 2015 at 3:21 PM, Luca Bruno <lethalman88 at gmail.com>
>> wrote:
>>
>>> Start by debugging at least what that Permission denied refers to.
>>>
>>> On Fri, Aug 14, 2015 at 11:31 AM, Manuel Pages <
>>> amarr.industrial at gmail.com> wrote:
>>>
>>>> Greetings, I have a problem I don't know how to debug.
>>>> I'm on unstable-small channel and face the following problem —
>>>> without services that do Filesystem IO, system upgrade from
>>>> the state of NixOS of a couple of months ago to actual worked.
>>>> However on boxes that use postfix or something like
>>>>
>>>> ```
>>>> { ... }:
>>>> {
>>>>   services.cron = {
>>>>     enable = true;
>>>>     cronFiles = [ "/root/cron.conf" ];
>>>>   };
>>>> }
>>>> ```
>>>>
>>>> I started to get Permission denied errors, even though /root/cron.conf
>>>> not only exists, but is also world-readable (analogically, master.lock
>>>> in
>>>> case of postfix is RW for root).
>>>>
>>>> Did services lately became pure? I have been using those configs for
>>>> more than a year now and they used to work flawlessly :(
>>>>
>>>> Any feedback on at least where to look for changes / possible causes
>>>> is *highly* appreciated.
>>>>
>>>> _______________________________________________
>>>> nix-dev mailing list
>>>> nix-dev at lists.science.uu.nl
>>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> NixOS Linux <http://nixos.org>
>>>
>>
>>
>
>
> --
> NixOS Linux <http://nixos.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150814/ef9fa459/attachment.html 


More information about the nix-dev mailing list