BOINC..

Discussions Regarding Software

Moderator: Moderators

BOINC..

Postby pepe999 » Sun May 24, 2009 15:48

Hi all,
Is anyone involved in this project?? I've installed BOINC client but can't attach any project..
I created an account, got the account keys but can't attach any project..
Code: Select all
pepe999@pepe999 ~ $ su
Password:
pepe999 pepe999 # /etc/init.d/boinc attach
    Enter the Project URL: http://setiathome.berkeley.edu
    Enter your Account Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
/etc/init.d/boinc: line 100: svc_status: command not found
* Attaching to project...

When I'm running attaching to project, both CPU cores are running on 100% but nothing's happening..
There might be connection with that line 100, but I have no idea how to fix it..
GUI client is connecting localhost but after some time it says disconnected..
Thanks for help..
Cheers Pepe
Dell L502X - Core i7-2840QM/8GB DDR3/GF 540M 2GB/Corsair GT 240GB/Full HD
Debian 7
Win 7 still installed
Linux user no. 491024
pepe999
Advanced Hen
 
Posts: 257
Joined: Fri Mar 06, 2009 19:24
Location: Manchester

Re: BOINC..

Postby pepe999 » Mon May 25, 2009 9:49

Hi,
I've tried BOINC on Ubuntu and it works!!
I had to install 4 packages on Ubuntu but on Sabayon only one so there might be the problem..
I'll try it to figure out after next reboot.. :)
It's really good idea to help research cancer or whatever by using your own PC..
Dell L502X - Core i7-2840QM/8GB DDR3/GF 540M 2GB/Corsair GT 240GB/Full HD
Debian 7
Win 7 still installed
Linux user no. 491024
pepe999
Advanced Hen
 
Posts: 257
Joined: Fri Mar 06, 2009 19:24
Location: Manchester

Re: BOINC..

Postby wolfden » Mon May 25, 2009 23:40

wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: BOINC..

Postby pepe999 » Tue May 26, 2009 4:32

wolfden wrote:http://boinc.berkeley.edu/wiki/Installing_BOINC_on_Gentoo

Thanks, but the problem persist. Boinc can't connect localhost... :(
Dell L502X - Core i7-2840QM/8GB DDR3/GF 540M 2GB/Corsair GT 240GB/Full HD
Debian 7
Win 7 still installed
Linux user no. 491024
pepe999
Advanced Hen
 
Posts: 257
Joined: Fri Mar 06, 2009 19:24
Location: Manchester

Re: BOINC..

Postby wolfden » Tue May 26, 2009 5:47

can u post the error message?

can you look in /var/log/messages for clues?

is your /etc/hosts file correct? I wonder if you don't have a hostname issues
http://wiki.sabayonlinux.org/index.php? ... e_hostname
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: BOINC..

Postby pepe999 » Tue May 26, 2009 8:40

wolfden wrote:can u post the error message?

can you look in /var/log/messages for clues?

is your /etc/hosts file correct? I wonder if you don't have a hostname issues
http://wiki.sabayonlinux.org/index.php? ... e_hostname

I've seen this HOWTO and have changed the hostname to pepe999 already.. :)
I used GUI to manage BOINC so there is no message but I completely uninstalled(also deleted all the files) BOINC this morning and going to install it again.. :)
Dell L502X - Core i7-2840QM/8GB DDR3/GF 540M 2GB/Corsair GT 240GB/Full HD
Debian 7
Win 7 still installed
Linux user no. 491024
pepe999
Advanced Hen
 
Posts: 257
Joined: Fri Mar 06, 2009 19:24
Location: Manchester

Re: BOINC..

Postby wolfden » Tue May 26, 2009 9:24

you can still start GUI with terminal and find errors
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: BOINC..

Postby pepe999 » Tue May 26, 2009 10:19

wolfden wrote:you can still start GUI with terminal and find errors

