1833178 Members
2796 Online
110051 Solutions
New Discussion

Re: GUI Login failure

 
SOLVED
Go to solution
u856100
Frequent Advisor

GUI Login failure

My CDE login in HP-UX 11.00 returns to the login prompt each time after logging in as root. The environment just temporarily flickers before returning. My memory is OK as is disk space,

in confusion,

John
chicken or egg first?
17 REPLIES 17
Jeff Machols
Esteemed Contributor

Re: GUI Login failure

if you go into root's home directory, there should be a .dt directory. IN there is a file startlog, this should contain the error, then you can trouble shoot from that point.
George_Dodds
Honored Contributor

Re: GUI Login failure

Run /usr/contrib/bin/X11/dr_dt | more

The end of the output from this script should give X ERRORs and X WARNINGs. These errors and warnings should be resolved before CDE will run properly.

Check the error log /var/dt/Xerrors
Check the error log $HOME/.dt/errorlog

Vincenzo Restuccia
Honored Contributor

Re: GUI Login failure

Reloading
the system and that fixed it.
George_Dodds
Honored Contributor

Re: GUI Login failure

If it's a "cant connect to desktop messenger service" problem then check the following link

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x16c04e49c5cdd5118ff40090279cd0f9,00.html

Cheers

George

u856100
Frequent Advisor

Re: GUI Login failure

Great, thanks for that.

The error states that it is struggeling to open display.

My hostname is set but I am not set up on any network. I have managed to build other HP-UX machines with the 11.00 OS using a loopback IP, so I don't think this is the problem.

Error message (about 50 times!)

Xlib: Connection is not authorised to connect to Server
Xlib: Connection to "" refused by server

hmm?

chicken or egg first?
Bill Hassell
Honored Contributor

Re: GUI Login failure

The most common reason is name resolution. If you are using DNS, your DNS server probably doesn't know who you are yet. Check this with:

nslookup $(hostname)

If it can't be found, that is the problem. You can fix this problem (and improve performance) by creating /etc/nsswitch.conf and putting in the following entry:

hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

(the entry is all on one line). Now, /etc/hosts will be consulted first, and if not found, DNS will be checked. This also means that if the DNS server goes down, your workstation will still work.


Bill Hassell, sysadmin
Alex Glennie
Honored Contributor

Re: GUI Login failure

John,

appologies for not replying sooner .... lunchtime in UK. I'm kicking myself for not saying check the X11 filesets .... it did cross my mind but I thought that since it's a sub-set of CDe I'd of thought it would have installed by default ?

As to the new problem : dr_dt and starlog are good places to start also look at /var/dt/Xerrors and the syslog.log .

Can you login to a failsafe session ? If yes think hostname resolution problems/mismatches.

Sanjay_6
Honored Contributor

Re: GUI Login failure

u856100
Frequent Advisor

Re: GUI Login failure

Hi Alex, thanks for replying.

I am unable to log into a failsafe session.
Is this significant?

thanks

John
chicken or egg first?
Sanjay_6
Honored Contributor

Re: GUI Login failure

Alex Glennie
Honored Contributor

Re: GUI Login failure

What does it mean ...... it could mean hostname resolution is not to blame and that this is something more basic.

Can we try to isolate if it is an X or a CDE problem first ?

/sbin/init 2
/usr/bin/X11/X :0 ?

any errors to the screen or the X0.log file ? Or do you see a grey mesh aka Xserver start OK ? If yes you can use ctrl shift break to kill it. Let me know the results.
Sanjay_6
Honored Contributor

Re: GUI Login failure

Hi,

This looks like a name resolution problem only. The system is not on a network so the system ip should be configured to the loopback ip. when doing nslookup on this system, the ip address for the system should be resolved as 127.0.0.1 and the ip address 127.0.0.1 should resolve as the system_name.

Hope this helps.

Regds
u856100
Frequent Advisor

Re: GUI Login failure

hey Alex,

I get the grey mash, so as you said, the X server is starting fine.

john
chicken or egg first?
Jeff Machols
Esteemed Contributor

Re: GUI Login failure

check you /usr/dt/config/Xaccess file. Make sure there are no entries in there, this is kinda like /etc/shutdown.allow file.
u856100
Frequent Advisor

Re: GUI Login failure

Hi Alex,

There are no entries in this file.

John
chicken or egg first?
Alex Glennie
Honored Contributor
Solution

Re: GUI Login failure

Can you try this ?

vi /etc/X0.hosts

wq!

cp /usr/dt/config/config /etc/dt/config/Xconfig
remove the # ! eg ....

vi /etc/dt/config/Xcconfig

Dtlogin*authorize: False
wq!

restart X by a reboot or drop the system to run level 2 then go back to 3 and attempt to login in ?

ps -ef | grep X ?
dr_dt output ?

add set -x in $HOME/.dtprofile , attempt to login the review contents of $HOME/.dt/startlog now ?

ll /etc or /ust/dt/config/Xstartup ?

u856100
Frequent Advisor

Re: GUI Login failure

All,

Thanks for everyones help in this matter. A 4Gb disk has just become unexpectedly available, so I have made a claim and successfully installed HP-UX 11.00 on that. Because of timescales I unfortunately can't discover the root of the problem!

Thanks again

John
chicken or egg first?