Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems building and running with open-balena #4

Closed
ajlennon opened this issue Apr 11, 2019 · 8 comments
Closed

Problems building and running with open-balena #4

ajlennon opened this issue Apr 11, 2019 · 8 comments

Comments

@ajlennon
Copy link

Hi guys,

Thanks for this updated version of the dashboard example. Very keen to get this going!

So I've been setting up an OpenBalena instance which is going pretty well. Then I tried to build and deploy from this repo.

Running this command

balena deploy myApp --logs --source . --emulated

First thing is I got an apt dependency issue

[Build]   main raspberrypi-ui-mods is already the newest version (1.20190219).
[Build]   main rpd-icons is already the newest version (0.18).
[Build]   main You might want to run 'apt --fix-broken install' to correct these.
[Build]   main The following packages have unmet dependencies:
[Build]   main  raspberrypi-ui-mods : Depends: raspberrypi-sys-mods but it is not going to be installed
[Build]   main E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
[Build]   Built 1 service in 6:22
[Error]   Deploy failed

So I changed the dockerfile

diff --git a/Dockerfile.raspberrypi3 b/Dockerfile.raspberrypi3
index a36f08a..221c020 100644
--- a/Dockerfile.raspberrypi3
+++ b/Dockerfile.raspberrypi3
@@ -6,7 +6,7 @@ COPY raspi.list /etc/apt/sources.list.d/raspi.list
 # Install desktop environment
 RUN install_packages xserver-xorg \
     xinit lxsession desktop-file-utils \
-    raspberrypi-ui-mods rpd-icons \
+    rpd-icons \
     gtk2-engines-clearlookspix \
     matchbox-keyboard
 

This got it building and I was able to push to my OpenBalena instance. It downloads and runs but when I look at the container logs with balena logs xx I see

root@6fa8066:~# balena logs 07
Starting X in 2 seconds
hostname: No address associated with hostname
xauth:  file /root/.Xauthority does not exist
xauth: (stdin):1:  bad display name "6fa8066:0" in "add" command


X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
Current Operating System: Linux 6fa8066 4.14.98 #1 SMP Fri Mar 22 07:00:33 UTC 2019 armv7l
Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=PARTUUID=921093ea-02 rootwait
Build Date: 18 October 2017  04:55:30PM
xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support) 
Current version of pixman: 0.34.0
	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: Thu Apr 11 21:30:26 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

Any thoughts on what the problem is?

Thanks!

Alex

@ajlennon
Copy link
Author

I think that might have been a red herring. There's something in the X logs about a missing DLL.

Am wondering if I need more packages pulled in for raspi-config to enable GLX ?

[  1779.575] 
X.Org X Server 1.19.2
Release Date: 2017-03-02
[  1779.576] X Protocol Version 11, Revision 0
[  1779.576] Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
[  1779.576] Current Operating System: Linux 8be71b4 4.14.98 #1 SMP Fri Mar 22 07:00:33 UTC 2019 armv7l
[  1779.576] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=PARTUUID=921093ea-02 rootwait
[  1779.576] Build Date: 18 October 2017  04:55:30PM
[  1779.576] xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support) 
[  1779.576] Current version of pixman: 0.34.0
[  1779.576] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  1779.577] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1779.578] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Apr 12 12:51:20 2019
[  1779.579] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1779.580] (==) No Layout section.  Using the first Screen section.
[  1779.580] (==) No screen section available. Using defaults.
[  1779.580] (**) |-->Screen "Default Screen Section" (0)
[  1779.580] (**) |   |-->Monitor "<default monitor>"
[  1779.581] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[  1779.581] (==) Automatically adding devices
[  1779.581] (==) Automatically enabling devices
[  1779.581] (==) Automatically adding GPU devices
[  1779.581] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1779.581] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[  1779.581] 	Entry deleted from font path.
[  1779.581] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  1779.581] 	Entry deleted from font path.
[  1779.581] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[  1779.581] 	Entry deleted from font path.
[  1779.581] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  1779.581] 	Entry deleted from font path.
[  1779.581] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[  1779.581] 	Entry deleted from font path.
[  1779.581] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[  1779.581] 	Entry deleted from font path.
[  1779.581] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[  1779.581] 	Entry deleted from font path.
[  1779.581] (==) FontPath set to:
	built-ins
