1827379 Members
4411 Online
109963 Solutions
New Discussion

Re: Cannot log into CDE.

 
David Heath_1
Advisor

Cannot log into CDE.

I have just rebuilt a users workstation and now when any user or root try to login to CDE an error message stating that the "Desktop messaging system failed to initialise or start. Check $home/.dt/errorlog"

CDE then chucks me back to the login screen.

Looking in the $home/.dt/errorlog file there is a comment about ttsession:
"dtsession: The ToolTalk session server (ttsession) could not be started. This
indicates that either ToolTalk is not installed or that it is not
installed correctly on this machine. Please see your System
Administrator."

I have tried everything suggested in the knowledge base document
KBRC00004164 which hasn't helped.
I have ran Dr_dt which showed 0 errors and 0 warnings.
I have looked at knowledge base document KBRC00004688 but this too does not give me an answer.

The only thing I could see that could be wrong is that in the syslog file there is a machine mentioned which is not the machine I am trying to logon to. It says:
Jun 6 14:44:00 MACHINE1 syslog: libtt[13785]: libtt: system("ttsession -s -d MACHINE2
:0"): signal 4

Where machine1 = the current workstation
and macine 2 = some other machine on our network.

Anybody got any other ideas as to what is happening that hasn't been covered in the knowledge base articles.

Cheers,
David.
13 REPLIES 13
Steve Steel
Honored Contributor

Re: Cannot log into CDE.

Hi



1)vi /etc/inetd.conf
2)Find
rpc stream tcp swait root /usr/dt/bin/rpc.ttdbserver 100083 1 /usr/dt/bin/rpc.tt
dbserver
3)Comment it out.
4)inetd -c
5)Find the $PPID of /usr/dt/bin/rpc.ttdbserver and kill -9 $PPID
6)mv /TT_DB/ to other name on root and any local directories where it exists.
ll /TT_DB /*/TT_DB and remove all directories found which are local.
7)vi /etc/inetd.conf
8)Find
rpc stream tcp swait root /usr/dt/bin/rpc.ttdbserver 100083 1 /usr/dt/bin/rpc.ttdbserver
9)Remove the comment and reopen the line.
10)inetd -c

The first rpc request will rebuild the database.


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

Re: Cannot log into CDE.

1) check rpcbind is running

2) I'd be tempted to run set_parms initial again

3) how did you rebuild ?

4) Can you get to CDEKBRC00003554 ?

David Heath_1
Advisor

Re: Cannot log into CDE.

Sorry - ignore that bit in syslog about the other machine. Thats just me trying to reflection X to it!! Didn't recognise my own pc name!! Im a fool!!

Rpc is running fine.

Someone just told me it could be Font errors. Having a look at this.

Thanks for the quick resopnses.

Shahul
Esteemed Contributor

Re: Cannot log into CDE.



Hi

A small Input here. Please check ur /etc/hosts entries once again. It should have own IP address with hostname and loop back address.


Best of luck
Shahul
David Heath_1
Advisor

Re: Cannot log into CDE.

/etc/hosts is fine also.

Looking at /var/dt/Xerrors this is mentioned:

/usr/bin/X11/xset: bad font path element (#40), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-dt-interface user-medium-r-normal-l*-*-*-*-*-*-*-*-*" to typ
e FontSet


Is it just a permissions problem? Which file do I need to check?

Many thanks.
Steve Steel
Honored Contributor

Re: Cannot log into CDE.

Hi

he simple solution to this problem involves configuring and
running a font-server on the system which is running CDE and
forcing the font server into the X-Server (X-Terminal) font-path.

To do this a few things are required:

1 - The font server needs to be configured to include the CDE
fonts in its catalog

EDIT: /etc/X11/fs/config

Append ",/usr/dt/config/xfonts/C" to the end of the
"catalogue = ..." line

EDIT: /etc/rc.config.d/xfs

Set the following variable: "RUN_X_FONT_SERVER=1"

EXECUTE: /sbin/init.d/xfs start

If the font-server is already running, kill it and
restart it.

2 - Force CDE to add the font-server to the X-Server font-path
by editing the Xsetup file. (NOTE: This steps REQUIRES
the IP address of the CDE session server. You can get
this information by running: nslookup `hostname`.)

COPY: /usr/dt/config/Xsetup to /etc/dt/config/Xsetup
EDIT: /etc/dt/config/Xsetup

Add the following line to /etc/dt/config/Xsetup replacing
"IPADDRESS" with the IP address of the server as returned
from "nslookup `hostname`":

$XDIR/xset fp+ tcp/IPADDRESS:7000 1>/dev/null


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
David Heath_1
Advisor

Re: Cannot log into CDE.

Sorry Steve, I have just followed everything you suggested but it still doesn't work.

Cheers for your help.
Steve Steel
Honored Contributor

Re: Cannot log into CDE.

Hi

Should work

Did you exit CDE after xfs set


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

Re: Cannot log into CDE.

tooltalk want have problems wrt fonts ...if you are using ReflectionsX that's where those errors are comming from it won't hurt to setup xfs but in my opinion it won't resolve your problem ... did you try any of my suggestions ?
Pete Randall
Outstanding Contributor

Re: Cannot log into CDE.

David,

Is that the exact text of the message about the messaging system ("Desktop messaging system failed to initialise or start")? There are a lot of threads in the forum about "desktop messaging system could not be started", most of which seem to focus on name resolution. Could this be your issue?

Pete

Pete
David Heath_1
Advisor

Re: Cannot log into CDE.

Restarted CDE, still didn't let anyone in.


Alex,

Rpcinfo -p gives:
program vers proto port
100000 2 tcp 111 rpcbind
100000 2 udp 111 rpcbind
100007 2 tcp 1028 ypbind
100007 2 udp 1028 ypbind
100007 1 tcp 1028 ypbind
100007 1 udp 1028 ypbind
100029 1 udp 750 keyserv
100024 1 udp 780 status
100024 1 tcp 782 status
100021 1 tcp 786 nlockmgr
100021 1 udp 1034 nlockmgr
100021 3 tcp 790 nlockmgr
100021 3 udp 1035 nlockmgr
100021 4 tcp 794 nlockmgr
100021 4 udp 1036 nlockmgr
100020 1 udp 4045 llockmgr
100020 1 tcp 4045 llockmgr
100021 2 tcp 801 nlockmgr
100099 1 udp 2155 automountd
100068 2 udp 1040 cmsd
100068 3 udp 1040 cmsd
100068 4 udp 1040 cmsd
100068 5 udp 1040 cmsd
100001 2 udp 1041 rstatd
100001 3 udp 1041 rstatd
100001 4 udp 1041 rstatd
805306352 1 tcp 800
100005 1 udp 841 mountd
100005 3 udp 841 mountd
100005 1 tcp 844 mountd
100005 3 tcp 844 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100083 1 tcp 1661 ttdbserver
1342177279 3 tcp 1699
1342177279 1 tcp 1699

Seems ok.

The build was from our ignite server and so running set parms again I doubt will help as all hostnames were specified at the time of build.

Just looking at the KB article.

Thanks
David Heath_1
Advisor

Re: Cannot log into CDE.

Cheers Pete for the suggestion. I ve had a look at most of the threads already on the forum, but I dont think it is name resolution. When I do an nslookup forwards and backwards it returns the same values. Ive changed th name resolution to work form DNS and from the hosts file but still now joy.

Thanks for you help though.
Steve Steel
Honored Contributor

Re: Cannot log into CDE.

Hi

Does

/usr/contrib/bin/X11/dr_dt give any problems.


When you reset the rpc.ttdbsession are you sure you got all of the TT_DB directories.

Try this

Check permissions and ownership of the following files:

-r--r--r-- 1 bin bin 616 Jul 1 16:03 /etc/hosts
-r--r--r-- 1 root sys 1010 Jun 25 18:22 /var/adm/inetd.sec
Check the contents of /var/adm/inetd.sec. It should contain:

dtspc allow [hostnames or '*'. No aliases]
spc allow [hostnames or '*'. No aliases]
mserve allow [hostnames or '*'. No aliases]
If not add these lines to this file and reread the file:

/usr/sbin/inetd -c



If you still cannot login try mv $HOME/.dt to $HOME/.dt.old

login again


Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)