Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300169 - boinc-6.10.18 cannot find localhost when called with "/etc/init.d/boinc attach"
Summary: boinc-6.10.18 cannot find localhost when called with "/etc/init.d/boinc attach"
Status: RESOLVED DUPLICATE of bug 331625
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 15:30 UTC by Peter Humphrey
Modified: 2011-05-22 09:27 UTC (History)
0 users

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 Peter Humphrey 2010-01-08 15:30:20 UTC
The BOINC post-inst output says to attach to a project with "/etc/init.d/boinc attach". When I do that (as root) and supply valid URL and key, it reports "can't connect to localhost".

If instead I run "boinc --attach_project <URL> <key>" as myself, BOINC runs happily. I haven't rebooted yet to check that it can pick up where it left off.


Reproducible: Always




This is a new i5 box with a Quadro FX580 graphics card. I've built Gentoo from scratch with ~amd64.

$ emerge --info
Portage 2.2_rc61 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)                                                                      
=================================================================                 
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.0.1                                                                
Timestamp of tree: Fri, 08 Jan 2010 09:15:01 +0000                                
ccache version 2.4 [enabled]                                                      
app-shells/bash:     4.0_p35                                                      
dev-java/java-config: 2.1.10                                                      
dev-lang/python:     2.6.4, 3.1.1-r1                                              
dev-util/ccache:     2.4-r8                                                       
dev-util/cmake:      2.8.0                                                        
sys-apps/baselayout: 2.0.1                                                        
sys-apps/openrc:     0.6.0                                                        
sys-apps/sandbox:    2.2                                                          
sys-devel/autoconf:  2.13, 2.65                                                   
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                           
sys-devel/binutils:  2.20                                                         
sys-devel/gcc-config: 1.4.1                                                       
sys-devel/libtool:   2.2.6b                                                       
virtual/os-headers:  2.6.30-r1                                                    
ACCEPT_KEYWORDS="amd64 ~amd64"                                                    
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm"                                
CBUILD="x86_64-pc-linux-gnu"                                                      
CFLAGS="-O2 -march=core2 -pipe"                                                   
CHOST="x86_64-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"        
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/pam.d /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="-O2 -march=core2 -pipe"                                                 
DISTDIR="/usr/portage/distfiles"                                                  
EMERGE_DEFAULT_OPTS="-j 5 --with-bdeps y --nospinner"                             
FEATURES="assume-digests buildpkg ccache distlocks fail-clean fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                              
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo http://distfiles.gentoo.org"  
LANG="en_GB.UTF-8"                                                                
LDFLAGS="-Wl,-O1"                                                                 
LINGUAS="en_GB"
MAKEOPTS="-j5 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS=""
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/webapps-experimental"
SYNC="rsync://serv.ethnet/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bzip2 cdr cli cracklib crypt cups cxx dbus dri dts dvd dvdr encode exif fam ffmpeg flac fortran fxsr gd gdbm gif gmp gnutls gpm gtk hal hddtemp iconv ipv6 javascript jpeg jpeg2k kde lame libnotify logitech-mouse logrotate mad midi mmx modules mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nvidia odbc ogg opengl openmp pae pam pcre pdf perl png pppd qt3support qt4 readline reflection rss session smp spell spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd tiff truetype unicode usb vcd vorbis webkit wmf xml xorg xulrunner xvmc 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 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" CAMERAS="fuji" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Hannes Wallnöfer 2010-08-03 14:33:01 UTC
Hi, 
I had similar problems running boinc on my newly installed system (amd64). I got exactly the same massage and did the same you did, to setup boinc.

Actually, on my machine, the init script did not start properly, it hung up after these messages (same, when trying to start boinc again, but without the initial messages). After some hours, i managed to fix that problem myself. "/etc/ini.d/boinc start" worked properly. After that I had no problem in attaching a project with "/etc/ini.d/boinc attach".

"hung up" is not correctly spoken, I found that everything worked fine, only the start-stop-daemon (or the eaval thingy) was not backgrounded. After adding an "&" (without quotes) at the end of the "eval" cal, everything worked fine:


eval is called almost at the end of the start()-funktion in the boinc init script:

eval ${CHRT} start-stop-daemon \
                --start --quiet --chdir "${RUNTIMEDIR}" \
                --make-pidfile \
                --pidfile "${PIDFILE}" \
                --chuid "${USER}:${GROUP}" \
                --nicelevel "${NICELEVEL}" \
                --exec "${BOINCBIN}" ${PARAMS} &

I only added the "&" in the "--exec" line.

I hope this helps...
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-22 09:27:54 UTC

*** This bug has been marked as a duplicate of bug 331625 ***