linuxserver / docker-baseimage-guacgui

GNU General Public License v3.0
99 stars 52 forks source link

Errors when building a docker container on this base - Unable to find an X Display #15

Closed xthursdayx closed 5 years ago

xthursdayx commented 5 years ago

I'm having trouble creating a docker container using this baseimage. The docker container builds fine, but then will not start. I've copied the container log below. Any ideas what I'm doing wrong, or what I should change to get this container to run? Thanks.

ErrorWarningSystemArrayLogin

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 911
User gid: 911
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 11-moduser: executing...
[cont-init.d] 11-moduser: exited 0.
[cont-init.d] 12-prep_xrdp: executing...
[cont-init.d] 12-prep_xrdp: exited 0.
[cont-init.d] 13-update_app_name: executing...
[cont-init.d] 13-update_app_name: exited 0.
[cont-init.d] 14-configure_openbox: executing...
[cont-init.d] 14-configure_openbox: exited 0.
[cont-init.d] 30-update_webapp_context: executing...
[cont-init.d] 30-update_webapp_context: exited 0.
[cont-init.d] 35-update_guac_creds: executing...
[cont-init.d] 35-update_guac_creds: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom scripts found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Unable to find an X display. Ensure you have permission to connect to the display.
Unable to find an X display. Ensure you have permission to connect to the display.
Unable to find an X display. Ensure you have permission to connect to the display.
Unable to find an X display. Ensure you have permission to connect to the display.

X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-138-generic x86_64 Ubuntu
Current Operating System: Linux b0e5c0ee74cc 4.19.41-Unraid #1 SMP Wed May 8 14:23:25 PDT 2019 x86_64
Kernel command line: BOOT_IMAGE=/bzimage initrd=/bzroot
Build Date: 25 October 2018 04:11:27PM
xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/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.pid-369.log", Time: Fri May 17 14:10:22 2019
guacd[372]: INFO: Guacamole proxy daemon (guacd) version 0.9.14 started
guacd[372]: INFO: Listening on host 127.0.0.1, port 4822
(++) Using config file: "/etc/X11/xrdp/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xorgxrdpSetup:
xrdpdevSetup:
rdpmousePlug:
rdpkeybPlug:
rdpIdentify:
rdpDriverFunc: op 10

:
rdpPreInit:
rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
rdpScreenInit: pfbMemory bytes 1920000
rdpScreenInit: pfbMemory 0x152f84c25010
rdpSimdInit: assigning yuv functions
rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000406d8 bx 0x0a100800 cx 0x43d8e3bf dx 0xbfebfbff
rdpSimdInit: sse2 amd64 yuv functions assigned
rdpXvInit: depth 24
rdpClientConInit: kill disconnected [0] timeout [0] sec

rdpScreenInit: out
s6-svwait: fatal: timed out
s6-svwait: fatal: timed out
s6-svwait: fatal: timed out
s6-svwait: fatal: timed out
s6-svwait: fatal: timed out
rdpmousePreInit: drv 0x55984318de10 info 0x559843309450, flags 0x0
rdpmouseControl: what 0
rdpmouseDeviceInit:
rdpmouseCtrl:
rdpRegisterInputCallback: type 1 proc 0x152f84ffec60
rdpmouseControl: what 1
rdpmouseDeviceOn:
rdpkeybPreInit: drv 0x55984318ca20 info 0x55984347a070, flags 0x0
rdpkeybControl: what 0
rdpkeybDeviceInit:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpRegisterInputCallback: type 0 proc 0x152f84dfb530
rdpkeybControl: what 1
rdpkeybDeviceOn:
rdpSaveScreen:
rdpDeferredRandR:
rdpResizeSession: width 1024 height 768
calling RRScreenSizeSet
rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
rdpRRGetInfo:
screen resized to 1024x768
RRScreenSizeSet ok 1
rdpInDeferredUpdateCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
Warning: Cannot convert string "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-courier-medium-r-normal--*-120-*-*-*-*-iso8859-1" to type FontStruct
s6-svwait: fatal: timed out
s6-svwait: fatal: timed out
rdpRRGetInfo:
Obt-Message: Xinerama extension is not present on the server
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"
/usr/bin/env: 'python': No such file or directory
s6-svwait: fatal: timed out
s6-svwait: fatal: timed out
s6-svwait: fatal: timed out
aptalca commented 5 years ago

that log is not helpful without your dockerfile and other code for your image

See here for an example: https://github.com/linuxserver/docker-calibre/tree/initial

xthursdayx commented 5 years ago

Here is my dockerfile: https://github.com/xthursdayx/docker-gpodder/blob/master/Dockerfile

There is not any other relevant code.

aptalca commented 5 years ago

That dockerfile is way outdated. This is a whole new repo and a baseimage. See here for an example: https://github.com/linuxserver/docker-baseimage-guacgui/tree/master/example

or the calibre one we just published: https://github.com/linuxserver/docker-calibre

xthursdayx commented 5 years ago

Thanks for the examples @aptalca

I updated my Dockerfile and secondary code to bring them in line with the two examples you shared (e.g. adding a services.d run file instead of using a startapp.sh script). You can see my updated Dockerfile here: https://github.com/xthursdayx/docker-gpodder

However I'm still receiving this error log:


ErrorWarningSystemArrayLogin

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 911
User gid: 911
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 11-moduser: executing...
[cont-init.d] 11-moduser: exited 0.
[cont-init.d] 12-prep_xrdp: executing...
[cont-init.d] 12-prep_xrdp: exited 0.
[cont-init.d] 13-update_app_name: executing...
[cont-init.d] 13-update_app_name: exited 0.
[cont-init.d] 14-configure_openbox: executing...
[cont-init.d] 14-configure_openbox: exited 0.
[cont-init.d] 30-update_webapp_context: executing...
[cont-init.d] 30-update_webapp_context: exited 0.
[cont-init.d] 35-update_guac_creds: executing...
[cont-init.d] 35-update_guac_creds: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom scripts found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Unable to find an X display. Ensure you have permission to connect to the display.
Unable to find an X display. Ensure you have permission to connect to the display.

X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-138-generic x86_64 Ubuntu
Current Operating System: Linux d8213f58f326 4.19.41-Unraid #1 SMP Wed May 8 14:23:25 PDT 2019 x86_64
Kernel command line: BOOT_IMAGE=/bzimage initrd=/bzroot
Build Date: 25 October 2018 04:11:27PM
xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/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.pid-386.log", Time: Thu May 23 13:20:21 2019
(++) Using config file: "/etc/X11/xrdp/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
guacd[382]: INFO: Guacamole proxy daemon (guacd) version 0.9.14 started
guacd[382]: INFO: Listening on host 127.0.0.1, port 4822
xorgxrdpSetup:
xrdpdevSetup:
rdpmousePlug:
rdpkeybPlug:
rdpIdentify:
rdpDriverFunc: op 10

:
rdpPreInit:
rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
rdpScreenInit: pfbMemory bytes 1920000
rdpScreenInit: pfbMemory 0x1535af21a010
rdpSimdInit: assigning yuv functions
rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000406d8 bx 0x0c100800 cx 0x43d8e3bf dx 0xbfebfbff
rdpSimdInit: sse2 amd64 yuv functions assigned
rdpXvInit: depth 24
rdpClientConInit: kill disconnected [0] timeout [0] sec

rdpScreenInit: out
guacd[382]: INFO: Guacamole connection closed during handshake
rdpmousePreInit: drv 0x55d12599ae10 info 0x55d125b16450, flags 0x0
rdpmouseControl: what 0
rdpmouseDeviceInit:
rdpmouseCtrl:
rdpRegisterInputCallback: type 1 proc 0x1535af5f3c60
rdpmouseControl: what 1
rdpmouseDeviceOn:
rdpkeybPreInit: drv 0x55d125999a20 info 0x55d125c87070, flags 0x0
rdpkeybControl: what 0
rdpkeybDeviceInit:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpRegisterInputCallback: type 0 proc 0x1535af3f0530
rdpkeybControl: what 1
rdpkeybDeviceOn:
rdpSaveScreen:
rdpDeferredRandR:
rdpResizeSession: width 1024 height 768
calling RRScreenSizeSet
rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
rdpRRGetInfo:
screen resized to 1024x768
RRScreenSizeSet ok 1
rdpInDeferredUpdateCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
Warning: Cannot convert string "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-courier-medium-r-normal--*-120-*-*-*-*-iso8859-1" to type FontStruct
s6-svwait: fatal: timed out
s6-svwait: fatal: timed out
rdpRRGetInfo:
Obt-Message: Xinerama extension is not present on the server
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"
/usr/bin/env: 'python': No such file or directory
s6-svwait: fatal: timed out
StudioEtrange commented 5 years ago

Same error here, in same situation, with same dockerfile.

thelamer commented 5 years ago

That error message is pretty verbose /usr/bin/env: 'python': No such file or directory, install python in your image...

StudioEtrange commented 5 years ago

Sure, python is missing and other stuff I think To avoid other problems I just retry the single sample from here, which should work as is, I think ?

https://github.com/linuxserver/docker-baseimage-guacgui/blob/master/example/Dockerfile

adding python, adding python-xdg and still have errors

shared memfd open() failed: Function not implemented
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

Dockerfile built with docker build . -t test

Container launch from a remote SSH connexion with docker run -it --name="test" -e HEIGHT="720" -e WIDTH="1280" -e TZ="America/New_York" -p 11080:8080 -P test

thelamer commented 5 years ago

Now it is complaining about pulseaudio, we are not your development team here. In general this base image is provided as is. If you have a real bug report or feature request than file a new issue with specifics.

StudioEtrange commented 5 years ago

I just wanted to try the example provided in this projet, which do not work :) https://github.com/linuxserver/docker-baseimage-guacgui/blob/master/example/Dockerfile

I will go further trying to make this example work.