<---- template headericclude ----->
fc15 vncserver error on start - INVALIDARGUMENT
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 15 of 15
  1. #1
    Join Date
    Aug 2004
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    fc15 vncserver error on start - INVALIDARGUMENT

    vncserver fails to start with:

    vncserver.service - LSB: start|stop|restart|try-restart|status|force-reload vncserver
    Loaded: loaded (/etc/rc.d/init.d/vncserver)
    Active: failed since Tue, 31 May 2011 07:40:37 -0700; 12min ago
    Process: 31934 ExecStart=/etc/rc.d/init.d/vncserver start (code=exited, status=2/INVALIDARGUMENT)
    CGroup: name=systemd:/system/vncserver.service

    /etc/sysconfig/vncserver:

    VNCSERVERS="1:userid" (note: actual user account is placed in userid)
    VNCSERVERARGS[1]="-geometry 1024x768 -depth 24"

    /home/userid/.vnc/xstartup

    #!/bin/sh

    # Uncomment the following two lines for normal desktop:
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc

    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    startx &

    this config has worked for all previous releases, this is an upgrade to fc15

    thanks - Dan

  2. #2
    Join Date
    Jun 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    I have the exact same problem... though it worked from a fresh fc15 install, after installing some updates it didn't.

  3. #3
    Join Date
    Jun 2004
    Location
    NJ, Usa
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    I have the same exact problem. After a fresh install and a modification of /etc/sysconfig/vncservers vnc won't start with the following systemd status:

    [root@server sysconfig]# systemctl status vncserver.service
    vncserver.service - LSB: start|stop|restart|try-restart|status|force-reload vncserver
    Loaded: loaded (/etc/rc.d/init.d/vncserver)
    Active: failed since Tue, 07 Jun 2011 23:10:07 -0400; 6s ago
    Process: 5620 ExecStop=/etc/rc.d/init.d/vncserver stop (code=exited, status=0/SUCCESS)
    Process: 8247 ExecStart=/etc/rc.d/init.d/vncserver start (code=exited, status=2/INVALIDARGUMENT)
    CGroup: name=systemd:/system/vncserver.service

    Initially running yum remove tiger* and then re-installing tigervnc would solve the issue. Tonight, not even that is working.

  4. #4
    Join Date
    Jun 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    You might not have had the previous runs of vncserver cleaned up properly. Go to /tmp/.X11-unix and remove directories X[1-9]. Don't remove X0, that's your console session. Remember, that's dotX11-unix.

  5. #5
    Join Date
    Jul 2005
    Posts
    1,080
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    I thought it was supposed to be VNCSERVERARGS[2], that's what's in my F14 /etc/sysconfig/vncservers file (and yes, my file name is vncservers not vncserver)
    ======
    Doug G
    ======

  6. #6
    Join Date
    Jun 2004
    Location
    NJ, Usa
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    I was finally able to get it to work. Here are the appropriate lines from my /etc/sysconfig/vncservers file:

    VNCSERVERS="1:username"
    VNCSERVERARGS[1]="-geometry 1100x900 -nolisten tcp -localhost"

    After a fresh install, I had to use VNCSERVERS="2:username". Then, after a reboot that would not work. I updated vnc and it still would not work with VNCSERVERS="2:username". Then, after editing vncservers to use VNCSERVERS="1:username", it worked. I'm now thinking that something else was causing the issue. Some extra spaces somewhere perhaps? An extra line at the end of the file? I haven't had time to play with this. If I do, I'll post back.

  7. #7
    Join Date
    Jan 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    I looked at the script /etc/rc.d/init.d/vncserver and it looks like it was looking for the arguments VNCUSER and VNCUSERARGS. After editing /etc/sysconfig/vncserver from VNCSERVERS to VNCUSERS and VNCSERVERARGS to VNCUSERARGS, I was able to reload the vncserver service without a problem.

    Just my two cents ...

  8. #8
    Join Date
    Jul 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    Hello,

    I changed VNCSERVERS to VNCUSERS. Now it looks that:

    VNCUSERS="1:username"
    VNCUSERARGS[1]="-geometry 1400x830"

    /etc/init.d/vncserver restart (now it works)

    But still I cant connect, also at userhome dir there arent any log and pid files for vnc connections.

  9. #9
    Join Date
    Jun 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    Quote Originally Posted by andykoo
    I looked at the script /etc/rc.d/init.d/vncserver and it looks like it was looking for the arguments VNCUSER and VNCUSERARGS. After editing /etc/sysconfig/vncserver from VNCSERVERS to VNCUSERS and VNCSERVERARGS to VNCUSERARGS, I was able to reload the vncserver service without a problem.

    Just my two cents ...
    I can restart the service success . but I can not connect to the server

  10. #10
    Join Date
    Jul 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    any solve for this problem?

  11. #11
    Join Date
    Jul 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    I made the suggested changes and now I get :-

    ExecStart=/etc/rc.d/init.d/vncserver start (code=exited, status=6/NOTCONFIGURED)

    What new configuration is required?

  12. #12
    Join Date
    Jul 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    Quote Originally Posted by SpacialAnomaly
    You might not have had the previous runs of vncserver cleaned up properly. Go to /tmp/.X11-unix and remove directories X[1-9]. Don't remove X0, that's your console session. Remember, that's dotX11-unix.
    Thanks, this work for me.

    After deleting some file as said, my vncserver now works.
    In some case you may receive INVALID ARGUMENTS because of the user (not root) does not have ownership on their ~/.vnc/passwd, so that when starting vncserver, /etc/init.d/vncserver cannot read all required arguments.
    Note: other user with valid argument still have valid vnc sessions to work.

  13. #13
    Join Date
    Apr 2008
    Location
    www.metasdata.com
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    Quote Originally Posted by badtrip
    any solve for this problem?
    What happens when you try to connect? I'm having the same problem but I have a feeling it has something to do with my iptables. I don't have RH-Firewall-1-INPUT chain and I haven't found how to add that yet so I can add my rule for it. So you might want to start there.

  14. #14
    Join Date
    Aug 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    Found something stupid that worked for me! Got to go into Remote Desktop and re-enable permissions (Allow users to view destktop, allow control of desktop etc). I was getting the server could not connect soon as I updated the Remote Desktop settings boom all fixed. Too bad I didnt check it before going through all the steps provided in this thread first.

    Good luck!

  15. #15
    Join Date
    Apr 2012
    Location
    Kuala Lumpur
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: fc15 vncserver error on start - INVALIDARGUMENT

    Quote Originally Posted by mariney
    I can restart the service success . but I can not connect to the server
    Thanx mariney.. because of your 2 cent.. i able to resolved my problem... thanx a lot..

    ---------- Post added at 04:47 AM ---------- Previous post was at 04:44 AM ----------

    mariney .. your two cent advice really solved my problem...

    just edit the /etc/sysconfig/vncserver and change the
    VNCSERVERS to VNCUSERS and VNCSERVERARGS to VNCUSERARGS

    so u now able to restart.. stop.. or start back your vncserver service without any problem

    Thx again to mariney

Similar Threads

  1. [SOLVED]
    FC15 preupgrade failue on java-1.5.0-gcj-javadoc-1.5.0.0-35.fc15.i686
    By gkasica in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 29th May 2011, 12:18 PM
  2. [SOLVED]
    Can't start kde with gdm-2.91.6-2.fc15
    By chepioq in forum F16 Development
    Replies: 5
    Last Post: 9th February 2011, 08:27 AM
  3. How to start VNCServer on FC4?
    By cr4ck3r in forum Servers & Networking
    Replies: 11
    Last Post: 6th April 2006, 01:54 PM
  4. how do I start the vncserver service
    By agenol in forum Using Fedora
    Replies: 5
    Last Post: 8th July 2005, 02:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]