LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-05-2020, 09:29 PM   #1
afclark82
LQ Newbie
 
Registered: Feb 2020
Posts: 3

Rep: Reputation: Disabled
VNC Remote Access - VNC won't start


I have the following setup:
- Server: Centos 7.7, with Gnome, & SSH
- Laptop: Windows 10

I am trying to set up tunneling using SSH user to a VNC Viewer. The server has very base set up and I need to be able to set up an FTP and GUI using Gnome. I have been following the link below using Digital Ocean and keep running into error messages.

https://www.digitalocean.com/communi...op-on-centos-7

At the end of Step 6, when the configuration is complete I run sudo systemctl restart vncserver@:4.service on the centos user. The output gives the following error:
Code:
Job for vncserver@:4.service failed because a configured resource limit was exceeded. See "systemctl status vncserver@:4.service" and "journalctl -xe" for details.
Then the status shows:
Code:
vncserver@:4.service - Remote desktop service (VNC)
   Loaded: loaded (/etc/systemd/system/vncserver@:4.service; enabled; vendor preset: disabled)
   Active: failed (Result: resources) since Thu 2020-02-06 03:26:49 UTC; 1min 58s ago
  Process: 6028 ExecStart=/usr/sbin/runuser -l aclark2 -c /usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
  Process: 6022 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)

Feb 06 03:26:45 healportal.novalocal systemd[1]: Starting Remote desktop service (VNC)...
Feb 06 03:26:49 healportal.novalocal systemd[1]: New main PID 6061 does not belong to service, and PID file is not owned by root. Refusing.
Feb 06 03:26:49 healportal.novalocal systemd[1]: New main PID 6061 does not belong to service, and PID file is not owned by root. Refusing.
Feb 06 03:26:49 healportal.novalocal systemd[1]: Failed to start Remote desktop service (VNC).
Feb 06 03:26:49 healportal.novalocal systemd[1]: Unit vncserver@:4.service entered failed state.
Feb 06 03:26:49 healportal.novalocal systemd[1]: vncserver@:4.service failed.
Any help you can provide would be greatly appreciated.
 
Old 02-06-2020, 12:15 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
There is a log file in the user's .vnc directory.
 
Old 02-06-2020, 08:02 AM   #3
afclark82
LQ Newbie
 
Registered: Feb 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Here is the log.

Code:
Thu Feb  6 03:26:13 2020
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
touch: cannot touch ‘/home/aclark2/.cache/imsettings/log’: No such file or directory

(process:3207): dconf-CRITICAL **: 03:26:16.386: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.

(process:3207): dconf-CRITICAL **: 03:26:16.387: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.

Thu Feb  6 03:26:16 2020
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
 
Old 02-06-2020, 04:02 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I don't know what these messages mean. Now it's time to use your most powerful tool, the internet browser combined with a search engine, and to figure out if the messages are related to the problem and what causes them.

Another potential information source is the systemd journal for the vncserver service.
 
Old 02-06-2020, 04:09 PM   #5
afclark82
LQ Newbie
 
Registered: Feb 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
I don't know what these messages mean. Now it's time to use your most powerful tool, the internet browser combined with a search engine, and to figure out if the messages are related to the problem and what causes them.

Another potential information source is the systemd journal for the vncserver service.
Unfortunately I have been trying that for weeks and can't figure it out... This was my last resort.
 
Old 02-06-2020, 04:52 PM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
imsettings is software that provides input methods to applications, mostly for languages that don't have a 1-1 correspondence between key and character, such as Japanese or Chinese.

dconf is a low-level configuration system and settings management tool for Gnome.

Something is wrong in the way you set up your X environment in VNC. There should be a script in the .vnc directory that customizes your environment. I would look there.

Also, the access permissions problem with dconf seems to be common. Here is a workaround: remove the file or fix its permissions.

EDIT: I know very little about X11 and Gnome. My only marketable skill is searching.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAT infected files (remote access tool - remote access trojan) - corrupt? jettjett Linux - Newbie 16 03-20-2018 10:07 PM
trying to remote to vnc server through vnc client on XP. Kilahchris Linux - Newbie 3 11-22-2006 03:50 PM
openssh & vnc (secure remote access) O(V)eGA_l2el) Fedora 1 10-18-2006 05:08 AM
vnc or remote access question coal-fire-ice Solaris / OpenSolaris 13 08-13-2005 01:06 PM
start VNC in remote x session yourEgg Linux - Networking 0 05-17-2004 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration