CDE freezing


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers CDE freezing
# 1  
Old 12-11-2002
CDE freezing

I am running Solaris 8 intel and recently my Common Desktop environment will not load. I enter the root username and password at the prompt, it switches to the CDE screen and the freezes. The OpenWindows environment works fine. I tried with a regular username (not root) and I get the same resutls. Any ideas?
# 2  
Old 12-11-2002
Quote:
recently my Common Desktop environment will not load
What changed? If you know, then suggest you work from there (post what changed and possibly someone can help).

If you don't know, then try the pkgchk command (man pkgchk). It should be able to tell you if something is messed up. You would probably have to just reinstall it to get it working.

Nothing in particular showed up on SunSolve although there is a patch for CDE (108920-15). You could try it.

(Note - I just re-searched on SunSolve and found this)

At the CDE login (dtlogin) window, you have entered your username and password
correctly.

Dtlogin attempts to log you in (e.g., the background changes, a new Xserver
is started, etc.) but then, for no obvious reason, the login fails in one of the
following ways:

1. It abruptly returns to the dtlogin window.
2. It hangs on the welcome banner screen.
3. It takes 3 or 6 minutes to get into CDE.
4. It takes around 10 minutes to get into CDE.
5. It takes around 20 minutes to get into CDE.
6. It takes around 30 minutes to get into CDE.

System hangs with an hourglass on the welcome banner screen
Telnet to the system, if possible, and check the /var/adm/messages file and
/var/dt/Xerrors file.

This document demonstrates different approaches to troubleshooting this problem.
Follow through the steps below to try and isolate the cause.

1) Look at the startlog and errorlog files in $HOME/.dt

The logs may give clues to the cause of the error.

2) Verify whether there is an error in the global customization of CDE

Since CDE is so customizable, it is possible that changes
that have been done to the global customization area has
confused the login.

The command rm -rf /etc/dt removes all the global customization.
Note: Save the /etc/dt first if the changes are important

3) Verify whether there is an error in the local customization of CDE

Remove everything in the directory $HOME/.dt and the file $HOME/.dtprofile

From a command line login or remote telnet connection, move or remove
the directory $HOME/.dt and the file $HOME/.dtprofile.

These files or directories will be recreated upon the user's next CDE login.

4) Check for errors in the users environment

It is possible to put commands in the user's environment that
confuse the CDE login environment.

To prove that this is not the case, either remove or save the following
file depending on the users shell. If you're not sure, do all of the following:

cd $HOME
rm -f .login .cshrc .profile .kshrc

and remove any customization from /etc/profile that has been added. The online
manual pages for the various shells describe what files are used during a login.

As an alternative, set up a local user on the host and try logging in as that
user. If it works, it's a user issue. If not, it's an environment issue.

5) A Permissions or Access problem

After you have removed the customization that could have occurred
as described in the steps above, attempt to login as the root user.

Since access is unrestricted on any local file system, it will prove if the
problem is a permissions problem or something else.

Because logging in as root only checks permissions on a local file system,
verify whether the /usr/dt or /usr/openwin directories are local file systems.

If these directories are NFS mounted from another machine, ensure that they
are mounted and shared with root access.

You can do this on Solaris 2.x with the command:

share -F nfs -o root=machine /usr/dt

Change the machine and the directory to export to be appropriate for your
environment. Refer to the online manual page for share_nfs for further details.

Note: The reason for taking 30 minutes to get into CDE can be caused by NFS
mounting problems.

6) Incorrect tooltalk daemon

It is a possibility, although unlikely, that the CDE installion failed.
If this did occur, then the old OpenWindows tooltalk daemon may still be
being used.

Check that the latest version is installed by looking at the file
/etc/inetd.conf and look for a line similar to below:

For 2.5.1 -
100083/1 stream rpc/tcp wait root /usr/dt/bin/rpc.ttdbserverd rpc.ttdbserverd

For 2.6 and above -
100083/1 tli rpc/tcp wait root /usr/dt/bin/rpc.ttdbserverd rpc.ttdbserverd

The important point is the path to /usr/dt/bin/rpc.ttdbserverd

