| View previous topic :: View next topic |
| Author |
Message |
V0rtex n00b


Joined: 13 Apr 2003 Posts: 71
|
Posted: Thu Jul 27, 2006 5:16 am Post subject: Wierd problem - can only log in once - hangs ... [SOLVED] |
|
|
I am really stuck on this one. I just did some updates yesterday (emerge -uDav world) and now I am having issues with logging in. Here is a list of symtoms for whatever this problem could possibly be:
- When I boot up the computer I can only log in once (I can choose to log in either through a tty or I can log in from gdm)
- After logging in the first time, any further attempts to log in causes it to hang at the login prompt
- Running 'su' hangs after typing the password
- Attempting to log in via ssh hangs after typing the password
- Any attempt to shutdown or reboot just hangs after displaying the shutdown announcement
I have already remerged 'shadow' as I thought maybe there was a problem there. I have tried booting to the previous kernel as well...all with no effect. It must have been something I installed when I updated but I don't remember what packages were in the list so that doesn't really help a whole lot.
Last edited by V0rtex on Fri Jul 28, 2006 3:58 am; edited 1 time in total |
|
| Back to top |
|
 |
smerf l33t


Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Thu Jul 27, 2006 10:00 am Post subject: |
|
|
take a look at /var/log/emerge.log _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
| Back to top |
|
 |
V0rtex n00b


Joined: 13 Apr 2003 Posts: 71
|
Posted: Thu Jul 27, 2006 1:58 pm Post subject: |
|
|
Okay, here is the list of packages I have updated. I can't really see why any of these would cause the issue I am having. Any ideas?
sys-libs/gpm
sys-devel/gettext
sys-kernel/gentoo-sources
dev-libs/liboil
dev-libs/apr
dev-util/subversion
dev-java/swt
app-portage/layman
dev-util/git
|
|
| Back to top |
|
 |
lokik n00b

Joined: 11 May 2005 Posts: 18
|
Posted: Thu Jul 27, 2006 2:30 pm Post subject: |
|
|
| Have you etc-update? |
|
| Back to top |
|
 |
V0rtex n00b


Joined: 13 Apr 2003 Posts: 71
|
Posted: Fri Jul 28, 2006 1:39 am Post subject: |
|
|
| yep, sure have |
|
| Back to top |
|
 |
V0rtex n00b


Joined: 13 Apr 2003 Posts: 71
|
Posted: Fri Jul 28, 2006 3:57 am Post subject: |
|
|
Okay all better now. In case someone else has this problem in the future, I will post my detection and fix of this problem.
I decided to do a little bit of an in-depth investigation into this issue so I emerged and installed 'strace' so I could trace the calls of '/bin/login' since that seemed to be where the hanging occured for the most part (although other things were involved as well). So I ran | Code: | | # strace /bin/login |
After a bunch of system calls scrolled by, it paused and I typed 'root' to attempt to log in as root. It then made another number of system calls and then stopped again. After entering my password, I watched to see where it was hanging and I saw a few interesting lines: | Code: | socket(PF_FILE, SOCK_STREAM, 0) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
sendto(4, "<36>Jul 27 21:45:04 PAM-securett"..., 84, MSG_NOSIGNAL, NULL, 0) = 84
|
...at this point '/etc/passwd' hadn't even been opened yet to try and authenticate. I noticed that it opened a socket to write log data and then just hung there waiting. I figured it had to be something with logging so I went on and decided to take a good look at some of my logs. I noticed something interesting - nothing had been logged since the day that I first noticed this trouble. Armed with the knowledge that my logger wasn't working right, I decided that it was probably a bad idea that I set up my system with 'metalog' so I scrapped metalog and emerged 'syslog-ng' which is far better and has more features. After a nice clean reboot, everything is now back to normal  |
|
| Back to top |
|
 |
|