Yes I know, but it says: "Another Boinc is running"
I have to give it up. I uninstall Boinc, deleted all the config files in /var/lib/boinc etc, but after reinstallation there were no files in /var/lib/boinc..
GUI worked but couldn't connect localhost so I uninstalled it again and quit.. :)
Dell L502X - Core i7-2840QM/8GB DDR3/GF 540M 2GB/Corsair GT 240GB/Full HD
Debian 7
Win 7 still installed
Linux user no. 491024
pepe999
Advanced Hen
 
Posts: 257
Joined: Fri Mar 06, 2009 19:24
Location: Manchester

Re: BOINC..

Postby pepe999 » Wed May 27, 2009 23:36

Hi all again..
Update: Boinc works!!
I reinstall it again by
Code: Select all
equo install boinc

then run in terminal:
Code: Select all
/usr/bin/boinc_client

now I can start running GUI of Boinc and manage the projects..
There is a little problem. I have to be running that command line above to use Boinc..
Code: Select all
pepe999 pepe999 # /usr/bin/boinc_client
27-May-2009 23:07:11 [---] Starting BOINC client version 6.4.5 for x86_64-pc-linux-gnu
27-May-2009 23:07:11 [---] log flags: task, file_xfer, sched_ops
27-May-2009 23:07:11 [---] Libraries: libcurl/7.19.1 GnuTLS/2.6.3 zlib/1.2.3
27-May-2009 23:07:11 [---] Data directory: /home/pepe999
27-May-2009 23:07:11 [---] Processor: 2 GenuineIntel Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz [Family 6 Model 15 Stepping 6]
27-May-2009 23:07:11 [---] Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
27-May-2009 23:07:11 [---] OS: Linux: 2.6.29-sabayon
27-May-2009 23:07:11 [---] Memory: 2.92 GB physical, 1004.05 MB virtual
27-May-2009 23:07:11 [---] Disk: 17.58 GB total, 9.33 GB free
27-May-2009 23:07:11 [---] Local time is UTC +0 hours
27-May-2009 23:07:11 [---] Not using a proxy
27-May-2009 23:07:11 [---] Can't load library libcudart
27-May-2009 23:07:11 [---] No coprocessors
27-May-2009 23:07:11 [rosetta@home] URL: http://boinc.bakerlab.org/rosetta/; Computer ID: 1077761; location: (none); project prefs: default
27-May-2009 23:07:11 [---] No general preferences found - using BOINC defaults
27-May-2009 23:07:11 [---] Reading preferences override file
27-May-2009 23:07:11 [---] Preferences limit memory usage when active to 1492.63MB
27-May-2009 23:07:11 [---] Preferences limit memory usage when idle to 2686.74MB
27-May-2009 23:07:13 [---] Preferences limit disk usage to 8.79GB
27-May-2009 23:07:15 [rosetta@home] Restarting task frb_0_8_ccf_cheat_allmulti_2.7_natfrag_hb_t328__IGNORE_THE_REST_2GVKA_1_12556_8_0 using minirosetta version 171

I would like to use GUI only but without that command can't run it at all..
There are no files(should be) in /var/lib/boinc but the command /usr/bin/boinc_client creates all the necessary files in my home folder instead...
Code: Select all
# Config file for /etc/init.d/boinc

# Owner of BOINC process (must be existing)
USER="boinc"
GROUP="boinc"

# Directory with runtime data: Work units, project binaries, user info etc.
RUNTIMEDIR="/var/lib/boinc"

# Location of the boinc command line binary
BOINCBIN="/usr/bin/boinc_client"

# Logfile (/dev/null for nowhere)
LOGFILE="/var/log/boinc.log"

# Allow remote gui RPC yes or no
ALLOW_REMOTE_RPC="no"

# nice level
NICELEVEL="19"

# scheduling parameters, arguments to chrt(1)
SCHED_PARAM="--batch 0"

# Relative CPU allocation for boinc user, default is 1024,
# requires CONFIG_FAIR_GROUP_SCHED and CONFIG_USER_SCHED,
# see /usr/src/linux/Documentation/scheduler/sched-design-CFS.txt
CPU_SHARE="128"

and
Code: Select all
#!/sbin/runscript

opts="${opts} attach"

depend() {
   # we can use dns and net, but we can also in most cases live without them
   use dns net
}

