Advanced search

Message boards : Multicore CPUs : I have lost client_state.xml and client_state_prev.xml

Author Message
Luigi R.
Send message
Joined: 15 Jul 14
Posts: 5
Credit: 85,726,648
RAC: 0
Level
Thr
Scientific publications
watwatwatwat
Message 51084 - Posted: 25 Dec 2018 | 17:20:02 UTC

Hello,

I'm on Linux. I was trying some ramdisk stuff, especially with BOINC/slots directory. I forgot that BOINC directory was mounted on ramdisk too. Unfortunately, there was a blackout and my UPS system malfunctioned, so I have lost the client_state XML files and BOINC has 0 tasks. Stderr are gone too. BOINC/projects was a directory stored on HDD instead.

Now I have 106 output files (1.2GB) theoretically ready to send, that I can't send back.
Is there a way to generate client_state.xml again? I was "studying" its XML structure and I found md5_cksum tag. So I guess that it would not work if I recover it manually because I have not got checksums!

Why do I have 128 tasks in progress? Because of an incoming challenge on BOINCstats. :)

This is my host: https://www.gpugrid.net/results.php?hostid=494430


Merry Christmas anyway!

Keith Myers
Send message
Joined: 13 Dec 17
Posts: 1341
Credit: 7,693,837,292
RAC: 12,892,426
Level
Tyr
Scientific publications
watwatwatwatwat
Message 51087 - Posted: 25 Dec 2018 | 21:57:20 UTC - in response to Message 51084.

I would say you are out of luck. The client_state is a very large file and the syntax for every task is required to be correct. One missed closing tag and you dump the whole thing. Every task has to have all its compute parameters listed. There is no way to recover that information from the project unless you go through a recover lost task procedure and that is only if the project has send lost tasks set. You could try to connect to the project again and try to get lost tasks to rebuild the client_state.

Luigi R.
Send message
Joined: 15 Jul 14
Posts: 5
Credit: 85,726,648
RAC: 0
Level
Thr
Scientific publications
watwatwatwat
Message 51090 - Posted: 25 Dec 2018 | 23:06:08 UTC - in response to Message 51087.
Last modified: 25 Dec 2018 | 23:11:27 UTC

Hi Keith, I have a backup of a previous client_state.xml, when I have already attached GPUGRID, but I have not download any task.

I'm familiar with modifying client_state.xml, so I wouldn't worry so much.


Good new.

I found that I can generate missing md5_cksum values by the command "md5sum target_file".

I miss some other values like final_cpu_time, final_elapsed_time and stderr_out instead. I guess there isn't a check about this server-side, so I could write fictitious times.

I would give it a try. If it doesn't work...

You could try to connect to the project again and try to get lost tasks to rebuild the client_state.

This could work too, maybe if I fix sched_request_www.gpugrid.net.xml. Firstly I should save a copy of output files apart. After downloading lost tasks, if server doesn't abort them, BOINC should rebuild client state and I could easily modify it to set "finished status" and to add output files only.



Before proceeding, I wait for further advices. ;)

Luigi R.
Send message
Joined: 15 Jul 14
Posts: 5
Credit: 85,726,648
RAC: 0
Level
Thr
Scientific publications
watwatwatwat
Message 51127 - Posted: 28 Dec 2018 | 13:26:19 UTC
Last modified: 28 Dec 2018 | 13:38:21 UTC

Incredible, it worked, I recovered my tasks, but they were abandoned when I contacted project server. BOINC also continued to upload all the results though. I hope admins can figure out if server stored them or not.

It had been a huge work. It took me 4 hours of intensive work. I do not recommend to anybody, I just did it for fun.

I post my work so it could be useful for someone who wants to try in the future.


www.gpugrid.net directory content
https://pastebin.com/3sEqtB2Y


Bash files to print file (1), workunit(2), result(3) tags
1) https://pastebin.com/pxqZeMTC --> https://pastebin.com/b4v0iv1E
2) https://pastebin.com/CX8ixxyN --> https://pastebin.com/PK0DeYec
3) https://pastebin.com/0xvEmhMK --> https://pastebin.com/ajUeUdas


Then I properly pasted all these outputs in the client_state.xml.

Post to thread

Message boards : Multicore CPUs : I have lost client_state.xml and client_state_prev.xml

//