Cannot start VNC Server after power failure

Issues related to applications and software problems
Post Reply
khoi
Posts: 2
Joined: 2018/10/10 03:50:09

Cannot start VNC Server after power failure

Post by khoi » 2018/10/10 04:12:12

Dear all,

- I cannot connect to Server Centos 7 via VNC after power failure. When i start VNC Server, it show this error

# systemctl start vncserver@:1.service
Job for vncserver@:1.service failed because a configured resource limit was exceeded. See "systemctl status vncserver@:1.service" and "journalctl -xe" for details.

- And i check the status of VNC Server, it show:

# systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: failed (Result: resources) since Wed 2018-10-10 11:04:07 +07; 6min ago
Process: 4719 ExecStart=/usr/sbin/runuser -l root -c /usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
Process: 4716 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)

Oct 10 11:04:03 localhost.localdomain systemd[1]: Starting Remote desktop service (VNC)...
Oct 10 11:04:07 localhost.localdomain systemd[1]: PID file /home/root/.vnc/localhost.localdomain:1.pid not readable (yet?) after start.
Oct 10 11:04:07 localhost.localdomain systemd[1]: Failed to start Remote desktop service (VNC).
Oct 10 11:04:07 localhost.localdomain systemd[1]: Unit vncserver@:1.service entered failed state.
Oct 10 11:04:07 localhost.localdomain systemd[1]: vncserver@:1.service failed.

Please help me.

Thanks
Khoi.

tunk
Posts: 444
Joined: 2017/02/22 15:08:17

Re: Cannot start VNC Server after power failure

Post by tunk » 2018/10/10 11:11:03

First, I've never used VNC.
Does /home/root/.vnc/localhost.localdomain exist? If so, what's the content, you may also try to rename it.

User avatar
TrevorH
Forum Moderator
Posts: 23879
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot start VNC Server after power failure

Post by TrevorH » 2018/10/10 14:21:39

Using vnc as root sounds like a recipe for disaster anyway. Perhaps you should be glad it's stopping you from doing it!
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

khoi
Posts: 2
Joined: 2018/10/10 03:50:09

Re: Cannot start VNC Server after power failure

Post by khoi » 2018/10/11 04:31:49

TrevorH wrote:
2018/10/10 14:21:39
Using vnc as root sounds like a recipe for disaster anyway. Perhaps you should be glad it's stopping you from doing it!
Dear TrevorH,

I'm testing before release

User avatar
TrevorH
Forum Moderator
Posts: 23879
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot start VNC Server after power failure

Post by TrevorH » 2018/10/11 06:12:48

Don't vnc as root.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply