Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
'su' hangs after some time, 'emerge' hangs for some packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jwebuser
n00b
n00b


Joined: 06 Sep 2011
Posts: 5
Location: Berlin, Germany

PostPosted: Thu Sep 15, 2011 9:15 am    Post subject: 'su' hangs after some time, 'emerge' hangs for some packages Reply with quote

Hi all,

since some days I have some strange problems, which seem to me to be connected to each other.
I am still quite new to Gentoo so please apologise any details missing in my description.

1)
After logging in into Gnome I can reboot/shutdown/logout without problems, but after some time it is not more possible at all.
If I try to do it by Gdm, then everything disappears only the background image keeps and nothing else happens.
If I try to shutdown in the Bash then just nothing happens, no processor activity is visible.
The following different commands do not work:
Code:

halt
shutdown -r now
shutdown -hP now

After typing the commands just nothing happens...

2)
After freshly logging in into Gnome I can call 'su' to be root. But after some time this isn't possible any more. After typing 'su' just nothing happens...

3)
'emerge' does not work for all packages to be installed.
Only certain packages are affected, e.g. net-dns/avahi ('emerge -av --debug net-dns/avahi'):
Code:

useradd when trying to emerge net-dns/avahi:
+ useradd -r -u 109 -s /sbin/nologin -d /dev/null -g avahi-autoipd -c 'added by portage for avahi' avahi-autoipd

... and here it hangs and nothing happens
It always hangs at trying to call the 'useradd' command.
Trying to add a dummy user with 'useradd' has the same effect!


What have I tried to solve these problems:

I searched to Forums :) (and Google) but unfortunately without much success.

One post (https://forums.gentoo.org/viewtopic-t-712342.html) mentioned to activate a "Tickless System" in the kernel. This was already the case for me so did not help:
Code:

Processor type and features  --->
   [*] Tickless System (Dynamic Ticks)


My '/etc/sudoers' has uncommented only this:
Code:

root ALL=(ALL) ALL


The python-updater gives this result:
Code:

python-updater:
 * Starting Python Updater...
 * Main active version of Python:  2.7
 * Active version of Python 2:     2.7
 * Active version of Python 3:     3.1
 * No packages need to be reinstalled.


Here my emerge --info:

Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-_i5_CPU_M_480_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 14 Sep 2011 07:15:01 +0000
app-shells/bash: 4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4-r1
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.8.3-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc: 2.12.2
Repositories: gentoo gnome keruspe suka rubenqba sunrise seden
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/keruspe /var/lib/layman/suka /var/lib/layman/rubenqba /var/lib/layman/sunrise /var/lib/layman/seden"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X acl additions alsa amd64 ao avahi berkdb bluetooth bzip2 cairo cdda cjk cli consolekit cpudetection cracklib crypt cups cxx dbus device-mapper doc dri emerald extensions extra-tools extras flac fontconfig fortran gd gdbm gdu gif gnome gpm gtk iconv icu ipv6 jack jadetex java jpeg kpathsea lcms ldap libsamplerate mad mikmod mmap mmx modules motif mp3 mudflap multilib nano-syntax ncurses nls nptl nptlonly nsplugin opengl openmp oss pam pcre pdf perl png policykit pppd pulseaudio python qt4 readline realtime samba sdk session slang sndfile speex sqlite sse sse2 ssl static-libs svg sysfs tcpd threads tiff timidity tk truetype unicode vboxwebsrv vim-syntax vnc vorbis x11-libs xcb xft xinerama xml xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810 r128 fglrx 3dnow 3dnowext" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I will be happy for any help!!!
Back to top
View user's profile Send private message
rynalous
n00b
n00b


Joined: 08 Dec 2009
Posts: 5

PostPosted: Thu Sep 15, 2011 12:18 pm    Post subject: Reply with quote

jwebuser wrote:
Hi all,
1)
After logging in into Gnome I can reboot/shutdown/logout without problems, but after some time it is not more possible at all.
If I try to do it by Gdm, then everything disappears only the background image keeps and nothing else happens.
If I try to shutdown in the Bash then just nothing happens, no processor activity is visible.
The following different commands do not work:
Code:

halt
shutdown -r now
shutdown -hP now

After typing the commands just nothing happens...

2)
After freshly logging in into Gnome I can call 'su' to be root. But after some time this isn't possible any more. After typing 'su' just nothing happens...

3)
'emerge' does not work for all packages to be installed.
Only certain packages are affected, e.g. net-dns/avahi ('emerge -av --debug net-dns/avahi'):
Code:

