climateprediction.net (CPDN) home page
Posts by Tut

Posts by Tut

InfoMessage
1) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69395
Posted 22 Jul 2023 by Tut
This whole adventure started when I posted in the Windows forum that one of my PC was not getting any tasks. One of the replies indicated that I might improve the VirtualBox Linux tasks if I upgraded the boinc version.

Independent from that:
Your Linux clients run BOINC v7.18.1 which is an Android only release.
Using it on Linux is known to cause lots of problems, hence must not be used.
...
Perhaps I should restore my VM to BOINC v7.18.1 which actually runs?
Well, I use 7.18.1 on all my linux boxes (the one that says pre-release) and I've not had a single problem with it. Yet I recently had problems with the Windows version 7.22 on a WINE install which worked when I dropped back to an earlier boinc version. So one might suppose there's issues with 7.22.

There's an old saying: 'If it's not broke, don't fix it' :) If I was you, I'd go back to the earlier boinc version.

That's what I will do. Thanks for all your help.


I don't understand your point about not getting CPDN tasks as your profile shows you've run plenty on both the VMs? It's probably just that there are usually more Windows machines subscribed to CPDN than tasks available. I also miss out sometimes.

p.s. if you had some failed tasks lately because of the bad batch, it will take time for the server to start sending you tasks again as I believe it black-lists your host for a short while.

It has been years since I have received any Windows tasks on that PC. I suspect that it's not simply the luck of the draw, but that's a topic for the other forum.
2) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69393
Posted 22 Jul 2023 by Tut
That rather implies that the new version of BOINC - you need to tell us where you got it from - was compiled to use a different version of the software package runtime libraries.
I knew there was a reason other than perversity for compiling my own!


I got it from here:
Check https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/boinc

Gianfranco is an official BOINC builder.
3) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69388
Posted 22 Jul 2023 by Tut
This whole adventure started when I posted in the Windows forum that one of my PC was not getting any tasks. One of the replies indicated that I might improve the VirtualBox Linux tasks if I upgraded the boinc version.

Independent from that:
Your Linux clients run BOINC v7.18.1 which is an Android only release.
Using it on Linux is known to cause lots of problems, hence must not be used.
See:
https://boinc.berkeley.edu/forum_thread.php?id=15014&postid=112098
https://boinc.berkeley.edu/forum_thread.php?id=15014&postid=112100


Perhaps I should restore my VM to BOINC v7.18.1 which actually runs?
4) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69386
Posted 21 Jul 2023 by Tut
After restarting the VM I got a subset of the same message:
Operation failed: read() failed
I think the problem is related to permissions as Dave says. Although your userid is now part of the boinc group, the gui_rpc_auth.cfg may not have 'group' read permission.

To fix, first note that the gui_rpc_auth.cfg in /var/lib/boinc is actually a link into the /etc/boinc-client directory:
lrwxrwxrwx 1 root root 34 Apr 20  2022 gui_rpc_auth.cfg -> /etc/boinc-client/gui_rpc_auth.cfg

and if we look at the permissions of the linked file in my files:
ls -l /etc/boinc-client/gui_rpc_auth.cfg
-rw-r----- 1 root boinc 1 Oct  1  2019 /etc/boinc-client/gui_rpc_auth.cfg
It says 'root' owns the file but the group owner is 'boinc' and we have group 'read' permission (the second 'r' in the first column). You probably don't have this set, perhaps yours is '-rw------' instead. If that's the case, then change it with:
sudo chmod g+r /etc/boinc-client/gui_rpc_auth.cfg

Hopefully that will fix it!

When I do:
ls -l /etc/boinc-client/gui_rpc_auth.cfg

I get
-rw-r----- 1 root boinc 1 Dec 2  2022 /etc/boinc-client/gui_rpc_auth.cfg



A blank gui_rpc_auth.cfg file will work - I tend to keep mine empty. There's also no special reason why /var/lib/boinc/gui_rpc_auth.cfg is a link to the default in /etc/boinc-client. You can delete the link and create a real file of the same name in /var/lib/boinc-client.

