Getting Black screen when container image is created from dockerfile
shkpk opened this issue · 2 comments
I have used following dockerfile to create container image for core ubuntu
https://github.com/kasmtech/workspaces-core-images/blob/develop/dockerfile-kasm-core
Image created fine however after container is launched, I get only black screen in browser.
command used to create container image
docker build -t core-ubuntu -f dockerfile-kasm-core .
command used to create container
docker run -d --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password core-ubuntu:latest
When I check docker container log, I keep getting
------------------ Started Audio Out ----------------------------
Kasm Audio Out PID: 515
/dockerstartup/vnc_startup.sh: line 247: kill: (515) - No such process
Restarting Audio Out Service
Starting audio server
Starting audio service
------------------ Started Audio Out ----------------------------
Kasm Audio Out PID: 517
/dockerstartup/vnc_startup.sh: line 247: kill: (517) - No such process
Restarting Audio Out Service
Starting audio server
Starting audio service
I checked running processes in container and they seems to be less then when i create container using official docker image core-ubuntu-focal:develop
processes in container created from my image
default:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
default 1 0.0 0.0 7024 3524 pts/0 Ss+ 15:32 0:00 /bin/bash /dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --wait
default 61 0.1 2.3 1467540 93420 pts/0 Sl+ 15:32 0:00 /usr/bin/Xvnc :1 -auth /home/kasm-user/.Xauthority -depth 24 -desktop a167997a5a7f:1 (
default 70 0.0 0.9 556212 37644 pts/0 Sl+ 15:32 0:00 /dockerstartup/jsmpeg/kasm_audio_out-linux kasmaudio 8081 4901 /home/kasm-user/.vnc/se
default 73 0.0 0.0 5008 708 pts/0 S+ 15:32 0:00 /dockerstartup/audio_input/kasm_audio_input_server --ssl --auth-token kasm_user:passwo
default 74 0.0 0.0 5008 712 pts/0 S+ 15:32 0:00 /dockerstartup/upload_server/kasm_upload_server --ssl --auth-token kasm_user:password
default 75 0.0 0.0 7792 692 pts/0 S+ 15:32 0:00 tail -f /home/kasm-user/.vnc/a167997a5a7f:1.log
default 96 0.0 0.0 9192 2020 pts/0 S+ 15:32 0:00 dbus-launch --autolaunch 5cf8f72645d24587a19039e67e81459c --binary-syntax --close-stde
default 97 0.0 0.5 77272 23724 pts/0 S+ 15:32 0:00 /dockerstartup/audio_input/kasm_audio_input_server --ssl --auth-token kasm_user:passwo
default 98 0.1 0.9 88020 36956 pts/0 S+ 15:32 0:00 /dockerstartup/upload_server/kasm_upload_server --ssl --auth-token kasm_user:password
default 99 0.0 0.0 9024 2460 ? Ss 15:32 0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 6 --print-address 8 --session
default 130 0.0 0.0 9192 2004 pts/0 S+ 15:32 0:00 /usr/bin/dbus-launch --exit-with-session --sh-syntax
default 131 0.0 0.0 9024 2964 ? Ss 15:32 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 6 --print-address 8 --session
default 155 0.0 0.1 239200 7644 ? Sl 15:32 0:00 /usr/libexec/gvfsd
default 164 0.0 0.1 381928 7148 ? Sl 15:32 0:00 /usr/libexec/at-spi-bus-launcher
default 170 0.0 0.0 8892 3720 ? S 15:32 0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --no
default 605 1.5 0.1 7616 4268 pts/1 Ss 15:39 0:00 /bin/bash
default 627 0.0 0.0 7756 692 pts/0 S+ 15:39 0:00 sleep 3
default 628 0.0 0.0 10916 3240 pts/1 R+ 15:39 0:00 ps aux
processes in container created from core-ubuntu-focal:develop
default:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
default 1 0.0 0.0 7024 3480 pts/0 Ss+ 15:34 0:00 /bin/bash /dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --wait
default 60 0.2 3.3 1631508 134444 pts/0 Sl+ 15:34 0:01 /usr/bin/Xvnc :1 -auth /home/kasm-user/.Xauthority -depth 24 -desktop cdb08852f66e:1 (
default 69 0.0 1.9 442360 76872 pts/0 Sl+ 15:34 0:00 xfce4-session
default 70 0.7 0.9 556384 39600 pts/0 Sl+ 15:34 0:02 /dockerstartup/jsmpeg/kasm_audio_out-linux kasmaudio 8081 4901 /home/kasm-user/.vnc/se
default 91 1.9 0.3 542140 13044 ? Sl 15:34 0:06 pulseaudio --start
default 105 2.7 1.0 567876 40768 pts/0 SLl+ 15:34 0:09 ffmpeg -v verbose -f pulse -fragment_size 2000 -ar 44100 -i default -f mpegts -correct
default 106 0.0 0.0 5008 648 pts/0 S+ 15:34 0:00 /dockerstartup/audio_input/kasm_audio_input_server --ssl --auth-token kasm_user:passwo
default 107 0.0 0.0 5008 708 pts/0 S+ 15:34 0:00 /dockerstartup/upload_server/kasm_upload_server --ssl --auth-token kasm_user:password
default 108 0.0 0.0 7792 696 pts/0 S+ 15:34 0:00 tail -f /home/kasm-user/.vnc/cdb08852f66e:1.log
default 115 0.0 0.0 9192 1988 pts/0 S+ 15:34 0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session xfce4-session
default 116 0.0 0.0 9404 3584 ? Ss 15:34 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 6 --print-address 8 --session
default 119 0.0 0.5 77272 24048 pts/0 S+ 15:34 0:00 /dockerstartup/audio_input/kasm_audio_input_server --ssl --auth-token kasm_user:passwo
default 120 0.0 0.2 311840 9220 ? Sl 15:34 0:00 /usr/libexec/at-spi-bus-launcher
default 125 0.0 0.1 239200 7632 ? Sl 15:34 0:00 /usr/libexec/gvfsd
default 126 0.1 0.9 88020 36796 pts/0 S+ 15:34 0:00 /dockerstartup/upload_server/kasm_upload_server --ssl --auth-token kasm_user:password
default 134 0.0 0.0 9024 3920 ? S 15:34 0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --no
default 138 0.0 0.1 232308 6024 ? Sl 15:34 0:00 /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd
default 144 0.0 0.1 164936 7716 ? Sl 15:34 0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
default 150 0.0 0.0 6032 448 ? Ss 15:34 0:00 /usr/bin/ssh-agent -s
default 155 0.0 0.0 9596 292 ? Ss 15:34 0:00 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/kasm-user/.cache/gpg-agent-inf
default 156 0.0 0.9 239236 37200 pts/0 Sl+ 15:34 0:00 xfwm4
default 163 0.0 0.5 227504 21828 ? Ssl 15:34 0:00 xfsettingsd
default 164 0.0 0.8 274468 32252 pts/0 Sl+ 15:34 0:00 xfce4-panel
default 171 0.0 0.0 4888 1848 pts/0 S+ 15:34 0:00 /bin/sh /usr/bin/execThunar.sh
default 183 0.0 0.5 343968 23684 pts/0 Sl+ 15:34 0:00 /usr/bin/Thunar --daemon
default 188 0.0 0.5 195232 24132 pts/0 Sl+ 15:34 0:00 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/pane
default 189 0.2 2.4 431084 97704 pts/0 Sl+ 15:34 0:00 xfdesktop
default 195 0.0 1.0 469460 42632 pts/0 Sl+ 15:34 0:00 nm-applet
default 196 0.0 0.1 164232 6976 pts/0 Sl+ 15:34 0:00 xiccd
default 201 0.0 1.2 634748 50692 pts/0 Sl+ 15:34 0:00 /usr/libexec/evolution-data-server/evolution-alarm-notify
default 208 0.0 0.5 266580 22740 pts/0 Sl+ 15:34 0:00 light-locker
default 222 0.0 0.1 158228 5724 ? Sl 15:34 0:00 /usr/libexec/dconf-service
default 237 0.0 0.6 389872 25852 ? Sl 15:34 0:00 /usr/libexec/evolution-source-registry
default 243 0.0 0.8 548888 34828 ? Sl 15:34 0:00 /usr/libexec/goa-daemon
default 252 0.0 0.2 318028 11484 ? Sl 15:34 0:00 /usr/libexec/goa-identity-service
default 258 0.0 0.7 846404 31040 ? Sl 15:34 0:00 /usr/libexec/evolution-calendar-factory
default 269 0.0 0.7 820156 29380 ? Sl 15:34 0:00 /usr/libexec/evolution-addressbook-factory
default 278 0.0 0.1 161692 6356 ? Sl 15:34 0:00 /usr/libexec/gvfsd-metadata
default 292 0.0 0.1 238448 7164 ? Sl 15:34 0:00 /usr/libexec/gvfs-udisks2-volume-monitor
default 298 0.0 0.1 237444 6220 ? Sl 15:34 0:00 /usr/libexec/gvfs-gphoto2-volume-monitor
default 305 0.0 0.1 235380 6076 ? Sl 15:34 0:00 /usr/libexec/gvfs-goa-volume-monitor
default 310 0.0 0.1 316236 7620 ? Sl 15:34 0:00 /usr/libexec/gvfs-afc-volume-monitor
default 316 0.0 0.1 235168 5624 ? Sl 15:34 0:00 /usr/libexec/gvfs-mtp-volume-monitor
default 355 0.0 0.0 9192 1892 pts/0 S+ 15:34 0:00 /usr/bin/dbus-launch --exit-with-session --sh-syntax
default 356 0.0 0.0 9024 2400 ? Ss 15:34 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 6 --print-address 8 --session
default 592 0.0 0.0 7756 632 pts/0 S+ 15:40 0:00 sleep 3
default 593 1.0 0.1 7616 4260 pts/1 Ss 15:40 0:00 /bin/bash
default 615 0.0 0.0 10916 3240 pts/1 R+ 15:40 0:00 ps aux
Can someone help please?
If you look at our pipeline you will see that we pass additional build args. Specifically, for focal, XFCE needs to be started by the Kasm script as it does not start automatically. That is controlled with the build arg START_XFCE=1.
workspaces-core-images/.gitlab-ci.yml
Line 51 in d1a5326
Thanks, it worked.