Bug 1575786 - won't run when moved from /var/lib/boinc location
Summary: won't run when moved from /var/lib/boinc location
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: boinc-client
Version: 28
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Laurence Field
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1575785 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-07 23:54 UTC by mark preston
Modified: 2018-05-08 06:45 UTC (History)
7 users (show)

Fixed In Version:
Clone Of: 1553840
Environment:
Last Closed: 2018-05-08 00:16:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description mark preston 2018-05-07 23:54:39 UTC
I ran boinc many many years ago when it was v5. 

I got interested again so I installed 

boinc-manager-7.9.3-1.fc28.x86_64
boinc-client-7.9.3-1.fc28.x86_64

and later noticed that it was using /var/lib/boinc
I don't want boinc running under /var so i moved boinc to /home/boinc and
that broke everything.

The location of where the boinc directory/location is should be an option and easily moved from location to location at anytime without breaking anything.

I changed the home path for boinc in /etc/passwd.

I ran:
semanage fcontext -a -e /var/lib/boinc /home/boinc
restorecon -R -v /home/boinc 

and that didn't fix it.

i've googled high and low and have been unable to find a solution for this.

every time i 
systemctl start boinc-client.service

the result is:

● boinc-client.service - Berkeley Open Infrastructure Network Computing Client
   Loaded: loaded (/usr/lib/systemd/system/boinc-client.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2018-05-07 19:41:11 EDT; 9min ago
     Docs: man:boinc(1)
  Process: 9217 ExecStopPost=/bin/rm -f lockfile (code=exited, status=200/CHDIR)
  Process: 9216 ExecStart=/usr/bin/boinc (code=exited, status=200/CHDIR)
 Main PID: 9216 (code=exited, status=200/CHDIR)

May 07 19:41:11 homelnx.markpreston.me systemd[1]: Started Berkeley Open Infrastructure Network Computing Client.
May 07 19:41:11 homelnx.markpreston.me systemd[9216]: boinc-client.service: Changing to the requested working directory failed: No such file or directory
May 07 19:41:11 homelnx.markpreston.me systemd[9216]: boinc-client.service: Failed at step CHDIR spawning /usr/bin/boinc: No such file or directory
May 07 19:41:11 homelnx.markpreston.me systemd[1]: boinc-client.service: Main process exited, code=exited, status=200/CHDIR
May 07 19:41:11 homelnx.markpreston.me systemd[9217]: boinc-client.service: Changing to the requested working directory failed: No such file or directory
May 07 19:41:11 homelnx.markpreston.me systemd[9217]: boinc-client.service: Failed at step CHDIR spawning /bin/rm: No such file or directory
May 07 19:41:11 homelnx.markpreston.me systemd[1]: boinc-client.service: Control process exited, code=exited status=200
May 07 19:41:11 homelnx.markpreston.me systemd[1]: boinc-client.service: Failed with result 'exit-code'.
~


I can login to the boinc account and run the client.  but even then there are issues with boinc-manager in that it doesn't honor run preference, network preference, can't see disk usage.  It will reset the project if suspended or "no new tasks" after about 15 minutes.

If i'm stuck with using /var then i won't be supporting boinc in the future.

Comment 1 Adri Verhoef 2018-05-08 00:01:12 UTC
Have you tried the option '--dir', mark?

From the manpage:
--dir path
* Use given dir as the client working directory.

Comment 2 Germano Massullo (Thetra) 2018-05-08 00:16:04 UTC
Fedora BOINC is compliant to upstream project. By messing up with BOINC folders and settings you cannot expect package maintainers to spend their spare time into fixing problems that you and your very personal tastes, have originated.

> If i'm stuck with using /var then i won't be supporting boinc in the future.

Your choice.

Comment 3 Germano Massullo (Thetra) 2018-05-08 00:18:31 UTC
*** Bug 1575785 has been marked as a duplicate of this bug. ***

Comment 4 mark preston 2018-05-08 00:20:06 UTC
Adri,  i wasn't aware i could put a --dir switch on the systemctl start command.

Germano, do i need to file a bug with boinc upstream instead?  i saw issue "https://github.com/BOINC/boinc/pull/2419"  and this dir isn't suppose to be the default until release 7.10 and this is still 7.9

Comment 5 Adri Verhoef 2018-05-08 06:45:56 UTC
Sorry, I was unclear, I meant the Manual page of boinc(1), like it says here:

$ systemctl status boinc-client.service 
● boinc-client.service - Berkeley Open Infrastructure Network Computing Client
   Loaded: loaded (/usr/lib/systemd/system/boinc-client.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-05-04 00:33:08 CEST; 4 days ago
     Docs: man:boinc(1)

:-)


Note You need to log in before you can comment on or make changes to this bug.