useradd when trying to emerge net-dns/avahi:
+ useradd -r -u 109 -s /sbin/nologin -d /dev/null -g avahi-autoipd -c 'added by portage for avahi' avahi-autoipd

... and here it hangs and nothing happens
It always hangs at trying to call the 'useradd' command.
Trying to add a dummy user with 'useradd' has the same effect!


Not that I could help much, but this "nothing happens" does not indicate much success. Can you compile for hours without any ill effect (or does it also stop or something)? Had a similar problem with a laptop: it had to be shutdown manually after sometime (it stopped responding no matter OS wise). Turned out it was a hardware problem. I'd suspect RAM in your case. Just a wild guess though. Maybe try a memtest and see for yourself? If that's okay then you could try checking the /var/log/Xorg.0.log file and pay attention to the (EE) entries, if there is any (you could have forgotten to install something). And why do you use GNOME 3? It's a bloated DE, so why not give a try to a window manager instead, much easier to maintain than a heavy desktop environment...considering compiling times that is (just a hint though).
_________________
Don't worry: if you succeed, you'll fail eventually, and vice versa. (Sometimes you're soaring on the skies and other times you're swimming in the oceans...)
Back to top
View user's profile Send private message
jwebuser
n00b
n00b


Joined: 06 Sep 2011
Posts: 5
Location: Berlin, Germany

PostPosted: Fri Sep 16, 2011 2:23 pm    Post subject: Reply with quote

Hi rynalous, :)

at first thanks for your fast response!

On the same machine I also have a Ubuntu running. I will work some time on it in order to check whether the same/similar problems happen there. Additionally I will do a memtest as suggested by you. I also could try a lightweight window manager and there I could see if the problem still exists in the same OS. I also will have a look into the /var/log/Xorg.0.log!

Success or failure I will give you feedback!
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2014

PostPosted: Sat Sep 17, 2011 8:49 am    Post subject: Reply with quote

"su" does two things; first it checks the login credentials you give for the target user (e.g. root), and then it creates the running environment for the new user. So if it hangs, it could be either of those. As you're also having problems with useradd, I'd suspect there's a problem with the first part, the handling of userid and passwords. My suspicion is there's a problem with your installation of policykit (assuming you're using that; I don't know if it's a prereq for gnome). Unfortunately, I can't help any more, as I'm a dunce on policykit, but I know it sends lots of messages to syslog whenever I use "su".

[edit] Actually, I know one thing about policykit. It's got some relation to consolekit, and that's got a daemon service. Perhaps you have not done "rc-update add consolekit default" or it's failing to start. Try (as root)
Code:
/etc/init.d/consolekit status
. It should be "started".
_________________
Greybeard
Back to top
View user's profile Send private message
jwebuser
n00b
n00b


Joined: 06 Sep 2011
Posts: 5
Location: Berlin, Germany

PostPosted: Sat Sep 17, 2011 12:08 pm    Post subject: Reply with quote

Hi Goverp,

maybe the reason for these 'su' problems really was the consolekit...

policykit is not installed but consolekit was not started and was not added to rc-update.
I added it and up to now the problems are gone!!!
I now can use the 'su' command without problems, nothing hangs and adding/deleting a dummy user is now also possible...

In any case, thanks a lot for your help!


@rynalous
Thanks also for all of your suggestions!
I checked whether the problem exists on the same machine in Ubuntu, but there everything was ok.
I also did a memtest 2 times which passed without errors and checked the /var/log/Xorg.0.log and found 2 errors which I have to investigate in more detail.
The first shows problems with a not existing module "dri":
Code:

(EE) Failed to load module "dri" module does not exist, 0

The second error (one of the last log entries) mentions errors with Synaptics:
Code:

(EE) Query no Synaptics: 6003C8
(--) SynPS/2 Synaptics TouchPad: no supported touchpad found
(EE) SynPS/2 Synaptics TouchPad Unable to query/initialize Synaptics hardware.
(EE) PreInit returned 11 for "SynPS/2 Synaptics TouchPad"
(II) UnloadModule: "synaptics"
(II) Unloading synaptics

So much I do not know about this Synaptics, but even with this error the touchpad of my notebook works without problems..

Then I installed a Fluxbox window manager and(!) Fluxbox did not have these 'su' problems! So I was sure that the problem originated from the Gnome- or Gnome-depending software.
By the way, Fluxbox really makes fun! Which WM do you use or can you recommend a good WM?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum