# Error at startup, probably since software update

**URL:** <https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300>\
**Category:** Software\
**Tags:** gpio-connected-encod\
**Created:** [October 15, 2022, 8:40am UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300 "2022-10-15T08:40:04Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 15, 2022, 8:40am UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/1 "2022-10-15T08:40:05Z")

</div>

Hi,

My custom zynthian (Rpi4B + IQ audio+ board and 5 inch capacitive touchscreen) reports an error on the startup splash screen, so the GUI never shows up. As for synthesis engine, when I try to play it it seems to work for about 30 sec, then audio out suddenly stops for about 30 sec, then comes back and so on.

Everything worked well before, but previous time I had used it I had performed a software update (not done any for a while) before turning it off. So I suspect it is related.

 ![Screenshot Zynthian Configuration](https://discourse.zynthian.org/uploads/default/original/2X/0/0c94bb428836a1d0873b23efadc15eb458fff906.png)

As I just saw a Release Candidate was coming, I just tried updating again and I get the following log:

Updating zynthian-sys (stable) …  
Already up to date.  
Executing custom update recipes …  
Executing /zynthian/zynthian-sys/scripts/recipes.update.buster/00\_install\_packages.sh …  
raspberrypi-kernel was already not hold.  
raspberrypi-sys-mods was already not hold.  
Reading package lists…  
Building dependency tree…  
Reading state information…  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
Reading package lists…  
Building dependency tree…  
Reading state information…  
Updating zynthian-data …  
fatal: Unable to create ‘/zynthian/zynthian-data/.git/index.lock’: File exists.

Another git process seems to be running in this repository, e.g.  
an editor opened by ‘git commit’. Please make sure all processes  
are terminated then try again. If it still fails, a git process  
may have crashed in this repository earlier:  
remove the file manually to continue.  
Already up to date.  
ln: failed to create symbolic link ‘/usr/local/share/zynaddsubfx/zynaddsubfx’: File exists  
Updating System configuration …  
BOOT LOG DISABLED  
RBPI AUDIO ENABLED  
OTG ENABLED  
SOUNDCARD CONFIG =\> dtoverlay=iqaudio-dacplus\n\n\n\n\n\n\n  
DISPLAY CONFIG =\> hdmi\_force\_hotplug=1\nhdmi\_drive=1\nhdmi\_group=2\nhdmi\_mode=1\nhdmi\_mode=87\nhdmi\_cvt 800 480 60 6 0 0 0  
ACT LED CONFIG =\>  
Aeolus Waves already exist!  
SOUNDCARD\_MIXER is OK  
Updating zyncoder …  
fatal: Unable to create ‘/zynthian/zyncoder/.git/index.lock’: File exists.

Another git process seems to be running in this repository, e.g.  
an editor opened by ‘git commit’. Please make sure all processes  
are terminated then try again. If it still fails, a git process  
may have crashed in this repository earlier:  
remove the file manually to continue.  
/zynthian/zyncoder /zynthian/zyncoder  
/zynthian/zyncoder/build /zynthian/zyncoder /zynthian/zyncoder  
++ Defined HAVE\_WIRINGPI\_LIB  
++ Defined MCP23008\_ENCODERS  
++ Using wiringPI  
– Configuring done  
– Generating done  
– Build files have been written to: /zynthian/zyncoder/build  
[66%] Built target zyncoder  
[100%] Built target zyncoder\_test  
/zynthian/zyncoder /zynthian/zyncoder  
/zynthian/zyncoder  
Updating zynthian-ui …  
From [GitHub - zynthian/zynthian-ui: User Interface for Zynthian](https://github.com/zynthian/zynthian-ui)  
b73169e..21ff4ca testing → origin/testing  
/zynthian/zynthian-ui/zynlibs/zynseq /zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/zynseq/build /zynthian/zynthian-ui/zynlibs/zynseq /zynthian/zynthian-ui  
– Configuring done  
– Generating done  
– Build files have been written to: /zynthian/zynthian-ui/zynlibs/zynseq/build  
[100%] Built target zynseq  
/zynthian/zynthian-ui/zynlibs/zynseq /zynthian/zynthian-ui  
/zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/jackpeak /zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/jackpeak/build /zynthian/zynthian-ui/zynlibs/jackpeak /zynthian/zynthian-ui  
– Configuring done  
– Generating done  
– Build files have been written to: /zynthian/zynthian-ui/zynlibs/jackpeak/build  
[100%] Built target jackpeak  
/zynthian/zynthian-ui/zynlibs/jackpeak /zynthian/zynthian-ui  
/zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/zynsmf /zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/zynsmf/build /zynthian/zynthian-ui/zynlibs/zynsmf /zynthian/zynthian-ui  
– Configuring done  
– Generating done  
– Build files have been written to: /zynthian/zynthian-ui/zynlibs/zynsmf/build  
[100%] Built target zynsmf  
/zynthian/zynthian-ui/zynlibs/zynsmf /zynthian/zynthian-ui  
/zynthian/zynthian-ui  
Updating zynthian-webconf …  
fatal: Unable to create ‘/zynthian/zynthian-webconf/.git/index.lock’: File exists.

Another git process seems to be running in this repository, e.g.  
an editor opened by ‘git commit’. Please make sure all processes  
are terminated then try again. If it still fails, a git process  
may have crashed in this repository earlier:  
remove the file manually to continue.  
From [GitHub - zynthian/zynthian-webconf: Web Configuration Tool](https://github.com/zynthian/zynthian-webconf)  
0214bd2..b3cdde1 staging-2210 → origin/staging-2210  
0214bd2..b3cdde1 testing → origin/testing  
Running Flag Actions from ‘/zynthian/zynthian-sys/scripts/update\_zynthian.sh’…  
Update Complete.

* * *

If it may help, systemctl output is

########################## ----------------------------------------

# # ZynthianOS: Built on [os.zynthian.org](http://os.zynthian.org)

# ## # Timestamp: 2020-09-05

# ## # # ## # Optimized: Raspberry Pi 3 Model B Plus

# # # # # # # # ----------------------------------------

### # # # # # # ### Kit: Custom

# # # # # # # # # # Display: WaveShare 5 HDMI+USB

# ## # # # # ## # Soundcard: IQAudio DAC+

# ## ## # Wiring Layout: CUSTOM

# # ----------------------------------------

##########################  
zynthian-ui: stable (556d8a)  
zynthian-webconf: stable (796155)  
zyncoder: stable (7c0973)  
zynthian-sys: stable (0bd40a)  
zynthian-data: stable (82571e)  
---------------------------------------

Linux zynthian 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 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: Sat Oct 15 09:30:48 2022 from 192.168.1.16  
root@zynthian:~# systemctl  
UNIT LOAD ACTIVE SUB DESCRIPTION  
proc-sys-fs-binfmt\_misc.automount loaded active waiting Arbitrary Executable  
sys-devices-platform-emmc2bus-fe340000.mmc-mmc\_host-mmc0-mmc0:aaaa-block-mmcbl  
sys-devices-platform-emmc2bus-fe340000.mmc-mmc\_host-mmc0-mmc0:aaaa-block-mmcbl  
sys-devices-platform-emmc2bus-fe340000.mmc-mmc\_host-mmc0-mmc0:aaaa-block-mmcbl  
sys-devices-platform-rpi\_backlight-backlight-rpi\_backlight.device loaded activ  
sys-devices-platform-scb-fd580000.ethernet-net-eth0.device loaded active plugg  
sys-devices-platform-soc-fe00b840.mailbox-bcm2835\_audio-sound-card1.device loa  
sys-devices-platform-soc-fe201000.serial-tty-ttyAMA0.device loaded active plug  
sys-devices-platform-soc-fe215040.serial-tty-ttyS0-hci0.device loaded active p  
sys-devices-platform-soc-fe215040.serial-tty-ttyS0.device loaded active plugge  
sys-devices-platform-soc-fe300000.mmcnr-mmc\_host-mmc1-mmc1:0001-mmc1:0001:1-ne  
sys-devices-platform-soc-fe980000.usb-gadget-sound-card0.device loaded active  
sys-devices-platform-soc-soc:sound-sound-card2.device loaded active plugged  
sys-devices-virtual-block-ram0.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram1.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram10.device loaded active plugged /sys/devices/vi  
sys-devices-virtual-block-ram11.device loaded active plugged /sys/devices/vi  
sys-devices-virtual-block-ram12.device loaded active plugged /sys/devices/vi  
sys-devices-virtual-block-ram13.device loaded active plugged /sys/devices/vi  
sys-devices-virtual-block-ram14.device loaded active plugged /sys/devices/vi  
sys-devices-virtual-block-ram15.device loaded active plugged /sys/devices/vi  
sys-devices-virtual-block-ram2.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram3.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram4.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram5.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram6.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram7.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram8.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-block-ram9.device loaded active plugged /sys/devices/vir  
sys-devices-virtual-misc-rfkill.device loaded active plugged /sys/devices/vi  
sys-devices-virtual-tty-ttyprintk.device loaded active plugged /sys/devices/  
sys-module-configfs.device loaded active plugged /sys/module/configfs  
sys-subsystem-bluetooth-devices-hci0.device loaded active plugged /sys/subsy  
sys-subsystem-net-devices-eth0.device loaded active plugged /sys/subsystem/n  
sys-subsystem-net-devices-wlan0.device loaded active plugged /sys/subsystem/  
-.mount loaded active mounted /  
boot.mount loaded active mounted /boot  
dev-mqueue.mount loaded active mounted POSIX Message Queue File  
run-rpc\_pipefs.mount loaded active mounted RPC Pipe File System  
run-user-0.mount loaded active mounted /run/user/0  
sys-kernel-config.mount loaded active mounted Kernel Configuration File  
sys-kernel-debug.mount loaded active mounted Kernel Debug File System  
systemd-ask-password-console.path loaded active waiting Dispatch Password Re  
systemd-ask-password-wall.path loaded active waiting Forward Password Reques  
init.scope loaded active running System and Service Manage  
session-3.scope loaded active running Session 3 of user root  
a2jmidid.service loaded active running Alsa to Jack Bridge  
alsa-restore.service loaded active exited Save/Restore Sound Card S  
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack  
● backlight.service loaded failed failed Turn on/off Display Backl  
bluetooth.service loaded active running Bluetooth service  
bthelper@hci0.service loaded active exited Raspberry Pi bluetooth he  
console-setup.service loaded active exited Set console font and keym  
dbus.service loaded active running D-Bus System Message Bus  
dhcpcd.service loaded active running dhcpcd on all interfaces  
fake-hwclock.service loaded active exited Restore / save the curren  
getty@tty1.service loaded active running Getty on tty1  
hciuart.service loaded active running Configure Bluetooth Modem  
ifupdown-pre.service loaded active exited Helper to synchronize boo  
jack2.service loaded active running JACK2 Audio Server  
keyboard-setup.service loaded active exited Set the console keyboard  
kmod-static-nodes.service loaded active exited Create list of required s  
mod-ttymidi.service loaded active running MOD ttymidi  
networking.service loaded active exited Raise network interfaces  
rc-local.service loaded active exited /etc/rc.local Compatibili  
rng-tools.service loaded active running rng-tools.service  
rpi-eeprom-update.service loaded active exited Check for Raspberry Pi EE  
ssh.service loaded active running OpenBSD Secure Shell serv  
systemd-backlight@backlight:rpi\_backlight.service loaded active exited Load  
systemd-fsck-root.service loaded active exited File System Check on Root  
systemd-fsck@dev-disk-by\x2dpartuuid-2fed7fee\x2d01.service loaded active exit  
systemd-journal-flush.service loaded active exited Flush Journal to Persist  
systemd-journald.service loaded active running Journal Service  
systemd-logind.service loaded active running Login Service  
systemd-modules-load.service loaded active exited Load Kernel Modules  
systemd-random-seed.service loaded active exited Load/Save Random Seed  
systemd-remount-fs.service loaded active exited Remount Root and Kernel F  
systemd-sysctl.service loaded active exited Apply Kernel Variables  
systemd-sysusers.service loaded active exited Create System Users  
systemd-timesyncd.service loaded active running Network Time Synchronizat  
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Devic  
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files a  
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices  
systemd-udevd.service loaded active running udev Kernel Device Manage  
systemd-update-utmp.service loaded active exited Update UTMP about System  
systemd-user-sessions.service loaded active exited Permit User Sessions  
user-runtime-dir@0.service loaded active exited User Runtime Directory /r  
user@0.service loaded active running User Manager for UID 0  
zynthian-webconf.service loaded active running Zynthian Webconf  
zynthian.service loaded active running Zynthian User Interface  
-.slice loaded active active Root Slice  
system-bthelper.slice loaded active active system-bthelper.slice  
system-getty.slice loaded active active system-getty.slice  
system-systemd\x2dbacklight.slice loaded active active system-systemd\x2dba  
system-systemd\x2dfsck.slice loaded active active system-systemd\x2dfsck.sl  
system.slice loaded active active System Slice  
user-0.slice loaded active active User Slice of UID 0  
user.slice loaded active active User and Session Slice  
avahi-daemon.socket loaded active running Avahi mDNS/DNS-SD Stack A  
dbus.socket loaded active running D-Bus System Message Bus  
systemd-fsckd.socket loaded active listening fsck to fsckd communicati  
systemd-initctl.socket loaded active listening initctl Compatibility Nam  
systemd-journald-audit.socket loaded active running Journal Audit Socket  
systemd-journald-dev-log.socket loaded active running Journal Socket (/dev/l  
systemd-journald.socket loaded active running Journal Socket  
systemd-rfkill.socket loaded active listening Load/Save RF Kill Switch  
systemd-udevd-control.socket loaded active running udev Control Socket  
systemd-udevd-kernel.socket loaded active running udev Kernel Socket  
basic.target loaded active active Basic System  
bluetooth.target loaded active active Bluetooth  
cryptsetup.target loaded active active Local Encrypted Volumes  
getty.target loaded active active Login Prompts  
graphical.target loaded active active Graphical Interface  
local-fs-pre.target loaded active active Local File Systems (Pre)  
local-fs.target loaded active active Local File Systems  
multi-user.target loaded active active Multi-User System  
network.target loaded active active Network  
nfs-client.target loaded active active NFS client services  
paths.target loaded active active Paths  
remote-fs-pre.target loaded active active Remote File Systems (Pre)  
remote-fs.target loaded active active Remote File Systems  
slices.target loaded active active Slices  
sockets.target loaded active active Sockets  
sound.target loaded active active Sound Card  
swap.target loaded active active Swap  
sysinit.target loaded active active System Initialization  
time-sync.target loaded active active System Time Synchronized  
timers.target loaded active active Timers  
apt-daily-upgrade.timer loaded active waiting Daily apt upgrade and cle  
man-db.timer loaded active waiting Daily man-db regeneration  
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporar

LOAD = Reflects whether the unit definition was properly loaded.  
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.  
SUB = The low-level unit activation state, values depend on unit type.

131 loaded units listed. Pass --all to see loaded but inactive units, too.  
To show all installed unit files use ‘systemctl list-unit-files’.

* * *

Thanks in advance for your help, as I’m stuck here…

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 15, 2022, 8:47am UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/2 "2022-10-15T08:47:41Z")

</div>

It looks like previous update has aborted early, leaving locks in place. You could try manually removing the files, e.g.

```auto
rm /zynthian/zynthian-data/.git/index.lock /zynthian/zyncoder/.git/index.lock /zynthian/zynthian-webconf/.git/index.lock

```

then running update again.

---

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 15, 2022, 1:28pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/3 "2022-10-15T13:28:52Z")

</div>

I tried to remove the lock files and retrigger a software update, and I no longer had the git warnings:

Updating zynthian-sys (stable) …  
Already up to date.  
Executing custom update recipes …  
Executing /zynthian/zynthian-sys/scripts/recipes.update.buster/00\_install\_packages.sh …  
raspberrypi-kernel was already not hold.  
raspberrypi-sys-mods was already not hold.  
Reading package lists…  
Building dependency tree…  
Reading state information…  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
Reading package lists…  
Building dependency tree…  
Reading state information…  
Updating zynthian-data …  
Already up to date.  
ln: failed to create symbolic link ‘/usr/local/share/zynaddsubfx/zynaddsubfx’: File exists  
Updating System configuration …  
BOOT LOG DISABLED  
RBPI AUDIO ENABLED  
OTG ENABLED  
SOUNDCARD CONFIG =\> dtoverlay=iqaudio-dacplus\n\n\n\n\n\n\n  
DISPLAY CONFIG =\> hdmi\_force\_hotplug=1\nhdmi\_drive=1\nhdmi\_group=2\nhdmi\_mode=1\nhdmi\_mode=87\nhdmi\_cvt 800 480 60 6 0 0 0  
ACT LED CONFIG =\>  
Aeolus Waves already exist!  
SOUNDCARD\_MIXER is OK  
Updating zyncoder …  
/zynthian/zyncoder /zynthian/zyncoder  
/zynthian/zyncoder/build /zynthian/zyncoder /zynthian/zyncoder  
++ Defined HAVE\_WIRINGPI\_LIB  
++ Defined MCP23008\_ENCODERS  
++ Using wiringPI  
– Configuring done  
– Generating done  
– Build files have been written to: /zynthian/zyncoder/build  
[66%] Built target zyncoder  
[100%] Built target zyncoder\_test  
/zynthian/zyncoder /zynthian/zyncoder  
/zynthian/zyncoder  
Updating zynthian-ui …  
From [GitHub - zynthian/zynthian-ui: User Interface for Zynthian](https://github.com/zynthian/zynthian-ui)  
21ff4ca…399a74d testing → origin/testing  
/zynthian/zynthian-ui/zynlibs/zynseq /zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/zynseq/build /zynthian/zynthian-ui/zynlibs/zynseq /zynthian/zynthian-ui  
– Configuring done  
– Generating done  
– Build files have been written to: /zynthian/zynthian-ui/zynlibs/zynseq/build  
[100%] Built target zynseq  
/zynthian/zynthian-ui/zynlibs/zynseq /zynthian/zynthian-ui  
/zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/jackpeak /zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/jackpeak/build /zynthian/zynthian-ui/zynlibs/jackpeak /zynthian/zynthian-ui  
– Configuring done  
– Generating done  
– Build files have been written to: /zynthian/zynthian-ui/zynlibs/jackpeak/build  
[100%] Built target jackpeak  
/zynthian/zynthian-ui/zynlibs/jackpeak /zynthian/zynthian-ui  
/zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/zynsmf /zynthian/zynthian-ui  
/zynthian/zynthian-ui/zynlibs/zynsmf/build /zynthian/zynthian-ui/zynlibs/zynsmf /zynthian/zynthian-ui  
– Configuring done  
– Generating done  
– Build files have been written to: /zynthian/zynthian-ui/zynlibs/zynsmf/build  
[100%] Built target zynsmf  
/zynthian/zynthian-ui/zynlibs/zynsmf /zynthian/zynthian-ui  
/zynthian/zynthian-ui  
Updating zynthian-webconf …  
Running Flag Actions from ‘/zynthian/zynthian-sys/scripts/update\_zynthian.sh’…  
Update Complete.

* * *

…but it doesn’t work any better.

I notice both the update log and systemctl log mention something about led/backlight:

- in upate log: ACT LED CONFIG =\>  
Aeolus Waves already exist!
- in systemctl: ● backlight.service loaded failed failed Turn on/off Display Backl

Could it be a clue? (though the current snapshot that is loaded at startup doesn’t use aeolus as far as I remember)

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 15, 2022, 2:29pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/4 "2022-10-15T14:29:32Z")

</div>

Neither of those warnings are relevant. (We should remove them.)

Will you please share the output of the service log? Of webconf is running this can be seen through INTERFACE -\>UI Log. If not then you can view it from console with `journalctl -uzynthian`

---

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 15, 2022, 3:44pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/5 "2022-10-15T15:44:08Z")

</div>

Here it is:

– Logs begin at Sat 2022-10-15 14:21:01 BST. –  
Oct 15 15:04:09 zynthian startx[485]: lilv\_world\_load\_bundle(): warning: Ignoring bundle \<file:///zynthian/zynthian-plugins/lv2/b\_synth.lv2/\>  
Oct 15 15:04:09 zynthian startx[485]: lilv\_world\_load\_bundle(): note: Newer version of [http://gareus.org/oss/lv2/b\_synth](http://gareus.org/oss/lv2/b_synth) loaded from \<file:///zynthian/zynthian-plugins/lv2/b\_synth/\>  
Oct 15 16:34:11 zynthian systemd[1]: Stopping Zynthian User Interface…  
Oct 15 16:34:21 zynthian startx[485]: xinit: connection to X server lost  
Oct 15 16:34:21 zynthian startx[485]: [1B blob data]  
Oct 15 16:34:21 zynthian startx[485]: waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.  
Oct 15 16:34:22 zynthian startx[485]: xinit: unexpected signal 15  
Oct 15 16:34:22 zynthian systemd[1]: zynthian.service: Main process exited, code=exited, status=1/FAILURE  
Oct 15 16:34:22 zynthian systemd[1]: zynthian.service: Failed with result ‘exit-code’.  
Oct 15 16:34:22 zynthian systemd[1]: Stopped Zynthian User Interface.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 16, 2022, 6:48am UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/6 "2022-10-16T06:48:27Z")

</div>

I can’t reproduce this. Can you grab `/zynthian/zynthian-my-data/snapshots/last_state.zss` and send / post it? There may be a clue in there. It may be an issue with your hardware configuration that we haven’t tested. (We don’t have that hardware.) Let’s start with the snapshot…

[Edit] Also please try setting wiring layout to dummies to test if your custom wiring is upsetting things. You could also try setting Audio to “RPi Headphones” and Display to “Generic HDMI”. Do each in turn to see if they make a difference. This may help diagnose what is causing the issue.

---

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 16, 2022, 10:46am UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/7 "2022-10-16T10:46:04Z")

</div>

I set the wiring to dummy, and it worked back. So I set it to custom again and tried to reintroduce my custom wiring one by one.

My wiring was:  
Custom

21,11,13,7

22,10,12,15

23,26,14,16

My Zynthian keeps working with this configuration:

Custom

21,0,13,7

22,0,12,15

23,26,14,16

But if I add pins 11 and/or 10 back, it stops working. I guess I should I double check if nothing wrong happened on the hardware (disconnected or something)

---

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 16, 2022, 1:14pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/8 "2022-10-16T13:14:15Z")

</div>

So, to sum up my hardware investigations: I checked my “back” encoder

- the encoder gets some power,
- the switch works (I didn’t have to disable its switch pin to get rid of the error anyway, only CLK and DT pins)
- the CLK and DT pins seems to work
- I replaced the encoder with another identical one, and it didn’t make any difference: 21,11,13,7 / 22,10,12,15 / 23,26,14,16 configuration triggers the error, 21,0,13,7 / 22,0,12,15 / 23,26,14,16 works
- I unplugged the CLK / DT pins, and no difference: 21,11,13,7 / 22,10,12,15 / 23,26,14,16 configuration triggers the error even with CLK / DT pins physically disconnected from the board, and 21,0,13,7 / 22,0,12,15 / 23,26,14,16 works even with encoder connected (i.e. software doesn’t crash, obviously rotating the encoder has no effect, only the “back” command switch works)

So things look fine on the HW side. 11/10 in webconf correspond to GPIO 7/8 it seems. No change on the software side here? Still available?

---

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 16, 2022, 2:13pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/9 "2022-10-16T14:13:11Z")

</div>

attached is the requested snapshot

[last\_state.zss](https://discourse.zynthian.org/uploads/short-url/xSya3urAz5yZjinOOnKVQ8FQsbJ.zss) (34.8 KB)

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [October 17, 2022, 4:54pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/10 "2022-10-17T16:54:32Z")

</div>

Try substituting 0,0,0 against all the encoders except one and see if you can pin down the functionality that way…

Or set them all to 0,0,0,0 and add the pins one by one with a reboot between…

---

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 17, 2022, 6:10pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/11 "2022-10-17T18:10:56Z")

</div>

Isn’t it what I have already done? (See my earlier posts). I set them all to 0, reenabled them one by one and came to the conclusion it was my “back” rotary encoder that was triggering the error (clk & DT pins only, switch works fine). Bit the simple fact of assigning pins 11&10 in webconf causes the error, even if the encoder isn’t physically connected.

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [October 17, 2022, 6:20pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/12 "2022-10-17T18:20:07Z")

</div>

Aah ok. I’ve seen similar. There has been some change in the GPIO side of the Pi which behaves this way…

[GPIO Encoder wont start on Pi3 (solved) - #7 by wyleu](https://discourse.zynthian.org/t/gpio-encoder-wont-start-on-pi3-solved/6346/7) is this the sort of thing you are seeing…?

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 17, 2022, 9:45pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/13 "2022-10-17T21:45:24Z")

</div>

Could it be that your screen or soundcard is using the SPI-0 ports that these two pins are used for?

---

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 21, 2022, 8:43am UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/14 "2022-10-21T08:43:58Z")

</div>

Here is the info about the soundcard (IQ audio DAC+)

 ![Screenshot 2022-10-21 at 10-37-09 iqaudio-product-brief.pdf](https://discourse.zynthian.org/uploads/default/original/2X/e/e639467fc8cf45027a13132743014ac2e8019182.png)  
unless I’m mistaken, webconf 11 & 10, which cause me some grief, correspond to pins 26 & 24, i.e. GPIO 7 & 8. They are not supposed to be used by sound card (and my zynthian was working fine before anyway)

As for my screen, it is using the DSI interface.

---

<div class="post-metadata">

**Author:** ![le51](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/le51/32/1706_2.png) [@le51](https://discourse.zynthian.org/u/le51)\
**Post date:** [October 21, 2022, 11:51am UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/15 "2022-10-21T11:51:13Z")

</div>

Hi @pat ,  
Have you checked /boot/config.txt to see if there is no directive for a activating the SPI bus ?  
Also, the output of “dmesg” command could help to debug what’s happening.

---

<div class="post-metadata">

**Author:** ![pat](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pat](https://discourse.zynthian.org/u/pat)\
**Post date:** [October 21, 2022, 1:26pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/16 "2022-10-21T13:26:12Z")

</div>

> [@le51](#):
>
> Have you checked /boot/config.txt to see if there is no directive for a tovating SPI bus ?

Spot on!

```auto
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on

```

I commented out this last line and everything returned back to normal. THANKS A LOT!

I’m still wondering though: I hadn’t changed this file recently. And I didn’t expect a zynthian software update to modify the config.txt file. How to explain my zynthian stopped working? Do updates change this file? Or is it the combination of my config.txt file already having spi on + some change elsewhere in the software update that broke the whole thing?

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 21, 2022, 1:42pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/17 "2022-10-21T13:42:22Z")

</div>

Webconf updates this file when configuring and updates do affect it. @jofemodo is SPI enabled for a reason? I would expect it to be disabled unless some hardware requires it.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 22, 2022, 10:22pm UTC](https://discourse.zynthian.org/t/error-at-startup-probably-since-software-update/7300/18 "2022-10-22T22:22:22Z")

</div>

Probable yes. We should add a flag that is calculated by the config script. Currently spi is used by zynscreen and other spi displays. Also by RGB leds on Z2. I think this is all. A quick solution without changing code would be disabling spi in the extra config options, indide the last option of webconf’s hardware menu.
