gstate.init() fails error code 192

Message boards : Questions and problems : gstate.init() fails error code 192
Message board moderation

To post messages, you must log in.

AuthorMessage
Graeme

Send message
Joined: 9 Feb 09
Posts: 18
United Kingdom
Message 112725 - Posted: 21 Sep 2023, 13:03:41 UTC

boinc --version: 7.24.1 x86_64-pc-linux-gnu, running on Mageia 9
Starting boincmgr gives an error message that " BOINC Manager is unable to start a BOINC client. Please run the client and try again"
So as root: systemctl start boinc-client.service gives the error code 192, which one search suggests client_state.xml is not writable.
It isn't:
-rw-r--r-- 1 boinc boinc 99884 Sep 21 11:45 client_state.xml
However, after making it writable:
-rw-rw-rw- 1 boinc boinc 99884 Sep 21 11:43 client_state_prev.xml
-rw-rw-rw- 1 boinc boinc 99884 Sep 21 11:45 client_state.xml
Sytstemctl start boinc-client.service
Sep 21 13:57:24 haydn.gemmill.name systemd[1]: boinc-client.service: Failed with result 'exit-code'.
Sep 21 13:57:24 haydn.gemmill.name systemd[1]: boinc-client.service: Main process exited, code=exited, status=64/USAGE
Sep 21 13:57:24 haydn.gemmill.name boinc[141301]: Error Code: -192
and client_state.xml is replaced by a read-only version:
-rw-rw-rw- 1 boinc boinc 99884 Sep 21 11:45 client_state_prev.xml
-rw-r--r-- 1 boinc boinc 99884 Sep 21 13:57 client_state.xml

Can't find anything relevant on Google,, so I would like some ideas please.
Thank you
Graeme
ID: 112725 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15481
Netherlands
Message 112726 - Posted: 21 Sep 2023, 15:32:10 UTC - in response to Message 112725.  
Last modified: 21 Sep 2023, 15:33:13 UTC

client_state.xml is replaced by a read-only version


EXIT_STATEFILE_WRITE 192 - The client will exit if it cannot write to the client_state.xml file. Make sure you have permission to write to the BOINC Data directory.
ID: 112726 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2538
United Kingdom
Message 112728 - Posted: 21 Sep 2023, 17:29:51 UTC

EXIT_STATEFILE_WRITE 192 - The client will exit if it cannot write to the client_state.xml file. Make sure you have permission to write to the BOINC Data directory.

sudo usermod -a -G boinc yourusername
will add you to the boinc user group. I do this routinely on my linux installations.
ID: 112728 · Report as offensive
Graeme

Send message
Joined: 9 Feb 09
Posts: 18
United Kingdom
Message 112732 - Posted: 22 Sep 2023, 11:43:00 UTC - in response to Message 112728.  

Was already a member:
boinc:x:977:graeme
ID: 112732 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15481
Netherlands
Message 112733 - Posted: 22 Sep 2023, 11:51:10 UTC

Have you tried changing the read-only attribute of the client_state.xml file?
ID: 112733 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2538
United Kingdom
Message 112734 - Posted: 22 Sep 2023, 12:00:49 UTC

Message 112725 describes the problem remains after doing so. I don't know the distro in question and I haven't used Mandriva which it is a fork from for about fifteen years. I am wondering if it is a distribution specific problem. I found Mandriva messed around with things too often for me though I can't remember exactly what now. I used it's predecessor, Mandrake for about four years.
ID: 112734 · Report as offensive
Graeme

Send message
Joined: 9 Feb 09
Posts: 18
United Kingdom
Message 112736 - Posted: 23 Sep 2023, 15:41:25 UTC - in response to Message 112733.  

Yes, see the original post; the new version is made read-olny.
ID: 112736 · Report as offensive
Profile Keith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 869
United States
Message 112737 - Posted: 23 Sep 2023, 17:57:50 UTC
Last modified: 23 Sep 2023, 17:58:21 UTC

Post your boinc-client.service file contents at /etc/systemd/system/boinc-client.service.d/

Likely the service file is setting up the wrong read-write permissions.

Do you have this in the file? It helps with the newer distros and clients.
PrivateTmp=true
ProtectSystem=strict
ProtectControlGroups=true
ID: 112737 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2538
United Kingdom
Message 112738 - Posted: 23 Sep 2023, 19:19:48 UTC - in response to Message 112737.  

Post your boinc-client.service file contents at /etc/systemd/system/boinc-client.service.d/
If it exists. It doesn't on my set up but that may be due to my having compiled from source and not installed via the package manager?
ID: 112738 · Report as offensive
Graeme

Send message
Joined: 9 Feb 09
Posts: 18
United Kingdom
Message 112746 - Posted: 24 Sep 2023, 13:53:58 UTC - in response to Message 112737.  

Actually at /usr/lib/systemd/system/

[Unit]
Description=Berkeley Open Infrastructure Network Computing Client
After=network.target

[Service]
Nice=10
User=boinc
Environment="DISPLAY=:0"
ExecStart=/usr/bin/boinc --dir /var/lib/boinc
ExecReload=/usr/bin/boinccmd --read_cc_config
ExecStopPost=/bin/rm -f /var/lib/boinc/lockfile

[Install]
WantedBy=multi-user.target

No boinc-related service files in /etc/systemd
ID: 112746 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2538
United Kingdom
Message 112748 - Posted: 24 Sep 2023, 16:24:30 UTC

usr/lib/systemd/system/system

Has the following

[Service]
Type=simple
ProtectHome=true
ProtectSystem=full
ProtectControlGroups=true
ReadWritePaths=-/var/lib/boinc -/etc/boinc-client
Nice=10
User=boinc
WorkingDirectory=/var/lib/boinc
ExecStart=/usr/local/bin/boinc
ExecStop=/usr/local/bin/boinccmd --quit
ExecReload=/usr/local/bin/boinccmd --read_cc_config
ExecStopPost=/bin/rm -f lockfile


So different location depending on distribution I guess.
ID: 112748 · Report as offensive

Message boards : Questions and problems : gstate.init() fails error code 192

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.