p.s. the install, I think, should really have done all this for you. Not sure why it fails on this machine and not the other you mentioned which worked.
5) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69382
Posted 21 Jul 2023 by Tut
I got something quite different:
Can't get RPC password: /var/lib/boinc-client/gui_rpc_auth.cfg exists but can't be read. See https://boinc.berkeley.edu/gui_rpc.php
Only operations not requiring authorization will be allowed.
Operation failed: read() failed
You need to add your user name to the boinc user group, and ensure that is active.

I can't remember the exact wording at this time of night, but it's been given before. It you try the boinc controls in the same terminal window afterwords, they should work: but to be safe, the easiest way is to reboot the machine - after that, the group membership will be permanent.

That should solve your problem (I forgot this step).

Check what's currently set for the boinc group with this:
grep boinc /etc/group

Mine is:
boinc:x:130:glenn

If your username is missing on the end, add it with:
sudo adduser dave boinc

and then run the 'grep' command again to check. This command will prompt you for your password.

My user name was missing from the boinc group, so i added it. Immediately afterwards I got the same message as previously:
Can't get RPC password: /var/lib/boinc-client/gui_rpc_auth.cfg exists but can't be read. See https://boinc.berkeley.edu/gui_rpc.php
Only operations not requiring authorization will be allowed.
Operation failed: read() failed

After restarting the VM I got a subset of the same message:
Operation failed: read() failed



Then try boincmgr/boinccmd again. You should not need to reboot the VM but I might be wrong.

If that doesn't fix it, report back. It should do.


I went to
https://boinc.berkeley.edu/gui_rpc.php 
and read about the key file in
 gui_rpc_auth.cfg 

but when I tried looking in that file it seems to be empty.
6) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69378
Posted 20 Jul 2023 by Tut
boinc      862          1  0   11:27  ?         00:00:00  /usr/bin/boinc

Ok, so the boinc client is running using defaults. That'll mean it should be using the files in /var/lib/boinc-client and communicating on port 31416. I'm puzzled why running boincmgr in /var/lib/boinc-client didn't work in that case.

Let's see if the command line tool rather than boincmgr can talk to the client. Try this and let us know what output you get:
boinccmd --get_state
If it can see the client you'll get alot of output. If it can't, you'll get "can't connect to local host"

I got something quite different:
Can't get RPC password: /var/lib/boinc-client/gui_rpc_auth.cfg exists but can't be read. See https://boinc.berkeley.edu/gui_rpc.php
Only operations not requiring authorization will be allowed.
Operation failed: read() failed



Try that first.

For killing the client, you can use root privilege rather than as the user boinc:
sudo kill 862
but don't do that just yet.
7) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69376
Posted 20 Jul 2023 by Tut
Ok, I think most likely the client is not running but we can check. This is one of those support question that would take 5 mins to sort out if I could see the machine.

Let's see if the cilent is running and what the command line arguments are. Run this on your Ubuntu VM in a terminal (could reboot the VM first to make a clean start):

 ps -ef | fgrep 'bin/boinc'

If the boinc client is running, you'll get a line similar to this:

boinc       1404       1  0 09:56 ?        00:00:09 /usr/bin/boinc --allow_remote_gui_rpc --dir /work/boinc-client


I get
boinc      862          1  0   11:27  ?         00:00:00  /usr/bin/boinc
dave     3570    1991  0   11:28  pts/0   00:00:00  grep -F  --color=auto  bin/boinc 



If it's not running, you'll get nothing. It's possible you might get multiple lines if, for some reason, the client has been started up multiple times (which it shouldn't). Report back what output you get. I'd like to see what command line arguments it's using. We're going to kill this later and try restarting manually, see below.

Let's also check ownership is correct. This can be another reason the client isn't starting.

Run the following command to check there is a 'boinc' user for the client:

 grep boinc /etc/passwd

should give output like this:
boinc:x:122:130:BOINC core client,,,:/var/lib/boinc-client:/usr/sbin/nologin



This gave me
 boinc:x:126:133:BOINC core client,,,:/var/lib/boinc-client:/usr/sbin/nologin



Let's check the user 'boinc' owns the files in the client directory. Run this command:
 ls -l /var/lib/boinc-client
(note that /var/lib/boinc is just a symbolic link to /var/lib/boinc-client where the real files are)
You should see plenty of files, with lines like:
-rw-r--r-- 1 boinc boinc    1691 Feb  4 00:21 global_prefs.xml

The key thing is here that 'boinc boinc' part. That means the boinc user & group owns these files.

There should also be a couple of files owned by 'root' user which are links to the /etc/boinc-client directory.


There were many lines of output some owned by root


If that looks ok, then first kill off any existing boinc client that's running. Referring back to the output from ps above:
boinc       1404       1  0 09:56 ?        00:00:09 /usr/bin/boinc --allow_remote_gui_rpc --dir /work/boinc-client

the number in the second column is the 'process id'. That's what you need (yours will be different). Kill the process with:
sudo -u boinc kill 1404
!! Do not use 1404 here, use the process id you got !!

Confirm the client is no longer running by using the ps command above. If for some reason you have multiple clients running, kill all of them.


I was unable to kill process 862. I had to provide my password and got zero output.
When I re-checked the running processes as above, I got the exact two lines shown above.
boinc      862          1  0   11:27  ?         00:00:00  /usr/bin/boinc
dave     3570    1991  0   11:28  pts/0   00:00:00  grep -F  --color=auto  bin/boinc 



Now let's try starting the client at the terminal:
sudo -u boinc /usr/bin/boinc --dir /var/lib/boinc-client
(you might be prompted for your sudo password here)

This should produce output to the terminal. Then run the 'ps' command above to make sure it's working. If there are any obvious errors in the output of the command post it here.

If the client starts up ok, try the boincmgr as before:
cd /var/lib/boinc
boincmgr &

and hopefully that will connect!
8) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69367
Posted 19 Jul 2023 by Tut
I get
 19-Jul-2023 11:40:51 Another instance of BOINC is running

Ok, the client is already running. Might have started automatically when the Virtual machine was booted, or when you tried previously.

So, go into the boinc data directory and try starting the boinc manager there without any arguments:
cd /var/lib/boinc
boincmgr &

and see if you can 'Add Project -> climateprediction.net'.


Starting from a restarted Ubuntu in the VM I went through getting the
 19-Jul-2023 11:40:51 Another instance of BOINC is running

steps. Then I tried starting the boinc manager as you suggested. The boinc manager came up in the GUI and gave me the 'Communicating with BOINC client. Please wait' dialog box as if the client were not running.


If you get 'command not found', use:
/usr/bin/boincmgr &
9) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69364
Posted 19 Jul 2023 by Tut
When I run BOINC from the UI, The dialog box shows:
BOINC Manager (Pre-release) - Communication
Communicating with BOINC client. Please wait

When I try to start the client from the terminal, I get "command not found".

As you are on Ubuntu in virtualbox you may not have the systemctl running, but you can start the boinc client manually just to test it.

On Ubuntu, the client executable is:
$ ls -l /usr/bin/boinc
-rwxr-xr-x 1 root root 989552 Jan 30  2022 /usr/bin/boinc
Is your 'boinc' executable in /usr/bin? If not, the install put it somewhere else. Try looking in the installer log to see what directory it put it into.

If boinc is there, what do you get if you type:
 /usr/bin/boinc --version
(if your boinc is somewhere else, change the directory name appropriately.

I get:
7.18.1 x86_64-pc-linux-gnu



I get
 7.20.5 x86_64-pc-linux-gnu



If you get similar or same, then try starting the client with:
/usr/bin/boinc --dir /var/lib/boinc

and report back what output you get.


I get
 19-Jul-2023 11:40:51 Another instance of BOINC is running



Also, have a look in the /var/lib/boinc directory and see if you have a file called 'stdoutdae.txt'. This is the logfile for the client.


There is no 'stdoutdae.txt' file in the /var/lib/boinc directory


If that exists, then the client started up. Run the command:
tail -20 /var/lib/boinc/stdoutdae.txt
and send us the output and we can help.
10) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69363
Posted 19 Jul 2023 by Tut
When I try:
sudo systemctrl start boinc-client
I get:
sudo: systemctrl: command not found.
11) Questions and Answers : Unix/Linux : Communicating with BOINC client. Please wait
Message 69359
Posted 18 Jul 2023 by Tut
I am a Linux newbie.

I went to upgrade my BOINC version in Virtual Box from the Android version (BOINC v7.18.1 ) to the proper Ubuntu version. One system upgraded perfectly. The other did not.
When I run BOINC from the UI, The dialog box shows:
BOINC Manager (Pre-release) - Communication
Communicating with BOINC client. Please wait

The dialog box.has two buttons: Exit BOINC Manager and Cancel. It will wait seemingly forever.

When I try to start the client from the terminal, I get "command not found".

It looks to me like the install went correctly. In the /usr/bin directory I find both the boinc and boincmgr files. In the /var/lib directory there is a boinc subdirectory with several files in it..

Any suggestions will be appreciated.
12) Questions and Answers : Windows : No tasks
Message 69101
Posted 3 Jul 2023 by Tut
I went to upgrade my Boinc version in Virtual Box from the Android version (BOINC v7.18.1 ) to the proper Ubuntu version. One system upgraded perfectly. The other did not. When I run Boinc from the UI, The message is:
BOINC Manager (Pre-release) - Daemon start failed
BOINC Manager (Pre-release) is not able to start a BOINC client.
Please run the client and try again.

When I try to start the client from the terminal, I get "command not found".
Any suggestions will be appreciated. Note that I am a Linux newbie.
13) Questions and Answers : Windows : No tasks
Message 69033
Posted 28 Jun 2023 by Tut
This machine hasn't gotten any tasks for 5 years. I accept that it is not locked out, but I wonder what else could be wrong. That's a long time between drinks.
Thanks.
14) Questions and Answers : Windows : No tasks
Message 68960
Posted 24 Jun 2023 by Tut
Thank you.
15) Questions and Answers : Windows : No tasks
Message 68938
Posted 23 Jun 2023 by Tut
Checked the task list for this PC and found that it has been locked out for years. I have completely re-built it since then. Can someone please unlock it?
16) Questions and Answers : Windows : No tasks
Message 68926
Posted 23 Jun 2023 by Tut
General URL https://climateprediction.net/
User name Tut
Team name Vanderbilt
Resource share 200
Scheduler RPC deferred for 00:51:42
Disk usage 0 bytes
Computer ID 943816
Suspended via GUI no
Don't request tasks no
Host location home
Tasks completed 0
Tasks failed 0
Credit User 10,089,791 total, 10,421.36 average
Host 523,421 total, 0.00 average
Scheduling Scheduling priority -0.00
Don't request tasks for Intel GPU Project has no apps for Intel GPU
Last scheduler reply 6/23/2023 11:26:32 AM
17) Questions and Answers : Windows : No tasks
Message 68925
Posted 23 Jun 2023 by Tut
There are now windows tasks available to download. One of my PCs got four the other gets 0 tasks. Do I have something set incorrectly?
18) Questions and Answers : Windows : Cant get any WUs
Message 64216
Posted 25 Jul 2021 by Tut
One of my computers, Id:943816, has not gotten any WAH tasks assigned since 2018. It seems to have had a persistent problem at that time which caused every work unit to error out. Since then I have totally rebuilt the machine, but there have been no attempts to send it any more work units. Is there a sort of black list that locks a machine from being assigned work units? If so, how can I check the status of my machine and perhaps get it reinstated.

I understand that Windows work comes in bursts, and if you're not one of the fortunate few you don't get any tasks. I'd just like to make sure that there's not something else standing in the way of this machine getting a WAH task and processing it correctly..
19) Questions and Answers : Unix/Linux : Incorrect Disk Space Available to BOINC
Message 64036
Posted 8 Jun 2021 by Tut
Some things BOINC only looks at during client startup. If OpenCL drivers are added a client restart is needed for the client to see the drivers. Was the client restarted after the VM disk size change?


Yes, I even re-booted the entire PC.
20) Questions and Answers : Unix/Linux : Incorrect Disk Space Available to BOINC
Message 64010
Posted 29 May 2021 by Tut
I never found an answer to my original question, but I did find a more draconian solution to the problem. After playing around with the VBox Media Manager while trying to convert dynamic virtual disk to fixed virtual disk, I managed to break my Ubuntu installation. I removed the VM and its files and started over giving a new VM 20 GB of virtual disk. Going forward with a new Ubuntu install and a new BOINC install fixed everything. I am now crunching in VBox under Windows 10.
Next 20

©2024 cpdn.org