Zynthian doesn't boot anymore

Hi!
Since today my Zynthian doesn’t boot anymore. After switching on, I only see the linux console login screen.
I connected by SSH and tried to start zynthian manually This is was happened:

(venv) root@zynthian:~# zynthian.sh


X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux zynthian 6.6.47-v8-16k+ #1794 SMP PREEMPT Thu Aug 29 16:30:28 BST 2024 aarch64
Kernel command line: reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 smsc95xx.macaddr=2C:CF:67:AA:56:48 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  root=PARTUUID=e249d476-02 rootfstype=ext4 fsck.repair=yes rootwait video=DSI-1:800x480@60,rotate=180 console=tty3 logo.nologo quiet loglevel=2 vt.global_cursor_default=0 modules-load=dwc2,libcomposite
xorg-server 2:21.1.7-3+rpt3+deb12u7 (https://www.debian.org/support) 
Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 12 15:08:12 2025
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/zynthian/config/img/fb_zynthian_boot.jpg is a 800x480 JPEG image, color space Grayscale, 1 comp, Huffman coding.
  Zooming image by 100%...done
  Merging...done
didn't find evidence of prior run.
  Building XImage...done
INFO:zynthian_gui_config.<module>: ZYNTHIAN-UI CONFIG ...
INFO:zynthian_gui_config.<module>: Wiring Layout V5
ZynCore: Setting-up 20+4 x Zynswitches...
ZynCore: Setting-up Zynpots => 4 x PEC11 ...
ZynCore->gpiod_start_callbacks: Callback thread created successfully
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ZynMidiRouter: Error connecting with jack server.
ERROR:zynthian_gui_config.<module>: lib_zyncore: Failed to initialise zynmidirouter (2)

*******************
EXIT STATUS => 202
*******************

/zynthian/config/img/fb_zynthian_message.jpg is a 800x480 JPEG image, color space YCbCr, 3 comps, Huffman coding.
  Zooming image by 100%...done
  Merging...done
  Building XImage...done
INFO:zynthian_gui_config.<module>: ZYNTHIAN-UI CONFIG ...
INFO:zynthian_gui_config.<module>: Wiring Layout V5
ZynCore: Setting-up 20+4 x Zynswitches...
ZynCore: Setting-up Zynpots => 4 x PEC11 ...
ZynCore->gpiod_start_callbacks: Callback thread created successfully
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ZynMidiRouter: Error connecting with jack server.
ERROR:zynthian_gui_config.<module>: lib_zyncore: Failed to initialise zynmidirouter (2)

*******************
EXIT STATUS => 202
*******************


This repeats until I cancel with CTRL-C

Any ideas except re-flashing the sd-card?

Jack is not running. What jackd configuration do you have? What hardware? What soundcard?

Form logs, it seems a V5.
Please, send a short from the webconf Dashboard, to verify the config.
Also, please run this command and send the output:

I2cdetect -y 1

Regards

yes, it’s a brandnew V5.1. Worked without issues until today.

(venv) root@zynthian:~# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: 20 21 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- UU -- -- UU -- -- 
50: -- -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         

Webconf dashboard is not possible, because the webserver is also not running

I flashed a new sd card. Now it works again. Let’s hope that was a one-time thing…

1 Like

Hi!

This is weird…
Yesterday night, I didn’t switched off my box. And now I’m coming home and all I see is the login console…
And when I try to run zynthian.sh on the console, there is exactly the same issue than before I flashed a new SD card.
What’s going on???

(venv) root@zynthian:~# systemctl status jack2
○ jack2.service - JACK2 Audio Server
     Loaded: bad-setting (Reason: Unit jack2.service has a bad unit file setting.)
     Active: inactive (dead)
(venv) root@zynthian:~# systemd-analyze verify /etc/systemd/system/jack2.service
/etc/systemd/system/jack2.service:11: Neither a valid executable name nor an absolute path: #JACKD_BIN_PATH#/jackd
jack2.service: Unit configuration has fatal error, unit will not be started.
Unit jack2.service has a bad unit file setting.

(venv) root@zynthian:~# cat /etc/systemd/system/jack2.service 
[Unit]
Description=JACK2 Audio Server
#After=sound.target

[Service]
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
Environment=LV2_PATH=#LV2_PATH#
Environment=JACK_NO_AUDIO_RESERVATION=1
LimitRTPRIO=infinity
LimitMEMLOCK=infinity
ExecStart=#JACKD_BIN_PATH#/jackd #JACKD_OPTIONS#
Restart=always
RestartSec=2

[Install]
WantedBy=multi-user.target(venv) root@zynthian:~# 

(venv) root@zynthian:~#journalctl -b

-----
Jan 14 16:05:16 zynthian systemd[1]: /etc/systemd/system/zynthian.service:14: WorkingDirectory= path is not absolute: #ZYNTHIAN_UI_DIR#
Jan 14 16:05:16 zynthian systemd[1]: zynthian.service: Unit configuration has fatal error, unit will not be started.
Jan 14 16:05:16 zynthian systemd[1]: /etc/systemd/system/zynthian-webconf.service:10: WorkingDirectory= path is not absolute: #ZYNTHIAN_DIR#/zynthian-webconf
Jan 14 16:05:16 zynthian systemd[1]: zynthian-webconf.service: Unit configuration has fatal error, unit will not be started.
Jan 14 16:05:16 zynthian systemd[1]: /etc/systemd/system/zynthian-config-on-boot.service:10: Neither a valid executable name nor an absolute path: #ZYNTHIAN_SYS>
Jan 14 16:05:16 zynthian systemd[1]: zynthian-config-on-boot.service: Unit configuration has fatal error, unit will not be started.
Jan 14 16:05:16 zynthian systemd[1]: /etc/systemd/system/usb-gadget.service:7: Neither a valid executable name nor an absolute path: #ZYNTHIAN_SYS_DIR#/sbin/set>
Jan 14 16:05:16 zynthian systemd[1]: usb-gadget.service: Unit configuration has fatal error, unit will not be started.
Jan 14 16:05:16 zynthian systemd[1]: /etc/systemd/system/mod-ttymidi.service:11: Neither a valid executable name nor an absolute path: #JACKD_BIN_PATH#/jack_wait
Jan 14 16:05:16 zynthian systemd[1]: mod-ttymidi.service: Unit configuration has fatal error, unit will not be started.
Jan 14 16:05:16 zynthian systemd[1]: /etc/systemd/system/jack2.service:11: Neither a valid executable name nor an absolute path: #JACKD_BIN_PATH#/jackd
Jan 14 16:05:16 zynthian systemd[1]: jack2.service: Unit configuration has fatal error, unit will not be started.
Jan 14 16:05:16 zynthian systemd[1]: /etc/systemd/system/a2jmidid.service:10: Neither a valid executable name nor an absolute path: #JACKD_BIN_PATH#/jack_wait
Jan 14 16:05:16 zynthian systemd[1]: a2jmidid.service: Unit configuration has fatal error, unit will not be started.
Jan 14 16:05:16 zynthian systemd[1]: jack2.service: Cannot add dependency job, ignoring: Unit jack2.service has a bad unit file setting.
Jan 14 16:05:16 zynthian systemd[1]: a2jmidid.service: Cannot add dependency job, ignoring: Unit a2jmidid.service has a bad unit file setting.
Jan 14 16:05:16 zynthian systemd[1]: usb-gadget.service: Cannot add dependency job, ignoring: Unit usb-gadget.service has a bad unit file setting.
Jan 14 16:05:16 zynthian systemd[1]: zynthian-config-on-boot.service: Cannot add dependency job, ignoring: Unit zynthian-config-on-boot.service has a bad unit f>
Jan 14 16:05:16 zynthian systemd[1]: mod-ttymidi.service: Cannot add dependency job, ignoring: Unit mod-ttymidi.service has a bad unit file setting.
Jan 14 16:05:16 zynthian systemd[1]: zynthian-webconf.service: Cannot add dependency job, ignoring: Unit zynthian-webconf.service has a bad unit file setting.
Jan 14 16:05:16 zynthian systemd[1]: zynthian.service: Cannot add dependency job, ignoring: Unit zynthian.service has a bad unit file setting.

-----

It’s really weird. Did you copy the file by hand?

You can run this command:

update_zynthia._sys.sh

It should restored the config .

If the problem keeps reproducing, please consider buying a new SD-card.

Regards

Did you copy the file by hand?
Which file do you mean? I didn’t copy anything by hand.

You can run this command:

update_zynthia._sys.sh

It should restored the config .

(venv) root@zynthian:~# update_zynthian_sys.sh 
Updating System configuration...
SOUNDCARD_MIXER is OK
BOOT LOG DISABLED
OVERCLOCKING => None
RBPI AUDIO ENABLED
OTG ENABLED
SOUNDCARD CONFIG => dtoverlay=hifiberry-dacplusadcpro\nforce_eeprom_read=0
DISPLAY CONFIG => display_lcd_rotate=2
CUSTOM CONFIG => dtoverlay=i2c-rtc,rv3028\n
Configuring X11 inverted display ...
Running Flag Actions from '//zynthian/zynthian-sys/scripts/update_zynthian_sys.sh'...

Now it’s running again!

New sd card is ordered…

Thanks
Oli