Can't connect to Zynthian.local

Hi All

setting up a headless Zynthian with a raspi 5

I have installed and cannot connect to the webconf

when I set it up on a 3 b+ it worked fine.

I can connect via ssh so the ip address seems to be resolving correctly but the webconf won’t connect

I get ERR_CONNECTION_REFUSED

I have tried with chrome safari and Firefox all the same.

any pointers of things to try?

thanks

J

Does webconf fail on the ip address in the url?

yes both the ip and the zynthian.local fail

you say you can ssh to the machine (as zynthian.local?)

is there anything in …

/zynthian/zynthian-webconf/cert

there should be two pem files.

Looking at the logs via ssh might give a clue as to why webconf is not available. Please ask if you don’t know how to do that or where they are.

yes there is cert.pem key.pem

ynthian.service: Failed with result ‘exit-code’.
Mar 21 16:57:12 zynthian systemd[1]: zynthian.service: Scheduled restart job, restart counter is at 7.
Mar 21 16:57:12 zynthian systemd[1]: Stopped zynthian.service - Zynthian User Interface.
Mar 21 16:57:12 zynthian systemd[1]: Started zynthian.service - Zynthian User Interface.
Mar 21 16:57:12 zynthian startx[2055]: X.Org X Server 1.21.1.7
Mar 21 16:57:12 zynthian startx[2055]: X Protocol Version 11, Revision 0
Mar 21 16:57:12 zynthian startx[2055]: Current Operating System: Linux zynthian 6.6.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64
Mar 21 16:57:12 zynthian startx[2055]: 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.ma>
Mar 21 16:57:12 zynthian startx[2055]: xorg-server 2:21.1.7-3+rpt3+deb12u8 (Debian -- User Support)
Mar 21 16:57:12 zynthian startx[2055]: Current version of pixman: 0.42.2
Mar 21 16:57:12 zynthian startx[2055]: Before reporting problems, check http://wiki.x.org
Mar 21 16:57:12 zynthian startx[2055]: to make sure that you have the latest version.
Mar 21 16:57:12 zynthian startx[2055]: Markers: (–) probed, (**) from config file, (==) default setting,
Mar 21 16:57:12 zynthian startx[2055]: (++) from command line, (!!) notice, (II) informational,
Mar 21 16:57:12 zynthian startx[2055]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Mar 21 16:57:12 zynthian startx[2055]: (==) Log file: “/var/log/Xorg.0.log”, Time: Fri Mar 21 16:57:12 2025
Mar 21 16:57:12 zynthian startx[2055]: (==) Using config directory: “/etc/X11/xorg.conf.d”
Mar 21 16:57:12 zynthian startx[2055]: (==) Using system config directory “/usr/share/X11/xorg.conf.d”
Mar 21 16:57:12 zynthian startx[2055]: (EE)
Mar 21 16:57:12 zynthian startx[2055]: Fatal server error:
Mar 21 16:57:12 zynthian startx[2055]: (EE) no screens found(EE)
Mar 21 16:57:12 zynthian startx[2055]: (EE)
Mar 21 16:57:12 zynthian startx[2055]: Please consult the The X.Org Foundation support
Mar 21 16:57:12 zynthian startx[2055]: at http://wiki.x.org
Mar 21 16:57:12 zynthian startx[2055]: for help.
Mar 21 16:57:12 zynthian startx[2055]: (EE) Please also check the log file at “/var/log/Xorg.0.log” for additional information.
Mar 21 16:57:12 zynthian startx[2055]: (EE)
Mar 21 16:57:12 zynthian startx[2055]: (EE) Server terminated with error (1). Closing log file.
Mar 21 16:57:27 zynthian startx[2054]: xinit: giving up
Mar 21 16:57:27 zynthian startx[2054]: xinit: unable to connect to X server: Connection refused
Mar 21 16:57:27 zynthian startx[2054]: xinit: server error
Mar 21 16:57:27 zynthian systemd[1]: zynthian.service: Main process exited, code=exited, status=1/FAILURE

is this what you are looking for re logs?

Yes, and it looks like Zynthian is busily trying to get a display working, and of course since you’re running headless the problems make sense…

Since you can’t run webconf; Could you use an editor to change the configuration file(s) to indicate you don’t have a display?

I can’t remember details of the filename-format - I think you can find prior in this forum.

Is there something I can edit to tell it what to do?

so I have got /zynthian/config/zynthian_envars.sh

open should I alter this line?

export DISPLAY_NAME=“Generic HDMI/DSI Display”

if so what should I call it headless?

That’s not one of the choices in webconf. I haven’t done this myself, but let’s try:
export DISPLAY_NAME=“Custom Device”
and see if that gets you into webconf.

unfortunately not still getting the same error.

Really appreciate the help.

could we see the new logfile?

Mar 21 19:28:45 zynthian systemd[1]: Started zynthian.service - Zynthian User I>
Mar 21 19:28:47 zynthian startx[839]: X.Org X Server 1.21.1.7
Mar 21 19:28:47 zynthian startx[839]: X Protocol Version 11, Revision 0
Mar 21 19:28:47 zynthian startx[839]: Current Operating System: Linux zynthian >
Mar 21 19:28:47 zynthian startx[839]: Kernel command line: reboot=w coherent_po>
Mar 21 19:28:47 zynthian startx[839]: xorg-server 2:21.1.7-3+rpt3+deb12u8 (http>
Mar 21 19:28:47 zynthian startx[839]: Current version of pixman: 0.42.2
Mar 21 19:28:47 zynthian startx[839]: Before reporting problems, check >
Mar 21 19:28:47 zynthian startx[839]: to make sure that you have the la>
Mar 21 19:28:47 zynthian startx[839]: Markers: (–) probed, (**) from config fi>
Mar 21 19:28:47 zynthian startx[839]: (++) from command line, (!!) noti>
Mar 21 19:28:47 zynthian startx[839]: (WW) warning, (EE) error, (NI) no>
Mar 21 19:28:47 zynthian startx[839]: (==) Log file: “/var/log/Xorg.0.log”, Tim>
Mar 21 19:28:47 zynthian startx[839]: (==) Using config directory: "/etc/X11/xo>
Mar 21 19:28:47 zynthian startx[839]: (==) Using system config directory "/usr/>
Mar 21 19:28:47 zynthian startx[839]: (EE)
Mar 21 19:28:47 zynthian startx[839]: Fatal server error:
Mar 21 19:28:47 zynthian startx[839]: (EE) no screens found(EE)
Mar 21 19:28:47 zynthian startx[839]: (EE)
Mar 21 19:28:47 zynthian startx[839]: Please consult the The X.Org Foundation s>
Mar 21 19:28:47 zynthian startx[839]: at http://wiki.x.org
Mar 21 19:28:47 zynthian startx[839]: for help.
Mar 21 19:28:47 zynthian startx[839]: (EE) Please also check the log file at "/>
Mar 21 19:28:47 zynthian startx[839]: (EE)
Mar 21 19:28:47 zynthian startx[839]: (EE) Server terminated with error (1). Cl>
Mar 21 19:29:01 zynthian startx[838]: xinit: giving up
Mar 21 19:29:01 zynthian startx[838]: xinit: unable to connect to X server: Con>
Mar 21 19:29:01 zynthian startx[838]: xinit: server error
Mar 21 19:29:01 zynthian systemd[1]: zynthian.service: Main process exited, cod>
Mar 21 19:29:01 zynthian systemd[1]: zynthian.service: Failed with result 'exit>

Methinks we need someone who actually runs a headless Zynthian to share how…

[ 698.337] (WW) Falling back to old probe method for fbdev
[ 698.337] (II) Loading sub module “fbdevhw”
[ 698.337] (II) LoadModule: “fbdevhw”
[ 698.337] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 698.337] (II) Module fbdevhw: vendor=“X.Org Foundation”
[ 698.337] compiled for 1.21.1.7, module version = 0.0.2
[ 698.337] ABI class: X.Org Video Driver, version 25.2
[ 698.337] (EE) open /dev/fb0: No such file or directory
[ 698.337] (EE) No devices detected.
[ 698.337] (EE)
Fatal server error:
[ 698.337] (EE) no screens found(EE)
[ 698.337] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 698.337] (EE) Please also check the log file at “/var/log/Xorg.0.log” for a>
[ 698.337] (EE)
[ 698.338] (EE) Server terminated with error (1). Closing log file.

and this at /var/log/Xorg.0.log

ok cheers really appreciate help!

there is the file /boot/firmware/config.txt. Simply add:

hdmi_force_hotplug=1
hdmi_drive=1
hdmi_mode=27
dtoverlay=vc4-kms-v3d
video=HDMI-A-1:1280X800M@60D

This programs the HDMI ports to talk to an HD-ready monitor with less framebuffer size than 1920p and less CPU time for drawing. There does not need to be a monitor connected with force_hotplug to allocate the display framebuffer and start rendering graphics to the output.

3 Likes

amazing thank you that has sorted it!

2 Likes