In CentOS 7.3 Unable to Start VNC services
In CentOS 7.3 Unable to Start VNC services
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.
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.
Re: In CentOS 7.3 Unable to Start VNC services
Did you follow these suggestions? What is the output?See "systemctl status vncserver@:2.service" and "journalctl -xe" for details.
Re: In CentOS 7.3 Unable to Start VNC services
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)
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)
Re: In CentOS 7.3 Unable to Start VNC services
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
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
Re: In CentOS 7.3 Unable to Start VNC services
[img][quote][/quote][/img]Hi
Sorry, please find the attachment
Sorry, please find the attachment
- Attachments
-
- Error.jpg (240 KiB) Viewed 2713 times
Re: In CentOS 7.3 Unable to Start VNC services
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
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
Re: In CentOS 7.3 Unable to Start VNC services
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.
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.
Re: In CentOS 7.3 Unable to Start VNC services
Please show the contents of the file /etc/systemd/system/vncserver@:2.service
Re: In CentOS 7.3 Unable to Start VNC services
[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
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
Re: In CentOS 7.3 Unable to Start VNC services
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 /homePIDFile=/home/root/.vnc/%H%i.pid
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
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