Operating System - HP-UX
1846788 Members
4525 Online
110256 Solutions
New Discussion

CDE login not run (HP-UX 10.20)

 
Francisco J. Soler
Honored Contributor

CDE login not run (HP-UX 10.20)

CDE login screen not work only conslole mode.

The process dtlogin and dtrc are running.
The file Xerros is empty.

Any suggestion are wellcome.

Frank.
Linux?. Yes, of course.
16 REPLIES 16
Robert-Jan Goossens
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Frank,

Could you run dr_dt and the warnings and errors.

Robert-Jan
Francisco J. Soler
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi Robert-Jan,
after run dr_dt, i see one WARNING none ERRORS, the WARNING is:

/usr/dt/bin/hpterm does not exist. It should be a symbolic link to the file /usr/bin/X11/hpterm. [...]

But i have other HP-UX boxes with the same warning and are working fine.

Frank.
Linux?. Yes, of course.
Robert-Jan Goossens
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi Frank,

That's not mutch :-)

did something change, hostname, ipaddress, duplicate names in the /etc/hosts file ?

Robert-Jan
Francisco J. Soler
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi Robert-Jan,
thanks for your interest.

The problem occurred when ME10 software hanged, then the shutdown did not work, and then the power cable was unpluged.

When the HP-UX box was connected again, after a system repair (was fine), the CDE login screen did not appear any more.

Frank.
Linux?. Yes, of course.
KapilRaj
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Do an fsck on all the filesystems in rootvg

Kaps
Nothing is impossible
Robert-Jan Goossens
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi Frank,

Here is a step by step CDE troubleshooting guide.

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072080266

Document description: CDE Login Troubleshooting
Document id: KBRC00004688

Think you need to mv $HOME/.dt directory to a .dt.old and restart cde again to solve your error. Most likely this is corrupted due to the "powerfail"

Hope this Helps,
Robert-Jan
Alex Glennie
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

CDE is started on the local console by the entry in /usr/dt/config/Xserers or /etc/dt/config/xserver (which takes precedence)
can you check to see if either of these exist and if the * Local local@console /usr/bin/X11/X :0 line is commented out at all ?

If this is not the case : drop the run level to 2 and run /usr/bin/X11/X :0 and record any errors : use to kill the Xserver if need be.
Francisco J. Soler
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi all,
I've run /usr/bin/X11/X :0 without errors, even i have executed startx and there is no problem, but cde login is not showed.

is there another file to log what is happening?
Xerrors is always empty.

I've tried too, dtgreet inside startx but nothing.

Frank.
Linux?. Yes, of course.
Steve Steel
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi

/sbin/init.d/dtlogin.rc stop

rm /var/dt/Xerrors

/sbin/init.d/dtlogin.rc start

Tail /etc/rc.log /var/adm/syslog/syslog.log and /var/dt/Xerrors

ps -ef|grep dt

What is result

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Francisco J. Soler
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi all,

/sbin/init.d/dtlogin.rc stop ... done

rm /var/dt/Xerrors ... done

/sbin/init.d/dtlogin.rc start ... done

Tail /etc/rc.log /var/adm/syslog/syslog.log and /var/dt/Xerrors

The only file that has some interesting thing is /etc/rc.log and this is your content:
-----
Start CDE login server
Output from "/sbin/rc3.d/S990dtlogin.rc start"
Starting up the Status Monitor daemon
rpc.statd already started, using pid:576
Starting up the Lock Manager daemon
rpc.lockd already started, using pid: 582
-----

ps -ef|grep dt
---
root 1056 1 0 13:24:59 ? 0:00 /usr/dt/bin/dtrc /usr/dt/bin/dtrc
root 1071 1069 0 13:25:06 ? 0:00 /usr/dt/bin/dtlogi
----

Frank.
Linux?. Yes, of course.
Francisco J. Soler
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi,
Is it possible to reinstall only the CDE fileset from the installation CD?, Will this solve the problem?

Frank.
Linux?. Yes, of course.
KapilRaj
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

I think this is possible browse ur Application cds

Kaps
Nothing is impossible
Francisco J. Soler
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Hi guys,

some more ideas!, i will assign points to all of you that help me to solve the problem in any way.

Frank.
Linux?. Yes, of course.
Myles McManus
Frequent Advisor

Re: CDE login not run (HP-UX 10.20)

I had a similar problem lately. There are so many possible causes for this that troubleshooting becomes very difficult and frustrating. Check permissions. Also ensure that you're getting a good display! That was the root cause of my problem. I inserted the following into /etc/profile:

# Try to give a decent $DISPLAY
if [ "$DISPLAY" = "" ] ; then
LocalHost=$(uname -n)
MyHost=$(who am i -R | cut -d \( -f2 | cut -d \) -f1)
MyHost=${MyHost%%:*}
if [[ -z $MyHost ]]
then
DISPLAY="${LocalHost%%:*}:0.0"
else
DISPLAY="${MyHost%%:*}:0.0"
fi
export DISPLAY
fi

I already had a few lines in /etc/profile to set the display, but they were obviously not doing the job, and the above lines did the job.

Best of luck,

Myles
There's no place like $HOME.
Charles Slivkoff
Respected Contributor

Re: CDE login not run (HP-UX 10.20)

Check /etc/dt/config/Xservers for a commented-out entry.

Either remove this file or uncomment the line:

* Local local@console /usr/bin/X11/X :0

and restart dtlogin via /sbin/init.d/dtlogin.rc

Francisco J. Soler
Honored Contributor

Re: CDE login not run (HP-UX 10.20)

Thank you all for your suggestions, i was not able to make CDE login works.

I updated the CDE fileset only without dependencies but didn't work. I was searching for some error or warning messages, I followed all your suggestions but nothing.

The solution was to run startx when login in, in console mode and execute the user application from .xinitrc.

The last solution will be to reinstall the whole system, but not for the moment.

Frank.
Linux?. Yes, of course.