erro iniciando tigervnc-server code 98 - fedora27

0

após a instalação, criando usuário, edição, etc, quando tento iniciar o serviço que recebo (depois de excluir .Xfiles do tmp, sugestão @SivaPrasath)

systemctl start vncserver@:1.service
Job for vncserver@:1.service failed because the control process exited with error code.
See "systemctl  status vncserver@:1.service" and "journalctl  -xe" for details.

systemctl diz:

[root@localhost ~]# systemctl  status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
   Loaded: loaded (/etc/systemd/system/vncserver@:1.service; disabled; vendor preset: disabled)
   Active: failed (Result: protocol) since Tue 2018-05-15 19:26:13 -03; 1min 36s ago
  Process: 4284 ExecStart=/usr/sbin/runuser -l r_vnc -c /usr/bin/vncserver :1 -geometry 1280x1024 (code=exited, status=0/SUCCESS)
  Process: 4282 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)

May 15 19:26:10 localhost.localdomain systemd[1]: Starting Remote desktop service (VNC)...
May 15 19:26:13 localhost.localdomain systemd[1]: vncserver@:1.service: PID file /home/r_vnc/.vnc/localhost.localdomain:1.pid not readable (yet?) after start: Permission denied
May 15 19:26:13 localhost.localdomain systemd[1]: Failed to start Remote desktop service (VNC).
May 15 19:26:13 localhost.localdomain systemd[1]: vncserver@:1.service: Unit entered failed state.
May 15 19:26:13 localhost.localdomain systemd[1]: vncserver@:1.service: Failed with result 'protocol'.

journalctl diz:

    - Unit UNIT has begun starting up.
May 15 16:42:15 localhost.localdomain systemd[13394]: Received SIGRTMIN+24 from PID 13453 (kill).
May 15 16:42:15 localhost.localdomain systemd[1]: Stopped User Manager for UID 1002.
-- Subject: Unit [email protected] has finished shutting down
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit [email protected] has finished shutting down.
May 15 16:42:15 localhost.localdomain audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=user@1002 comm="systemd" exe="/usr/lib/systemd/systemd" hostname
May 15 16:42:15 localhost.localdomain systemd[1]: Removed slice User Slice of r_vnc.
-- Subject: Unit user-1002.slice has finished shutting down
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit user-1002.slice has finished shutting down.

Como posso corrigir o erro?

    
por xm1 15.05.2018 / 21:49

1 resposta

0

Se você matar o seu vncserver ou um inesperado, por favor leia / var / log / messages e você pode encontrar arquivos .X iniciados com erros como abaixo. Primeiramente, por favor, verifique se o processo Xvnc não está sendo executado.

Aug 13 12:11:11 www runuser: Warning: www.example.com:2 is taken because of /tmp/.X2-lock
...
Aug 13 12:12:52 www runuser: Warning: www.example.com:2 is taken because of /tmp/.X22-unix/X2

então você remove

# rm -f /tmp/.X2-lock
# rm -f /tmp/.X22-unix/X2

E defina a senha do VNC para o usuário, se não estiver definida. Depois que a senha for definida, você poderá iniciar o servidor VNC conforme o esperado.

# su - <user name>
$ vncpasswd

e reinicie seu vncserver.

# systemctl restart vncserver@:2.sevice
    
por 15.05.2018 / 22:30

Tags