[error] State file error: missing file _0_1

Message boards : Server programs : [error] State file error: missing file _0_1
Message board moderation

To post messages, you must log in.

AuthorMessage
hmbl programmer

Send message
Joined: 25 Aug 09
Posts: 1
United States
Message 26796 - Posted: 25 Aug 2009, 22:56:44 UTC

Hey Everyone,

This is my first time setting up a BOINC server. (If I'm posting this in the wrong place, please let me know). I am trying to set up a project with an app which uses the wrapper. I was using the instructions at: http://boinc.berkeley.edu/trac/wiki/WrapperApp as a guide

I set up my app folder, added the wrapper and the worker as described, set up my XML file and templates, and ran make_work. All seemed good, but when my client connected to the project, it downloaded everything except the actual file I passed to make_work. The log said:

[error] State file error: missing file <wu_name>_0_1

where <wu_name> was, obviously, the name of the workunit file passed to make_work.

I've double-checked everything and can't find the problem. ANy ideas as to where I would start looking?

Here's my wu template:

<file_info>
  <number>0</number>
</file_info>
<workunit>
  <file_ref>
    <file_number>0</file_number>
    <open_name>in</open_name>
    <copy_file/>
  </file_ref>
  <min_quorum>1</min_quorum>
  <target_nresults>1</target_nresults>
</workunit>


And my wu result template

<file_info>
  <name><OUTFILE_0/></name>
  <generated_locally/>
  <upload_when_present/>
  <max_nbytes>10000</max_nbytes>
  <url><UPLOAD_URL/></url>
</file_info>
<result>
  <file_ref>
    <file_name><OUTFILE_0/></file_name>
    <open_name>out</open_name>
  </file_ref>
</result>


And my job.xml should it matter:

<job_desc>
    <task>
        <application>test7zpwd</application>
        <stdin_filename>stdin</stdin_filename>
        <stdout_filename>stdout</stdout_filename>
        <command_line></command_line>
    </task>
</job_desc>


Thanks for any help you can provide!

-Josh
ID: 26796 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 26852 - Posted: 28 Aug 2009, 23:01:52 UTC - in response to Message 26796.  

Your application would have to use boinc_resolve_filename to get the output file path, and write to it. If you can modify the app to do that, then you shouldn't be using the wrapper.

If you have to use the wrapper (because you can't modify the app), then use <copy_file/> in your output file description (in <file_ref>), and ensure your application writes to a file in the current directory called "out". When the workunit completes, the client will copy the file to its expected place.

ID: 26852 · Report as offensive

Message boards : Server programs : [error] State file error: missing file _0_1

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.