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

Not working when I build myself. [Dependency issues | snap | Ubuntu server] #375

Closed
iamneo2416 opened this issue Jul 27, 2021 · 15 comments
Closed
Labels

Comments

@iamneo2416
Copy link

I use ubuntu20.04LTS server (console based system) as a host and download x11docker/mate image. When I run it by command "x11docker --desktop x11docker/mate" in console, I got following error. I install all suggested package from following error, and re-run many times without luck. Did my process go wrong anywhere or did I miss something? Please help with this.

X11 connection rejected because of wrong authentication.
Failed to connect to bus: Operation not permitted

x11docker ERROR: Did not find a possibility to provide a display.
Recommendations:
To run within an already running X server, install one or all of:
Xephyr xpra nxagent
To run with GPU acceleration, install:
weston and Xwayland, optionally also: xpra and xdotool
To run from TTY or within Wayland, install:
weston and Xwayland
You can look for the package name of this command at:
https://github.com/mviereck/x11docker/wiki/dependencies#table-of-all-packages

Type 'x11docker --help' for usage information
Debug options: '--verbose' (full log) or '--debug' (log excerpt).
Logfile will be: /home/tommy/.cache/x11docker/x11docker.log
Please report issues at https://github.com/mviereck/x11docker

@mviereck
Copy link
Owner

Do you have a monitor connected to the server?
If yes, x11docker should start with Weston and Xwayland automatically.
Please try:

x11docker --desktop --weston-xwayland x11docker/mate

A debug output would help me to analyze the problem.
Please show me the output of:

x11docker --debug --desktop x11docker/mate

@iamneo2416
Copy link
Author

root@padoramini:/home/tommy# x11docker --debug --desktop x11docker/mate
DEBUGNOTE[00:34:27,913]: check_host(): ps can watch root processes: yes
DEBUGNOTE[00:34:27,954]: host user: tommy 1000:1000 /home/tommy
DEBUGNOTE[00:34:28,165]: storeinfo(): cache=/home/tommy/.cache/x11docker/x11docker-mate-32467808805
DEBUGNOTE[00:34:28,176]: storeinfo(): stdout=/home/tommy/.cache/x11docker/x11docker-mate-32467808805/share/stdout
DEBUGNOTE[00:34:28,188]: storeinfo(): stderr=/home/tommy/.cache/x11docker/x11docker-mate-32467808805/share/stderr
X11 connection rejected because of wrong authentication.
Failed to connect to bus: Operation not permitted
DEBUGNOTE[00:34:28,233]: storeinfo(): x11dockerpid=12466
DEBUGNOTE[00:34:28,291]:
x11docker version: 6.9.1-beta-5
Backend version: Docker version 20.10.7, build f0df350
Host system: "Ubuntu 20.04.1 LTS"
Host architecture: amd64 (x86_64)
Command: '/usr/local/bin/x11docker' '--debug' '--desktop' 'x11docker/mate'
Parsed options: --debug --desktop -- 'x11docker/mate'
DEBUGNOTE[00:34:28,299]: --xephyr: xinit not found.
DEBUGNOTE[00:34:28,306]: Dependency check for --xephyr: 1
DEBUGNOTE[00:34:28,316]: --weston-xwayland: xinit not found.
DEBUGNOTE[00:34:28,324]: Dependency check for --weston-xwayland: 1
DEBUGNOTE[00:34:28,332]: --kwin-xwayland: xinit not found.
DEBUGNOTE[00:34:28,339]: --kwin-xwayland: kwin_wayland not found.
You can look for the package name of this command at:
https://github.com/mviereck/x11docker/wiki/dependencies#table-of-all-packages
DEBUGNOTE[00:34:28,346]: Dependency check for --kwin-xwayland: 1
DEBUGNOTE[00:34:28,354]: --xephyr: xinit not found.
DEBUGNOTE[00:34:28,361]: Dependency check for --xephyr: 1
DEBUGNOTE[00:34:28,369]: --kwin-xwayland: xinit not found.
DEBUGNOTE[00:34:28,376]: --kwin-xwayland: kwin_wayland not found.
You can look for the package name of this command at:
https://github.com/mviereck/x11docker/wiki/dependencies#table-of-all-packages
DEBUGNOTE[00:34:28,383]: Dependency check for --kwin-xwayland: 1
DEBUGNOTE[00:34:28,390]: Dependency check for --hostdisplay: 0
DEBUGNOTE[00:34:28,397]: --runx: runx is available on MS Windows only.
DEBUGNOTE[00:34:28,405]: --runx: runx not found.
Need runx from https://github.com/mviereck/runx
DEBUGNOTE[00:34:28,413]: Dependency check for --runx: 1
DEBUGNOTE[00:34:28,421]: --xwin: XWin is available in Cygwin on MS Windows only.
DEBUGNOTE[00:34:28,428]: Dependency check for --xwin: 1
DEBUGNOTE[00:34:28,436]: --nxagent: xinit not found.
DEBUGNOTE[00:34:28,444]: Dependency check for --nxagent: 1
DEBUGNOTE[00:34:28,451]: --weston-xwayland: xinit not found.
DEBUGNOTE[00:34:28,458]: Dependency check for --weston-xwayland: 1
DEBUGNOTE[00:34:28,467]: --xpra: xinit not found.
DEBUGNOTE[00:34:28,474]: Dependency check for --xpra: 1
DEBUGNOTE[00:34:28,481]: --xephyr: xinit not found.
DEBUGNOTE[00:34:28,489]: Dependency check for --xephyr: 1
DEBUGNOTE[00:34:28,496]: --xorg: xinit not found.
DEBUGNOTE[00:34:28,503]: Dependency check for --xorg: 1

x11docker ERROR: Did not find a possibility to provide a display.
Recommendations:
To run within an already running X server, install one or all of:
Xephyr xpra nxagent
To run with GPU acceleration, install:
weston and Xwayland, optionally also: xpra and xdotool
To run from TTY or within Wayland, install:
weston and Xwayland
You can look for the package name of this command at:
https://github.com/mviereck/x11docker/wiki/dependencies#table-of-all-packages

Type 'x11docker --help' for usage information
Debug options: '--verbose' (full log) or '--debug' (log excerpt).
Logfile will be: /home/tommy/.cache/x11docker/x11docker.log
Please report issues at https://github.com/mviereck/x11docker

DEBUGNOTE[00:34:28,515]: time to say goodbye (error)
DEBUGNOTE[00:34:28,523]: traperror: Command at Line 472 returned with error code 1:
[ -e "$Timetosaygoodbyefifo" ]
2824 - ::error::check_xserver::main::main
DEBUGNOTE[00:34:28,530]: storeinfo(): error=64
DEBUGNOTE[00:34:28,541]: time to say goodbye (traperror)
DEBUGNOTE[00:34:28,551]: storeinfo(): error=64
DEBUGNOTE[00:34:28,567]: Terminating x11docker.
DEBUGNOTE[00:34:28,574]: time to say goodbye (finish)
DEBUGNOTE[00:34:28,581]: traperror: Command at Line 551 returned with error code 1:
[ -e "$Timetosaygoodbyefifo" ]
479 - ::finish::error::check_xserver::main::main
DEBUGNOTE[00:34:28,588]: storeinfo(): error=64
DEBUGNOTE[00:34:28,603]: time to say goodbye (traperror)
DEBUGNOTE[00:34:28,622]: x11docker exit code: 64

image

@iamneo2416
Copy link
Author

iamneo2416 commented Jul 28, 2021

by the way my environment is as below. my target os is virtualbox os image.

OS: windows10
SW:

  1. window version Virtualbox (6.1.2 r135662 (Qt5.6.2)) ==> install ubuntu20.04LTS server image. inside image, install docker engine and pull x11docker/mate
  2. use MobaXterm which can generate display XWindow in windows10 environment automatically.
  3. install all error suggested software xephyr, xpra, nxagent, weston, xwayland, and xdotool on ubuntu20.04LTS server

You can try a clean ubuntu20.04LTS one, you will find it not working as described. If I use win10 virtualbox to install ubuntu20.04 desktop version and run it. AND, use mobaxterm to login and run xterm or xclock, it will shows up xterm, xclock XWindow successfully inside win10 environment !!

@iamneo2416
Copy link
Author

iamneo2416 commented Jul 28, 2021

image
image
image
image

@mviereck
Copy link
Owner

Thank you for the detailed information.
The debug output shows that x11docker misses xinit. Please install xinit and try again.
x11docker should have shown in the regular output that it misses xinit, but it did not. I'll check that.

@iamneo2416
Copy link
Author

iamneo2416 commented Jul 28, 2021

x11docker ERROR: dockerrc(): Did not receive PID of PID1 in container.
Maybe the container immediately stopped for unknown reasons.
Just in case, check if host and image architecture are compatible:
Host architecture: amd64 (x86_64), image architecture: .
Output of "docker ps | grep x11docker":

Content of container log:
WARNING: No swap limit support

Type 'x11docker --help' for usage information
Debug options: '--verbose' (full log) or '--debug' (log excerpt).
Logfile will be: /home/tommy/.cache/x11docker/x11docker.log
Please report issues at https://github.com/mviereck/x11docker

dbus[14]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/tmp" is owned by uid 0, not our uid 1000
dbus[14]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry

dbus[14]: Failed to start message bus: Memory allocation failure in message bus
EOF in dbus-launch reading address from bus daemon

It shows up an empty XWindow , error occur and stop! XWindow closed.

image

@mviereck
Copy link
Owner

I see two possible reasons for the issue:

  • Issues with mobaxterm. x11docker is not tested with mobaxterm. Please try to run without it.
  • A complain about XDG_RUNTIME_DIR:

XDG_RUNTIME_DIR "/tmp" is owned by uid 0, not our uid 1000

Please try x11docker --weston-xwayland x11docker/mate mate-terminal to run a single application only that should not depend on XDG_RUNTIME_DIR.

@iamneo2416
Copy link
Author

You should try yourself !! Not working ....

Use Win10
(1) download and install Virtualbox and select ubuntu server 64-bit
(2) download and install ubuntu20.04LTS server
(3) install those package you suggested on your github and run.

You will see a lot of problem you never see and documented before. All you document on your github is not working even I follow exactly steps you provided.

(1) close mobaxterm (do not use it)
(2) login to ubuntu directly via virtualbox vm login console >>>

image

(3) run command from console directly >>
image

(4) see vm console turn into xwindow mode, but seems to has problems still. Failed again !

image

image

@mviereck
Copy link
Owner

mviereck commented Aug 1, 2021

I've tried Ubuntu server 18.04 in VirtualBox on Linux andI found there was a python issue.
It does not provide a python command but python3 only. x11docker also had a check failure for python. This is fixed now.
Please update with x11docker --update-master and try again.

(Also there will be a message if xinit is missing.)

@mviereck mviereck transferred this issue from mviereck/dockerfile-x11docker-mate Aug 1, 2021
@mviereck mviereck added the bug label Aug 1, 2021
@mviereck
Copy link
Owner

mviereck commented Aug 1, 2021

@iamneo2416 I've transferred the ticket to x11docker.

@eine
Copy link
Contributor

eine commented Aug 1, 2021

You should try yourself !! Not working ....

@iamneo2416 please be respectful. You are demanding that a single person spends his time and effort for free on solving a problem for you to use a non open-source tool maintained and sold by a company for profit, which is to be tested on a non-free operating system (which @mviereck does not use). I beg to strongly disagree with you. @mviereck should not try anything himself. He should not spend a single minute on supporting mobaxterm. He can do it if he feels like and he has fun while doing so. Conversely, you should try any of the following:

  • Fix it yourself.
  • Demand mobaxterm maintainers/developers that spend time on looking into compatibility issues (as long as you are paying for the product).
  • Hire someone else for fixing the problem for you.
  • Be very patient and as friendly and helpful as possible with @mviereck, including trying yourself whatever you might have expected him to do.

@mviereck mviereck changed the title Not working when I build myself. Not working when I build myself. [Dependency issues] Aug 2, 2021
@iamneo2416
Copy link
Author

@mviereck I am sorry. It is still not working ....

(1) use x11docker --update-master
image

(2) use x11docker --weston-xwayland x11docker/mate mate-terminal
image

(3) core dump as follow
x11docker.log

I am sorry. I need to give up this, since I just want to tried out what he build, but nothing work for me. sorry again ! x11docker has some problem with virtualbox, maybe I don't know how to use it. sorry again. I am not a tech guy, and don't know how to fix it.

I will go for other solution. thanks !

@iamneo2416
Copy link
Author

iamneo2416 commented Aug 3, 2021

I am also doing this try out for fun, since you are not interested in knowing detail of how other met situation and problem. This is also not my responsibility to report bug to you. I also spend a lot of my own time to write report. I think you should consider all cases only if you are a developer. If not, then just skip what I am reporting here. I don't mean to fight with you. That depends on you for perfection or not. thanks for your time anyway.

@mviereck : I have installed xinit too from last tried, still failed !

The other solution seems 100% worked for me on all cases no matter if I use direct console to run or mobaxterm. Again, I am also tried out for fun.

https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/

@mviereck
Copy link
Owner

mviereck commented Aug 6, 2021

Sorry for my late response, curently i am a bit rare online and at x11docker.

@iamneo2416 thank you for the bug report! Sorry for the disturbances.
Basically you and @eine are both right.
In fact x11docker depends on both my work and on feedback by the users. It is used in a lot of very different environments an I cannot set them up all myself to reproduce issues. Mostly I can fix issues by asking questions and getting feedback.
Sometimes I get bug reports for very special setups but get no response to my questions. I don't fix those issues anymore. The linux world is just too big to reproduce everything. So fixing a bug depends on both the users and the developers.

For this bug I've set up VirtualBox and reactivated and old Ubuntu server 18.04 VM. Currently I get issues in it, too.

Ubuntu server installs applications with snap but tries to hide this. But docker in snap does not work well and has serious limitations. Docker in snap means a container tool within another container tool. This is a bad setup done by Ubuntu.

For now a possible workaround is to use options --cap-default --xoverip to circumvent snap limitations.
Example:

x11docker --desktop --cap-default --xoverip x11docker/fvwm

@mviereck mviereck changed the title Not working when I build myself. [Dependency issues] Not working when I build myself. [Dependency issues | snap | Ubuntu server] Aug 7, 2021
@mviereck
Copy link
Owner

I have checked this again.
In my Ubuntu server VM Docker in snap is detected and supported if only this is installed.

If Docker is installed in snap and also with apt, there can be interferences and x11docker fails.
x11docker prints a message if it detects /snap/docker but also /usr/bin/docker.

New option --snap allows to manually enable docker-in-snap fallback mode.

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

No branches or pull requests

3 participants