drewsimon / resin-hosted-kiosk

5 stars 4 forks source link

Dosen't work with RPI 3 #1

Open Julien-404 opened 8 years ago

Julien-404 commented 8 years ago

At startup, the log return me en error : unable to connect to X server: Connection refused.

This is the log at application startup :

02.06.16 10:24:00 [+0200] Systemd init system enabled. 02.06.16 10:24:09 [+0200] Adding user pi to group video 02.06.16 10:24:09 [+0200] 02.06.16 10:24:09 [+0200] xinit: unable to run server "X": No such file or directory 02.06.16 10:24:09 [+0200] Use the -- option, or make sure that /usr/bin is in your path and 02.06.16 10:24:09 [+0200] that "X" is a program or a link to the right type of server 02.06.16 10:24:09 [+0200] for your display. Possible server names include: 02.06.16 10:24:09 [+0200] 02.06.16 10:24:09 [+0200] Xorg Common X server for most displays 02.06.16 10:24:09 [+0200] Xvfb Virtual frame buffer 02.06.16 10:24:09 [+0200] Xfake kdrive-based virtual frame buffer 02.06.16 10:24:09 [+0200] Xnest X server nested in a window on another X server 02.06.16 10:24:09 [+0200] Xephyr kdrive-based nested X server 02.06.16 10:24:09 [+0200] Xvnc X server accessed over VNC's RFB protocol 02.06.16 10:24:09 [+0200] Xdmx Distributed Multi-head X server 02.06.16 10:24:09 [+0200] 02.06.16 10:24:24 [+0200] xinit: giving up 02.06.16 10:24:24 [+0200] xinit: unable to connect to X server: Connection refused 02.06.16 10:24:24 [+0200] xinit: server error


Regards, Julien Dubi

knmurphy commented 8 years ago

Running into same issue. @IG-Julien you still being tripped up by this?

knmurphy commented 8 years ago

According to https://github.com/shaunmulligan/resin-epiphany-kiosk/issues/1#issuecomment-201945981 adding xserver-xorg to the installed package list, and things start working as expect. I still see errors in the resin.io logs for the device however it does indeed display the page. I can throw up a PR for this but would love it if someone with more experience confirmed this is a good solution.

These are the errors I got:

16.08.16 14:34:31 [-0700] Systemd init system enabled. 16.08.16 14:34:44 [-0700] Adding user pi to group video 16.08.16 14:34:45 [-0700] 16.08.16 14:34:45 [-0700] 16.08.16 14:34:45 [-0700] X.Org X Server 1.17.2 16.08.16 14:34:45 [-0700] Release Date: 2015-06-16 16.08.16 14:34:45 [-0700] X Protocol Version 11, Revision 0 16.08.16 14:34:45 [-0700] Build Operating System: Linux 3.8.11-2-ARCH armv7l Raspbian 16.08.16 14:34:45 [-0700] Current Operating System: Linux raspberrypi3-f46a30f 4.1.21 #1 SMP Fri Jul 29 13:29:50 UTC 2016 armv7l 16.08.16 14:34:45 [-0700] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1184 bcm2708_fb.fbheight=624 bcm2709.boardrev=0xa22082 bcm2709.serial=0xfdce8f6d smsc95xx.macaddr=B8:27:EB:CE:8F:6D bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3ea00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=null root=/dev/mmcblk0p2 rootfstype=ext4 rootwait 16.08.16 14:34:45 [-0700] Build Date: 11 January 2016 01:32:44PM 16.08.16 14:34:45 [-0700] xorg-server 2:1.17.2-1+rpi1 (http://www.debian.org/support) 16.08.16 14:34:45 [-0700] Current version of pixman: 0.33.3 16.08.16 14:34:45 [-0700] Before reporting problems, check http://wiki.x.org 16.08.16 14:34:45 [-0700] to make sure that you have the latest version. 16.08.16 14:34:45 [-0700] Markers: (--) probed, (**) from config file, (==) default setting, 16.08.16 14:34:45 -0700 from command line, (!!) notice, (II) informational, 16.08.16 14:34:45 -0700 warning, (EE) error, (NI) not implemented, (??) unknown. 16.08.16 14:34:45 -0700 Log file: "/var/log/Xorg.0.log", Time: Tue Aug 16 21:34:45 2016 16.08.16 14:34:45 -0700 Using system config directory "/usr/share/X11/xorg.conf.d" 16.08.16 14:34:46 [-0700] /usr/bin/chromium-browser: line 138: lsb_release: command not found 16.08.16 14:34:46 [-0700] /usr/bin/chromium-browser: line 139: lsb_release: command not found 16.08.16 14:34:47 [-0700] wm_set_cursor_visibility: hidden using XCreatePixmapCursor 16.08.16 14:34:59 [-0700] [187:187:0816/213459:ERROR:browser_main_loop.cc(189)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. 16.08.16 14:35:33 [-0700] [199:199:0816/213533:ERROR:image_metadata_extractor.cc(111)] Couldn't load libexif. 16.08.16 14:35:43 [-0700] [240:240:0816/213543:ERROR:renderer_main.cc(200)] Running without renderer sandbox 16.08.16 14:35:43 [-0700] [245:245:0816/213543:ERROR:renderer_main.cc(200)] Running without renderer sandbox 16.08.16 14:35:43 [-0700] [250:250:0816/213543:ERROR:renderer_main.cc(200)] Running without renderer sandbox 16.08.16 14:35:43 [-0700] [248:248:0816/213543:ERROR:renderer_main.cc(200)] Running without renderer sandbox 16.08.16 14:35:46 [-0700] [218:218:0816/213546:ERROR:gl_surface_glx.cc(343)] glxQueryVersion failed 16.08.16 14:35:46 [-0700] [218:218:0816/213546:ERROR:gl_surface_x11.cc(56)] GLSurfaceGLX::InitializeOneOff failed. 16.08.16 14:35:46 [-0700] [218:218:0816/213546:ERROR:gpu_child_thread.cc(227)] Exiting GPU process due to errors during initialization 16.08.16 14:35:46 [-0700] [187:211:0816/213546:ERROR:browser_gpu_channel_host_factory.cc(121)] Failed to launch GPU process. 16.08.16 14:35:49 [-0700] [272:272:0816/213549:ERROR:image_metadata_extractor.cc(111)] Couldn't load libexif. 16.08.16 14:35:50 [-0700] [292:292:0816/213550:ERROR:renderer_main.cc(200)] Running without renderer sandbox 16.08.16 14:36:07 [-0700] [187:211:0816/213607:ERROR:channel.cc(307)] RawChannel read error (connection broken)