climateprediction.net home page
boinc 7.22.2 won't 'Add Project->CPDN' under Wine (or any project)

boinc 7.22.2 won't 'Add Project->CPDN' under Wine (or any project)

Questions and Answers : Windows : boinc 7.22.2 won't 'Add Project->CPDN' under Wine (or any project)
Message board moderation

To post messages, you must log in.

AuthorMessage
Glenn Carver

Send message
Joined: 29 Oct 17
Posts: 825
Credit: 13,808,272
RAC: 6,087
Message 69271 - Posted: 12 Jul 2023, 21:38:20 UTC

Having problems getting boinc 7.22.2 (the new version) working under Wine. My first foray into Wine and first use of the new client. I believe I'm looking at a problem with the client and not Wine.

The error I see in the messages log is:
12-Jul-2023 22:14:21 [---] [network_status] status: need connection
12-Jul-2023 22:14:25 [---] Fetching configuration file from https://climateprediction.net/get_project_config.php
12-Jul-2023 22:14:25 [---] [http] HTTP_OP::init_get(): https://climateprediction.net/get_project_config.php
12-Jul-2023 22:14:25 [---] [proxy] HTTP_OP::no_proxy_for_url(): https://climateprediction.net/get_project_config.php
12-Jul-2023 22:14:25 [---] [proxy] returning false
12-Jul-2023 22:14:25 [---] [http] [ID#3] Info:  Hostname in DNS cache was stale, zapped
12-Jul-2023 22:14:26 [---] [http] [ID#3] Info:    Trying 129.67.241.50:443...
12-Jul-2023 22:14:26 [---] [http] [ID#3] Info:  Connected to climateprediction.net (129.67.241.50) port 443 (#4)
12-Jul-2023 22:14:26 [---] [http] [ID#3] Info:  schannel: disabled automatic use of client certificate
12-Jul-2023 22:14:26 [---] [http] [ID#3] Info:  schannel: AcquireCredentialsHandle failed: SEC_E_INTERNAL_ERROR (0x80090304)
12-Jul-2023 22:14:26 [---] [http] [ID#3] Info:  Closing connection 4
12-Jul-2023 22:14:26 [---] [http] HTTP error: SSL connect error
12-Jul-2023 22:14:27 [---] [proxy] automatic proxy check in progress
12-Jul-2023 22:14:31 [---] [network_status] status: need connection

If I try to add another project (have tried Asteroids & DENIS), I get a similar message. Looks to me as if there's a SSL issue but quite what it means and how to fix it I don't know.

Any ideas anyone?

Wine is 'wine-6.0.3 (Ubuntu 6.0.3~repack-1)' and I know networking from other Windows apps (iexplorer & firefox) are working fine to sites like news.bbc.co.uk.

A small caveat. The linux host has boinc linux client running with port 31416. I start the client under wine to use 31418. I doubt this is an issue.
ID: 69271 · Report as offensive
Richard Haselgrove

Send message
Joined: 1 Jan 07
Posts: 943
Credit: 34,418,413
RAC: 4,444
Message 69272 - Posted: 12 Jul 2023, 22:08:25 UTC - in response to Message 69271.  

Sounds plausible. schannel is a very recent addition to the client, replacing the use of a private certificate bundle.

But my eye is also drawn to no_proxy_for_url(). Would you happen to know what version of Windows your Wine is emulating? An old one might possibly introduce a proxy without schannel.

And I'll Google SEC_E_INTERNAL_ERROR in the morning ...
ID: 69272 · Report as offensive
Glenn Carver

Send message
Joined: 29 Oct 17
Posts: 825
Credit: 13,808,272
RAC: 6,087
Message 69273 - Posted: 12 Jul 2023, 22:51:06 UTC - in response to Message 69272.  

Sounds plausible. schannel is a very recent addition to the client, replacing the use of a private certificate bundle.

But my eye is also drawn to no_proxy_for_url(). Would you happen to know what version of Windows your Wine is emulating? An old one might possibly introduce a proxy without schannel.

And I'll Google SEC_E_INTERNAL_ERROR in the morning ...

That explains why ca-bundle now appears in the Program Files rather than Data.

Using boinccmd instead of boincmgr just gives me 'Authorization error: -155' which I can't find any info on. I have a feeling I've seen this before but can't remember what it was.

I tried using with and without --password on the boinccmd command line (using my CPDN key).

I think the no_proxy_for_url() just means I'm not using a proxy. I had the proxy debug option for the log turned on. I've set Wine to emulate Win10.

Trying again I've noticed it attempts to connect to Google and gets the same result:
12-Jul-2023 23:29:46 [---] Fetching configuration file from https://climateprediction.net/get_project_config.php
12-Jul-2023 23:29:46 [---] [http] HTTP_OP::init_get(): https://climateprediction.net/get_project_config.php
12-Jul-2023 23:29:46 [---] [proxy] HTTP_OP::no_proxy_for_url(): https://climateprediction.net/get_project_config.php
12-Jul-2023 23:29:46 [---] [proxy] returning false
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:    Trying 129.67.241.50:443...
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:  Connected to climateprediction.net (129.67.241.50) port 443 (#0)
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:  schannel: disabled automatic use of client certificate
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:  schannel: AcquireCredentialsHandle failed: SEC_E_INTERNAL_ERROR (0x80090304)
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:  Closing connection 0
12-Jul-2023 23:29:47 [---] [http] HTTP error: SSL connect error
12-Jul-2023 23:29:48 [---] [proxy] automatic proxy check in progress
12-Jul-2023 23:29:48 [---] Project communication failed: attempting access to reference site
12-Jul-2023 23:29:48 [---] [http] HTTP_OP::init_get(): https://www.google.com/
12-Jul-2023 23:29:48 [---] [proxy] HTTP_OP::no_proxy_for_url(): https://www.google.com/
12-Jul-2023 23:29:48 [---] [proxy] returning false
12-Jul-2023 23:29:49 [---] [http] [ID#0] Info:    Trying 142.250.179.228:443...
12-Jul-2023 23:29:49 [---] [http] [ID#0] Info:  Connected to www.google.com (142.250.179.228) port 443 (#1)
12-Jul-2023 23:29:49 [---] [http] [ID#0] Info:  schannel: disabled automatic use of client certificate
12-Jul-2023 23:29:49 [---] [http] [ID#0] Info:  schannel: AcquireCredentialsHandle failed: SEC_E_INTERNAL_ERROR (0x80090304)
12-Jul-2023 23:29:49 [---] [http] [ID#0] Info:  Closing connection 1
12-Jul-2023 23:29:49 [---] [http] HTTP error: SSL connect error
12-Jul-2023 23:29:50 [---] BOINC can't access Internet - check network connection or proxy configuration.


In case there's some interference from the running linux client I've shut that down but made no difference.

Tomorrow I think I'll try the previous client version. At least I'll then be able to compare with my existing Win11 installation.

Thx for help
ID: 69273 · Report as offensive
Glenn Carver

Send message
Joined: 29 Oct 17
Posts: 825
Credit: 13,808,272
RAC: 6,087
Message 69274 - Posted: 12 Jul 2023, 23:29:43 UTC

SEC_E_INTERNAL_ERROR

Found a couple of links that might be useful. One old bug in Wine that was fixed: https://bugs.winehq.org/show_bug.cgi?id=23317. And a more general explanation of what's going on: https://learn.microsoft.com/en-us/answers/questions/1064708/acceptsecuritycontext()-failed-with-sec-e-internal,

Since this the first time I've used the new client, I may have something misconfigured. I'll try the older Windows client tomorrow since others have that working and I can compare the installation with my Windows 11 one.
ID: 69274 · Report as offensive
Richard Haselgrove

Send message
Joined: 1 Jan 07
Posts: 943
Credit: 34,418,413
RAC: 4,444
Message 69285 - Posted: 13 Jul 2023, 6:42:57 UTC - in response to Message 69273.  

Using boinccmd instead of boincmgr just gives me 'Authorization error: -155' which I can't find any info on. I have a feeling I've seen this before but can't remember what it was.

I tried using with and without --password on the boinccmd command line (using my CPDN key).
The -155 error is internal to your installation of BOINC. BOINC consists of an invisible client application ('boinc') which has no UI, and various control programs - 'boincmgr', 'boinccmd', and 3rd party offerings - which provide the UI and communicate with the core client over TCP/IP. The basic structure is explained in https://boinc.berkeley.edu/wiki/Controlling_BOINC_remotely: that page is titled "remotely", but exactly the same thing happens internally on a single computer as well.

The authorization in question is required between boinccmd and the local core client - in this case, the Windows client inside Wine, That should have its own security file - ''gui_rpc_auth.cfg' - and the client is expecting to receive whatever password it read from there at startup. On a local home computer behind a NAT router, the security implications are minimal, so I use a simple plain text password: a default BOINC installation will contain a random 32-byte key. Remember to restart the client if you change it.

Also check that boinccmd is addressing the right TCP/IP port number for the client you're trying to control.
ID: 69285 · Report as offensive
Glenn Carver

Send message
Joined: 29 Oct 17
Posts: 825
Credit: 13,808,272
RAC: 6,087
Message 69303 - Posted: 13 Jul 2023, 12:03:13 UTC - in response to Message 69285.  

Richard, thanks for clarifying the -155 error. I had tried with and without the --password option but it made no difference. I also tried emptying the passwd file but it's quite possible I may have not been restarting the client each time.

But that refers to boincmgr > client communication. If that fails then boincmgr doesn't show the 'Add Project' option (it's grayed out). So I know when a successful connection to the client is made because the menu options are active. Even then, I still hit the project add problem reported earlier.
ID: 69303 · Report as offensive
computezrmle

Send message
Joined: 9 Mar 22
Posts: 30
Credit: 963,113
RAC: 46,932
Message 69305 - Posted: 13 Jul 2023, 13:41:58 UTC - in response to Message 69303.  

... boincmgr doesn't show the 'Add Project' option (it's grayed out).

Did you attach that BOINC client via an account manager?
To get back full control you would need to detach from the account manager.
ID: 69305 · Report as offensive
Glenn Carver

Send message
Joined: 29 Oct 17
Posts: 825
Credit: 13,808,272
RAC: 6,087
Message 69306 - Posted: 13 Jul 2023, 14:09:45 UTC - in response to Message 69305.  

... boincmgr doesn't show the 'Add Project' option (it's grayed out).

Did you attach that BOINC client via an account manager?
To get back full control you would need to detach from the account manager.
No I don't use account managers. Installed client, installed boincmgr. Started client, 'Add Project -> CPDN', can't connect. See errors posted earlier.
ID: 69306 · Report as offensive
Profile Dave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4354
Credit: 16,598,247
RAC: 6,156
Message 69309 - Posted: 13 Jul 2023, 14:47:58 UTC

Wondering if this is something specific to Mint? On latest Ubuntu I have wine 8.0 repack4 and the latest Windows client. This was on a clean install of xubuntu so no configuration files from before lingering. (I deleted the old .wine directory in my home directory and it has all just worked. Wine from the ubuntu repository but in the past I have used the latest from WINEHQ and never had a problem. I have found in the past it has been unable to run the Windows and native LINUX clients at once without running VB and running either the LINUX client or the Windows one under WINE within the VB installation of Ubuntu. I know there have been posts both here and in the BOINC forums on how to run both in the past but having a solution that works, I haven't followed them up.
ID: 69309 · Report as offensive
Glenn Carver

Send message
Joined: 29 Oct 17
Posts: 825
Credit: 13,808,272
RAC: 6,087
Message 69310 - Posted: 13 Jul 2023, 15:18:06 UTC - in response to Message 69274.  
Last modified: 13 Jul 2023, 15:19:57 UTC

[SOLVED]

Reminder. I was getting this error upon trying to Add CPDN as a project:

12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:    Trying 129.67.241.50:443...
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:  Connected to climateprediction.net (129.67.241.50) port 443 (#0)
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:  schannel: disabled automatic use of client certificate
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:  schannel: AcquireCredentialsHandle failed: SEC_E_INTERNAL_ERROR (0x80090304)
12-Jul-2023 23:29:47 [---] [http] [ID#2] Info:  Closing connection 0

.. using the latest boinc (May/23) v7.22.2 on wine-6.0.3 (Ubuntu 6.0.3~repack-1) (installed with 'wine-installler') with Linux Mint 21.

It seems this is a compatibility issue with wine as I installed the previous boinc Windows version, 7.20.2 (obtained from here: https://boinc.berkeley.edu/dl/?C=M;O=D) and it now works fine. I can attach to projects normally. I didn't make any other changes to wine or Linux.

It's possible that upgrading wine might have worked with 7.22.2 but downgrading boinc was the easier option.

p.s. I'm also running the linux boinc client on the same machine. The wine version is using a different gui_rpc_port and works fine.
---
CPDN Visiting Scientist
ID: 69310 · Report as offensive

Questions and Answers : Windows : boinc 7.22.2 won't 'Add Project->CPDN' under Wine (or any project)

©2024 climateprediction.net