Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Mosbuild 4.2 error
#1
Hi folks,

Yesterday i managed to install Raspbian and Mooie 4.2 on a 16 GB Micro SD card. Moode 4.2 is running very fine since.

However, today i started the same build process on a 8 GB Micro SD card and now the installation script failed. 
Restarted the process from scratch again; same result.

Mosbrief output:

pi@moode:~ $ mosbrief
// STEP 2 - Direct build so no need to expand Root partition
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
pi@moode:~ $ mosbrief
// STEP 2 - Direct build so no need to expand Root partition
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
pi@moode:~ $ 

I was bad and manually rebooted the Pi a couple times, no result however.
Then 1 waited for an hour or more, also no results.

What could have happened?

Cheers,
Martin
Reply
#2
(08-01-2018, 12:15 PM)Audesign Wrote: Hi folks,

Yesterday i managed to install Raspbian and Mooie 4.2 on a 16 GB Micro SD card. Moode 4.2 is running very fine since.

However, today i started the same build process on a 8 GB Micro SD card and now the installation script failed. 
Restarted the process from scratch again; same result.

Mosbrief output:

pi@moode:~ $ mosbrief
// STEP 2 - Direct build so no need to expand Root partition
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
pi@moode:~ $ mosbrief
// STEP 2 - Direct build so no need to expand Root partition
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
pi@moode:~ $ 

I was bad and manually rebooted the Pi a couple times, no result however.
Then 1 waited for an hour or more, also no results.

What could have happened?

Cheers,
Martin

As a workaround you could:

1. Copy your 16gb sd with the working moode with dd or similar.
2. Use pishrink to reduce the size of the image.
3. Flash the shrunken image to you 8gb sd.
4. Use the moodecfg.txt method described in the setup guide to change hostname etc upon boot.

This is probably quicker than a fresh build anyway.
Reply
#3
(08-01-2018, 12:15 PM)Audesign Wrote: Hi folks,

Yesterday i managed to install Raspbian and Mooie 4.2 on a 16 GB Micro SD card. Moode 4.2 is running very fine since.

However, today i started the same build process on a 8 GB Micro SD card and now the installation script failed. 
Restarted the process from scratch again; same result.

Mosbrief output:

pi@moode:~ $ mosbrief
// STEP 2 - Direct build so no need to expand Root partition
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
pi@moode:~ $ mosbrief
// STEP 2 - Direct build so no need to expand Root partition
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
// STEP 3A - Install core packages
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
pi@moode:~ $ 

I was bad and manually rebooted the Pi a couple times, no result however.
Then 1 waited for an hour or more, also no results.

What could have happened?

Cheers,
Martin

Hi Martin,

Post the part of the full mosbuild log that shows the error and I'll have a look.

cat /home/pi/mosbuild.log

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
Hi Tim,

Here is the Moslog.
I see some errors, but my LINUX/DEBIAN skills are virtually non-existent (being a dinosaur from the dark mainframe ages...).

Cheers,
Martin

Code:
===============
pi@192.168.178.20's password:
Linux moode 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Aug  1 08:04:40 2018 from 192.168.178.11
pi@moode:~ $ cat /home/pi/mosbuild.log
** Wed 1 Aug 11:55:13 UTC 2018
////////////////////////////////////////////////////////////////
//
// STEP 2 - Direct build so no need to expand Root partition
//
////////////////////////////////////////////////////////////////

** Change password for user pi to moodeaudio
** Download latest moOde release
** Unzip release
** Install boot/config.txt
** Reboot 1
** Wed 1 Aug 07:56:46 EDT 2018

////////////////////////////////////////////////////////////////
//
// STEP 3A - Install core packages
//
////////////////////////////////////////////////////////////////

** Basic optimizations
Synchronizing state of cron.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable cron
Synchronizing state of rpcbind.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable rpcbind
Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /lib/systemd/system/rpcbind.socket.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.
Reading package lists...
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
** Wed 1 Aug 08:00:54 EDT 2018

////////////////////////////////////////////////////////////////
//
// STEP 3A - Install core packages
//
////////////////////////////////////////////////////////////////

** Basic optimizations
Synchronizing state of cron.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable cron
Synchronizing state of rpcbind.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable rpcbind
Reading package lists...
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
** Wed 1 Aug 08:04:33 EDT 2018

////////////////////////////////////////////////////////////////
//
// STEP 3A - Install core packages
//
////////////////////////////////////////////////////////////////

** Basic optimizations
Synchronizing state of cron.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable cron
Synchronizing state of rpcbind.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable rpcbind
Reading package lists...
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.
** Error: unable to purge triggerhappy
** Error: image build exited
** Error: reboot to resume the build
pi@moode:~ $

=================
Reply
#5
Hi,

Very odd error that suggests some sort of file corruption, maybe a bad sd card?

You could try to manually recover using the procedure below but YMMV.

1. sudo rm -f /var/lib/apt/lists/*
2. sudo apt-get update
3. sudo reboot

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
(08-01-2018, 02:57 PM)Tim Curtis Wrote: Hi,

Very odd error that suggests some sort of file corruption, maybe a bad sd card?

You could try to manually recover using the procedure below but YMMV.

1. sudo rm -f /var/lib/apt/lists/*
2. sudo apt-get update
3. sudo reboot

-Tim

Hi Tim,

Thanks, this did the trick.
There were a couple of error messages upstream (possibly normal), but the build script finished normally. Moode seems to be working correctly.

It is a pity that we lost the delivery of full Moode images down the line. That was much easier and also "dinosaur proof".

Let the music begin!

Many thanks for your golden support.

Regards,
Martin
Reply


Forum Jump: