I’m having a new problem with a fresh install of Zynthian on my custom Pi Touch Display build - see: Touch Display 2 Build
I have re-flashed an SD card and made changes to the config.txt file so it finds the sound card. I have connected to wifi, but webconnect is refused.
I have ssh’d into the box and if I try to run zynthian_webconf.sh, I get the following error:
(venv) root@zynthian:/zynthian/zynthian-webconf# ./zynthian_webconf.sh
INFO:root:ZYNTHIAN-UI CONFIG …
INFO:root:Kit Version: Custom
INFO:root:No Wiring Layout configured. Only touch interface is available.
Loaded libzynaudioplayer using libsndfile-1.2.0
INFO:root:Supported Audio Codecs: [‘aiff’, ‘aifc’, ‘au’, ‘caf’, ‘flac’, ‘mp3’, ‘vox’, ‘opus’, ‘ogg’, ‘wav’]
INFO:root:RBPi Device Name: ‘’
Error: Could not open file /dev/i2c-1' or /dev/i2c/1’: No such file or directory
Traceback (most recent call last):
File “/zynthian/zynthian-webconf/./zynthian_webconf.py”, line 63, in
from lib.wiring_config_handler import WiringConfigHandler
File “/zynthian/zynthian-webconf/lib/wiring_config_handler.py”, line 45, in
for i2chip in DashboardHandler.get_i2c_chips():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/zynthian/zynthian-webconf/lib/dashboard_handler.py”, line 335, in get_i2c_chips
out = check_output(“i2cdetect -y 1”, shell=True).decode().split(“\n”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/subprocess.py”, line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/subprocess.py”, line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘i2cdetect -y 1’ returned non-zero exit status 1.
libzynaudioplayer exiting… done!
I have checked in /dev/ and I have /dev/i2c-10 but not /dev/i2c-1 - not sure why this is needed for webconf though?
BTW, what RBPi version are you using? What zynthianOS version?
Anyway, please, be warned that you should not make any changes to the config.txt by hand. Probably your problems is that you modified some line you shouldn’t.
It’s on a RBPi v5 and the zynthianOS is zynthian 6.12.47+rpt-rpi-2712
That command gives the same error as when it was called from zynthian_webconf.sh:
(venv) root@zynthian:~# i2cdetect -y 1
Error: Could not open file /dev/i2c-1' or /dev/i2c/1’: No such file or directory
I initially ran without editing config.txt to see if it would boot and find the sound card, but it came up with the error splash screen, so I added the dtoverlay=hifiberry-dac to the config.txt that I previously needed - this led to it booting, but webconf isn’t starting.
Is there a possibility to get an older version of zynthian to try?
I have a V5.1 kit that I update regularly with the Vangelis branch (fortunately didn’t update with yesterday’s broken version), and I have noticed that webconf has stopped working (don’t know exactly since when). Whether I type zynthian.local or the IP address, nothing happens. I tried a SFTP connection, and it worked. Doesn’t seem related to my network or computer settings: to rule this hypothesis out, I tried to reconnect my old custom V4-based zynthian and could launch webconf immediately with it.
There is nothing in the Zynthian admin page that allows disabling webconf or something? (haven’t changed anything I think anyway)
Updated from the UI and now it no longer starts up properly. I think I had successfully updated once in the meantime without the webconf issue being fixed, but now I don’t even have the UI (“ERROR” on the Vangelis splash screen”) and it seems it is repeatedly trying to start webconf: I have - “Software (N)” showing next to IP address on the splash screen, with N slowly incrementing. Indeed journalctl yields this a number of times:
“…Apr 07 08:23:09 zynthian zynthian_webconf.sh[1586]: from rdflib import Graph, Namespace, RDF
Apr 07 08:23:09 zynthian zynthian_webconf.sh[1586]: ModuleNotFoundError: No module named ‘rdflib’
Apr 07 08:23:09 zynthian systemd[1]: zynthian-webconf.service: Main process exited, code=exited, status=1/FAILURE
Apr 07 08:23:09 zynthian systemd[1]: zynthian-webconf.service: Failed with result ‘exit-code’.
Apr 07 08:23:15 zynthian systemd[1]: zynthian-webconf.service: Scheduled restart job, restart counter is at 10.
Apr 07 08:23:15 zynthian systemd[1]: Stopped zynthian-webconf.service - Zynthian Webconf.
Apr 07 08:23:15 zynthian systemd[1]: Started zynthian-webconf.service - Zynthian Webconf.
…”
Other things worth mentioning in journalctl log (i.e. showing up in yellow or red)
Jun 26 15:58:40 zynthian kernel: ledtrig-cpu: registered to indicate activity on CPUs
Jun 26 15:58:40 zynthian kernel: bcm2708_fb soc@107c000000:fb: Unable to determine number of FBs. Disabling driver.
Jun 26 15:58:40 zynthian kernel: bcm2708_fb soc@107c000000:fb: probe with driver bcm2708_fb failed with error -2
Jun 26 15:58:40 zynthian kernel: Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
Jun 26 15:58:40 zynthian kernel: dwc2 1000480000.usb: supply vusb_d not found, using dummy regulator
Jun 26 15:58:40 zynthian kernel: dwc2 1000480000.usb: supply vusb_a not found, using dummy regulator
Mar 31 13:24:14 zynthian kernel: rp1 0002:01:00.0: chip_id 0x20001927
Mar 31 13:24:14 zynthian kernel: simple-pm-bus clocks: Failed to create device link (0x180) with 1f00018000.clocks
Mar 31 13:24:14 zynthian kernel: simple-pm-bus clocks: Failed to create device link (0x180) with 1f00018000.clocks
Mar 31 13:24:14 zynthian kernel: genirq: irq_chip rp1_irq_chip did not update eff. affinity mask of irq 99
Mar 31 13:24:14 zynthian kernel: rtc-rv3028 1-0052: hctosys: unable to read the hardware clock
Mar 31 13:24:14 zynthian systemd-sysctl[338]: Couldn’t write ‘1’ to ‘kernel/unprivileged_userns_clone’, ignoring: No such file or directory
Mar 31 13:24:14 zynthian kernel: hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator
Mar 31 13:24:14 zynthian kernel: hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator
Mar 31 13:24:14 zynthian kernel: edt_ft5x06 10-0038: supply iovcc not found, using dummy regulator
Mar 31 13:24:15 zynthian kernel: pcm186x 1-004a: supply avdd not found, using dummy regulator
Mar 31 13:24:15 zynthian kernel: pcm186x 1-004a: supply dvdd not found, using dummy regulator
Mar 31 13:24:15 zynthian kernel: pcm186x 1-004a: supply iovdd not found, using dummy regulator
Mar 31 13:24:15 zynthian kernel: pcm512x 1-004d: supply AVDD not found, using dummy regulator
Mar 31 13:24:15 zynthian kernel: pcm512x 1-004d: supply DVDD not found, using dummy regulator
Mar 31 13:24:15 zynthian kernel: pcm512x 1-004d: supply CPVDD not found, using dummy regulator
Mar 31 13:24:15 zynthian systemd[1]: Reached target bluetooth.target - Bluetooth Support.
Mar 31 13:24:15 zynthian kernel: snd-rpi-hifiberry-dacplusadcpro soc@107c000000:sound: ASoC: driver name too long ‘HifiberryDacpAdcPro’ ->>
I didn’t try to do any change to config.txt as I’m running an official V5.1 hardware so I’m normally not supposed to.
Also, when updating again from command line (was already up-to-date but who knows…), had the following message among other things:
W: GPG error: https://packages.kopia.io/apt stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2273699AFD56A556
E: The repository ‘http://packages.kopia.io/apt stable InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: dpkg was interrupted, you must manually run ‘dpkg --configure -a’ to correct the problem.
E: dpkg was interrupted, you must manually run ‘dpkg --configure -a’ to correct the problem.
I ran the dpkg --configure -a command manually btw, but it didn’t help