Error on Boot screen

I ran the update software command from the web interface, and now I get an error screen upon boot. This is a V2 unit, never had an issue before.
zynthian_update.txt (3.8 KB)

The last line is “Running Flag Actions from ‘/zynthian/zynthian-sys/scripts/update_zynthian.sh’…”

I can ssh into the unit and do
systemctl stop zynthian
systemctl start zynthian

but it does not resolve the problem. I do not see a zynthian_update_sys.sh anywhere.

Does it still say your machine is configured as a V2?

I just stopped zynthian using the ssh interface, and ran update_zynthian.sh from the terminal, and I do see one error in the trace:

Updating zynthian-sys …
Already up to date.
Executing custom update recipes …
Executing /zynthian/zynthian-sys/scripts/recipes.update.buster/00_install_packages.sh …
raspberrypi-sys-mods was already set on hold.
Hit:1 Index of /debian buster InRelease
Hit:2 Index of /raspbian buster InRelease
Hit:3 http://www.deb-multimedia.org buster InRelease
Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit packagekit.service is masked.

Full trace here:
zynthian_update2.txt (4.0 KB)

Yes, but does the webconfig say your machine is still configured to V2 or did it get set to something else?

It doesn’t say specifically, but it does have message in the log that indicates it sees it as v2, like

Custom Config /zynthian/zynthian-sys/custom/display/PiScreen 3.5 (v2) …

the boot error does not show a version:

You can find out more if you visit the webconf

https://wiki.zynthian.org/index.php/Accessing_Zynthian_from_your_computer#Accessing_the_Web_Configuration_Tool

I suspect the update has somehow changed the configuration of the zynthian.

Ah, sorry about my confusion. Yes, it still says v2.

1 Like

Ok, is there anything in the UI log under > Interface?

Yes, I get this, sorry about the length:

-- Logs begin at Mon 2021-07-12 17:09:14 BST. --
Jul 12 21:03:58 zynthian startx[424]: File "./zynthian_gui.py", line 84, in <module>
Jul 12 21:03:58 zynthian startx[424]: from zyngui.zynthian_gui_touchscreen_calibration import zynthian_gui_touchscreen_calibration
Jul 12 21:03:58 zynthian startx[424]: File "/home/pi/zynthian-ui/zyngui/zynthian_gui_touchscreen_calibration.py", line 32, in <module>
Jul 12 21:03:58 zynthian startx[424]: from evdev import InputDevice, ecodes
Jul 12 21:03:58 zynthian startx[424]: ModuleNotFoundError: No module named 'evdev'
Jul 12 21:04:00 zynthian startx[424]: PNG file: /zynthian/config/img/fb_zynthian_error_ip.png - Application must supply a known background gamma
Jul 12 21:04:00 zynthian startx[424]: /zynthian/config/img/fb_zynthian_error_ip.png is 480x320 PNG image, color type RGB_ALPHA, 8 bit, file gamma 0.4546
Jul 12 21:04:00 zynthian startx[424]: Zooming image by 100%...done
Jul 12 21:04:00 zynthian startx[424]: Merging...done
Jul 12 21:04:00 zynthian startx[424]: Building XImage...done
Jul 12 21:04:07 zynthian startx[424]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#extended> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
Jul 12 21:04:07 zynthian startx[424]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
Jul 12 21:04:07 zynthian startx[424]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#simple> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
Jul 12 21:04:07 zynthian startx[424]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
Jul 12 21:04:07 zynthian startx[424]: lilv_world_load_bundle(): warning: Ignoring bundle <file:///zynthian/zynthian-plugins/lv2/b_synth.lv2/>
Jul 12 21:04:07 zynthian startx[424]: lilv_world_load_bundle(): note: Newer version of <http://gareus.org/oss/lv2/b_synth> loaded from <file:///zynthian/zynthian-plugins/lv2/b_synth/>
Jul 12 21:04:12 zynthian startx[424]: Traceback (most recent call last):
Jul 12 21:04:12 zynthian startx[424]: File "./zynthian_gui.py", line 84, in <module>
Jul 12 21:04:12 zynthian startx[424]: from zyngui.zynthian_gui_touchscreen_calibration import zynthian_gui_touchscreen_calibration
Jul 12 21:04:12 zynthian startx[424]: File "/home/pi/zynthian-ui/zyngui/zynthian_gui_touchscreen_calibration.py", line 32, in <module>
Jul 12 21:04:12 zynthian startx[424]: from evdev import InputDevice, ecodes
Jul 12 21:04:12 zynthian startx[424]: ModuleNotFoundError: No module named 'evdev'

Then it repeats starting at the "PNG file: " file

ssh back in and issue apt install python3-evdev and see if that solves it after a reboot.

Aha, I got it!

root@zynthian:/home/pi/zynthian-ui/zyngui# apt install python3-evdev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python-evdev-doc
The following NEW packages will be installed:
python3-evdev
0 upgraded, 1 newly installed, 0 to remove and 240 not upgraded.
Need to get 35.3 kB of archives.
After this operation, 194 kB of additional disk space will be used.
Get:1 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf python3-evdev armhf 1.1.2+dfsg-1+b1 [35.3 kB
Fetched 35.3 kB in 1s (24.5 kB/s
Selecting previously unselected package python3-evdev.
(Reading database ... 102717 files and directories currently installed.)
Preparing to unpack .../python3-evdev_1.1.2+dfsg-1+b1_armhf.deb ...
Unpacking python3-evdev (1.1.2+dfsg-1+b1) ...
Setting up python3-evdev (1.1.2+dfsg-1+b1) ...
Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit packagekit.service is masked.

After a google, I did

root@zynthian:/home/pi/zynthian-ui/zyngui# systemctl unmask packagekit.service
Removed /etc/systemd/system/packagekit.service.
root@zynthian:/home/pi/zynthian-ui/zyngui# systemctl start packagekit.service

And it started working again! Thanks @Baggypants for all of your help, I really appreciate it!

1 Like

I don’t know what happened that meant evdev wasn’t installed as it is needed for the calibration, it might mean other stuff has gone awry. I’d recommend backing up snapshots and stuff and starting again from a recent image.

@mepex, your base image is too old. You should download and burn the latest stable one:

https://os.zynthian.org/zynthianos-last-stable.zip

After first boot, don’t forget to config your v2 kit from the webconf interface.

Regards,