Message boards : BOINC Manager : Can't rename current state file -- v5.8.3 and v5.8.2 for windows
Message board moderation
Author | Message |
---|---|
Send message Joined: 16 Jan 07 Posts: 14 |
I noticed a error message in red font and was wondering what it meant: Can't rename current state file to previous state file; Access is denied (0x5). I tried google and the (unofficial) Boinc wiki without success. My work units appear to still be crunching, so I'm not sure if I should be concerned or not. Thanks for any information. |
Send message Joined: 29 Aug 05 Posts: 15563 |
If you are allowing a virus scan to run, make sure it doesn't run in the BOINC folder. The error is probably because something else has locked the client_state.xml / client_state_prev.xml file(s) down, as it is being written to. This could be BOINC, but it could also be any other process, such as a virus scan, that locks the file while it scans it. I am assuming your Windows account has write permissions to the hard drive. |
Send message Joined: 16 Apr 06 Posts: 386 |
800,000 writes a day is what I wrote, but I haven't been able to either confirm or deny whether that's the case. |
Send message Joined: 30 Oct 05 Posts: 1239 |
I saw the message in 5.8.0 and 5.8.1 where I hadn't seen it in the versions of 5.7.x that I tested or in any of the stable releases from the 5.2.x or the 5.4.x lines. I've used the same AV software pretty much the entire time (definitely since 5.4). I had an email conversation going with Rom and David A. about it. I'll go ahead and send a message to them letting them know that it's showing up again for another user. Kathryn :o) |
Send message Joined: 19 Jan 07 Posts: 1179 |
I wonder why the renaming doesn't retry in that case, the same way boinc_fopen does. It's known that on Windows programs lock files briefly. |
Send message Joined: 30 Oct 05 Posts: 1239 |
I just got an email back from David A. boinc_rename() retries 5 times with a random 0..1 delay in between. Kathryn :o) |
Send message Joined: 30 Oct 05 Posts: 1239 |
I noticed a error message in red font and was wondering what it meant: Some questions for you... (from JM7) This is usually an access rights problem. Is the user that is running have full rights to the BOINC directory tree? This is either the current logged in user for single and multiple installs, or the service user for service installs. (from Rom) If you restart BOINC does it still happen? How about rebooting the computer? Will the system let you delete client_state_prev.xml yourself? Kathryn :o) |
Send message Joined: 16 Jan 07 Posts: 14 |
User is running as administrator and has full permissions over the directory (it was a single user install). The problem has happened twice so far, both times following me initially starting the program. The message is not predicatably repeatable. It's happened once with the previous version and once with 5.8.3. I am running kaspersky AV and will consider excluding the files mentioned in this thread to see if that helps. >Will the system let you delete client_state_prev.xml yourself? I can try this but would like to know what deleting that file will do? |
Send message Joined: 29 Aug 05 Posts: 15563 |
>Will the system let you delete client_state_prev.xml yourself? Every time that BOINC starts up and writes to client_state.xml it makes a backup of the file to client_state_prev.xml This is done in case something goes wrong, BOINC crashes and corrupts the client_state.xml file, there is a backup which is automatically used the next time you start BOINC. To check if you have permissions to do changes to the directory, you can try to delete the backup file, client_state_prev.xml. If you can delete it without problems, you have full permissions to read/write/change the directory. If you get an error, you don't. |
Send message Joined: 30 Oct 05 Posts: 1239 |
Hmmm... Interesting. I'm running Kaspersky too. Nothing bad happened when I tried deleting client_state_prev.xml. And I was successful in deleting it also. Kathryn :o) |
Send message Joined: 30 Oct 05 Posts: 1239 |
And the latest email from David A. If it's random it must be a conflict with virus checker-type program. Kathryn :o) |
Send message Joined: 16 Jan 07 Posts: 14 |
I can delete client_state_prev.xml which I expected to be able to do. The error happened again today after project results were uploaded. After this happened, I added both files to Kaspersky's trusted zone and excluded them from all scans. We'll see if this helps. The only other real time agent I have running is windows defender. |
Send message Joined: 16 Jan 07 Posts: 14 |
New problem. I got a message when I pressed update that a project file could not be deleted. I did not record the full error text but I believe it was another access denied issue. Upon restarting boinc later I received the message that: State File Error: result not found I guess I just need to exclude the entire directory. Is it possible that whatever is being done with regard to the trying to rename the state file for 5 seconds could be done for all actions where this can happen (like deleting old projects for instance)? |
Send message Joined: 26 Feb 07 Posts: 9 |
I was having the same problem and I added exclusions for the two state .xml files to my config -- running NOD32 on XP-Pro. |
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.