Posts by Graeme Hewson

1) Message boards : Documentation : Moving BOINC directory to /home under Linux and systemd (Message 100356)
Posted 20 Aug 2020 by Graeme Hewson
Post:
I run an Ubuntu derivative, and my machine has two partitions, / and /home. BOINC is installed from a package which sets its working directory to be /var/lib/boinc-client. However, there wasn't enough space here to run a particular BOINC project, so I wanted to set up a new directory under /home as BOINC's working directory.

I found these instructions, but unfortunately they're now out of date as my Linux distribution uses systemd (as indeed do most Linux distributions), which ignores /etc/default.

Mentioned in the above thread is also the possibility of installing BOINC from the Berkeley download instead of using a package. However, I wanted to continue with the package, and that's what the BOINC project recommends, too (as well as a couple of other methods).

I also found instructions which involve creating a symbolic link from /var/lib to the new directory.

In the end I decided to embrace systemd, and modify the default configuration. Here's what I did, based on the first set of instructions above.

  1. Stop the boinc client
    sudo systemctl stop boinc-client

  2. Copy the existing data to the new location
    sudo cp --archive --recursive --interactive /var/lib/boinc-client/. /home/boinc-client

  3. Change boinc's home directory
    sudo usermod --home /home/boinc-client boinc

  4. Modify the package's settings (see below)
    sudo systemctl edit boinc-client

  5. Start the boinc client
    sudo systemctl start boinc-client


Modifying the boinc-client unit

The systemctl edit command invokes an editor on a new file, a drop-in snippet which overrides part of the existing systemd unit file. Enter the following lines and save the file:

[Service]
ProtectHome=tmpfs
BindPaths=/home/boinc-client
ReadWritePaths=-/etc/boinc-client
WorkingDirectory=/home/boinc-client


When you save the snippet, systemd reloads the unit. You can see the whole unit thus:
systemctl cat boinc-client.service

(There's no need to run the command with sudo.) Note that the changes are shown below the original configuration.
2) Message boards : Projects : ClimatePrediction.Net (AKA CPDN) NEWS (Message 54117)
Posted 14 May 2014 by Graeme Hewson
Post:
It's back now. :-)
3) Message boards : Projects : BOINC user survey (Message 31243)
Posted 28 Feb 2010 by Graeme Hewson
Post:
A few weeks ago I was emailed, as a SETI@home user, to participate in the BOINC user survey: http://boinc.berkeley.edu/survey/, and a couple of days ago I received a reminder.

I'm afraid I'm not at all happy to reveal my password, especially not over an unencrypted (HTTP) link. There's no information on the survey Web page about why the password is required, or what information will be collected and how it will be used.

Sorry, but unless and until my concerns are addressed, I won't be participating in this or future surveys.

4) Message boards : BOINC client : (temporarily) Solving the LHC/BOINC crashing problem. (Message 16476)
Posted 5 Apr 2008 by Graeme Hewson
Post:
I'm running the current Ubuntu package, 5.10.8. Is this a known problem? I don't see anything like it at http://boinc.berkeley.edu/trac/query.
5) Message boards : BOINC client : (temporarily) Solving the LHC/BOINC crashing problem. (Message 16464)
Posted 5 Apr 2008 by Graeme Hewson
Post:
I've just come back to this, because my LHC WUs from Monday were still not being uploaded. I wasn't overly concerned, because the LHC@HOME Web site is still down for maintenance.

However, tracing with Wireshark I found that even though I removed the dummy entry from /etc/hosts on Tuesday, the BOINC client was still trying to connect to the dummy host. I run nscd, but the same happened when I stopped it. When I restarted the client, my WUs uploaded fine.

It seems the client caches host addresses (indefinitely?) This is a serious problem. I vaguely recall a year or two ago being unable to upload WUs for some project, I think after a host address change, until I restarted the client.
6) Message boards : BOINC client : (temporarily) Solving the LHC/BOINC crashing problem. (Message 16313)
Posted 1 Apr 2008 by Graeme Hewson
Post:
I've put lhcathome.cern.ch into my /etc/hosts with a dummy address. After re-enabling networking, my other projects are uploading and downloading fine.

The entry looks like this:

172.20.1.1 lhcathome.cern.ch


That address should be OK for most people, but if you feel you need to change it for any reason, please be careful and use RFC3330 as a guide.

Unfortunately, this means I can't go to the project home page from my machine to check the status. Perhaps it should be a principle that hostnames for WU transfers should be different from those for home pages (even if they resolve to the same IP address).
7) Message boards : BOINC client : segmentation violation (Message 16215)
Posted 31 Mar 2008 by Graeme Hewson
Post:
Can you check, if you're quick enough, what BOINC does if you disable its ability to connect to the network/internet? (Activity menu in BOINC Manager->Suspend network activity)


I tried it a few times already, without success. This time, though, I shut down the network interface first with "ifdown eth0", then started the client and suspended its network activity, and finally restarted the interface with "ifup eth0".

Now lhcathome is happily running, and one completed lhcathome WU is trying to upload. So, it seems the latter is the cause of the problem.
8) Message boards : BOINC client : segmentation violation (Message 16183)
Posted 31 Mar 2008 by Graeme Hewson
Post:
Unfortunately, I still get a SIGSEGV with 5.10.45 when sixtrack restarts.
9) Message boards : BOINC client : segmentation violation (Message 16181)
Posted 31 Mar 2008 by Graeme Hewson
Post:
OK, so what I could do is uninstall the boinc-client (5.10.8-1) Ubuntu package and manually install the Linux X64 5.10.45 version.

Will doing that delete my existing work units, though? In particular, I have a month or two invested in a climateprediction WU. :-(
10) Message boards : BOINC client : segmentation violation (Message 16180)
Posted 31 Mar 2008 by Graeme Hewson
Post:
5.10.8-1 is the version shown by Adept (APT front-end), and it's installed. I recall I had to do some manual work to get it going on this 64-bit system, though, so I'm confused. Off to do some research on the Web...
11) Message boards : BOINC client : segmentation violation (Message 16177)
Posted 31 Mar 2008 by Graeme Hewson
Post:

SIGSEGV: segmentation violation
Stack trace (9 frames):
./boinc[0x4487b9]
/lib64/libpthread.so.0[0x3bb500e540]
./boinc[0x459684]
./boinc[0x435fcc]
./boinc[0x436ae3]
./boinc[0x41267c]
./boinc[0x438df9]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3bb441e074]
./boinc(__gxx_personality_v0+0x1b9)[0x4056f9]


I have the same problem running under Kubuntu 7.10. I issue:

/etc/init.d/boinc-client start

and ps shows sixtrack is running. After 10 or 20 seconds, this is written to /var/lib/boinc-client/stderrdae.txt:

UNRECOGNIZED: suspend_if_no_recent_input
SIGSEGV: segmentation violation
Stack trace (9 frames):
/usr/bin/boinc_client[0x44a759]
/lib/libpthread.so.0[0x2b9e865a3100]
/usr/lib/libcurl.so.4(curl_multi_remove_handle+0x44)[0x2b9e85231c24]
/usr/bin/boinc_client[0x43636c]
/usr/bin/boinc_client[0x4376dc]
/usr/bin/boinc_client[0x4127de]
/usr/bin/boinc_client[0x4394cd]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b9e86a4fb44]
/usr/bin/boinc_client(__gxx_personality_v0+0x179)[0x4049b9]

Exiting...


stdoutdae.txt has:

2008-03-31 19:00:25 [---] Starting BOINC client version 5.10.8 for x86_64-pc-linux-gnu
2008-03-31 19:00:25 [---] log flags: task, file_xfer, sched_ops
2008-03-31 19:00:25 [---] Libraries: libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3.3 libidn/1.0
2008-03-31 19:00:25 [---] Data directory: /var/lib/boinc-client
2008-03-31 19:00:25 [---] Processor: 2 GenuineIntel Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz [Family 6 Model 15 Stepping 2]
2008-03-31 19:00:25 [---] 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 syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
2008-03-31 19:00:25 [---] Memory: 2.95 GB physical, 1.91 GB virtual
2008-03-31 19:00:25 [---] Disk: 45.84 GB total, 39.51 GB free
2008-03-31 19:00:25 [Einstein@Home] URL: http://einstein.phys.uwm.edu/; Computer ID: 962236; location: home; project prefs: default
2008-03-31 19:00:25 [climateprediction.net] URL: http://climateprediction.net/; Computer ID: 715024; location: home; project prefs: de
fault
2008-03-31 19:00:25 [lhcathome] URL: http://lhcathome.cern.ch/lhcathome/; Computer ID: 9620369; location: (none); project prefs: defau
lt
2008-03-31 19:00:25 [SETI@home] URL: http://setiathome.berkeley.edu/; Computer ID: 3444335; location: home; project prefs: default
2008-03-31 19:00:25 [QMC@HOME] URL: http://qah.uni-muenster.de/; Computer ID: 52563; location: (none); project prefs: default
2008-03-31 19:00:25 [---] General prefs: from Einstein@Home (last modified 2008-01-23 17:43:14)
2008-03-31 19:00:25 [---] Host location: home
2008-03-31 19:00:25 [---] General prefs: no separate prefs for home; using your defaults
2008-03-31 19:00:25 [---] Reading preferences override file
2008-03-31 19:00:25 [---] Preferences limit memory usage when active to 1814.45MB
2008-03-31 19:00:25 [---] Preferences limit memory usage when idle to 2721.67MB
2008-03-31 19:00:25 [---] Preferences limit disk usage to 13.75GB
2008-03-31 19:00:25 [lhcathome] [file_xfer] Started upload of file wm72A_m72allA__17__64.281_59.311__6_8__6__18_1_sixvf_boinc342721_2_
0
2008-03-31 19:00:25 [lhcathome] Restarting task wm72A_m72allA__4__64.284_59.314__14_16__6__18_1_sixvf_boinc338257_3 using sixtrack ver
sion 466
2008-03-31 19:00:25 [lhcathome] Restarting task wm72A_m72allA__19__64.283_59.313__4_6__6__72_1_sixvf_boinc343488_4 using sixtrack vers
ion 466
2008-03-31 19:00:25 [lhcathome] Sending scheduler request: To fetch work
2008-03-31 19:00:25 [lhcathome] Requesting 313588 seconds of new work

var/crash/_var_lib_boinc-client_projects_setiathome.berkeley.edu_setiathome-5.28.x86_64-pc-linux-gnu.112.crash was written this afternoon.

The LHC@HOME Web site is currently down for maintenance.
12) Message boards : BOINC Manager : BOINC in Linux (Message 4663)
Posted 6 Jun 2006 by Graeme Hewson
Post:
I experienced the same problem when I upgraded from Kubuntu 5.10 to 6.06. I had installed BOINC from the BOINC website, but now I've used Adept to get the boinc-client and boinc-manager packages, and it's going OK.

---

For the record, if anyone's interested, I ran strace on the problem version and found it was issuing:

execve("/usr/bin/xterm", ["xterm", "-e", "sh", "-c", "less ", "http://boinc.berkeley.edu/manage"...]

$BROWSER is set, and manually issuing "$BROWSER http://boinc.berkeley.edu/" works fine. $PAGER isn't set. Using strings on boincmgr, I saw this:

PAGER
xterm -e sh -c '%s'




Copyright © 2021 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.