Gentoo Forums
Gentoo Forums
Quick Search: in
hald is borked [Solved, I'm an idiot]
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Liff
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2002
Posts: 111

PostPosted: Wed Aug 22, 2007 8:32 am    Post subject: hald is borked [Solved, I'm an idiot] Reply with quote

If anybody ever gets this problem, just make sure /usr/libexec is in your path

I'm working on updating a diskless lab setup (That means a read-only root filesystem, and sometimes a little jiggery-pokery to get packages set up properly.) , and hal seems to be completely out of commission. For starters, here's what I get when I run it:
Code:

# hald --daemon=no --verbose=yes
10:27:21.390 [I] hald.c:533: hal 0.5.9
10:27:21.390 [I] hald.c:598: Will not daemonize
10:27:21.391 [I] hald_dbus.c:4807: local server is listening at unix:abstract=/var/run/hald/dbus-13jRQ9fBws,guid=6443d811bcfe23b88914a80046cc32b1
10:27:21.393 [E] hald_runner.c:292: Could not spawn runner : 'Failed to execute child process "hald-runner" (No such file or directory)'


hald-runner exists at /usr/libexec/hald-runner

I've tried running strace, but it doesn't make much sense to me. There are two threads created, the first one seems to be going along its merry way until it forks off the second one which spits out about a thousand lines of:

Code:

.
.
.
fcntl64(31, F_SETFD, FD_CLOEXEC)        = -1 EBADF (Bad file descriptor)
fcntl64(32, F_SETFD, FD_CLOEXEC)        = -1 EBADF (Bad file descriptor)
fcntl64(33, F_SETFD, FD_CLOEXEC)        = -1 EBADF (Bad file descriptor)
fcntl64(34, F_SETFD, FD_CLOEXEC)        = -1 EBADF (Bad file descriptor)
fcntl64(35, F_SETFD, FD_CLOEXEC)        = -1 EBADF (Bad file descriptor)
.
.
.


And then finishes off with:

Code:

.
.
.
fcntl64(1021, F_SETFD, FD_CLOEXEC)      = -1 EBADF (Bad file descriptor)
fcntl64(1022, F_SETFD, FD_CLOEXEC)      = -1 EBADF (Bad file descriptor)
fcntl64(1023, F_SETFD, FD_CLOEXEC)      = -1 EBADF (Bad file descriptor)
open("/dev/null", O_RDONLY|O_LARGEFILE) = 8
dup2(8, 0)                              = 0
close(8)                                = 0
execve("/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/sbin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/sbin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/opt/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/i586-pc-linux-gnu/gcc-bin/4.1.2/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/opt/intel/compiler70/ia32/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/opt/intel/fortran91/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/opt/fpc/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/opt/ghc/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/opt/blackdown-jdk-1.4.2.03/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/opt/blackdown-jdk-1.4.2.03/jre/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/kde/3.5/sbin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/kde/3.5/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/qt/3/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/X11R6/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/games/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/sbin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/sbin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/sbin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/java_local/bin//hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/local/khoros/Color/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/local/khoros/Classify/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/xppaut-5.85/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/math/maple11/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/R-2.4.1/bin/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/li/hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory)
write(9, "\1\0\0\0", 4)                 = 4
write(9, "\2\0\0\0", 4)                 = 4
exit_group(1)


After the second one returns, the first one prints the last error about hald_runner.c and then bails.

Here's my emerge --info if it helps:
Code:

$ emerge --info
Portage 2.1.2.12 (default-linux/x86/2007.0, gcc-4.1.2, unavailable, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 22 Aug 2007 11:20:01 +0000
ccache version 2.4 [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-O2 -mtune=i586 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=i586 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.cs.mun.ca/pub/mirror/gentoo http://adelie.polymtl.ca http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_CA.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="3dnow X aac accessibility acl alsa arts avahi berkdb bitmap-fonts bluetooth bonjour bzip2 cairo cli cracklib crypt css cvs daap dbase dbus dia divx doc dri dvd dvdr dvdread fam fastcgi flac fortran gdbm gimp gnome gnomedb gpm gstreamer gtk hal iconv ipod ipv6 isdnlog jpeg jpeg2k kde libnotify mad matroska midi mmx mp2 mp3 mp4 mpeg mpeg2 mplayer mudflap ncurses nls nptl nptlonly odbc ogg openal opengl openmp pam pam_console pcre perl png ppds pppd python qt3 qt4 readline reflection session slang spl ssl tagwriting tcl tcpd tiff tk truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xinerama xorg zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo epson fglrx mach64 nvidia r128 radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Any help would be greatly appreciated.
_________________
A smoking section in a restaurant is like a urinating section in a swimming pool.


Last edited by Liff on Thu Aug 23, 2007 8:32 am; edited 1 time in total
Back to top
View user's profile Send private message
Liff
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2002
Posts: 111

PostPosted: Wed Aug 22, 2007 1:14 pm    Post subject: Reply with quote

just to give this an update, and a little bump.

I have tried both re-installing hal and downgrading to version 0.5.7.1. There is no change in behavior.
_________________
A smoking section in a restaurant is like a urinating section in a swimming pool.
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 - 5 Hours
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