Thread 'How to get Flatpak BOINC manager to let the client run when the manager window is closed?'

Message boards : Questions and problems : How to get Flatpak BOINC manager to let the client run when the manager window is closed?
Message board moderation

To post messages, you must log in.

AuthorMessage
Zeiss Ikon

Send message
Joined: 2 Jul 17
Posts: 36
United States
Message 111600 - Posted: 17 Apr 2023, 21:50:48 UTC

After fighting with the repository (Kubuntu 22.04) version of BOINC Manager, I gave up and installed the flatpak version this past weekend. That's working just fine -- except I noticed that my CPU fan wasn't running at high level like it should when my Fx8350 is going full blast on all eight cores. A little poking, and I've determined that it runs fine per preferences when the BOINC Manager is open, but if I close the manager (either with the x button upper right, or with File, Close Window), computation stops.

I *think* this means the client service isn't running? The command that would tell the client to start on boot in the .deb install (sudo systemctl enable boinc-client) returns "Failed to enable unit: Unit file boinc-client.service does not exist." I presume this is because the flatpak doesn't offer a system service. There must be a flatpak command that I can put in my autostart so the client runs independent of the manager -- but I don't know what it is. flatpak run edu.berkeley.BOINC launches the manager (which starts the client), but the client ought to run in background whether the manager is running or not.

Or is this one of the ways in which the flatpak version isn't quite ready for prime time?
ID: 111600 · Report as offensive
Bryn Mawr
Help desk expert

Send message
Joined: 31 Dec 18
Posts: 302
United Kingdom
Message 111601 - Posted: 18 Apr 2023, 1:28:06 UTC - in response to Message 111600.  

After fighting with the repository (Kubuntu 22.04) version of BOINC Manager, I gave up and installed the flatpak version this past weekend. That's working just fine -- except I noticed that my CPU fan wasn't running at high level like it should when my Fx8350 is going full blast on all eight cores. A little poking, and I've determined that it runs fine per preferences when the BOINC Manager is open, but if I close the manager (either with the x button upper right, or with File, Close Window), computation stops.

I *think* this means the client service isn't running? The command that would tell the client to start on boot in the .deb install (sudo systemctl enable boinc-client) returns "Failed to enable unit: Unit file boinc-client.service does not exist." I presume this is because the flatpak doesn't offer a system service. There must be a flatpak command that I can put in my autostart so the client runs independent of the manager -- but I don't know what it is. flatpak run edu.berkeley.BOINC launches the manager (which starts the client), but the client ought to run in background whether the manager is running or not.

Or is this one of the ways in which the flatpak version isn't quite ready for prime time?


Vague memories (sorry but I’m not near my machines to check it out) that there is an option within BM to close the client when the manager closes.
ID: 111601 · Report as offensive
ProfileKeith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 891
United States
Message 111602 - Posted: 18 Apr 2023, 6:46:40 UTC - in response to Message 111601.  

Don't know anything about the Flatpak version, but the older versions of the Boinc Manager still had the Options >> Other Options dialog in the menu that gave you the "Enable exit Manager dialog" checkbox.

Checking that gave you the option to quit the Manager but still leave the client running.

On my version of Boinc, that is what I use. No point in leaving the Manager running for hosts I basically run headless and monitor via BoincTasks.
ID: 111602 · Report as offensive
Zeiss Ikon

Send message
Joined: 2 Jul 17
Posts: 36
United States
Message 111603 - Posted: 18 Apr 2023, 9:20:52 UTC - in response to Message 111602.  

Don't know anything about the Flatpak version, but the older versions of the Boinc Manager still had the Options >> Other Options dialog in the menu that gave you the "Enable exit Manager dialog" checkbox.

Checking that gave you the option to quit the Manager but still leave the client running.

On my version of Boinc, that is what I use. No point in leaving the Manager running for hosts I basically run headless and monitor via BoincTasks.


I've been running with the Manager closed for literally years before the buggy version got into the Ubuntu repository. The Flatpak I have installed, however, has the following options in "Options, Other Options":

Language
Notice Reminder Interval
Run the client (checked)
Enable Manager exit dialogue (checked)
Enable Client shutdown dialogue (checked)

Except I haven't been seeing any shutdown dialogs. Changing settings for any of the three doesn't seem to change what happens with the client.
ID: 111603 · Report as offensive
ProfileDave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2720
United Kingdom
Message 111604 - Posted: 18 Apr 2023, 10:10:50 UTC - in response to Message 111603.  

Except I haven't been seeing any shutdown dialogs. Changing settings for any of the three doesn't seem to change what happens with the client.


I haven't used the current flatpack version but many years ago before my Ubuntu days when I ran Mandrake I used to use the flatpack version available then and the dialogue did work then. I can't remember who produced the current flatpack version. I will try downloading current one and having a play.
ID: 111604 · Report as offensive
ProfileDave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2720
United Kingdom
Message 111605 - Posted: 18 Apr 2023, 10:51:09 UTC - in response to Message 111604.  
Last modified: 18 Apr 2023, 10:52:18 UTC

I will try downloading current one and having a play.


Ran the manager, client didn't run
./run_client
produced
error while loading shared libraries: libssl.so.1.0: cannot open shared object file: No such file or directory
Before I got too far down the dependency hell route I tried copying the executable from my roll your own 7.23.0 from /usr/bin.
./run_client then started the client as did run_manager with the client shut down first. Closing down manager then gave me the exit dialogue so I am guessing the problem lies in the client somewhere.
ID: 111605 · Report as offensive
Zeiss Ikon

Send message
Joined: 2 Jul 17
Posts: 36
United States
Message 111606 - Posted: 18 Apr 2023, 21:14:02 UTC - in response to Message 111605.  

./run_client then started the client as did run_manager with the client shut down first. Closing down manager then gave me the exit dialogue so I am guessing the problem lies in the client somewhere.


To me, that suggests that the flatpak version 7.22.0 (which is what I have) is missing the ability to leave the client running (as well as to ask when it receives a close input). I've definitely got a running client when the manager is open; I can see the work units ticking down in Tasks tab, and Statistics and Disks tabs reflect the activity as well.

I don't see where to execute run_client -- there don't seem to be any executables in .var/app/edu.berkeley.BOINC.
ID: 111606 · Report as offensive
ProfileKeith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 891
United States
Message 111607 - Posted: 18 Apr 2023, 21:59:35 UTC

run_client is one of the built executable scripts from the Github code that is produced when you roll your own. Haven't seen it built or packaged with any of the distro packaging of BOINC.

The ability to control the client or not with the Manager was taking out in the later releases. Why I run with an older version of the Manager compared to the client. The option was removed back in 2021.
ID: 111607 · Report as offensive
ProfileDave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2720
United Kingdom
Message 111608 - Posted: 19 Apr 2023, 6:26:01 UTC - in response to Message 111606.  

I don't see where to execute run_client -- there don't seem to be any executables in .var/app/edu.berkeley.BOINC.


running the flat pack version, running
./boinc_ubuntu_7.16.6_x86_64-pc-linux-gnu.sh 
installed it in Downloads/BOINC/ in my home folder both the run_client and run_manager scripts are there.
ID: 111608 · Report as offensive
Brian Nixon

Send message
Joined: 19 Apr 23
Posts: 16
United Kingdom
Message 111609 - Posted: 19 Apr 2023, 12:33:32 UTC

The Flatpak build patches BOINC to set the default for Stop running tasks when exiting the BOINC Manager to ‘on’.

The only place to unset that option in the GUI is in the confirmation dialog that appears when you Exit (not Close) the manager via File » Exit BOINC Manager.

You only see that dialog if you have checked Enable Manager exit dialog? in Options » Other options.
ID: 111609 · Report as offensive
Zeiss Ikon

Send message
Joined: 2 Jul 17
Posts: 36
United States
Message 111613 - Posted: 19 Apr 2023, 23:08:36 UTC - in response to Message 111609.  

The Flatpak build patches BOINC to set the default for Stop running tasks when exiting the BOINC Manager to ‘on’.

The only place to unset that option in the GUI is in the confirmation dialog that appears when you Exit (not Close) the manager via File » Exit BOINC Manager.

You only see that dialog if you have checked Enable Manager exit dialog? in Options » Other options.


Yep, that seems to have worked. Kind of a non-obvious way to do it, IMO. Now, with the Manager closed, htop shows a bunch of processes that start with "../../projects*" and one that has
/app/bin/boinc --redirectio --launched_by_manager
-- that latter, presumably, is the one I want to set up to run on system start, but there is no /app folder -- not even inside ~/.var.
ID: 111613 · Report as offensive
Brian Nixon

Send message
Joined: 19 Apr 23
Posts: 16
United Kingdom
Message 111616 - Posted: 20 Apr 2023, 8:12:20 UTC - in response to Message 111613.  

that latter, presumably, is the one I want to set up to run on system start, but there is no /app folder -- not even inside ~/.var.

The /app folder is part of the Flatpak bundle. The thing is that with Flatpak, you don’t explicitly run things inside it; you just run the Flatpak. And the BOINC Flatpak is configured to start the Manager. The Manager starts the client, and the client starts the project science apps.

I’m not sure the Flatpak arrangement lends itself to running as a system service, either, as the whole infrastructure seems to expect an interactive desktop session to be available.
ID: 111616 · Report as offensive
computezrmle

Send message
Joined: 2 Feb 22
Posts: 84
Germany
Message 111617 - Posted: 20 Apr 2023, 8:30:51 UTC

It might work if a corresponding systemd service file is available.
In case flatpak doesn't install it's own the original one from here can be used:
https://github.com/BOINC/boinc/blob/master/client/scripts/boinc-client.service.in

Shouldn't be a problem for an experienced user to copy it to the right location and adjust at least the paths.
ID: 111617 · Report as offensive

Message boards : Questions and problems : How to get Flatpak BOINC manager to let the client run when the manager window is closed?

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.