vnc issue after reboot


 
Thread Tools Search this Thread
Operating Systems Solaris vnc issue after reboot
# 1  
Old 10-30-2012
vnc issue after reboot

Hi ,

Everytime after reboot when user tries to start vnc below error is thrown

Code:
$ vncserver :5
Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

_XSERVTransSocketCreateListener: failed to bind listener
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for local

Fatal server error:
Failed to establish all listening sockets
_XSERVTransSocketCreateListener: failed to bind listener
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for local

Fatal server error:
Failed to establish all listening sockets

It works after removing .X11* files under /tmp . But want to know why this is happening after each reboot and we have to remove these files manually after which user is able to start the session.

A script is seen under /etc/rc2.d which has the below content

Code:
#!/sbin/sh

mkdir /tmp/.X11-unix /tmp/.X11-pipe 2>/dev/null
chmod 1777 /tmp/.X11-unix /tmp/.X11-pipe

# 2  
Old 11-01-2012
There are options to tell vnc to use just tcp/ip sockets. Since you are usually not local, that is fine. It takes the first one it can bind(). Look around in vncserver perl.
# 3  
Old 11-01-2012
sorry but can you please explain me what is the reason of this error and is there any fix for this and why this happens only after reboot.

I am using solaris 10
# 4  
Old 11-01-2012
There are two families of sockets X supports, AF_UNIX and AF_INET, see man 2 socket. AF_UNIX only works locally but AF_INET works on the internet. The files are markers for the AF_UNIX listeners, and should be removed on reboot but apparently are not. I usually have too little access to remove them, anyway. I had a similar error before, so I went into vncserver, a perl script, and discovered how to make it just test AF_UNIX. Oh look what google found: Unix - VNC
# 5  
Old 11-02-2012
Thanks to you , i didnt know that vncserver was a perl script. i will try this option next time.

Code:
vncserver -nolisten local

Btw.. can you please tell me what should i edit in the perl script so that a execution of "vncserver" command the system should automatically pick "-nolisten local" as parmaters.
# 6  
Old 11-02-2012
Just set the underlying variable to 1 as default. My vncserver is older, has no option, but look for this:
Code:
# If the unix domain socket exists then use that (DISPLAY=:n) otherwise use
# TCP (DISPLAY=host:n)
if (-e "/tmp/.X11-unix/X$displayNumber" ||
    -e "/usr/spool/sockets/X11/$displayNumber")
{
    $ENV{DISPLAY}= ":$displayNumber";
} else {
    $ENV{DISPLAY}= "$host:$displayNumber";
}
$ENV{VNCDESKTOP}= $desktopName;
system("$vncUserDir/xstartup >> " . &quotedString($desktopLog) . " 2>&1 &");
"vncserver" line 190

vncserver just finds an open port and calls Xvnc, so you can call it yourself.
# 7  
Old 11-03-2012
Hi ,

Should i replace $displayNumber in the above lines to 1 or should i declare the value of displayNumber=1 in the start of the script ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Issue in Bonding during Reboot(Linux)

Respected Members, We encountered an issue during node reboot when eth1 and eth5 of bond1 were behaving unusual(both eth1 and eth5 were in unknown states and ifdown and ifup were used to rectify). Please find the messages and configuration files as below and please let me know for any other... (0 Replies)
Discussion started by: Mudit Bansal
0 Replies

2. IP Networking

Node switched itself from static to DHCP on reboot issue

I'm trying to figure out what circumstances would cause an Open Solaris 11.2 host to switch itself from a static to a DHCP ip address upon reboot. This has only happened once but is a cause for some concern as this machine will be part of a web server pool. Nothing has changed on the LAN that... (2 Replies)
Discussion started by: SmokeyJoe
2 Replies

3. Solaris

vnc Issue

Dear all, I recently installed did VNC configuration on a Solaris Server. I am using VNC E4 2 7 as my Windows client. The issue is that every time I log into my machine and use terminal ( a few commands like df -h or any other command and then close VNC ( windows). When I log back in ,... (9 Replies)
Discussion started by: Junaid Subhani
9 Replies

4. Shell Programming and Scripting

Reboot script issue

Hi guys I am troubleshooting a script that informs me when a system has rebooted. The script is placed in /etc/rc3.d folder under root. The script is as follows: . /opt/scripts/function.sh PATH=/usr/bin EMAIL_ADD=<email address> ... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies

5. Solaris

VNC issue on solaris10

M running solaris 10 u8 my vncserver is running on :0 .. and when i try to connect it through tight vncview i can see just see the screen .. with no terminal .. what could be the issue for it ? and what i need to check for it ? (2 Replies)
Discussion started by: fugitive
2 Replies

6. Solaris

VNC as only 1 user issue

Our current VNC setup is for only 1 user login, but this login can not access a few of the programs that I need. How can I add additional logins to VNC? I have only been able to find the logs in .vnc and the usr/bin scripts. (1 Reply)
Discussion started by: gcad76
1 Replies

7. Solaris

Controller Issue on X4600 after reboot

One of my X4600 server had a power loss and rebooted and now its giving me a strange problem servers internal disk controller naming has changed by itself ... the after failsafe boot md.conf file shows following c3txdx but shows internal disk at c4txdx ... what could be the reason for this and... (1 Reply)
Discussion started by: fugitive
1 Replies

8. SCO

SCO Reboot Issue

Hi, We are using SCO UNIX 7.1.3 and the server recently started rebooting by itself. Do anyone know how can i create a dump or crash dump while the server rebooots? Your quick help on this is really appreciated. Regards, Ravikumar R (1 Reply)
Discussion started by: rrb2009
1 Replies

9. HP-UX

Issue in reboot

Hi, Whenever I reboot this server remotely by using the command 'shutdown -r now' or 'reboot'. The server does not return to normal multi-user mode. It boots in single user mode. To bring back the server, someone is required to connect via console and fire 'init 3'. Please suggest on what... (1 Reply)
Discussion started by: mystition
1 Replies

10. Linux

VNC/Fedora7 issue

Hi, This has been extremely frustrating, and I need help figuring this one out! I am running Fedora 7 on computer A, and am VNCing into it from my Mac using Chicken of the VNC. For Sarah, everything works fine. However for Bob, the toolbar along the top is missing and every... (0 Replies)
Discussion started by: user23
0 Replies
Login or Register to Ask a Question