Thread 'I've broken my setup'

Message boards : BOINC client : I've broken my setup
Message board moderation

To post messages, you must log in.

AuthorMessage
Jave Ivanovski
Avatar

Send message
Joined: 23 May 09
Posts: 40
Australia
Message 104784 - Posted: 14 Jul 2021, 5:38:41 UTC

Hi all,
Running Linux Mint 20.2.

I'm trying to write a couple of simple scripts in Linux to start/stop Boinc.
For stopping I have:

#!/bin/sh
boinccmd --quit


This kills all the WUs and leaves boincmgr open.

How do I now restart Boinc, with it running my previous project and WUs?

I have boincmgr starting up at boot with a 3 second delay. To do this I added the command "/usr/bin/boincmgr" to my Startup Applications.

When I now reboot, boincmgr opens, but is disconnected from the client - ie, no WUs are running.
ID: 104784 · Report as offensive
Bryn Mawr
Help desk expert

Send message
Joined: 31 Dec 18
Posts: 298
United Kingdom
Message 104789 - Posted: 14 Jul 2021, 8:38:00 UTC - in response to Message 104784.  
Last modified: 14 Jul 2021, 8:40:29 UTC

Hi all,
Running Linux Mint 20.2.

I'm trying to write a couple of simple scripts in Linux to start/stop Boinc.
For stopping I have:

#!/bin/sh
boinccmd --quit


This kills all the WUs and leaves boincmgr open.

How do I now restart Boinc, with it running my previous project and WUs?

I have boincmgr starting up at boot with a 3 second delay. To do this I added the command "/usr/bin/boincmgr" to my Startup Applications.

When I now reboot, boincmgr opens, but is disconnected from the client - ie, no WUs are running.


Where do you start the client?

Don’t you need “/user/bin/boinc —start_delay 3” or the like?

ETA, I have always run Boinc as a service, that way there’s no need to start or stop either client or manager when you reboot.
ID: 104789 · Report as offensive
Jave Ivanovski
Avatar

Send message
Joined: 23 May 09
Posts: 40
Australia
Message 104792 - Posted: 14 Jul 2021, 22:34:53 UTC - in response to Message 104789.  

I start BOINC Manager through the Startup Applications app by running "/usr/bin/boincmgr" and with a start delay of 3 seconds.

Yes, I too run boinc as a service. I was just trying to use the command line to stop/start crunching when needed (like during an update).
ID: 104792 · Report as offensive
Bryn Mawr
Help desk expert

Send message
Joined: 31 Dec 18
Posts: 298
United Kingdom
Message 104794 - Posted: 15 Jul 2021, 1:59:40 UTC - in response to Message 104792.  

I start BOINC Manager through the Startup Applications app by running "/usr/bin/boincmgr" and with a start delay of 3 seconds.

Yes, I too run boinc as a service. I was just trying to use the command line to stop/start crunching when needed (like during an update).


Have you tried running that command in a user terminal so that you can see any messages that it returns?
ID: 104794 · Report as offensive
Jave Ivanovski
Avatar

Send message
Joined: 23 May 09
Posts: 40
Australia
Message 104798 - Posted: 15 Jul 2021, 9:18:00 UTC - in response to Message 104794.  

Boinc Manager is open. Projects and tasks displayed.

I kill all the WUs with "boinccmd --quit"

Then to restart I type "/usr/bin/boinc"
And get an error:
15-Jul-2021 19:15:23 Another instance of BOINC is running.


But didn't I just kill all the tasks before?
ID: 104798 · Report as offensive
Bryn Mawr
Help desk expert

Send message
Joined: 31 Dec 18
Posts: 298
United Kingdom
Message 104799 - Posted: 15 Jul 2021, 9:38:52 UTC - in response to Message 104798.  

Boinc Manager is open. Projects and tasks displayed.

I kill all the WUs with "boinccmd --quit"

Then to restart I type "/usr/bin/boinc"
And get an error:
15-Jul-2021 19:15:23 Another instance of BOINC is running.


But didn't I just kill all the tasks before?


I think that command stops the client when running as a program. When running as a service I think you need :-

/etc/init.d/boinc-client stop

See https://boinc.berkeley.edu/wiki/Stop_or_start_BOINC_daemon_after_boot for details.
ID: 104799 · Report as offensive
Jave Ivanovski
Avatar

Send message
Joined: 23 May 09
Posts: 40
Australia
Message 104804 - Posted: 15 Jul 2021, 20:54:43 UTC - in response to Message 104799.  

Yes, these work. I will use the boinc-client script in /etc/init.d to control Boinc in the future.

Now, I have the problem of boincmgr not recognising the password in /etc/boinc-client/gui_rpc_auth.cfg

Whenever I boot up, boincmgr complains that it can't connect and says to reinstall.

I have to manually go to "Select Computer" and type in "localhost", delete the old password hash (where is this stored?) and add my own password. Boincmgr then connects to running client.

How do I stop boincmgr from reading the old password?
ID: 104804 · Report as offensive
Bryn Mawr
Help desk expert

Send message
Joined: 31 Dec 18
Posts: 298
United Kingdom
Message 104805 - Posted: 15 Jul 2021, 21:28:16 UTC - in response to Message 104804.  

Yes, these work. I will use the boinc-client script in /etc/init.d to control Boinc in the future.

Now, I have the problem of boincmgr not recognising the password in /etc/boinc-client/gui_rpc_auth.cfg

Whenever I boot up, boincmgr complains that it can't connect and says to reinstall.

I have to manually go to "Select Computer" and type in "localhost", delete the old password hash (where is this stored?) and add my own password. Boincmgr then connects to running client.

How do I stop boincmgr from reading the old password?


See https://boinc.berkeley.edu/forum_thread.php?id=14013
ID: 104805 · Report as offensive

Message boards : BOINC client : I've broken my setup

Copyright © 2024 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.