Hello. I am currently working on a server that runs OEL 8.6. I have installed TigerVNC v1.12.0 and am having issues getting the systemd processes working right. I have gone through the following guide: Install the VNC Remote Access Server on Oracle Linux but am still seeing issues. After I start the systemd process for session #1 and check the status, I see the following output:
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2022-08-25 18:16:34 GMT; 27min ago
Process: 77714 ExecStart=/usr/libexec/vncsession-start :1 (code=exited, status=0/SUCCESS)
Process: 77701 ExecStartPre=/usr/libexec/vncsession-restore :1 (code=exited, status=0/SUCCESS)
Main PID: 77721 (code=exited, status=0/SUCCESS)
Aug 25 18:16:34 myclient systemd[1]: Starting Remote desktop service (VNC)...
Aug 25 18:16:34 myclient systemd[1]: Started Remote desktop service (VNC).
Aug 25 18:16:34 myclient systemd[1]: vncserver@:1.service: Succeeded.
The service is dead, but all the information provided shows that things were started successfully. To dig deeper I checked the journalctl logs.
Aug 25 18:45:30 myclient systemd[1]: Starting Remote desktop service (VNC)...
-- Subject: Unit vncserver@:1.service has begun start-up
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- Unit vncserver@:1.service has begun starting up.
Aug 25 18:45:31 myclient systemd-logind[3048]: New session 53 of user myaccount.
-- Subject: A new session 53 has been created for user myaccount
-- Defined-By: systemd
-- Support: https://support.oracle.com
-- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 53 has been created for the user myaccount.
--
-- The leading process of the session is 93423.
Aug 25 18:45:31 myclient systemd[1]: Started Session 53 of user myaccount.
-- Subject: Unit session-53.scope has finished start-up
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- Unit session-53.scope has finished starting up.
--
-- The start-up result is done.
Aug 25 18:45:31 myclient vncsession[93423]: pam_unix(tigervnc:session): session opened for user myaccount by (uid=0)
Aug 25 18:45:31 myclient systemd[1]: Started Remote desktop service (VNC).
-- Subject: Unit vncserver@:1.service has finished start-up
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- Unit vncserver@:1.service has finished starting up.
--
-- The start-up result is done.
Aug 25 18:45:31 myclient kernel: vncsession[93424]: segfault at 48 ip 00007f35152f65e4 sp 00007ffecb133018 error 4 in libselinux.so.1[7f35152e6000+27000]
Aug 25 18:45:31 myclient kernel: Code: 84 00 00 00 00 00 f3 0f 1e fa 48 8b 47 30 48 85 c0 74 0b 48 3b 46 30 75 05 ff e0 0f 1f 00 b8 03 00 00 00 c3 66 90 f3 >
Aug 25 18:45:31 myclient vncsession[93423]: vncsession: vncserver was terminated by signal 11
Aug 25 18:45:31 myclient vncsession[93423]: pam_unix(tigervnc:session): session closed for user myaccount
Aug 25 18:45:31 myclient systemd[1]: vncserver@:1.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- The unit vncserver@:1.service has successfully entered the 'dead' state.
Aug 25 18:45:31 myclient systemd-logind[3048]: Session 53 logged out. Waiting for processes to exit.
Aug 25 18:45:31 myclient systemd[1]: session-53.scope: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- The unit session-53.scope has successfully entered the 'dead' state.
Aug 25 18:45:31 myclient systemd-logind[3048]: Removed session 53.
-- Subject: Session 53 has been terminated
-- Defined-By: systemd
-- Support: https://support.oracle.com
-- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A session with the ID 53 has been terminated.
From that log I see that a segfault occurred when starting up VNC.
Aug 25 18:45:31 myclient kernel: vncsession[93424]: segfault at 48 ip 00007f35152f65e4 sp 00007ffecb133018 error 4 in libselinux.so.1[7f35152e6000+27000]
Does anyone know how to get past this problem? This is the unit file I am using:
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
ExecStartPre=+/usr/libexec/vncsession-restore %i
ExecStart=/usr/libexec/vncsession-start %i
PIDFile=/run/vncsession-%i.pid
SELinuxContext=system_u:system_r:vnc_session_t:s0
[Install]
WantedBy=multi-user.target
Thanks in advance for any help with this issue.