Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138830 - openafs-1.4.1-r1 - openafs-client doesn't start
Summary: openafs-1.4.1-r1 - openafs-client doesn't start
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-02 04:03 UTC by Sven Müller
Modified: 2006-08-28 04:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2006-07-02 04:03:50 UTC
It's not anymore possible for me to start openafs-client.
openafs-kernel module loads fine without errors.

Used versions:
opernafs-kernel-1.4.1 
openafs-1.4.1-r1

Error message:
root@Blechkasten /sys <13:25:10> 
 > /etc/init.d/openafs-client start 
 * Starting OpenAFS client ... 
 *   Loading OpenAFS kernel module ...                                         [ ok ] 
*   Starting OpenAFS daemon ... 
Oops: 0002 [#1] 
PREEMPT 
Modules linked in: openafs rfcomm l2cap snd_seq_midi snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq lirc_i2c lirc_dev nvidia s 
nd_bt87x snd_emu10k1 snd_rawmidi snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_seq_device snd_pcm snd_timer snd_util_mem snd_page_alloc snd_hwdep snd ohci1394 ieee1394 hci_usb bluetooth 
CPU:    0 
EIP:    0060:[<fa75ef4a>]    Tainted: PF     VLI 
EFLAGS: 00010286   (2.6.17-gentoo #1) 
EIP is at osi_Panic+0x23/0x2b [openafs] 
eax: 00000016   ebx: f6bf4000   ecx: ffffffff   edx: 00000001 
esi: f6778a88   edi: fffffffb   ebp: 00000000   esp: f6425dc0 
ds: 007b   es: 007b   ss: 0068 
Process afsd (pid: 10646, threadinfo=f6425000 task=c1b25a70) 
Stack: fa76751a fa77abfc 00000000 00000016 00000000 fa7e9760 00000001 fa7310a2 
       00000000 000007ff c1b25a70 c0326f0b f6425df4 22222222 22222222 22222222 
       0000000a f6425000 f6425ef4 00000003 fa76e342 00000000 00000000 00000000 
Call Trace: 
 <fa76751a> osi_UFSOpen+0x138/0x194 [openafs]  <fa7310a2> afs_InitCacheFile+0x201/0x417 [openafs] 
 <c0326f0b> __mutex_lock_slowpath+0x2c8/0x37d  <fa76e342> afs_syscall_call+0x901/0x1342 [openafs] 
 <c01e6d7b> _atomic_dec_and_lock+0x27/0x44  <c0165675> mntput_no_expire+0x14/0x90 
 <c015aefd> link_path_walk+0xb0/0xbb  <c01e6d7b> _atomic_dec_and_lock+0x27/0x44 
 <c0165675> mntput_no_expire+0x14/0x90  <fa76f3d8> afs_syscall+0x108/0x1562 [openafs] 
 <c0159d26> vfs_permission+0x13/0x17  <c0159d88> may_open+0x5e/0x1a7 
 <c015be83> open_namei+0x248/0x591  <c014b8c5> __dentry_open+0x11d/0x204 
 <fa76803e> afs_unlocked_ioctl+0x46/0x51 [openafs]  <c015cdb5> do_ioctl+0x21/0x5f 
 <c015d04f> vfs_ioctl+0x25c/0x26f  <c0159f13> putname+0x27/0x2a 
 <c015d08f> sys_ioctl+0x2d/0x46  <c01026d3> sysenter_past_esp+0x54/0x75 
Code: 00 66 89 46 7c 5b 5e c3 8b 54 24 04 b8 e6 a0 77 fa ff 74 24 10 ff 74 24 10 ff 74 24 10 85 d2 0f 44 d0 52 e8 8a 60 9b c5 83 c4 10 <c6> 05 00 00 00 00 00 c3 56 53 8b 74 24 10 0f bf c6 50 ff 74 24 
EIP: [<fa75ef4a>] osi_Panic+0x23/0x2b [openafs] SS:ESP 0068:f6425dc0 
 /etc/init.d/openafs-client: line 67: 10646 Speicherzugriffsfehler  /usr/sbin/afsd ${AFSD_OPTIONS} >&/dev/null            [ !! ]

emerge --info;
Portage 2.1.1_pre1-r5 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo i686)
=================================================================
System uname: 2.6.17-gentoo i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp.tu-chemnitz.de/pub/linux/gentoo http://ftp.tu-chemnitz.de/pub/linux/gentoo http://gentoo.inf.elte.hu/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.ynet.sk/pub http://gentoo.intergenia.de http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.inode.at/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/sonstige /usr/local/portage/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowext 3ds 7zip S3TC X X509 Xaw3d a52 aac aalib accessibility acpi afs alsa amr apache2 apm audiofile avi bash-completion bcmath berkdb bidi bindist bitmap-fonts bluetooth bonobo buttons bzip2 cairo calendar caps ccache cdda cddb cdinstall cdparanoia cdr cdrom cgi cli crypt css ctype cups curl curlwrappers dba dbus dbx dga dillo dio directfb dlloader dmx doc dpms dri dv dvb dvd dvdr dvdread eds embedded emboss encode erandom escreen esd exif fam fame fastcgi fat fbcon fbsplash ffmpeg firefox flac flash font-server fontconfig foomaticdb fortran fpx ftp gcj gd gdbm gecko-sdk ggi gif gimp gimpprint glut glx gmp gnome gnome-print gnomedb gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile hash hddtemp hpn icq id3 idn ieee1394 imagemagick imap imlib inifile innodb isdnlog jack java java-internal javascript jfs jikes jpeg ladcca lame latex lcms libcaca libg++ libwww lirc live lm_sensors log4j lua mad md5sum mhash mikmod mime mimencode mjpeg mmap mmx mmxext mng modplug motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mp4live mpeg mpeg2 mplayer mudflap musepack mysql mysqli nas ncurses nforce2 nfs nls no-old-linux nocardbus nptl nptlonly nsplugin ntfs ntlm nvidia odbc ogg on-the-fly-crypt openal opengl openssh oscar oss overload pam parse-clocks pcntl pcre pdf pdflib perl php physfs plotutils png posix postgres ppds pppd python qemu-fast qt qt3 qt4 quicktime quotas rar raw-mode readline real reflection reiserfs rhino rtc ruby samba sblive scanner scp sdk sdl sendfile sensord serial session sid simplexml skey slang slp sndfile snmp soap sockets socks5 softmmu sox speex spell spl sql sqlite sqlite3 sse sse-filters ssl stencil-buffer stream streamzap subtitles svg svga svgz sysfs szip tcltk tcpd tetex tga theora threads tidy tiff tokenizer transcode truetype truetype-fonts type1 type1-fonts ucs2 udev unicode usb v4l v4l2 vcd vcdimager video_cards_nv video_cards_nvidia video_cards_vesa videos vidix vim-pager vlm vorbis wddx win32codecs winbind wma wma123 wmf wordexp wv wxgtk1 wxwindows x264 xanim xchatdccserver xchattext xface xfs xine xinerama xml xmlrpc xmlwriter xmms xorg xpm xrandr xsl xslt xv xvid xvmc yv12 zip zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de lirc_devices_hauppauge userland_GNU video_cards_fbdev video_cards_s3virge"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

But also it didn't work with older kernel versions. At least 2.6.16 didn't work too. And after starting (and failure) of openafs-client it's not anymore possible to unload the afs modules or to stop/restart the daemon.
Comment 1 Stefaan De Roeck (RETIRED) gentoo-dev 2006-07-04 02:13:26 UTC
I'm not sure where this error comes from, I've never experienced it myself with this version of openafs.  I'm hoping the fixes introduced in openafs-1.4.2-beta solve your problem, and am planning to put up an ebuild for you to test if that's ok. 
Comment 2 Sven Müller 2006-07-04 07:06:06 UTC
Yes of course. Where can I download the ebuild?
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2006-07-04 07:58:48 UTC
Please take a look at http://dev.gentoo.org/~stefaan/prerelease/openafs/
Comment 4 Sven Müller 2006-07-04 11:32:06 UTC
Thanks for your help, but it didn't solute the problem. The new (and seems to be the old) issue is:

> /etc/init.d/openafs-client start
 * Starting OpenAFS client ...
 *   Loading OpenAFS kernel module ...                                                                                  [ ok ] 
 *   Starting OpenAFS daemon ...
Oops: 0002 [#1]
PREEMPT
Modules linked in: openafs vmnet vmmon
CPU:    0
EIP:    0060:[<fa547f5e>]    Tainted: P      VLI
EFLAGS: 00010286   (2.6.17-gentoo-r1 #1)
EIP is at osi_Panic+0x23/0x2b [openafs]
eax: 00000016   ebx: f05fa000   ecx: ffffffff   edx: 00000001
esi: ee097dac   edi: fffffffb   ebp: 00000000   esp: ed54cdc0
ds: 007b   es: 007b   ss: 0068
Process afsd (pid: 335, threadinfo=ed54c000 task=ec831530)
Stack: fa550512 fa563f0f 00000000 00000016 00000000 fa5b0760 00000001 fa51a0a2
       00000000 000007ff ec831530 c03271cb ed54cdf4 22222222 22222222 22222222
       0000000a ed54c000 ed54cef4 00000003 fa557452 00000000 00000000 00015895
Call Trace:
 <fa550512> osi_UFSOpen+0x138/0x194 [openafs]  <fa51a0a2> afs_InitCacheFile+0x201/0x417 [openafs]
 <c03271cb> __mutex_lock_slowpath+0x2c8/0x37d  <fa557452> afs_syscall_call+0x901/0x1342 [openafs]
 <c01e6d7b> _atomic_dec_and_lock+0x27/0x44  <c0165675> mntput_no_expire+0x14/0x90
 <c015aefd> link_path_walk+0xb0/0xbb  <c01e6d7b> _atomic_dec_and_lock+0x27/0x44
 <c0165675> mntput_no_expire+0x14/0x90  <fa5584e8> afs_syscall+0x108/0x1562 [openafs]
 <c0159d26> vfs_permission+0x13/0x17  <c0159d88> may_open+0x5e/0x1a7
 <c015be83> open_namei+0x248/0x591  <c014b8c5> __dentry_open+0x11d/0x204
 <fa551036> afs_unlocked_ioctl+0x46/0x51 [openafs]  <c015cdb5> do_ioctl+0x21/0x5f
 <c015d04f> vfs_ioctl+0x25c/0x26f  <c0159f13> putname+0x27/0x2a
 <c015d08f> sys_ioctl+0x2d/0x46  <c01026d3> sysenter_past_esp+0x54/0x75
Code: 00 66 89 46 7c 5b 5e c3 8b 54 24 04 b8 b7 33 56 fa ff 74 24 10 ff 74 24 10 ff 74 24 10 85 d2 0f 44 d0 52 e8 76 d0 bc c5 83 c4 10 <c6> 05 00 00 00 00 00 c3 56 53 8
b 74 24 10 0f bf c6 50 ff 74 24
EIP: [<fa547f5e>] osi_Panic+0x23/0x2b [openafs] SS:ESP 0068:ed54cdc0

I don't know if it's only a bug in openafs. Maybe there's a misconfiguration in my system. But I don't have any idea, what it could be. 

In this trail I installed a new kernel and rebooted the machine, so there were no other modules loaded (apart the vmware modules). Could it depend of any driver what is needed as module? Because I built nearly every possible driver directly into the kernel and not as module. So if you have any ideas for testing other kernel configurations, please tell me.
Comment 5 Sven Müller 2006-07-04 12:07:16 UTC
I found the error.
In /etc/openafs/cacheinfo I spezified the cache-size:
/afs:/var/cache/openafs:185000
and it had worked well for months.

Because I'm using reiserfs for file system. I created a 200mb file and formatted this with ext2. This file I mounted to /var/cache/openafs. It worked without problems.

But one month ago I had a harddisc-crash and I had to save all the data to another harddisc. And I guess there occured an error with this file, because the file size of my afs-cache-file was only 120 mb. 

So now I tried starting the afsd directly and received a message of an invalid inode at my cache-file. I just created a new file and now it works perfectly - version 1.4.2-beta1 too.

So, have a lot thanks for your help and I'm very sorry for bugging you with this error that was my fault. But I couldn't guess nothing about the true error in the posted error message. 
Comment 6 Stefaan De Roeck (RETIRED) gentoo-dev 2006-07-04 12:20:35 UTC
No problem. I'm glad you found the problem.
Reopening to close as invalid (else this report would stop openafs from going to stable)
Comment 7 Stefaan De Roeck (RETIRED) gentoo-dev 2006-07-04 12:21:39 UTC
Problem caused by filesystem error, thus closing as invalid.
Comment 8 Dirk Heinrichs 2006-08-28 04:56:13 UTC
(In reply to comment #5)
> I found the error.
> In /etc/openafs/cacheinfo I spezified the cache-size:
> /afs:/var/cache/openafs:185000
> and it had worked well for months.
> 
> Because I'm using reiserfs for file system. I created a 200mb file and
> formatted this with ext2. This file I mounted to /var/cache/openafs. It worked
> without problems.

Just in case other run ito the same problem:
OpenAFS devs tell us since years: You can't use anything else than ext2 for the cache. For /vicepXX, use whatever fs you want.