Closed Chapapa1 closed 2 years ago
Not having this issue. Investigating.
Same problem here. Stoped and started the docker container and now I am getting this error as well. It shall also run on my nas so the display error is kind of strange
@MMM-Jasmin i noticed that Xvfb is not installed in the docker. so i just installed it and then took the steps i posted above.
@Chapapa1 That would be extremely weird, as these lines are in the Dockerfile. Did you update while not removing older images of this docker?
RUN apt install -y xserver-xorg \
xvfb
it seems your host is not stopping the (dummy) display service on container restart. If you stop the docker container, is an x process still running on the host? Or, are you using xvfb in another container as well?
@TrueOsiris i use an lxc template with 22.04 Docker and Portainer on it. Nothing else. So i did not really update but started fresh everytime using the :latest parameter.
Yeah i figured that there must be an x process running in the docker, however there was none. That is when i noticed xvfb is not installed in this docker. i installed xfvb and used the steps i posted earlier to get it running again.
How did you install xfvb in the docker, if I may ask? dpkg?
here is the cmd i used:
Edit did not work on my previous post, so i make a new one:
i made a new lxc container to go trough the steps again, here is what happens:
Next i will restart and post logs etc.
Sorry for reposting, but i cannot edit and add new logs... weird..
Anyways,
Now the interesting part:
Edit: So it seems rebooting the lxc works, but restarting the vrisingdocker does not work. I set my restart-policy to "unless-stopped", now after a lxc reboot the vrising docker automatically starts and i can connect.
If you remove the lock after stoping the docker (/tmp/.X0-lock) it will start again. So I did a find / -iname ".X0-lock" and delete the locks. Then i can start it again and connect
ahh, i did not find it in /tmp/.. with the find cmd i was able to find it aswell:
just crawled through my image build log
Step 10/14 : RUN apt install -y xserver-xorg xvfb
---> Running in 51d149578c6c
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
apport apport-symptoms keyboard-configuration libegl-mesa0 libegl1 libepoxy0
libevdev2 libfontenc1 libice6 libinput-bin libinput10 libmtdev1 libsm6
libwacom-bin libwacom-common libwacom9 libxatracker2 libxaw7 libxcb-util1
libxcvt0 libxfont2 libxkbfile1 libxmu6 libxmuu1 libxt6 libxtst6 libxvmc1
python3-apport python3-problem-report python3-systemd python3-yaml udev
x11-xkb-utils xauth xcvt xfonts-base xfonts-encodings xfonts-utils
xserver-common xserver-xorg-core xserver-xorg-input-all
xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-legacy
xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati
xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau
xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa
xserver-xorg-video-vmware
Suggested packages:
apport-gtk | apport-kde xfonts-100dpi | xfonts-75dpi xfonts-scalable xinput
firmware-amd-graphics xserver-xorg-video-r128 xserver-xorg-video-mach64
firmware-misc-nonfree
The following NEW packages will be installed:
apport apport-symptoms keyboard-configuration libegl-mesa0 libegl1 libepoxy0
libevdev2 libfontenc1 libice6 libinput-bin libinput10 libmtdev1 libsm6
libwacom-bin libwacom-common libwacom9 libxatracker2 libxaw7 libxcb-util1
libxcvt0 libxfont2 libxkbfile1 libxmu6 libxmuu1 libxt6 libxtst6 libxvmc1
python3-apport python3-problem-report python3-systemd python3-yaml udev
x11-xkb-utils xauth xcvt xfonts-base xfonts-encodings xfonts-utils
xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-legacy
xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati
xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau
xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa
xserver-xorg-video-vmware xvfb
0 upgraded, 56 newly installed, 0 to remove and 0 not upgraded.
Unpacking xserver-xorg-video-qxl (0.1.5+git20200331-3) ...
Selecting previously unselected package xvfb.
Preparing to unpack .../54-xvfb_2%3a21.1.3-2ubuntu2_amd64.deb ...
Unpacking xvfb (2:21.1.3-2ubuntu2) ...
Selecting previously unselected package xserver-xorg-legacy.
Preparing to unpack .../55-xserver-xorg-legacy_2%3a21.1.3-2ubuntu2_amd64.deb ...
Setting up xvfb (2:21.1.3-2ubuntu2) ...
All without errors. xvfb is definately in the image. I'm kinda clueless why it wouldn't be in your build. My only guess is lxc is retaining a cached version of the sub-images while it did pull a newer version of start.sh.
Hello,
after a restart of the docker, this is what i get and i cant get it to run now:
The issue is, there is no /tmp/.X0-lock
Additional Info:
inxi:
ps -f $(cat /tmp/.X0-lock)
--> is empty
Edit:
So i got it working again, however this is only temporary:
If i now restart the computer, i have to do these steps manually again.