Operating System - HP-UX
1831642 Members
1781 Online
110027 Solutions
New Discussion

X-Server can not be started when booting

 
SOLVED
Go to solution
Ben Li
Advisor

X-Server can not be started when booting

I installed the IBM MQSeries to the HP machine (HP-UX 10.20). And following it's instruction changed some kernel parameters like below:
shmmax 4194304
shmseg 1024
shmmni 1024
shmem 1
sema 1
semaem 16384
semvmx 32767
semmni 1024 (semmni < semmns)
semmap 1026 (semmni +2)
semmns 16384
semmsl 100
semopm 100
semmnu 2048
semume 256
msgmni 50
msgmap 1026
msgmax 4096
msgmnb 4096
msgssz 8
msgtql 40
msgseg 1024
maxusers 32

After the change the MQSeries works fine, but the X-window can not start again.
It shows following message when booting:
The X-Server can not be started on display sunrise:0...

Other processes seems running well when booting. Can anyone help me to solve this
problem?

Thanks
10 REPLIES 10
Denver Osborn
Honored Contributor

Re: X-Server can not be started when booting

Is there anything in the /var/dt/Xerrors file that might help determine the cause?
Ben Li
Advisor

Re: X-Server can not be started when booting

Yes, bellow is the errors messages in the Xerrors file:

Thu Aug 10 15:06:57 2000
error (pid 1198): Server for display sunrise:0 can't be started.
Unable to open the Graphics Resource Manager.
The error occurred during GRM initialization.
The X11 server must be able to communicate with the
Fatal server error:
GRM process.
^[gXIO: fatal IO error 232 (Connection reset by peer) on X server "sunrise:0.0"^M
after 0 requests (0 known processed) with 0 events remaining.^M
Unable to open the Graphics Resource Manager.
The error occurred during GRM initialization.
The X11 server must be able to communicate with the
Fatal server error:
GRM process.
^[gXIO: fatal IO error 232 (Connection reset by peer) on X server "sunrise:0.0"^M
after 0 requests (0 known processed) with 0 events remaining.^M
Unable to open the Graphics Resource Manager.
The error occurred during GRM initialization.
The X11 server must be able to communicate with the
Fatal server error:
GRM process.
^[gXIO: fatal IO error 232 (Connection reset by peer) on X server "sunrise:0.0"^M
after 0 requests (0 known processed) with 0 events remaining.^M
Unable to open the Graphics Resource Manager.
The error occurred during GRM initialization.
The X11 server must be able to communicate with the
Fatal server error:
GRM process.
^[gXIO: fatal IO error 232 (Connection reset by peer) on X server "sunrise:0.0"^M
after 0 requests (0 known processed) with 0 events remaining.^M

Thu Aug 10 15:07:23 2000
error (pid 1198): Server for display sunrise:0 can't be started.
Rick Garland
Honored Contributor

Re: X-Server can not be started when booting

There is an executable called /usr/contrib/bin/X11/dr_dt that may help you troubleshoot. It will detail for you some of WARNINGS/ERRORS that it finds. These need to be cleaned up.
Denver Osborn
Honored Contributor

Re: X-Server can not be started when booting

To me it seems as though it could be an issue with system resources. You had modified kernel parameters to meet the needs of your IBM MQSeries app. Now that it is running those resources aren't available for GRM. Maybe if you brought down MQSeries Xwindows would start. If it does try increasing semmnu.
Alex Glennie
Honored Contributor

Re: X-Server can not be started when booting

I don't think the CDE diagnostic will show much on this, it's tailored to help CDE rather than the Xserver, but is worth ago. since you've changed kernal parameters it's much more likely to be to do with this : in the past semmaphores or shared memory maybe to blame :

I'd either up these and rebuild the kernal or disable MQseries and see if the problem goes away, if it does it certainly looks like MQseries is using memory or something similar and hence preventing the Xserver from starting.

for further info see man grmd, may also be worth removing /usr/spool/sockets/grmd say at run level 2 and then run /sbin/init 3/4 or trying to run /usr/lbin/grmd from the command line to see if it generates any additional errors ? My bet is semmaphores

best of luck !
Andy Monks
Honored Contributor
Solution

Re: X-Server can not be started when booting

Ben,

I think you've got the parameter for shmmax wrong. You've changed it to 4MB. The default is 64MB.

Try putting shmmax back to 64MB or higher (might be worth checking what the docs for MQ again.
Ng Pea Har
Occasional Advisor

Re: X-Server can not be started when booting

HI,

I have a similar problem CDE window would not start after I installed patch PHSS_21451.

I get error messages in /var/dt/Xerrors as follows:

XIO: fatal IO error 232 (Connection reset by peer) on Xserver "hostname"0.0"
after 0 requests ( 0 known processed) with 0 events remaining.

/usr/lib/dld.sl: Unresolved symbol: pFullScreenCursor (data) from /usr/lib/X11/Xserver/modules/screens/hp
Xcollector failed to load shared library; /usr/lib/X11/Xserver/modules/screens/hp/cgg.1
X collector: Unresolved external
X collector unable to load modules for broker, Cgg.1

Fatal server error:
X server rejected last DLD broker bidding on screen entries in X0screens.

How can make my CDE window run again.

Thanks
PH
Ng Pea Har
Occasional Advisor

Re: X-Server can not be started when booting

HI,

I have a similar problem CDE window would not start after I installed patch PHSS_21451.

I get error messages in /var/dt/Xerrors as follows:

XIO: fatal IO error 232 (Connection reset by peer) on Xserver "hostname"0.0"
after 0 requests ( 0 known processed) with 0 events remaining.

/usr/lib/dld.sl: Unresolved symbol: pFullScreenCursor (data) from /usr/lib/X11/Xserver/modules/screens/hp
Xcollector failed to load shared library; /usr/lib/X11/Xserver/modules/screens/hp/cgg.1
X collector: Unresolved external
X collector unable to load modules for broker, Cgg.1

Fatal server error:
X server rejected last DLD broker bidding on screen entries in X0screens.

How can make my CDE window run again.

Thanks
PH
Alex Glennie
Honored Contributor

Re: X-Server can not be started when booting

PH

The first thing I'd do would be to start a new post on this separate issue, people will see the magical answer icon and may not open up your question unless they're nosey like me : ). that said :

Sounds as if there may have been some install problem of the patch : was this the only patch you installed or was it part of a bundle ? Were there CDE and motif patches also installed ?

Did you install it whilst the Xserver / CDE were running against the advice of the patch documentation at all ?

See what the output of swlist -l fileset -a state reveals ?
Check the /var/adm/sw/*log files for clues ?
/usr/contrib/bin/X11/dr_dt may also prove useful ?

I'd be temped to swremove the patch and re-install it again, FYI PHSS_21461 has replaced PHSS_21451, you may find installing this resolves, but I'd go through the above first and make sure I had a back up first !

Alex Glennie
Honored Contributor

Re: X-Server can not be started when booting

also worth a go .....: at non-graphics run-level 2 or below ...

cd /dev
rm *crt*
insf -evd framebuf
init 3

does CDE / X start now , what's in the X0.screens file : check last few lines ?
Is this a workstation or server , can you establish a remote CDE connection say via an xterminal or PC to this host ?

What's in /var/dt/Xerrors & /var/X11/Xserver/logs/X0.log..... the last few lines ?