create_work_directory() {
   if [[ ! -d $RUNTIMEDIR ]]; then
      einfo "Directory $RUNTIMEDIR not existing, creating now."
      mkdir $RUNTIMEDIR
      chown ${USER}:${GROUP} $RUNTIMEDIR
      if [[ ! -d $RUNTIMEDIR ]]; then
         eeror "Directory $RUNTIMEDIR could not be created!"
         return 1
      fi
      ln -s /etc/ssl/certs/ca-certificates.crt $RUNTIMEDIR/ca-bundle.crt
   fi
}

generate_logs() {
   if [[ ! -f $LOGFILE ]]; then
      einfo "No $LOGFILE around. Creating new..."
      einfo "For good log rotation is great tool app-admin/logrotate"
      touch $LOGFILE
      chown ${USER}:${GROUP} $LOGFILE
   fi
}

cuda_check() {
   if [[ -f /opt/cuda/lib/libcudart.so ]]; then
      # symlink wont harm :]
      ln -snf /opt/cuda/lib/libcudart.so $RUNTIMEDIR/libcudart.so
   fi
}

start() {
   ebegin "Starting BOINC"

   create_work_directory
   cuda_check

   cd $RUNTIMEDIR

   if [[ ! -f lockfile ]]; then
      einfo "File $RUNTIMEDIR/lockfile does not exist, assuming first run."
      einfo "You need to setup an account on the BOINC project homepage beforehand!"
      einfo "Go to http://boinc.berkeley.edu/ and locate your project."
      einfo "Then either run /etc/init.d/boinc attach or connect with a gui client"
      einfo "and attach to a project with that."
      echo
      ewarn "Note that for attaching to some project you need your network up and running."
      ewarn "network is needed only for jobs fetching afterwards"
   fi

   generate_logs

   if [[ ${ALLOW_REMOTE_RPC} = "yes" ]]; then
      ARGS="${ARGS} -allow_remote_gui_rpc"
   fi
   
   # sys-apps/util-linux
   CHRT="/usr/bin/chrt ${SCHED_PARAM}"

   # check for baselayout version
   if [[ "`start-stop-daemon --version |awk -F' ' '{print $2}'`" = "(OpenRC)" ]]; then
      PARAMS="--background --stdout ${LOGFILE} --stderr ${LOGFILE} -- ${ARGS}"
   else
      PARAMS="-- ${ARGS} >> ${LOGFILE} 2>&1 &"
   fi

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

   RESULT=$?

   if [ "${CPU_SHARE}" -a -d /sys/kernel/uids ]; then
      BUID=`id -u ${USER}`
      # It might take a moment for start-stop-daemon to chuid
      [[ -d /sys/kernel/uids/${BUID} ]] || sleep 5 # 5 was working always here
      if [[ -w /sys/kernel/uids/${BUID}/cpu_share ]]; then
         echo ${CPU_SHARE} > /sys/kernel/uids/${BUID}/cpu_share
      fi                          
   fi    

   eend $RESULT
}

attach() {
   printf "    Enter the Project URL: "
   read url
   printf "    Enter your Account Key: "
   read key

   RC_QUIET_STDOUT="yes" svc_status
   if [[ $? = 1 ]]; then
      svc_start
   fi
   ebegin "Attaching to project"
      # we have to work in runtime directory
      cd $RUNTIMEDIR
      # boinc does not return 1 when it fails currently
      $BOINCBIN --attach_project $url $key &> /dev/null
   eend $?

   sleep 10
   tail $LOGFILE
}

stop() {
   ebegin "Stopping BOINC"
   start-stop-daemon --stop --retry 3 --quiet --exec $BOINCBIN
   eend $?
}

restart() {
   svc_stop
   svc_start
}
Dell L502X - Core i7-2840QM/8GB DDR3/GF 540M 2GB/Corsair GT 240GB/Full HD
Debian 7
Win 7 still installed
Linux user no. 491024
pepe999
Advanced Hen
 
Posts: 257
Joined: Fri Mar 06, 2009 19:24
Location: Manchester


Return to Software in General

Who is online

Users browsing this forum: No registered users and 2 guests