[  1779.582] (==) ModulePath set to "/usr/lib/xorg/modules"
[  1779.582] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[  1779.582] (II) Loader magic: 0x1fbf40
[  1779.582] (II) Module ABI versions:
[  1779.582] 	X.Org ANSI C Emulation: 0.4
[  1779.582] 	X.Org Video Driver: 23.0
[  1779.582] 	X.Org XInput driver : 24.1
[  1779.582] 	X.Org Server Extension : 10.0
[  1779.584] (--) using VT number 2

[  1779.584] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[  1779.585] (II) no primary bus or device found
[  1779.585] (II) LoadModule: "glx"
[  1779.587] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1779.594] (II) Module glx: vendor="X.Org Foundation"
[  1779.594] 	compiled for 1.19.2, module version = 1.0.0
[  1779.594] 	ABI class: X.Org Server Extension, version 10.0
[  1779.594] (==) Matched modesetting as autoconfigured driver 0
[  1779.594] (==) Matched fbdev as autoconfigured driver 1
[  1779.594] (==) Assigned the driver to the xf86ConfigLayout
[  1779.594] (II) LoadModule: "modesetting"
[  1779.595] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  1779.595] (II) Module modesetting: vendor="X.Org Foundation"
[  1779.595] 	compiled for 1.19.2, module version = 1.19.2
[  1779.595] 	Module class: X.Org Video Driver
[  1779.595] 	ABI class: X.Org Video Driver, version 23.0
[  1779.595] (II) LoadModule: "fbdev"
[  1779.596] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[  1779.596] (II) Module fbdev: vendor="X.Org Foundation"
[  1779.596] 	compiled for 1.19.0, module version = 0.4.4
[  1779.596] 	Module class: X.Org Video Driver
[  1779.596] 	ABI class: X.Org Video Driver, version 23.0
[  1779.596] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1779.596] (II) FBDEV: driver for framebuffer: fbdev
[  1779.605] (WW) Falling back to old probe method for modesetting
[  1779.605] (EE) open /dev/dri/card0: No such file or directory
[  1779.605] (WW) Falling back to old probe method for fbdev
[  1779.605] (II) Loading sub module "fbdevhw"
[  1779.605] (II) LoadModule: "fbdevhw"
[  1779.607] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[  1779.607] (II) Module fbdevhw: vendor="X.Org Foundation"
[  1779.607] 	compiled for 1.19.2, module version = 0.0.2
[  1779.607] 	ABI class: X.Org Video Driver, version 23.0
[  1779.608] (II) FBDEV(0): using default device
[  1779.608] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1779.608] (II) FBDEV(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 16/16
[  1779.608] (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16
[  1779.608] (==) FBDEV(0): RGB weight 565
[  1779.608] (==) FBDEV(0): Default visual is TrueColor
[  1779.608] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[  1779.608] (II) FBDEV(0): hardware: BCM2708 FB (video memory: 3505kB)
[  1779.608] (II) FBDEV(0): checking modes against framebuffer device...
[  1779.608] (II) FBDEV(0): checking modes against monitor...
[  1779.608] (--) FBDEV(0): Virtual size is 1824x984 (pitch 1824)
[  1779.608] (**) FBDEV(0):  Built-in mode "current"
[  1779.608] (==) FBDEV(0): DPI set to (96, 96)
[  1779.608] (II) Loading sub module "fb"
[  1779.608] (II) LoadModule: "fb"
[  1779.609] (II) Loading /usr/lib/xorg/modules/libfb.so
[  1779.610] (II) Module fb: vendor="X.Org Foundation"
[  1779.610] 	compiled for 1.19.2, module version = 1.0.0
[  1779.610] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  1779.610] (**) FBDEV(0): using shadow framebuffer
[  1779.610] (II) Loading sub module "shadow"
[  1779.610] (II) LoadModule: "shadow"
[  1779.611] (II) Loading /usr/lib/xorg/modules/libshadow.so
[  1779.611] (II) Module shadow: vendor="X.Org Foundation"
[  1779.611] 	compiled for 1.19.2, module version = 1.1.0
[  1779.611] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  1779.611] (II) UnloadModule: "modesetting"
[  1779.611] (II) Unloading modesetting
[  1779.612] (==) FBDEV(0): Backing store enabled
[  1779.613] (==) FBDEV(0): DPMS enabled
[  1779.613] (==) RandR enabled
[  1779.634] (II) SELinux: Disabled on system
[  1779.637] (II) AIGLX: Screen 0 is not DRI2 capable
[  1779.637] (EE) AIGLX: reverting to software rendering
[  1779.637] (EE) AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[  1779.637] (EE) GLX: could not load software renderer
[  1779.637] (II) GLX: no usable GL providers found for screen 0
[  1779.760] (II) config/udev: Adding input device Cherry GmbH SmartBoard XX44 (/dev/input/event0)
[  1779.760] (**) Cherry GmbH SmartBoard XX44: Applying InputClass "libinput keyboard catchall"
[  1779.760] (II) LoadModule: "libinput"
[  1779.761] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[  1779.768] (II) Module libinput: vendor="X.Org Foundation"
[  1779.768] 	compiled for 1.19.0, module version = 0.23.0
[  1779.768] 	Module class: X.Org XInput Driver
[  1779.768] 	ABI class: X.Org XInput driver, version 24.1
[  1779.768] (II) Using input driver 'libinput' for 'Cherry GmbH SmartBoard XX44'
[  1779.768] (**) Cherry GmbH SmartBoard XX44: always reports core events
[  1779.769] (**) Option "Device" "/dev/input/event0"
[  1779.769] (**) Option "_source" "server/udev"
[  1779.772] (II) input device 'Cherry GmbH SmartBoard XX44', /dev/input/event0 is tagged by udev as: Keyboard
[  1779.772] (II) input device 'Cherry GmbH SmartBoard XX44', /dev/input/event0 is a keyboard
[  1779.890] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:046A:0010.0001/input/input0/event0"
[  1779.890] (II) XINPUT: Adding extended input device "Cherry GmbH SmartBoard XX44" (type: KEYBOARD, id 6)
[  1779.890] (**) Option "xkb_model" "pc105"
[  1779.890] (**) Option "xkb_layout" "us"
[  1779.894] (II) input device 'Cherry GmbH SmartBoard XX44', /dev/input/event0 is tagged by udev as: Keyboard
[  1779.894] (II) input device 'Cherry GmbH SmartBoard XX44', /dev/input/event0 is a keyboard

@dansku
Copy link
Contributor

dansku commented Apr 19, 2019

Hey @ajlennon,
I can confirm that the local build for this isn't working as expected.
I am currently investigating and I will get back at you as soon as I have an update.

Cheers

@ajlennon
Copy link
Author

Thanks for looking at this @dansku !

@dansku
Copy link
Contributor

dansku commented Apr 19, 2019

@ajlennon I wasn't able to fix the Raspbian version of the project yet, but could you rename the Dockerfile.raspberrypi3 to something else so that the builder uses Dockerfile.template instead.
I tried here and it worked out of the box!

Please let me know how it goes.

@ajlennon
Copy link
Author

Brilliant - thanks @dansku - did that and it all burst into life here

balena dash

@dansku
Copy link
Contributor

dansku commented Apr 22, 2019

@ajlennon that is great to know!!

At some point, I will try fixing the Raspbian for openBalena.
But for now I would say the solution is to use XFCE.

Cheers

@dansku dansku closed this as completed Apr 22, 2019
@ajlennon
Copy link
Author

Will do!

@ajlennon
Copy link
Author

Beautiful - this is just want I want for a Balena backed Dashboard starting point. Thanks again!!

balena dash 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants