ogra1 / electron-kiosk-wayland

8 stars 5 forks source link

error "dbus-daemon: 5: Syntax error: Unterminated quoted string" encountered when running on raspberry pi 4 #1

Open ChiragMoradiya opened 2 years ago

ChiragMoradiya commented 2 years ago

When I built and installed on raspberry pi, I am getting following error (found from journalctl):

Apr 16 04:56:34 ubuntu electron-kiosk-wayland.electron-kiosk-wayland[1306]: /snap/electron-kiosk-wayland/x4/usr/bin/dbus-daemon: 5: Syntax error: Unterminated quoted string
Apr 16 04:56:34 ubuntu electron-kiosk-wayland.electron-kiosk-wayland[1304]: dbus-run-session: EOF reading address from bus daemon
Apr 16 04:56:34 ubuntu systemd[1]: snap.electron-kiosk-wayland.electron-kiosk-wayland.service: Main process exited, code=exited, status=127/n/a
Apr 16 04:56:34 ubuntu systemd[1]: snap.electron-kiosk-wayland.electron-kiosk-wayland.service: Failed with result 'exit-code'.

Full Logs:

Apr 16 04:56:34 ubuntu systemd-timesyncd[727]: Initial synchronization to time server 192.168.0.100:123 (192.168.0.100).
Apr 16 04:56:34 ubuntu systemd[1]: Starting Online ext4 Metadata Check for All Filesystems...
Apr 16 04:56:34 ubuntu systemd[1]: Starting Discard unused blocks on filesystems from /etc/fstab...
Apr 16 04:56:34 ubuntu systemd[1]: Stopped Service for snap application electron-kiosk-wayland.electron-kiosk-wayland.
Apr 16 04:56:34 ubuntu systemd[1]: Started Service for snap application electron-kiosk-wayland.electron-kiosk-wayland.
Apr 16 04:56:34 ubuntu systemd[1]: Starting Automatically fetch and run repair assertions...
Apr 16 04:56:34 ubuntu systemd[1]: e2scrub_all.service: Succeeded.
Apr 16 04:56:34 ubuntu systemd[1]: Finished Online ext4 Metadata Check for All Filesystems.
Apr 16 04:56:34 ubuntu systemd[1]: fstrim.service: Succeeded.
Apr 16 04:56:34 ubuntu systemd[1]: Finished Discard unused blocks on filesystems from /etc/fstab.
Apr 16 04:56:34 ubuntu systemd-networkd[511]: wlan0: Gained IPv6LL
Apr 16 04:56:34 ubuntu electron-kiosk-wayland.electron-kiosk-wayland[1306]: /snap/electron-kiosk-wayland/x4/usr/bin/dbus-daemon: 5: Syntax error: Unterminated quoted string
Apr 16 04:56:34 ubuntu electron-kiosk-wayland.electron-kiosk-wayland[1304]: dbus-run-session: EOF reading address from bus daemon
Apr 16 04:56:34 ubuntu systemd[1]: snap.electron-kiosk-wayland.electron-kiosk-wayland.service: Main process exited, code=exited, status=127/n/a
Apr 16 04:56:34 ubuntu systemd[1]: snap.electron-kiosk-wayland.electron-kiosk-wayland.service: Failed with result 'exit-code'.
Apr 16 04:56:35 ubuntu systemd[1]: snap.electron-kiosk-wayland.electron-kiosk-wayland.service: Scheduled restart job, restart counter is at 5.
Apr 16 04:56:35 ubuntu systemd[1]: Stopped Service for snap application electron-kiosk-wayland.electron-kiosk-wayland.
Apr 16 04:56:35 ubuntu systemd[1]: snap.electron-kiosk-wayland.electron-kiosk-wayland.service: Start request repeated too quickly.
Apr 16 04:56:35 ubuntu systemd[1]: snap.electron-kiosk-wayland.electron-kiosk-wayland.service: Failed with result 'exit-code'.
Apr 16 04:56:35 ubuntu systemd[1]: Failed to start Service for snap application electron-kiosk-wayland.electron-kiosk-wayland.
Apr 16 04:56:36 ubuntu systemd[1]: snapd.snap-repair.service: Succeeded.
Apr 16 04:56:36 ubuntu systemd[1]: Finished Automatically fetch and run repair assertions.
Apr 16 04:56:36 ubuntu snapd[801]: stateengine.go:149: state ensure error: cannot decode new commands catalog: got unexpected HTTP status code 403 via GET to "https://api.snapcraft.io/api/v1/snaps/names?confinement=strict"
Apr 16 04:56:40 ubuntu systemd[1]: Started Serial Getty on ttyS0.
Apr 16 04:56:40 ubuntu systemd[1]: serial-console-conf@ttyS0.service: Succeeded.
Apr 16 04:56:40 ubuntu systemd[1]: serial-console-conf@ttyS0.service: Scheduled restart job, restart counter is at 1.
Apr 16 04:56:40 ubuntu systemd[1]: Stopped Ubuntu Core Firstboot Configuration ttyS0.
Apr 16 04:56:40 ubuntu systemd[1]: Started Ubuntu Core Firstboot Configuration ttyS0.
Apr 16 04:56:40 ubuntu systemd[1]: Stopping Serial Getty on ttyS0...
Apr 16 04:56:40 ubuntu systemd[1]: serial-getty@ttyS0.service: Succeeded.
Apr 16 04:56:40 ubuntu systemd[1]: Stopped Serial Getty on ttyS0.
Apr 16 04:56:40 ubuntu systemd[1]: Started Getty on tty2.
Apr 16 04:56:40 ubuntu systemd[1]: console-conf@tty2.service: Succeeded.
Apr 16 04:56:40 ubuntu systemd[1]: console-conf@tty2.service: Scheduled restart job, restart counter is at 1.
Apr 16 04:56:40 ubuntu systemd[1]: Stopped Ubuntu Core Firstboot Configuration tty2.
Apr 16 04:56:40 ubuntu systemd[1]: Started Ubuntu Core Firstboot Configuration tty2.
Apr 16 04:56:40 ubuntu systemd[1]: Stopping Getty on tty2...
Apr 16 04:56:40 ubuntu systemd[1]: Started Getty on tty1.
Apr 16 04:56:40 ubuntu systemd[1]: getty@tty2.service: Succeeded.
Apr 16 04:56:40 ubuntu systemd[1]: Stopped Getty on tty2.
Apr 16 04:56:40 ubuntu systemd[1]: console-conf@tty1.service: Succeeded.
Apr 16 04:56:40 ubuntu systemd[1]: console-conf@tty1.service: Scheduled restart job, restart counter is at 1.
Apr 16 04:56:40 ubuntu systemd[1]: Stopped Ubuntu Core Firstboot Configuration tty1.
Apr 16 04:56:40 ubuntu systemd[1]: Started Ubuntu Core Firstboot Configuration tty1.
Apr 16 04:56:40 ubuntu systemd[1]: Stopping Getty on tty1...
Apr 16 04:56:40 ubuntu systemd[1]: getty@tty1.service: Succeeded.
Apr 16 04:56:40 ubuntu systemd[1]: Stopped Getty on tty1.
Apr 16 04:56:40 ubuntu /console-conf-write-login-details[1355]: i18n file is /usr/share/subiquity/subiquitycore/i18n.py
Apr 16 04:56:40 ubuntu /console-conf-write-login-details[1355]: Final localedir is /usr/share/locale
Apr 16 04:56:40 ubuntu /console-conf-write-login-details[1355]: switch_language en_US
Apr 16 04:56:41 ubuntu /console-conf-write-login-details[1389]: i18n file is /usr/share/subiquity/subiquitycore/i18n.py
Apr 16 04:56:41 ubuntu /console-conf-write-login-details[1389]: Final localedir is /usr/share/locale
Apr 16 04:56:41 ubuntu /console-conf-write-login-details[1389]: switch_language en_US
Apr 16 04:56:41 ubuntu /console-conf-write-login-details[1397]: i18n file is /usr/share/subiquity/subiquitycore/i18n.py
Apr 16 04:56:41 ubuntu /console-conf-write-login-details[1397]: Final localedir is /usr/share/locale

Any guess?

Environment Detail:

I built snap on my Mac and transferred to RPi 4 for the installation; My RPi had Ubuntu Core20 pre-installed. The only thing I changed in snapcraft.yaml for this build is

architectures:
  - build-on: amd64
    run-on: arm64

It would be great help if you can point out the issue; further debugging path to me. I perfectly understand that you would be busy with other priority things so don't want you to spend a lot time on this. But, wanted to check with you if it's a quick fix.

pickpocket commented 6 months ago

For anyone having this issue its because you built the electron-kiosk-wayland snap on an x86/amd64 device and caused the binaries to be compiled to amd64 instead of arm64. I recommend building this snap on a device that has the same architecture as the device your attempting to install the built snap on.