Restart of a task always ends into an error.

Message boards : Number crunching : Restart of a task always ends into an error.
Message board moderation

To post messages, you must log in.

AuthorMessage
Crystal Pellet

Send message
Joined: 26 Oct 20
Posts: 53
Credit: 2,520,836
RAC: 0
Message 114 - Posted: 11 Nov 2020, 12:48:13 UTC

Since there are no checkpoints (yet) for a running task, the task has to start from scratch after a BOINC client restart due to whatever reason.
However such a restart always ends into an error.

Part of the result of the initially start of a task:
09:20:23 (4300): wrapper (7.7.26016): starting
09:20:23 (4300): wrapper: running get_fraction_done.bat (ligands.sdf docking_log fraction_done.txt 500 TARGET_PRO_1.mol2)
09:20:23 (4300): wrapper: running worker.bat ( 500 TARGET_PRO_1.mol2)
        1 file(s) moved.
ECHO is off.

Part of the result after a restart of a task:
11:47:45 (3140): wrapper (7.7.26016): starting
11:47:45 (3140): wrapper: running get_fraction_done.bat (ligands.sdf docking_log fraction_done.txt 500 TARGET_PRO_1.mol2)
11:47:46 (3140): wrapper: running worker.bat ( 500 TARGET_PRO_1.mol2)
        1 file(s) moved.
The requested operation cannot be performed on a file with a user-mapped section open.
11:47:52 (3140): worker.bat exited; CPU time 0.000000
11:47:52 (3140): app exit status: 0x1
11:47:52 (3140): called boinc_finish(195)
ID: 114 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
hoarfrost
Volunteer moderator
Project administrator
Project developer

Send message
Joined: 11 Oct 20
Posts: 324
Credit: 23,368,537
RAC: 10,337
Message 117 - Posted: 12 Nov 2020, 10:46:58 UTC

Hello Crystal Pellet!

Explain please - this error occurs after restart of BOINC only, not computer?
ID: 117 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Crystal Pellet

Send message
Joined: 26 Oct 20
Posts: 53
Credit: 2,520,836
RAC: 0
Message 118 - Posted: 12 Nov 2020, 12:26:45 UTC - in response to Message 117.  

Hello Crystal Pellet!

Explain please - this error occurs after restart of BOINC only, not computer?
At every restart of the task, the task starts from the very beginning, because no checkpoints of the job are written. As stated before that tasks errors out.

A task will restart when BOINC-client restarts (thus also after a boot).

When you suspend a task, the task will stay in memory and will run further from that point after a resume even without a checkpoint.
A feature of BOINC is to keep a task in memory until the first checkpoint, even when you had set to not keep a suspended task in memory, cause it will never achieve the first checkpoint.
ID: 118 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
V0d01ey

Send message
Joined: 24 Oct 20
Posts: 1
Credit: 995,513
RAC: 235
Message 120 - Posted: 12 Nov 2020, 17:30:55 UTC - in response to Message 114.  

The requested operation cannot be performed on a file with a user-mapped section open.

This error can be a result of antivirus check after a file was released by software.
So when software tries to delete or move a file that is in checking state by antivirus it can fail with this error.
User can try to turn off antivirus.
Or software developer can sign exe with certificate so that antivirus could trust it.
ID: 120 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Crystal Pellet

Send message
Joined: 26 Oct 20
Posts: 53
Credit: 2,520,836
RAC: 0
Message 121 - Posted: 13 Nov 2020, 15:41:50 UTC

The error after BOINC's restart can be avoided.
The problem is the MOVE-command. It tries to move a non-existing file.
I solved this by replacing in rbdock-boinc_11.4_windows_x86_64.bat (in slot renamed in worker.bat) the line
MOVE target.mol2 %targetmol2%
with following lines
IF NOT EXIST target.mol2 GOTO alreadymoved
MOVE target.mol2 %targetmol2%

:alreadymoved
ID: 121 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
hoarfrost
Volunteer moderator
Project administrator
Project developer

Send message
Joined: 11 Oct 20
Posts: 324
Credit: 23,368,537
RAC: 10,337
Message 123 - Posted: 13 Nov 2020, 22:55:48 UTC

Crystal Pellet, thank you for notice!
ID: 123 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Crystal Pellet

Send message
Joined: 26 Oct 20
Posts: 53
Credit: 2,520,836
RAC: 0
Message 125 - Posted: 14 Nov 2020, 8:35:34 UTC - in response to Message 123.  

Crystal Pellet, thank you for notice!
My pleasure!

It could be done simpler by replacing the line
MOVE target.mol2 %targetmol2%
by one line
IF NOT EXIST %targetmol2% MOVE target.mol2 %targetmol2% >NUL
ID: 125 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Natalia
Volunteer moderator
Project administrator
Project developer
Project scientist

Send message
Joined: 9 Oct 20
Posts: 181
Credit: 2,689,264
RAC: 5
Message 128 - Posted: 15 Nov 2020, 11:37:12 UTC - in response to Message 125.  

Here we changed input files a little bit, so it is not needed to rename the file.
ID: 128 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : Restart of a task always ends into an error.

©2024 SiDock@home Team