You are not logged in.

#1 2021-03-15 16:14:01

dkgcb
Member
Registered: 2021-03-15
Posts: 3

pam_systemd_home(login:account): systemd-homed is not available:

I got this error and I'm unable to login to do work. I'm using XRDP and VNC to remote to work machine. I enabled the systemd-homed service but still not working.
Does anyone know why systemd all of a sudden is causing this issue? Can this be disabled?

● vncservice@:1.service - Remote desktop service (VNC)
     Loaded: loaded (/etc/systemd/system/vncservice@:1.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2021-03-15 10:51:56 CDT; 11min ago
    Process: 477 ExecStartPre=/bin/sh -c /usr/bin/vncservice -kill :1 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
    Process: 552 ExecStart=/usr/bin/vncservice:1 (code=exited, status=127)
   Main PID: 552 (code=exited, status=127)

Mar 15 10:51:56 machine1 systemd[1]: Starting Remote desktop service (VNC)...
Mar 15 10:51:56 machine1 systemd[477]: pam_systemd_home(login:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Mar 15 10:51:56 machine1 systemd[477]: pam_unix(login:session): session opened for user usera (uid=1000) by (uid=0)
Mar 15 10:51:56 machine1 systemd[477]: pam_env(login:session): deprecated reading of user environment enabled
Mar 15 10:51:56 machine1 systemd[1]: Started Remote desktop service (VNC).
Mar 15 10:51:56 machine1 systemd[552]: pam_systemd_home(login:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Mar 15 10:51:56 machine1 systemd[552]: pam_unix(login:session): session opened for user usera (uid=1000) by (uid=0)
Mar 15 10:51:56 machine1 systemd[552]: pam_env(login:session): deprecated reading of user environment enabled
Mar 15 10:51:56 machine1 systemd[1]: vncservice@:1.service: Main process exited, code=exited, status=127/n/a
Mar 15 10:51:56 machine1 systemd[1]: vncservice@:1.service: Failed with result 'exit-code'.

Last edited by dkgcb (2021-03-15 16:15:14)

Offline

#2 2021-03-15 16:41:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,552

Re: pam_systemd_home(login:account): systemd-homed is not available:

systemd-homed "errors" are spam.
Where (which package) does that service file come from?
The ExecStart binary is "vncservice:1" or a typo. Is that actually correct?

Offline

#3 2021-03-15 17:10:16

dkgcb
Member
Registered: 2021-03-15
Posts: 3

Re: pam_systemd_home(login:account): systemd-homed is not available:

Great. I'm happy if I don't have to deal with homed at this time.

Its a typo, there is a space in there, it should be ExecStart=/usr/bin/vncserver  :1

TigetVNC is the package I'm using. I used the instruction here: https://wiki.archlinux.org/index.php/Xrdp and here https://wiki.archlinux.org/index.php/TigerVNC

Service File:
---------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=simple
User=usera
PAMName=login
PIDFile=/home/%u/.vnc/%H%i.pid
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver :1
ExecStop=/usr/bin/vncserver -kill %i
#Restart=always
#RestartSec=10


[Install]
WantedBy=multi-user.target
---------------------------------------------

Offline

#4 2021-03-15 19:49:00

dkgcb
Member
Registered: 2021-03-15
Posts: 3

Re: pam_systemd_home(login:account): systemd-homed is not available:

It looks like the issue is with the service file I was using, I don't know what exactly, however I copied the service file from https://wiki.archlinux.org/index.php/TigerVNC and now its working.

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=simple
ExecStart=/sbin/runuser -l USERNAME -c "/usr/bin/vncserver %i"
   
[Install]
WantedBy=multi-user.target

Offline

#5 2021-03-15 21:44:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,552

Re: pam_systemd_home(login:account): systemd-homed is not available:

The failing service file was replaced upstream ~1 year ago with https://github.com/TigerVNC/tigervnc/co … a6be9c19b3

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB