Operating System - HP-UX
1819836 Members
2675 Online
109607 Solutions
New Discussion юеВ

Re: xvfb could not stopped or started...

 
Deepu Chakravarty
Regular Advisor

xvfb could not stopped or started...

While stopping/starting xvfb, following error is coming. How to remove these errors ?
/sbin/init.d/xvfb stop

Fatal server error:
Server is already active for display 1
If this server is no longer running, remove /tmp/.X1-lock
and start again.

mwm: Could not open display.
xhost: unable to open display "80.0.0.174:0.0"
not found
9 REPLIES 9
R. Sri Ram Kishore_1
Respected Contributor

Re: xvfb could not stopped or started...

Hi,

Did you check if xvfb is already running on your system, when you started it? Did you try removing /tmp/.X1-lock
and starting again? Did it work? Also, is the IP address correct? Did you do "xhost +" after "export DISPLAY=80.0.0.174:0.0"? Try :10.0 instead of 0:0 in the previous command.

If you have done all of these, then you might want to take a look at the following docs for more information:
- http://www.idevelopment.info/data/Unix/General_UNIX/GENERAL_XvfbforHPUX11_0.shtml
- http://www.redbooks.ibm.com/redbooks/SG245130.html (Refer to Chapter 6. The X Virtual Frame Buffer and Softgraphics)

HTH,
Sri Ram
"What goes up must come down. Ask any system administrator."
Deepu Chakravarty
Regular Advisor

Re: xvfb could not stopped or started...

After removing the file .X-lock and try to stop the xvfb , now following error is coming:
# /sbin/init.d/xvfb stop
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
mwm: Could not open display.
xhost: unable to open display "80.0.0.174:0.0"
not found
RAC_1
Honored Contributor

Re: xvfb could not stopped or started...

Which screen you use for Xvfb? Try to use the one that system will not use. It is a good idea to use a higher number. such as 10, 15 etc.

Also checl you have lock file as mentioned try removing lock files and then try.

Please refer the following link, which explains, which screen number should be used.

http://www.idevelopment.info/data/Unix/General_UNIX/GENERAL_XvfbforHPUX11_0.shtml

Anil
There is no substitute to HARDWORK
Deepu Chakravarty
Regular Advisor

Re: xvfb could not stopped or started...

Basically I want all these settings should be removed first. Then I will start xvfb through /sbin/init.d/xvfb start and by default it will take display 10
RAC_1
Honored Contributor

Re: xvfb could not stopped or started...

/sbin/init.d/dtlogin stop and then start

Anil
There is no substitute to HARDWORK
Alex Glennie
Honored Contributor

Re: xvfb could not stopped or started...

ps -ef ├В┬ж grep X ?

ps -ef ├В┬ж grep xvfb ?

note the display id numbers .... local Xserver normally uses :0, xvfb can be configured to use any others normally :5 or :10

it sounds that something is using whatever id number you have configured xvfb to use already ... maybe a previos xvfb session ?

may also be worth clearing out the
/var/spool/sockets/X11 dir and also checking the xvfb log file in /var/X11/Xserver/
Steven E. Protter
Exalted Contributor

Re: xvfb could not stopped or started...

xvfg uses :10

Thats build into the configuration file /etc/rc.config.d/xvfb

For other users, this code is useful in .profile or /etc/profile

DISPLAY=$(who -m -u | awk '{print $8}'):0.0
export DISPLAY

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Deepu Chakravarty
Regular Advisor

Re: xvfb could not stopped or started...

Thanks to all who participated in this thread. Actually in xvfb file all these settings were mentioned which I removed. Then I restarted the xvfb. Its up now.

--Deepu.

adhil
New Member

Re: xvfb could not stopped or started...

Hi ,

I had the same problem.But when i tried out with the command
"Xvfb :10 -screen 0 640x480x8 -nolisten tcp"
there was no XERVER error.But it came out with the error "Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!"
Could anyone guide me to solve this.
-adhil.J