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

As non root user: there is no X server active (Alpine Linux) #2224

Closed
Cyanat opened this issue Apr 14, 2022 · 2 comments
Closed

As non root user: there is no X server active (Alpine Linux) #2224

Cyanat opened this issue Apr 14, 2022 · 2 comments

Comments

@Cyanat
Copy link

Cyanat commented Apr 14, 2022

Hello,
Me again trying to install xrdp on Alpine Linux with xfce.
First, note regarding issue #2177 that xrdp-0.9.18.1-r0 is now included in Alpine 3.15 community repository.

Now, my xrdp access is working, as long as I use the root user.
If I try to login with a non root user, I simply have a blue screen during 3min, and get after that an error indicating connection problem, giving up.
Here is my /var/log/xrdp-sesman.log:

[20220414-11:23:38] [INFO ] Socket 8: AF_INET connection received from 127.0.0.1 port 48088
[20220414-11:23:39] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220414-11:23:39] [INFO ] ++ created session (access granted): username myuser, ip 10.0.0.70:59643 - socket: 12
[20220414-11:23:39] [INFO ] starting Xorg session...
[20220414-11:23:39] [INFO ] Found X server running at /tmp/.xrdp/xrdp_display_10
[20220414-11:23:39] [INFO ] Starting session: session_pid 11985, display :11.0, width 1920, height 1080, bpp 24, client ip 10.0.0.70:59643 - socket: 12, user name myuser
[20220414-11:23:39] [INFO ] [session start] (display 11): calling auth_start_session from pid 11985
[20220414-11:23:39] [ERROR] sesman_data_in: scp_process_msg failed
[20220414-11:23:39] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220414-11:23:39] [INFO ] Starting X server on display 11: Xorg :11 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220414-11:23:48] [WARN ] Timed out waiting for X server on display 11 to startup
[20220414-11:23:48] [INFO ] Session started successfully for user myuser on display 11
[20220414-11:23:48] [INFO ] Starting the xrdp channel server for display 11
[20220414-11:23:48] [INFO ] Session in progress on display 11, waiting until the window manager (pid 11986) exits to end the session
[20220414-11:23:49] [WARN ] Timed out waiting for X server on display 11 to startup
[20220414-11:23:49] [ERROR] There is no X server active on display 11
[20220414-11:23:49] [ERROR] A fatal error has occured attempting to start the window manager on display 11, aborting connection
[20220414-11:23:49] [WARN ] Window manager (pid 11986, display 11) exited quickly (1 secs). This could indicate a window manager config problem
[20220414-11:23:49] [INFO ] Calling auth_stop_session and auth_end from pid 11985
[20220414-11:23:49] [INFO ] Terminating X server (pid 11987) on display 11
[20220414-11:23:49] [INFO ] Terminating the xrdp channel server (pid 12006) on display 11
[20220414-11:23:49] [INFO ] X server on display 11 (pid 11987) returned exit code 1 and signal number 0
[20220414-11:23:49] [INFO ] xrdp channel server for display 11 (pid 12006) exit code 0 and signal number 0
[20220414-11:23:49] [INFO ] cleanup_sockets:
[20220414-11:23:49] [INFO ] ++ terminated session:  username myuser, display :11.0, session_pid 11985, ip 10.0.0.70:59643 - socket: 12

What could be the problem? Do I have to provide specific rights to myuser? Also, I don't have .xorgxrdp.11.log in /home/myuser

@matt335672
Copy link
Member

It's probably your invocation of Xorg which is failing as a non-root user.

See #2208 for a similar problem. You have to specify the path for the Xorg executable or it will run the wrapper instead. I can't tell you the path for your system off the top of my head, but if the symptoms for #2208 are the same as yours, the command cat $(which Xorg) will give you a clue.

@Cyanat
Copy link
Author

Cyanat commented Apr 15, 2022

Many thanks,
Indeed, in my /etc/xrdp/sesman.ini had to replace param=Xorg with param=/usr/libexec/Xorg and it's ok

@Cyanat Cyanat closed this as completed Apr 15, 2022
@matt335672 matt335672 changed the title As non root user: there is no X server active As non root user: there is no X server active (Alpine Linux) Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants