Linux - TigerVNC - Warning: server5:2 is taken because of /tmp/.X11-unix
Good day,
I am using TigerVNC on a Linux server and after a restart no tiger vnc service wants to run.
When I try
Hello,
please try this:
rm -f /tmp/.X4-lock
rm -f /tmp/.X11-unix/X4
reboot
I am using TigerVNC on a Linux server and after a restart no tiger vnc service wants to run.
When I try
systemctl restart vncserver@:2.service
so i have error.journalctl -xe
return:
-- Unit vncserver@:2.service has begun starting up.
úno 25 08:55:27 server5 systemd[1]: Started Session c13 of user user7.
-- Subject: Unit session-c13.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-c13.scope has finished starting up.
--
-- The start-up result is done.
úno 25 08:55:27 server5 runuser[4663]: pam_unix(runuser-l:session): session opened for user user7 by (uid=0)
úno 25 08:55:27 server5 runuser[4663]: Warning: server5:2 is taken because of /tmp/.X11-unix/X2
úno 25 08:55:27 server5 runuser[4663]: Remove this file if there is no X server server5:2
úno 25 08:55:27 server5 runuser[4663]: A VNC server is already running as :2
úno 25 08:55:27 server5 runuser[4663]: pam_unix(runuser-l:session): session closed for user user7
úno 25 08:55:27 server5 systemd[1]: vncserver@:2.service: control process exited, code=exited status=2
úno 25 08:55:27 server5 systemd[1]: Failed to start Remote desktop service (VNC).
-- Subject: Unit vncserver@:2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:2.service has failed.
--
-- The result is failed.
úno 25 08:55:27 server5 systemd[1]: Unit vncserver@:2.service entered failed state.
úno 25 08:55:27 server5 systemd[1]: vncserver@:2.service failed.
úno 25 08:55:27 server5 polkitd[756]: Unregistered Authentication Agent for unix-process:4651:80870 (system bus name :1
REPLY
Hello,
please try this:
rm -f /tmp/.X4-lock
rm -f /tmp/.X11-unix/X4
reboot