Editing client_state.xml/duration_correction_factor

Message boards : Questions and problems : Editing client_state.xml/duration_correction_factor
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile steveplanetary
Avatar

Send message
Joined: 29 May 09
Posts: 26
United States
Message 27082 - Posted: 5 Sep 2009, 12:41:04 UTC

1) The Time to Completion of newly downloaded cosmology@home WUs is always way too high. After a relatively short computation period this gets downgraded to a more reasonable time. If I changed the DCF would the initial TTC be more accorate? More importantly, would modifying the DCF result in susequent client recalculations of TTC to be underreported? Also, I doen't know how to edit client_state.xml for any reason, since Application Data in the path C:\Documents and Settings\All Users\Application Data\BOINC\ has Read-only not only checked but greyed out.

2) How do I get email notification of replies to my posts?

Any help would be very much appreciated.

Steve
ID: 27082 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15487
Netherlands
Message 27083 - Posted: 5 Sep 2009, 12:47:04 UTC - in response to Message 27082.  

I doen't know how to edit client_state.xml for any reason, since Application Data in the path C:\Documents and Settings\All Users\Application Data\BOINC\ has Read-only not only checked but greyed out.

The read-only attribute is always set on the directory, with Windows XP and above. It doesn't mean any of the files cannot be edited. If they couldn't be edited, BOINC couldn't write to it every minute.

So you can just edit it using Notepad. Make absolutely sure that BOINC is fully exited and not running before you do so.

2) How do I get email notification of replies to my posts?

Click the Subscribe button at the top of the thread.
ID: 27083 · Report as offensive
Aurora Borealis
Avatar

Send message
Joined: 8 Jan 06
Posts: 448
Canada
Message 27084 - Posted: 5 Sep 2009, 13:35:43 UTC - in response to Message 27083.  
Last modified: 5 Sep 2009, 13:41:17 UTC

2) How do I get email notification of replies to my posts?

Click the Subscribe button at the top of the thread.

Also select the form of notification in your account Community preferences.

Most times you just need to refresh the thread at regular intervals. You will often get a reply within an hour if not within minutes.

Boinc V 7.4.36
Win7 i5 3.33G 4GB NVidia 470
ID: 27084 · Report as offensive
Profile steveplanetary
Avatar

Send message
Joined: 29 May 09
Posts: 26
United States
Message 27086 - Posted: 5 Sep 2009, 18:00:33 UTC - in response to Message 27083.  

The only way I was able to change the DCF was to open client_state.xml, highlight the entire file, copy it, and paste it to Notepad. I then modified DCF and did Save As..., saving it to c:\documents and settings\application data\boinc\client_state.xml. When I performed Save As..., I selected Save as type: All Files, Encoding: ANSI. I had exited BOINC and closed the browser that had displayed the orginal file client_state.xml. When I then navigated to c:\documents and settings\application data\boinc\ via My Computer and clicked on client_state.xml IE launched and displayed the following message:

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource 'file:///C:/Documents and Settings/All Users/Applicatio...

- <client_state>
^

Please advise.

Thank you,

Steve
ID: 27086 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 27087 - Posted: 5 Sep 2009, 18:37:51 UTC - in response to Message 27086.  

Hopefully, you had made a backup copy of the client_state.xml file before you changed it.

You should have used right click and "open with..." to open the file with notepad in the first place.

If you don't have a backup, make one now of your whole BOINC data directory. Rename client_state_prev.xml to client_state.xml and try if BOINC still works without connection to the Internet. In that way, you won't lose all your work if it fails, since you have a backup copy and BOINC couldn't report the failure to the server.

Gruß,
Gundolf
Computer sind nicht alles im Leben. (Kleiner Scherz)
ID: 27087 · Report as offensive
Profile steveplanetary
Avatar

Send message
Joined: 29 May 09
Posts: 26
United States
Message 27088 - Posted: 5 Sep 2009, 20:26:08 UTC - in response to Message 27087.  

I have backed up c"\documents and settings\all users\application data\boinc\ to c:\BOINC Backup 2009-09-05. I assume that's what you meant by "your whole BOINC data directory", as opposed to c"\program files\boinc. But I still have the orginal client_state.xml that I copied to Notepad. It is 41 pages in length. I haven't made a line-by-line comparison of the current client_state.xml with client_state_prev.xml, but they are both just 11 pages. It would be nice if I could reproduce the original client_state.xml file from the Notepad .txt copy, but I don't know of any way to do that. So I don't know what the best course of action would be now. Therefor, I still need help.

Yours in anguish,

Steve
ID: 27088 · Report as offensive
Profile steveplanetary
Avatar

Send message
Joined: 29 May 09
Posts: 26
United States
Message 27089 - Posted: 5 Sep 2009, 20:39:23 UTC - in response to Message 27088.  

Correction: I just noticed that a tab in IE is a reproduction of client_state_prev.xml that is 15 pages in length. It has a DCF of 2.553912, as opposed to 7.969075 in the original client_state.xml file.

Regards,

Steve
ID: 27089 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15487
Netherlands
Message 27090 - Posted: 5 Sep 2009, 20:43:27 UTC - in response to Message 27088.  

Since you still have the original client_state.xml file in the backup location do this:

1. Exit BOINC.
2. Right-click on the client_state.xml file in the backup directory and choose "Open with..."
3. From the options choose Notepad.
3a. If Notepad is not a valid choice, go for "choose program" and in the next window, choose Notepad. If you want to, check the option to "Always open files with this extension with this application".
4. Edit what you came for.
5. With File->Save As... save this client_state.xml file into your BOINC Data directory, click Yes to overwrite the old one.
6. Restart BOINC.
ID: 27090 · Report as offensive
Profile steveplanetary
Avatar

Send message
Joined: 29 May 09
Posts: 26
United States
Message 27093 - Posted: 5 Sep 2009, 22:16:37 UTC - in response to Message 27090.  

Just one more question...

I still have the ORIGINAL 41 page .txt version of the client_state.xml file that I copied and pasted from the BOINC directory into Notepad. Is there any way to convert this back into .xml, thereby returning to the beginning of this mess?

Steve
ID: 27093 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 27094 - Posted: 5 Sep 2009, 22:30:13 UTC - in response to Message 27093.  
Last modified: 5 Sep 2009, 22:30:46 UTC

You could try to remove all those dashes the browser inserted for readability, but there's no guarantee for the result to be recognised as XML again.

Gruß,
Gundolf
ID: 27094 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15487
Netherlands
Message 27095 - Posted: 5 Sep 2009, 22:45:16 UTC - in response to Message 27094.  

Now, luckily BOINC doesn't use real XML. So after removing all those dashes, saving the file, all that's needed is to change the extension from .txt to .xml
ID: 27095 · Report as offensive

Message boards : Questions and problems : Editing client_state.xml/duration_correction_factor

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.