Re: Kernel panic - not syncing: attempting to kill init! when booting GuixSD

2017-05-30 Thread Christopher Baines
On 28/05/17 16:49, Ludovic Courtès wrote:
> Hi Christopher,
> 
> Christopher Baines  skribis:
> 
>> So I deleted some system generations from one of my GuixSD systems, then
>> rebooted. Unfortunately, I can no longer get it to boot. I think the
>> latest system generation should work, and at least one of the previous
>> generations should work.
>>
>> Excluding the generations that I removed, the others don't boot. All I
>> can really gather so far is a call stack, and the message:
>>   Kernel panic - not syncing: Attempted to kill init!
> 
> Weird.  Is it because the root file system could not be found?  Or
> something else?  Like Ricardo wrote, could it be that the file system
> label changed or something?

Looking at the file system and configuration, it seems that this is
unlikely.

>> I'm going to try and make some time to see if I can get this system back
>> working again. I'm not sure how realistic this is, but I'm planning to
>> start by using the installation image, and somehow running  guix system
>> reconfigure.
> 
> I would suggest booting from an external medium such as the installation
> image, mounting the file system that holds /gnu/store, and inspecting
> there.
> 
> Also worth trying: you could edit the command line in the GRUB menu to
> have it refer to /var/guix/profiles/system-NNN-link, where NNN is the
> number of a previous generation known to be on disk.

I don't have the right cables to attempt to get a serial connection to
see what is going on in the early boot, so I tried running guix system
init from some GuixSD installation media. I'm glad to say that it worked :)

After running guix system init, I had a working system generation to
boot with.

I'll try to setup some kind of serial connection, so that I can attempt
to debug further if this happens again.

Thanks,

Chris




signature.asc
Description: OpenPGP digital signature


Re: ntpd and ssh-daemon

2017-05-30 Thread Ludovic Courtès
Hi James,

James Richardson  skribis:

> I just installed GuixSD on a laptop. When it boots it appears that
> dbus-system and networking are slow to start up. It seems that ntpd and
> ssh-daemon do not start because the the network isn't fully configured
> yet.
>
> Questions:
>
> 1. How can I turn on detailed logs?

/var/log/shepherd.log and /var/log/messages may have more details.
Could you check?

> 2. Do others see this at all?

I don’t.

> I am uncertain as to why the network is slow to start , perhaps my dhcp
> server? The dhcp server and laptop are cabled into the same switch.

What networking service do you use: wicd, dhcp-client-service, something
else?

Thanks,
Ludo’.



Re: guix system reconfigure

2017-05-30 Thread Ludovic Courtès
Hi Oleg,

Apologies for the late reply.

Oleg Pykhalov  skribis:

> $ guix system reconfigure /etc/config.scm
>
> It hangs shell until kill.
>
> substitute: updating list of substitutes from 
> 'https://mirror.hydra.gnu.org'... 100.0%
> The following derivation will be built:
>/gnu/store/8a2h3fs5n30r2akn13ri9yzrnkq101pr-grub.cfg.drv
> substitute: updating list of substitutes from 
> 'https://mirror.hydra.gnu.org'... 100.0%
> /gnu/store/j9b4jh7kvywgf7y7wg5q5ckya9y2p6rk-system
> /gnu/store/1b84ib011a3850flzgqvwxh1p6i6f6da-grub.cfg
> /gnu/store/ipwgwqaarp304r82b97748shwzmwa9k0-grub-efi-2.02
> /gnu/store/msm7xx7f7gs3rdg6qmbq7nbxkiy9y4a5-bootloader-installer
> activating system...
> ;;; WARNING: loading compiled file 
> /gnu/store/zz52nz789h6a34z609x79asxl7qnwiyq-module-import-compiled/gnu/build/activation.go
>  failed:
> ;;; ERROR: In procedure load-thunk-from-memory: not an ELF file
> ;;; WARNING: loading compiled file 
> /gnu/store/zz52nz789h6a34z609x79asxl7qnwiyq-module-import-compiled/gnu/build/activation.go
>  failed:
> ;;; ERROR: In procedure load-thunk-from-memory: not an ELF file
> making '/gnu/store/j9b4jh7kvywgf7y7wg5q5ckya9y2p6rk-system' the current 
> system...
> setting up setuid programs in '/run/setuid-programs'...
> populating /etc from /gnu/store/hbygivm12yf9rjigxkk56lzhgnfibdwk-etc...
> usermod: no changes
> usermod: no changes
> usermod: no changes
> usermod: no changes
> usermod: no changes
> usermod: no changes
> usermod: no changes
> usermod: no changes
> usermod: no changes
> usermod: no changes
> guix system: unloading service 'user-homes'...
> shepherd: Removing service 'user-homes'...
> shepherd: Done.
> guix system: loading new services: file-system-/srv/videos user-homes...
> shepherd: Evaluating user expression (register-services (primitive-load 
> "/gn...") #).

What does /var/log/shepherd.log contain around that time?

There’s an open bug that might be the culprit:

  https://bugs.gnu.org/23697

HTH,
Ludo’.