Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248896 - sci-biology/foldingathome-6.02-r1 doesn't start. Init script problem?
Summary: sci-biology/foldingathome-6.02-r1 doesn't start. Init script problem?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Biology related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 14:14 UTC by Rasmus P
Modified: 2011-06-19 21:41 UTC (History)
2 users (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 Rasmus P 2008-11-26 14:14:35 UTC
Running ~x86, I updated to sci-biology/foldingathome-6.02-r1 the other day. I have deleted all old config's and reconfigured f@h, but the the init scripts fails to start f@h. It reports that the service is started, but no processes related to folding are running, and the files in /opt/foldingathome doesn't change. Furthermore, trying to stop the service results in:
$ sudo /etc/init.d/foldingathome stop
 * Stopping Folding@Home ...
 * start-stop-daemon: no matching processes found                                                                                                                                        [ ok ]
 * ERROR: foldingathome failed to stop
All in all, the service never starts or crashes very quickly.

If I run /opt/foldingathome/fah6 the program starts.

Reproducible: Always

Steps to Reproduce:
1. emerge foldingathome-6.02-r1
2. /etc/init.d/foldingathome start


Actual Results:  
top shows no cpu hungry processes, while cpu is idling

Expected Results:  
My cpu should be burning aka f@h running :)
Comment 1 Jeffrey Gardner (RETIRED) gentoo-dev 2008-11-28 06:54:00 UTC
Is there a folding process still running?
Does this problem persist after restarting your computer?
Comment 2 Rasmus P 2008-11-28 09:23:27 UTC
(In reply to comment #1)
> Is there a folding process still running?
> Does this problem persist after restarting your computer?
> 
No, nothing related to fah is running (have tried greping). And /var/run/folding contains a pid, which is non existent.

Yes, this also persists after restarting the computer.
Comment 3 Jeffrey Gardner (RETIRED) gentoo-dev 2008-11-28 20:58:53 UTC
Try this:

# cat /var/run/folding 
5862

# /etc/init.d/foldingathome start
 * WARNING: foldingathome has already been started

# /etc/init.d/foldingathome restart
 * Caching service dependencies ...                                                                                                                                                                  [ ok ]
 * Stopping Folding@Home ...                                                                                                                                                                         [ ok ]
 * ERROR: foldingathome failed to stop

# /etc/init.d/foldingathome zap    
 * Manually resetting foldingathome to stopped state

# /etc/init.d/foldingathome start
 * Starting Folding@Home ...                                                                                                                                                                         [ ok ]

# cat /var/run/folding 
10348

Comment 4 Vladimir Berezhnoy 2008-11-30 13:58:57 UTC
I'm confirming this. Small research shows that option "-smp" make fah6 stop.

# ./fah6 -smp

Note: Please read the license agreement (fah6 -license). Further
use of this software requires that you have read and accepted this agreement.

This client only supports 64-bit linux machines.  Your machine was detected as ''.

Folding@Home Client Shutdown.

If I change /etc/conf.d/foldingathome and remove -smp then it works fine. It is strange because my system is 32bit

Portage 2.2_rc16 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-zen4-home1 i686)
=================================================================
System uname: Linux-2.6.27-zen4-home1-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.0
Timestamp of tree: Sun, 30 Nov 2008 11:32:01 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -msse3 -fomit-frame-pointer -funroll-loops -fforce-addr -ftracer -finline-functions -fexpensive-optimizations -freorder-blocks"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/hddtemp/"
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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -msse3 -fomit-frame-pointer -funroll-loops -fforce-addr -ftracer -finline-functions -fexpensive-optimizations -freorder-blocks"
DISTDIR="/mnt/big/distfiles~"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage/layman/berkano /usr/local/portage/layman/sunrise /usr/local/portage/layman/swegener /usr/local/portage/layman/oss4 /usr/local/portage/layman/zen-overlay /usr/local/portage/layman/arcon /usr/local/portage/layman/rostov /usr/local/portage/layman/kde-crazy /usr/local/overlays/testing /home/non7top/overlays/arcon/trunk/arcon-overlay /home/non7top/overlays/arcon/trunk/arcon-testing"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 7zip X a52 aac acpi addbookmarks additions aften aim akode alias alsa amarok amazon amr amrwb ansi apache2 archive artswrappersuid asf ass atm autoreplace avahi bash-completion bashlogger binary-drivers bittorrent bluetooth bootsplash branding bzip2 cairo captury cdr cgi chm cisco connectionstatus contactnotes cracklib crypt css curl dbus dhcp disk-partition djvu dmi dri dts dvd dvdr dvdread eds emboss emovix enca encode evo exif expat extensions extras fam fat fbcondecor ffmpeg flac fortran ftp gammu gd gdbm geoip gif glib glitz gnokii gphoto2 gpm gstreamer gtalk gtk gzip hal hardenedphp hddtemp highlight history httpd iconv id3 ieee1394 imagemagick imlib insecure-patches isdnlog ithreads jabber javascript jfs jpeg kde kde4 kdeenablefinal kdeprefix kdexdeltas lame ldap libass libextractor libnotify lm_sensors logrotate mad matroska midi mikmod mktemp mmx mmxext mng mouse mozdevelop mozilla mp3 mp4 mpeg mplayer mudflap musicbrainz mysql mysqli nas ncurses nepomuk network nls nodoc nowlistening nptl nptlonly nsplugin ntfs ntlm nvidia obex ogg opengl openmp openntpd oscar pam passwordsave pch pcre perl pertty php plugins png ppds pppd python qt-copy qt3 qt3support qt4 quicktime rcc rdesktop readline reflection samba sasl screen sdl semantic-desktop session simplexml slang smb sndfile spell spl sqlite sqlite3 srt srv sse sse2 ssl startup-notification statistics subtitles subversion svg svnserve swat swscaler sysfs syslog taglib tcpd theora threads threadsafe tiff tordns tos translator trayicon truetype type1 unicode upnp urandom usb utempter vditool vim-syntax visualization vnc vorbis wavpack web webkit win32codecs winbind wrapper wxwindows x264 x86 xcb xcomposite xfs xhtml xine xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xsl xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="radeonhd fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Rasmus P 2008-11-30 14:52:00 UTC
I will be able to try that tomorrow Jeffrey.

My system is also 32 bit.
Comment 6 Jeffrey Gardner (RETIRED) gentoo-dev 2008-11-30 19:47:36 UTC
okay, I removed smp from the default opts, can you guys re-emerge and try again?
Thanks,
je_fro
Comment 7 Rasmus P 2008-12-01 16:43:58 UTC
With the SMP flag disabled, the client starts without a problem. But if I try to stop it:
$ sudo /etc/init.d/foldingathome stop
 * Stopping Folding@Home ...                                              [ ok ]
 * ERROR: foldingathome failed to stop
Even though the client actually stops.
And afterwards I can't start the client:
$ sudo /etc/init.d/foldingathome start
 * WARNING: foldingathome has already been started
Then I have to zap it before I can start it.

I guess this means that there still is a problem with the init script. And yes, this is persistent.

But not being able to use the SMP flag and the new packaging of foldingathome means that I cant use more than one core.
Comment 8 Vladimir Berezhnoy 2008-12-01 20:20:07 UTC
(In reply to comment #7)
> But not being able to use the SMP flag and the new packaging of foldingathome
> means that I cant use more than one core.
official Folding@home site says that smp is only supported on x86-64 arch

Comment 9 Rasmus P 2008-12-01 22:37:05 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > But not being able to use the SMP flag and the new packaging of foldingathome
> > means that I cant use more than one core.
> official Folding@home site says that smp is only supported on x86-64 arch
> 
Yes, but the old packaging of foldingathome could be configured to run 8 clients side by side, this is not possible anymore.
Comment 10 Jeffrey Gardner (RETIRED) gentoo-dev 2008-12-02 00:36:22 UTC
(In reply to comment #7)
> $ sudo /etc/init.d/foldingathome stop
>  * Stopping Folding@Home ...                                              [ ok
> ]
>  * ERROR: foldingathome failed to stop

Are you sure you updated the init script?

You are free to mask this version if you have a multicore x86 box.

Thanks,
je_fro
Comment 11 Rasmus P 2008-12-02 06:28:18 UTC
(In reply to comment #10)
> (In reply to comment #7)
> > $ sudo /etc/init.d/foldingathome stop
> >  * Stopping Folding@Home ...                                              [ ok
> > ]
> >  * ERROR: foldingathome failed to stop
> 
> Are you sure you updated the init script?

Shouldn't a emerge -avtC foldingathome followed by a emerge -avt foldingathome result in a newly installed init script?
Comment 12 Igor 2009-02-02 17:50:05 UTC
When I start foldingathome manually it starts, but when I add it to default runlevel it never starts during boot - no messages, no errors, no pidfile, nothing - just like the script was never called.
When I stop it manually it says it failed to stop - but it stops and removes pidfile. I cant restart it later becouse it says it has already been started. During shutdown the script is also not called, no stopping message. fahlog says it was stopped but I think it was killed with remaining processes.
Comment 13 Fabio Palladino 2009-02-08 13:09:57 UTC
(In reply to comment #12)
> When I start foldingathome manually it starts, but when I add it to default
> runlevel it never starts during boot - no messages, no errors, no pidfile,
> nothing - just like the script was never called.
> When I stop it manually it says it failed to stop - but it stops and removes
> pidfile. I cant restart it later becouse it says it has already been started.
> During shutdown the script is also not called, no stopping message. fahlog says
> it was stopped but I think it was killed with remaining processes.
> 
Hello,
Linux GentoOnVaio 2.6.24-gentoo-r8 #5 SMP Sat Jan 24 21:17:23 CET 2009 i686 Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz GenuineIntel GNU/Linux

I think there is a problem with init script in the stop function:
The daemon on my system starts without problem, but when I stop it Iget the usually error message:

 * ERROR: foldingathome failed to stop

I have solved this by commenting this line:

   killall --user foldingathome --signal SIGKILL

because this instruction return an error code (1) when doesn't kill any process, which makes the script down.

P.S:sorry for my google-english

Comment 14 Tom Bicer 2009-02-15 15:13:56 UTC
New install of sci-biology/foldingathome-6.02-r1
Can't start it, gives error:
 * WARNING:  foldingathome has already been started.
Comment 15 Jeffrey Gardner (RETIRED) gentoo-dev 2009-02-15 18:53:39 UTC
emerge --info
?
Comment 16 Tom Bicer 2009-02-16 18:27:25 UTC
(In reply to comment #15)
> emerge --info
> ?
> 

Here it is http://pastebin.com/m49093964
Comment 17 Kanstantsin Shautsou 2009-10-04 04:05:54 UTC
I have the same problem with stopping foldingathome. 
I commented 
#killall --user foldingathome --signal SIGKILL

Comment 18 Jeffrey Gardner (RETIRED) gentoo-dev 2011-06-15 17:42:53 UTC
New version added to tree.