Xrdp Cannot Read Private Key File /etc/xrdp/key.pem: Permission Denied
Remote Desktop - xfce4 - is non running because of wrong permissions
-
- OMV 4.x
- Huberer
-
- #1
Hullo,
yesterday I've installed xfce4 and wanted to connect to IP-Server:3389 but it's non working.
Under syslog I constitute this fault message:
xrdp (some figures)[Fault] Cannot read private key file /etc/xrdp/cardinal.pem:Permission deniedunder www I plant the info that adding xrdp to the ssl-cert grouping will fix this consequence.
Unfortunately I don't know how to add xrdp to this group.
How tin can I solve this upshot?
My server is in the signature.
Thanks in accelerate
-
- #2
How tin I solve this issue?
While that error is in syslog (I have it also and xrdp is working fine), that is non what is causing your problem of xrdp not working. Is the login screen coming up or is it not listening at all? No working isn't enough detail.
-
- #3
No, I can't login. When I try to open IP-AdressServer:3389 I get the message that the browser can't connect.
Should Remote Desktop testify upwards nether services (where the others like ASP, Docker, ftp,... are)? I don't take it under services -
- #4
Should Remote Desktop show up nether services (where the others like ASP, Docker, ftp,... are)? I don't have it under services
Nope.
What is the output of: dpkg -l | grep openm
-
- #5
Here is the output:
root@OMV-HomeServer:~# dpkg -l | grep openm 2 openmediavault iv.1.12 all openmediavault - The open network fastened storage solution ii openmediavault-autoshutdown 4.0.4 all OpenMediaVault AutoShutdown Plugin ii openmediavault-docker-gui four.0.1 all OpenMediaVault plugin for Docker two openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive ii openmediavault-omvextrasorg 4.1.xi all OMV-Extras.org Package Repositories for OpenMediaVault two openmediavault-remotedesktop 4.0.i all Remote desktop plugin for OpenMediaVault. ii openmediavault-remotemount 4.0.5 all Remote mount plugin for OpenMediaVault. ii openmediavault-virtualbox iv.i all VirtualBox plugin for OpenMediaVault. root@OMV-HomeServer:~#
Today I've fabricated a brand new installation of OMV. Still no adventure to connect to Remote Desktop
What does this hateful unter "Remote Desktop":
Connecting user must have existing home directory.
I've created a shared folder and added the user to it:
But this didn't help
-
- #six
What does this hateful unter "Remote Desktop":
If the user doesn't accept a home directory, they won't be able to connect. The xrdp service will still be listening though.
The plugin is very simple. I accept no idea why it isn't working on your organisation. What is the output of:
systemctl status xrdp.service
systemctl status xrdp-sesman.service -
- #7
And so, equally I wrote, I've created a home directory for the user.
Here are the outputs of:
systemctl status xrdp.service
● xrdp.service - xrdp daemon Loaded: loaded (/lib/systemd/arrangement/xrdp.service; enabled; vendor preset: enabled) Active: agile (running) since Sunday 2018-x-28 19:41:04 CET; one twenty-four hours 2h agone Docs: man:xrdp(8) man:xrdp.ini(5) Main PID: 1205 (xrdp) Tasks: i (limit: 4915) Memory: 1.8M CPU: 9ms CGroup: /organization.slice/xrdp.service └─1205 /usr/sbin/xrdp Okt 28 19:41:03 OMV-HomeServer systemd[1]: Starting xrdp daemon... Okt 28 19:41:03 OMV-HomeServer systemd[1]: xrdp.service: PID file /var/run/xrdp/xrdp.pid not readable (yet?) subsequently commencement: No such file or directory Okt 28 xix:41:04 OMV-HomeServer systemd[1]: Started xrdp daemon.
Alles anzeigen
and ofsystemctl status xrdp-sesman.service
● xrdp-sesman.service - xrdp session manager Loaded: loaded (/lib/systemd/system/xrdp-sesman.service; enabled; vendor preset: enabled) Agile: active (running) since Lord's day 2018-x-28 19:41:03 CET; 1 twenty-four hours 2h agone Docs: man:xrdp-sesman(8) human:sesman.ini(5) Principal PID: 1085 (xrdp-sesman) Tasks: ane (limit: 4915) Memory: ane.3M CPU: 2ms CGroup: /system.piece/xrdp-sesman.service └─1085 /usr/sbin/xrdp-sesman Okt 28 nineteen:41:03 OMV-HomeServer systemd[ane]: Starting xrdp session director... Okt 28 19:41:03 OMV-HomeServer xrdp-sesman[979]: (979)(139672806171968)[DEBUG] libscp initialized Okt 28 19:41:03 OMV-HomeServer xrdp-sesman[979]: (979)(139672806171968)[DEBUG] Testing if xrdp-sesman can listen on 127.0.0.i port 3350. Okt 28 19:41:03 OMV-HomeServer xrdp-sesman[979]: (979)(139672806171968)[DEBUG] Closed socket i (AF_INET6 ::1 port 3350) Okt 28 nineteen:41:03 OMV-HomeServer xrdp-sesman[1085]: (1085)(139672806171968)[INFO ] starting xrdp-sesman with pid 1085 Okt 28 xix:41:03 OMV-HomeServer systemd[i]: Started xrdp session manager. Okt 28 nineteen:41:03 OMV-HomeServer xrdp-sesman[1085]: (1085)(139672806171968)[INFO ] listening to port 3350 on 127.0.0.1
Alles anzeigen
I hope this can assistance yous farther
-
- #eight
Non sure why I didn't think of this early but I'm guessing you don't take backports enabled. What is the output of: dpkg -fifty | grep xrdp
-
- #9
@ryecoaaron
this is the output of dpkg -l | grep xrdp
root@OMV-HomeServer:~# dpkg -l | grep xrdp ii xorgxrdp 0.9.1-9+deb9u3 amd64 Remote Desktop Protocol (RDP) modules for X.org ii xrdp 0.9.eight-two~bpo9+ane amd64 Remote Desktop Protocol (RDP) server
I take backports enabled. Just see here:
-
- #10
Those are the right versions. Not sure why it isn't working. Perchance purge the plugin and reinstall?
-
- #eleven
Should I purge information technology via CLI or via OMV GUI? What is the better way to do it?
I'yard right at present on holiday and tin can examination information technology not before next Monday
Gesendet von iPhone mit Tapatalk
-
- #12
Should I purge it via CLI or via OMV GUI? What is the better way to do it?
Either 1 should exist ok.
-
- #xiii
So, back from vacation I did it once again. I removed remote-desktop via OMV GUI (just earlier I've updated everything to be on the latest level), rebooted the server and installed it again via GUI.
while installation I got these messages (I only started with the suspicious lines):
insserv: warning: script 'S99startvm' missing LSB tags and overrides insserv: warning: script 'startvm' missing LSB tags and overrides insserv: There is a loop between service monit and rpcbind if started insserv: loop involving service rpcbind at depth 4 insserv: loop involving service networking at depth 3 insserv: There is a loop between service startvm and udev if started insserv: loop involving service udev at depth 1 insserv: At that place is a loop at service monit if started insserv: Starting startvm depends on monit and therefore on system facility `$all' which tin can not be true! ..this final line was repeated effectually twenty times... insserv: Starting startvm depends on monit and therefore on organization facility `$all' which can not be truthful! insserv: Max recursions depth 99 reached insserv: loop involving service docker at depth 1 insserv: Starting startvm depends on monit and therefore on system facility `$all' which can not be true! ...some other echo of the last line around 20 times... insserv: There is a loop betwixt service startvm and mountall if started Created symlink /etc/systemd/system/multi-user.target.wants/xrdp-sesman.service -> /lib/systemd/system/xrdp-sesman.service. Created symlink /etc/systemd/arrangement/multi-user.target.wants/xrdp.service -> /lib/systemd/system/xrdp.service. Processing triggers for systemd (232-25+deb9u4) ... Setting up libwnck-common (2.30.vii-five.1) ... Setting upwardly libupower-glib3:amd64 (0.99.4-4+b1) ... Setting up libfontenc1:amd64 (ane:i.1.3-1+b2) ... Setting upwardly libpciaccess0:amd64 (0.13.4-1+b2) ... Processing triggers for human being-db (ii.7.6.1-ii) ... Setting upwardly libgudev-1.0-0:amd64 (230-3) ... Processing triggers for openmediavault (4.1.13-one) ... Restarting engine daemon ... Processing triggers for hicolor-icon-theme (0.15-ane) ... Setting up libexo-helpers (0.10.seven-ane) ... Setting up libexif12:amd64 (0.6.21-2+b2) ... Setting upwardly libpolkit-gobject-1-0:amd64 (0.105-18) ... Processing triggers for fontconfig (ii.xi.0-half dozen.vii+b1) ... Setting up libxklavier16:amd64 (5.iv-ii) ... Setting upwardly libkeybinder-3.0-0:amd64 (0.3.1-1) ... Setting upwardly libgtk2.0-0:amd64 (2.24.31-2) ... Setting up xserver-mutual (2:1.19.2-1+deb9u4) ... Setting up libwnck22:amd64 (2.30.7-5.1) ... Setting up libxfont2:amd64 (i:2.0.i-3+deb9u1) ... Setting up xserver-xorg-core (2:1.19.2-1+deb9u4) ... Setting up libxfont1:amd64 (one:ane.5.2-4) ... Setting upwardly tigervnc-standalone-server (1.7.0+dfsg-vii) ... update-alternatives: using /usr/bin/tigervncserver to provide /usr/bin/vncserver (vncserver) in automobile mode update-alternatives: using /usr/bin/Xtigervnc to provide /usr/bin/Xvnc (Xvnc) in auto mode Setting upwards libxfce4util7:amd64 (4.12.i-three) ... Setting up orage (4.12.one-3) ... Setting up gtk2-engines-xfce (3.2.0-2) ... Setting up libxfce4panel-2.0-four (4.12.ane-2) ... Setting upward xorgxrdp (0.9.1-nine+deb9u3) ... Setting up xfonts-utils (1:seven.7+4) ... Setting up xfconf (4.12.i-1) ... Setting up libxfconf-0-two (4.12.1-i) ... Setting up libxfce4ui-1-0 (4.12.one-two) ... Setting up xfonts-base (one:i.0.4+nmu1) ... Setting up libexo-1-0:amd64 (0.10.7-one) ... Setting up xfwm4 (four.12.four-1) ... update-alternatives: using /usr/bin/xfwm4 to provide /usr/bin/x-window-managing director (x-window-managing director) in auto mode Setting upward exo-utils (0.x.vii-1) ... Setting up libxfce4ui-2-0 (iv.12.1-2) ... Setting up libxfce4ui-utils (4.12.1-2) ... Setting up libgarcon-i-0 (0.4.0-2) ... Setting upward libthunarx-2-0 (one.6.eleven-1) ... Setting upward xfce4-appfinder (4.12.0-two) ... Setting upwards xfce4-settings (4.12.i-1) ... Setting up xfce4-panel (4.12.1-ii) ... Setting up xfdesktop4 (4.12.3-3) ... Setting upwardly xfce4-pulseaudio-plugin:amd64 (0.ii.4-one) ... Setting upward xfce4-session (four.12.1-five) ... update-alternatives: using /usr/bin/startxfce4 to provide /usr/bin/x-session-manager (x-session-manager) in auto fashion Setting up thunar (one.half-dozen.xi-1) ... Setting upwards xfce4 (iv.12.3) ... Setting upwardly openmediavault-remotedesktop (4.0.1) ... Processing triggers for libc-bin (2.24-xi+deb9u3) ... Processing triggers for openmediavault (4.1.13-i) ... Updating locale files ... Updating file permissions ... Purging internal cache ... Restarting engine daemon ... Fertig ...
Alles anzeigen
After installation I rebooted the server over again and tried to connect via IP-Server:3389 and notwithstanding the same fault. No connection to IP-Server:3389 possible
Don't know why information technology's non working.
-
- #14
Don't know why it'due south not working.
Your startvm service (older init script?) looks like information technology is causing the problem.
-
- #fifteen
Your startvm service (older init script?) looks similar it is causing the problem.
and how can I update it?
I've installed OMV about 3 weeks ago. I always install latest Debian 9 netinstaller (because of manual partitioning the system drive) and OMV (v4) over information technology. Could this exist the upshot why information technology't not working? -
- #16
@ryecoaaron
I have to add together something to my tread above (don't want to edit it, considering it should not disappear).
You wrote about "startvm"
Could it be that I've made a startvm-script described here . I demand this startvm otherwise my VM doesn't start -
- #17
Could it exist that I've made a startvm-script described
Yep. That script doesn't have init script headers. And there is withal something going on with your organisation if the VMs don't start when set to automatic start in the phpvirtualbox (VM -> Settings -> Full general -> Basic -> Startup Mode = Automatic)
-
- #18
Ok, I've removed the startvm-script, rebooted the server and installed remote-desktop again. No fault while installation just also no connection to the RDP. Also no autostart of the VM (as it was earlier).
Removed RDP and rebooted the server again. Withal no VM running. I had to transmission first it.So I installed the startvm-script again, inserted a init-script-header, installed RDP. No error-message while installation but no admission to RDP-GUI. VM started as usual.
Even changing the port of the RDP didn't help. Then I think that RDP is not working on my system. -
- #19
lso no autostart of the VM (equally information technology was earlier).
Removed RDP and rebooted the server once again. Even so no VM running. I had to transmission start it.
It is set to automated in phpvirtualbox?
So I installed the startvm-script again, inserted a init-script-header, installed RDP. No fault-bulletin while installation but no admission to RDP-GUI. VM started as usual.
Even changing the port of the RDP didn't help. And so I recollect that RDP is not working on my arrangement.
If the systemctl condition says they are running, I would like to come across the output of: netstat -tulpn | grep 3389
-
- #xx
So, I installed my new Odroid HC1 with latest OMV v4 (via armbian) and too installed remote-desktop
Here is the output of:netstat -tulpn | grep 3389
Mainserver (come across signature)
root@OMV-HomeServer:~# netstat -tulpn | grep 3389 tcp6 0 0 :::3389 :::* Heed 1262/xrdp root@OMV-HomeServer:~#
and from the Odroid HC1root@OdroidHC1:~# netstat -tulpn | grep 3389 tcp6 0 0 :::3389 :::* LISTEN 4482/xrdp root@OdroidHC1:~#
and what is the effect?
On both machines (with dissimilar IP's) I don't accept access to the GUI.
Source: https://forum.openmediavault.org/index.php?thread%2F24607-remote-desktop-xfce4-is-not-running-because-of-wrong-permissions%2F
0 Response to "Xrdp Cannot Read Private Key File /etc/xrdp/key.pem: Permission Denied"
Post a Comment