In CentOS 7.3 Unable to Start VNC services

General support questions
land14
Posts: 16
Joined: 2017/10/26 09:02:11

In CentOS 7.3 Unable to Start VNC services

Post by land14 » 2017/10/26 09:34:41

While starting VNC service following error is coming.

root@localhost /]# systemctl restart vncserver@:2.service
Job for vncserver@:2.service failed because a timeout was exceeded. See "systemctl status vncserver@:2.service" and "journalctl -xe" for details.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: In CentOS 7.3 Unable to Start VNC services

Post by pjsr2 » 2017/10/26 14:50:55

See "systemctl status vncserver@:2.service" and "journalctl -xe" for details.
Did you follow these suggestions? What is the output?

land14
Posts: 16
Joined: 2017/10/26 09:02:11

Re: In CentOS 7.3 Unable to Start VNC services

Post by land14 » 2017/10/27 08:45:40

When i execute systemctl status vncserver@:2.service

oaded: loaded (/etc/systemd/system/vncserver@:2.service; disabled; vendor pr eset: disabled)
Active: failed (Result: timeout) since Thu 2017-10-26 14:29:16 IST; 23h ago
Process: 6517 ExecStart=/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
Process: 6511 ExecStartPre=/usr/bin/vncserver -kill %i (code=exited, status=2)

Oct 26 14:27:50 localhost.localdomain gnome-keyring-daemon[6866]: another sec...
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: (org.gnome.Softwar...
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: (org.gnome.Softwar...
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: (nautilus:6754): G...
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: ** (nautilus:6754)...
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: ** (nautilus:6754)...
Oct 26 14:29:13 localhost.localdomain systemd[1]: vncserver@:2.service start ...
Oct 26 14:29:16 localhost.localdomain systemd[1]: Failed to start Remote desk...
Oct 26 14:29:16 localhost.localdomain systemd[1]: Unit vncserver@:2.service e...
Oct 26 14:29:16 localhost.localdomain systemd[1]: vncserver@:2.service failed.
Hint: Some lines were ellipsized, use -l to show in full.



And when i execute journalctl -xe


-- Subject: Unit session-171.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-171.scope has finished starting up.
--
-- The start-up result is done.
Oct 27 14:01:01 localhost.localdomain systemd[1]: Starting Session 171 of user root.
-- Subject: Unit session-171.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-171.scope has begun starting up.
Oct 27 14:01:01 localhost.localdomain CROND[26132]: (root) CMD (run-parts /etc/cron.hourly)
Oct 27 14:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[26141]: starting 0anacron
Oct 27 14:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[26151]: finished 0anacron
Oct 27 14:08:35 localhost.localdomain sshd[26238]: Accepted password for root from 192.168.50.95 port 56564 ssh2
Oct 27 14:08:35 localhost.localdomain systemd[1]: Started Session 172 of user root.
-- Subject: Unit session-172.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-172.scope has finished starting up.
--
-- The start-up result is done.
Oct 27 14:08:35 localhost.localdomain sshd[26238]: pam_unix(sshd:session): session opened for user root by (uid=0)
Oct 27 14:08:35 localhost.localdomain systemd-logind[673]: New session 172 of user root.
-- Subject: A new session 172 has been created for user root
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
-- Documentation: http://www.freedesktop.org/wiki/Softwar ... /multiseat
--
-- A new session with the ID 172 has been created for the user root.
--
-- The leading process of the session is 26238.
Oct 27 14:08:36 localhost.localdomain systemd[1]: Starting Session 172 of user root.
-- Subject: Unit session-172.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-172.scope has begun starting up.
Oct 27 14:08:38 localhost.localdomain dbus[658]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Oct 27 14:08:38 localhost.localdomain dbus-daemon[658]: dbus[658]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Oct 27 14:08:38 localhost.localdomain dbus[658]: [system] Successfully activated service 'org.freedesktop.problems'
Oct 27 14:08:38 localhost.localdomain dbus-daemon[658]: dbus[658]: [system] Successfully activated service 'org.freedesktop.problems'
lines 3119-3163/3163 (END)

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: In CentOS 7.3 Unable to Start VNC services

Post by TrevorH » 2017/10/27 10:07:38

Add -l to your systemctl status vncserver@:2.service so that we can see the full content of the messages.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

land14
Posts: 16
Joined: 2017/10/26 09:02:11

Re: In CentOS 7.3 Unable to Start VNC services

Post by land14 » 2017/10/27 13:23:43

[img][quote][/quote][/img]Hi

Sorry, please find the attachment
Attachments
Error.jpg
Error.jpg (240 KiB) Viewed 2713 times

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: In CentOS 7.3 Unable to Start VNC services

Post by TrevorH » 2017/10/27 16:54:37

Please don't post images. That's so small as to be unreadable. Text works so much better.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

land14
Posts: 16
Joined: 2017/10/26 09:02:11

Re: In CentOS 7.3 Unable to Start VNC services

Post by land14 » 2017/10/30 11:31:20

Hi


vncserver@:2.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:2.service; disabled; vendor preset: disabled)
Active: failed (Result: timeout) since Thu 2017-10-26 14:29:16 IST; 3 days ago
Process: 6517 ExecStart=/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
Process: 6511 ExecStartPre=/usr/bin/vncserver -kill %i (code=exited, status=2)

Oct 26 14:27:50 localhost.localdomain gnome-keyring-daemon[6866]: another secret service is running
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: (org.gnome.Software:6836): PackageKit-WARNING **: failed to set proxy: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_5fengine_5ferror.Code3: setting the proxy failed
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: (org.gnome.Software:6836): Gs-WARNING **: failed to set proxies: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_5fengine_5ferror.Code3: setting the proxy failed
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: (nautilus:6754): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -15 and height 34
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: ** (nautilus:6754): WARNING **: Can not get _NET_WORKAREA
Oct 26 14:27:50 localhost.localdomain gnome-session[6539]: ** (nautilus:6754): WARNING **: Can not get _NET_WORKAREA
Oct 26 14:29:13 localhost.localdomain systemd[1]: vncserver@:2.service start operation timed out. Terminating.
Oct 26 14:29:16 localhost.localdomain systemd[1]: Failed to start Remote desktop service (VNC).
Oct 26 14:29:16 localhost.localdomain systemd[1]: Unit vncserver@:2.service entered failed state.
Oct 26 14:29:16 localhost.localdomain systemd[1]: vncserver@:2.service failed.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: In CentOS 7.3 Unable to Start VNC services

Post by pjsr2 » 2017/10/30 13:03:22

Please show the contents of the file /etc/systemd/system/vncserver@:2.service

land14
Posts: 16
Joined: 2017/10/26 09:02:11

Re: In CentOS 7.3 Unable to Start VNC services

Post by land14 » 2017/10/31 07:35:02

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

[Service]
Type=forking
User=root

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=-/usr/bin/vncserver -kill %i
ExecStart=/usr/bin/vncserver %i
PIDFile=/home/root/.vnc/%H%i.pid
ExecStop=-/usr/bin/vncserver -kill %i

[Install]
WantedBy=multi-user.target

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: In CentOS 7.3 Unable to Start VNC services

Post by TrevorH » 2017/10/31 07:38:03

PIDFile=/home/root/.vnc/%H%i.pid
That doesn't look right. If the path even exists then I bet selinux won't like it. PID files should be under /run not under /home
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply