Ubuntu Core 18 on Raspberry Pi 3 doesn't bootstrap

Below is the output

ENVCMD
6630368 bytes read in 567 ms (11.2 MiB/s)
3679855 bytes read in 316 ms (11.1 MiB/s)
FAT: Misaligned buffer address (0248266f)
42049 bytes read in 60 ms (683.6 KiB/s)
Kernel image @ 0x200000 [ 0x000000 - 0x652be0 ]
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Loading Ramdisk to 3aba7000, end 3af33ab0 ... OK
   reserving fdt memory region: addr=0 size=1000
   Loading Device Tree to 3ab9d000, end 3aba640f ... OK

Starting kernel ...

[    3.630083] spi-bcm2835 3f204000.spi: could not get clk: -517
[    4.040989] Error: Driver 'sdhost-bcm2835' is already registered, aborting...
ext4
hwclock: can't open '/dev/misc/rtc': No such file or directory
ext4
/init: /scripts/init-bottom/ORDER: line 3: /scripts/init-bottom/disable-getty: Permission denied
[FAILED] Failed to start Wait until snapd is fully seeded (core18).
See 'systemctl status snapd.seeded.service' for details.
[  OK  ] Started Login Service.
[  OK  ] Started Generate sshd host keys.
[  OK  ] Started WPA supplicant.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  

sr/share/subiquity/console-conf-wrapper: line 13: snap: command not found
Press enter to configure.

If I actually try to complete the “configurations”, I get

Traceback (most recent call last):
  File "/usr/bin/console-conf", line 91, in <module>
    sys.exit(main())
  File "/usr/bin/console-conf", line 88, in main
    interface.run()
  File "/usr/share/subiquity/subiquitycore/core.py", line 152, in run
    self.common['loop'].run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 286, in run
    self._run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 384, in _run
    self.event_loop.run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 788, in run
    self._loop()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 825, in _loop
    self._watch_files[fd]()
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 404, in <lambda>
    event_loop, callback, self.get_available_raw_input())
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 502, in parse_input
    callback(processed, processed_codes)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 411, in _update
    self.process_input(keys)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 511, in process_input
    k = self._topmost_widget.keypress(self.screen_size, k)
  File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 648, in keypress
    return self._current_widget.keypress(size, key)
  File "/usr/share/subiquity/subiquitycore/ui/frame.py", line 36, in keypress
    return super().keypress(size, key)
  File "/usr/lib/python3/dist-packages/urwid/container.py", line 1131, in keypress
    return self.body.keypress( (maxcol, remaining), key )
  File "/usr/share/subiquity/console_conf/ui/views/identity.py", line 74, in keypress

/usr/share/subiquity/console-conf-wrapper: line 13: snap: command not found

It worked the second time I flashed the image to my SD card. So it could possibly be that I restarted the device the first time where it initiated snaps on the first run, (I thought my system had hanged).

initializing a basic image (core, kernel, gadget) takes about 2min (verifying the hashes sadly takes very long in snapd on armhf) …

each additionally pre-seeded snap typically adds 30sec to the first boot where you should leave the system alone.

We probably need some sort of message for that.

On a different note: Seems UbuntuCore18 is fragile to reboots/power failures, My system became non-bootable after an unclean shutdown.

btw, I did a reflash after my Pi stopped booting and it won’t go past below messages (more than 10 minutes already)

6630368 bytes read in 567 ms (11.2 MiB/s)
3679855 bytes read in 317 ms (11.1 MiB/s)
FAT: Misaligned buffer address (0248266f)
42049 bytes read in 59 ms (695.3 KiB/s)
Kernel image @ 0x200000 [ 0x000000 - 0x652be0 ]
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Loading Ramdisk to 3aba7000, end 3af33ab0 ... OK
   reserving fdt memory region: addr=0 size=1000
   Loading Device Tree to 3ab9d000, end 3aba640f ... OK

Starting kernel ...

[    3.630060] spi-bcm2835 3f204000.spi: could not get clk: -517
[    4.040877] Error: Driver 'sdhost-bcm2835' is already registered, aborting...
ext4
hwclock: can't open '/dev/misc/rtc': No such file or directory
ext4
/init: /scripts/init-bottom/ORDER: line 3: /scripts/init-bottom/disable-getty: Permission denied
[  OK  ] Stopped Getty on tty1.
[  OK  ] Started Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Started Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Started Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Started Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyS0.

well, the initialization of snaps should not have any influence on bootability itself, it will only affect snap commands and snapd (which is started later in the boot process).

while your first error above seems to be related ot the snap command completely missing, the second one doesnt actually get that far in the boot at all.

where exactly did you get that image btw ?

I downloaded from http://cdimage.ubuntu.com/ubuntu-core/18/stable/current/

I’m seeing the same thing. Anyone figure out why it says command not found.

I re-flashed and it worked on the second try.

hi,

I am hitting issue again. Do you have any other work around than re-flashing.

Thanks
Muthiah

you posted on two different rather old threads that you “see the same”.
instead it would be better if you simply opened a new thread with an as detailed description of the issue you see and what you tried yet and we can fo from there …