1845023 Members
1775 Online
110233 Solutions
New Discussion

Re: CDE Problem

 
SOLVED
Go to solution
Carlos Ruffin
Advisor

CDE Problem

I have a model 712 workstation that I can't get CDE to start on. It always gives me the error "ERROR: can't open display: labhp1"
I have turned off all networking because this happened when I tried to enable DHCP. So I executed 'set_parms initial' and made it a standalone workstation. Even after that I still get the same can't open display error.

Thanks in advance for any help
Carlos
13 REPLIES 13
RAC_1
Honored Contributor

Re: CDE Problem

do you have entry for labhp1 in hosts file.

This seems to be the issue of name resolution. If name reolution happening properly-forward and backwards?
There is no substitute to HARDWORK
Alex Glennie
Honored Contributor

Re: CDE Problem

Qu : do you ever see the CDE login screen ?

if yes go to command line via options menu : if not just type on cmd line the following :

/usr/bin/X11/X :0 ... result ?

hint use to kill the Xserver

If that works looks like this is a specific CDE issue in which case running dr_dt is a good bet. I'd also be checking /etc/hosts,netconf etc for correct entries.

ps where do you see the error ?
Paul Sperry
Honored Contributor

Re: CDE Problem

This is almost always caused by network or hostname resolution problems. You need to login
using the character based console or a safe mode CDE login should work. Next, see if you can ping a node by ip address. Next by hostname. You should at least have a minimal hosts file with this node and loopback defined.

Be sure to check /etc/nsswitch.conf.
Carlos Ruffin
Advisor

Re: CDE Problem

Anil: Yes there is an entry in the hosts file for labhp1

Alex: I never see the CDE login screen.

All I have disconnected the workstation from the network completely and executed 'set_parms initial' to make it a standalone system. In my host file, should I have labhp1 as an alias to the loopback address of 127.0.0.1?

I ran 'dr_dt' and the only problem is "display is set to ""
Printaporn_1
Esteemed Contributor

Re: CDE Problem

Hi Carlos,
yes you can have labhp1 as an alias to the loopback address of 127.0.0.1

127.0.0.1 localhost loopback labhp1
HTH
enjoy any little thing in my life
Alex Glennie
Honored Contributor

Re: CDE Problem

everyone is assumming this is name resolution, just in case please try my X :0 test just in case .... the error doesn't sound right imho ..

a copy of your /etc/hosts + nslookup output for labhp1 and it's ip address would also be handy ...
Carlos Ruffin
Advisor

Re: CDE Problem

'/usr/bin/X11/X :0' gives me the following:

"Unable to open Graphics Resource Manager
The error occurred during GRM initialization.
The X11 server must be able to communicate with the
Fatal Server Error:
GRM Process"

What does this mean?

Also my hosts file looks like this

127.0.0.1 localhost loopback labhp1

nsswitch.conf has files for hosts
Alex Glennie
Honored Contributor

Re: CDE Problem

that's more like it ;-)

1. Remove all files from the '/var/spool/sockets/X11' directory.

2. Remove the '/var/spool/sockets/grmd' files.

3. Set the permissions to 777 on the '/tmp' directory.

result ?

ps I'm not going to be around till tomorrow am but this looks more like your problem as opposed to name resolution.

Carlos Ruffin
Advisor

Re: CDE Problem

Alex after removing those files and setting the permissions on '/tmp', I get the following when I run ,,,/X11/X :0

" Unable to open Graphics Resource Manager.
The /usr/lbin/grmd process cannot be executed.
The X11 server must be able to communicate with the
Fatal server error:
GRM process

let me know what to do next!!!
Alex Glennie
Honored Contributor
Solution

Re: CDE Problem

- check permissions on the following:
file: permission: ownership:
/ - 755 (root:root)
/usr - 555 (bin:bin)
/usr/lib - 555 (bin:bin)
/usr/lib/grmd - 4555 (daemon:bin)
/usr/spool/sockets/* - 777 (bin:bin)
/tmp/.X11-unix - 777 (bin:bin)
/tmp - 777 (???:???)
/dev/crt - 666 (root:root)
/dev/null - 666 (root:root)

- remove the following files:

/usr/spool/sockets/grmd
/usr/spool/sockets/X11/*
/tmp/.X11-unix/*

If that fails can you post the output from nslookup ... I want to see a) if it works and b) if it's using files ie /etc/hosts
for lookup

Lastly post the full dr_dt output or email me if you prefer.

Shannon Petry
Honored Contributor

Re: CDE Problem

Even though you set the workstation as stand alone, X requires the loopback and local resolution. Make sure the name in /etc/rc.config.d/netconf defining "HOSTNAME" is in the /etc/hosts file, and that the IP addresses are the same.

Regards,
Shannon
Microsoft. When do you want a virus today?
Carlos Ruffin
Advisor

Re: CDE Problem

Sorry, I have not replied. I haven't been able to get to this today and probably won't until tomorrow. I will let everyone know how it went when i get a chance to solve problems and not meet all day!!! I will award points after I try the things everyone said.
Carlos Ruffin
Advisor

Re: CDE Problem

Ok good news, I have finally gotten to the CDE login screen and everytime I try to login, it tries but then comes back with the login screen. I can't even login via failsafe mode. If anyone has any further suggestion, I would apprieciate it. If not Thank you guys all answers were helpful.