1825747 Members
2392 Online
109687 Solutions
New Discussion

Re: CDE will not restart

 
Richard Munn
Frequent Advisor

CDE will not restart

Run HP-UX 11i on a C3000.
I edited the /etc/dt/config/C/Xresources file to change the DTlogin*greeting.labelstring entry to change the dtlogin banner (from a telnet login). System was sitting at login on display. Did a dtlogin.rc reset - nothing happended. Then did a dtlogin.rc stop - wait 10 seconds and dtlogin.rc start. CDE will not start and the Xerrors file has:

Fatal server error:
Cannot establish listening sockets - Make sure an X server isn't already running

Server unexpectedly died

Server for display xxx:0 can't be started.

The only way I can get out of this is to reboot when CDE will comup normally. I have tried this on 4 other 11.11 workstartions and they all do the same thing. There are no X11 file in /tmp after the stop.

I tried this on an old 10.20 machine and it works fine.

What is going on??????
11 REPLIES 11
Ermin Borovac
Honored Contributor

Re: CDE will not restart

After dtlogin.rc stop, are there any files in /var/spool/sockets/X11?

If you have lsof, what does the following command return?

# lsof -i tcp:6000
Richard Munn
Frequent Advisor

Re: CDE will not restart

Yes there are files in /var/spool/sockets/X11:

srwxrwxrwx 1 root daemon 0 Apr 14 10:02 0
-rw------- 1 daemon daemon 44 Apr 14 10:02 daemon:0

lsof shows:
pexd_init 3615 daemon 3u inet 0x4470e100 0t0 TCP *:6000 (LISTEN)

I kill process 3615 and did a dtlogin start and it works again.

So does this mean the X server did not stop fully??
Ermin Borovac
Honored Contributor

Re: CDE will not restart

What's in /etc/dt/config/Xservers file?

# grep -v -e ^# -e ^$ /etc/dt/config/Xservers
Richard Munn
Frequent Advisor

Re: CDE will not restart

Xservers:

* Local local@console /usr/bin/X11/X :0 -audit 2
Ermin Borovac
Honored Contributor

Re: CDE will not restart

I'm not familiar with pexd_init. I think it comes with B6268AA (Graphics and Technical Computing Software) and it looks like it's started by X server (/usr/bin/X11/X).

X server is listening on port 6000+N, where N is display number (:0 from Xservers file). pexd_init is also using the same port, thus the conflict and startup error.

Now that you executed started dtlogin again, can you please post the output of the following two commands?

# UNIX95= ps -Hxfu daemon
# lsof -u daemon -a -i tcp
Richard Munn
Frequent Advisor

Re: CDE will not restart

Here it is...

(as attachments)

T G Manikandan
Honored Contributor

Re: CDE will not restart

I would suggest you to first stop the CDE

/sbin/init.d/dtlogin.rc stop

Again check for the pexd_init process whether they are running.


If they have got stopped start again using

/sbin/init.d/dtlogin.rc start
Ermin Borovac
Honored Contributor

Re: CDE will not restart

For some reason /sbin/init.d/dtlogin.rc stop does not stop pexd_init daemon.

Please try the following steps to disable it.

# cd /usr/lib/X11/extensions
# mv libXhpPEX.1 libXhpPEX.1.orig
# cp -p /usr/newconfig/usr/lib/X11/extensions/libXhpPEX.1 .
# chmod 555 libXhpPEX.1
# chown root:sys libXhpPEX.1
# /sbin/init.d/dtlogin.rc stop
# kill
# /sbin/init.d/dtlogin.rc start

You should not see pexd_init anymore.
Richard Munn
Frequent Advisor

Re: CDE will not restart

I'm not sure that is a good idea.
Isn't PEX needed for 3D graphics?
These workstations actually display 3D graphics.
T G Manikandan
Honored Contributor

Re: CDE will not restart

check this patch and the version of OS you are running.

http://www1.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHSS_26651
Andrew Cowan
Honored Contributor

Re: CDE will not restart

You mentioned no X files in "/tmp" after the restart. You don't have any security scripts that clear "/tmp" during reboot do you?

You could try making a copy of the files in "/tmp" and then reboot and manually reinstating, and then see if X-starts.