7) Corrupted tooltalk database

The tooltalk database that is used by CDE and openwin may sometimes get corrupted.
This can cause CDE to hang.

Installing the latest tooltalk patch and then cleaning the tooltalk database can
take care of the problem.

Note: 6 and 7 above can be the reason for CDE to hang for approximately10
minutes or hanging on the welcome banner screen with an hourglass.

8) Is or has the disk space reached 100 % in any partition?

In some circumstances, if a file system reaches 100% full the tooltalk
databases can get corrupted. The tooltalk databases, which are located
at each local mount point and are in directories with the name TT_DB, will
need to be cleaned up.

Check SRDB 12729 - "How to clean out the ToolTalk Databases" for detailed
information on how to acheive this.

A similar effect can be seen if a users quota is exceeded.

9) Check what name service is being used?

Look at the file /etc/nsswitch.conf to see what name service is being
used. Look at the hosts line. If it is anything other than

hosts: files

temporarily change that entry as above so that only the /etc/hosts
file is accessed when trying to lookup host information.

Ensure that the /etc/hosts file contains an entry for localhost,
as shown below, and an entry for the machine name.

127.0.0.1 localhost

Double check that the IP address for the machine is the same as
the system IP address. Run the command:

ifconfig -a

to check the interfaces IP addresses. Verify that the first name after the
IP address for the machine is the same as defined in /etc/hostname.* where *
is the name of the interface.

After confirming the details, reboot the system to ensure all processes take
account of the temporary change of name service.

If the login works after that then there is a problem with the previous hosts
map, whether it be DNS, NIS or NIS+. Either locate the specific problem or
change the name service map /etc/nsswitch.conf to have the files entry before
the name service.

For example, for DNS name services the /etc/nsswitch.conf hosts line would be:
hosts: files dns

Note: If the name service is the cause, then it might take 3 minutes
per name services used. So if there are two name services used and
both are before "file", then it might take 6 minutes to resolve, and
hence to get into CDE. If the name service and the tooltalk are the
cause of the problem, then it might take 20 minutes to resolve.

10) Manually start CDE from the command line

Before trying to start the openwin/CDE from command line, check if
there is a graphic mode at all which is needed for the openwin/CDE.

That can be done as follows -

From the command line (i.e., no gui is running), log in as root and start the
CDE environment using the commands below (assumes the root shell is ksh or sh):

# OPENWINHOME=/usr/openwin
# export OPENWINHOME

# $OPENWINHOME/bin/xinit
This just starts the Xserver.

At this point, a window should open with one window with no borders,
from which a window manager can be opened by typing dtwm &, or twm &.
And this confirms that there is graphic mode.

If the above fails, then there is something wrong with the graphic
card or its configuration.

If there is a graphic mode, try opening CDE from the command line by using
the following command -

# $OPENWINHOME/bin/xinit /usr/dt/bin/Xsession

If this fails, does a core dump get generated? Look at it via the symbolic
debugger "debugger" using a command such as:

debugger fullpath_of_program core

> where
> quit

If no core file is generated, try using the truss command to see if you can
identify the error. The command below will truss the processes and store the
truss output in a file in the current directory called logfile:

# truss -aef -o logfile $OPENWINHOME/bin/xinit /usr/dt/bin/Xsession

11) Run pkgchk for any corrupt packages, mostly the SUNWdt* packages.

12) Check for maximum CPU usage, etc by any process.
ps -ef | more

13) Check that the hardware is supported?

14) Re-Install CDE

If you still can't solve the problem, re-install CDE from the CDROM.
This is applicable only for Solaris 2.5.1, as CDE comes in a separate
CD for 2.5.1.
The install-cde script will attempt to remove the previous installation
before installing the packages again.


15) Re-Install OS + CDE

If the problem still is not resolved, the change to the system is extremely
difficult to track down. It may be simpler to just re-install the OS and CDE
from scratch.

Re-install the OS starting with a simple configuration with no networking.

Check that CDE works and then add networking and any name service that is
required until either the problem re-appears or the system is fully functional
again.






Last edited by RTM; 12-11-2002 at 01:46 PM..
# 3  
Old 12-15-2002
RTM-
Thanks for your help, you pointed me in the right direction. This all happened after I began screwing around with /etc/hosts, /etc/nodename and ifconfig, I tried a couple suggestions from the list, but none worked so I did a sys-unconfig and after reboot and setting up, it worked correctly. Thanks so much!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Linux keeps freezing on UFW BLOCK

Hi everyone, I have had trouble getting several versions of Linux stable on my machine over the last few months. I do not think the issue is with the machine. Windows ran fine on it for a long time. The current issue is that whenever I lock the screen then come back after a long time I find... (2 Replies)
Discussion started by: mojoman
2 Replies

2. UNIX for Advanced & Expert Users

Cp freezing from Seagate HDD to Win7

Hello all, Earlier I had a mac book and created a HFS+ file system on Seagate 1 TB external HDD, copied around 200 GB content. Now, I have a Windows 7 machine and wanted to copy the HDD contents to this new machine. Tried using MacDrive10 to mount HFS+ file system in Windows. Mouting is fine and... (1 Reply)
Discussion started by: matrixmadhan
1 Replies

3. Hardware

Laptop freezing issues

I am having Laptop freezing issues. Whenever I try to use Firfox and vlc, chrome and vlc, firefox and chrome, or anything similar to that my computer freezes. I always have to kill one of the processes before I can use my laptop again. I am guessing this is a hardware issue because when I move... (5 Replies)
Discussion started by: cokedude
5 Replies

4. Solaris

Connect to SunOS CDE from another CDE

I have two CDE desktop accounts on different server (called this CDE#1, CDE#2) on the same network. However, my current setup is connecting to the Solaris CDE#1,CDE#2 via Citrix. My plan is to connect to CD#1 and then somehow connect to CDE#2. How do I do this? I am just a regular user... (0 Replies)
Discussion started by: tthach830
0 Replies

5. BSD

FreeBSD 8.1 and OSS: system freezing

Hey all, This is my first post and I'm a brand new unix user. Just to let ya know, my technical knowledge consists of windows and linux(Ubuntu, Fedora, Sabayon, and Arch Linux), so I'm not a complete NOOB at using unix-like OSes. Anyway, I installed FreeBSD 8.1 yesterday and everything is... (0 Replies)
Discussion started by: nathanbrownitt
0 Replies

6. Red Hat

Mouse freezing after idle time

Hi All, I am having a problem where my mouse (USB) is freezing after some idle time, and I am having to reboot everytime that happens. I looked in the file /etc/X11/xorg.config to see if there is an entry for mouse and I could not find it. Instead I found the following entry: Section... (8 Replies)
Discussion started by: jxh461
8 Replies

7. SCO

X Server -> keyboard and mouse are freezing

hi I've configured X Server using Video Configuration Manager on SCO 5.0.6, but the keyboard and mouse are freezing after 5 minutes on the graphical login mask. ---------- Post updated at 01:59 PM ---------- Previous update was at 02:43 AM ---------- BTW I finished the configuration,... (2 Replies)
Discussion started by: ccc
2 Replies

8. UNIX Desktop Questions & Answers

How to migrate Solaris 10 CDE config to HP-UX CDE.

Hello, Do you guys by any chance know what is the best (if any ) way to move CDE configuration from a SOLARIS 10 machine to HP-UX? Just the config (actions, text files etc). Thanks in advance! (0 Replies)
Discussion started by: binary0x01
0 Replies

9. Solaris

Jet/Jumpstart installation freezing

Hi guys, I have a problem with installing new Solaris servers via jet/jumpstart (tried both). I`ve configured server, created profile for a client, issued {1} boot net -v install and went to get some cofee... After I came back, client was able to load system from server, get IP and,... (4 Replies)
Discussion started by: masloff
4 Replies

10. SCO

SCO Unix 5.0.5 freezing

Hie I use SCO Unix 5.0.5 as my operating system and i have been having the following problem for the past couple of days : After every 3 hours or more , my system freezes and all users are locked out .I can not do anything even on the console . Each time i have to press the reset button... (2 Replies)
Discussion started by: babby
2 Replies
Login or Register to Ask a Question