Message boards : Server programs : [error] State file error: missing file _0_1
Message board moderation
Author | Message |
---|---|
Send message Joined: 25 Aug 09 Posts: 1 |
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 |
Send message Joined: 19 Jan 07 Posts: 1179 |
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. |
Copyright © 2025 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.