Output file absent error on client

Message boards : Server programs : Output file absent error on client
Message board moderation

To post messages, you must log in.

AuthorMessage
Aharon Levine

Send message
Joined: 18 Aug 08
Posts: 5
Israel
Message 19658 - Posted: 21 Aug 2008, 12:41:49 UTC

Hi

I am running an application throught the wrapper class which receives two images and outputs one image + a text file.
Now the client downloads the wu's and processes them and I know that the processing is successfull since I also write a log file to the c:/ drive on the client computer. However the results are not passed back to the server and I get this error on the client messages screen:

8/21/2008 2:56:02 PM|test_proj1|Starting uc_1219319569_46_1

8/21/2008 2:56:02 PM|test_proj1|Starting task uc_1219319569_46_1 using mdetect2 version 601

8/21/2008 2:56:06 PM|test_proj1|Computation for task uc_1219319569_46_1 finished

8/21/2008 2:56:06 PM|test_proj1|Output file resIm.jpg for task uc_1219319569_46_1 absent

8/21/2008 2:56:06 PM|test_proj1|Output file logfile.txt for task uc_1219319569_46_1 absent

I guess this must be an error with my results template file however my template seems fine to me :

<file_info>
    <name>resIm.jpg</name>
    <generated_locally/>
    <upload_when_present/>
    <max_nbytes>5000000</max_nbytes>
    <url><UPLOAD_URL/></url>
</file_info>
<file_info>
    <name>logfile.txt</name>
    <generated_locally/>
    <upload_when_present/>
    <max_nbytes>5000000</max_nbytes>
    <url><UPLOAD_URL/></url>
</file_info>
<result>
    <file_ref>
        <file_name>resIm.jpg</file_name>
        <open_name>resIm.jpg</open_name>
    </file_ref>
    <file_ref>
        <file_name>logfile.txt</file_name>
        <open_name>logfile.txt</open_name>
    </file_ref>
</result>



I have also tried using the line <file_name><OUTPUT_0/></file_name>

but that doesn't help matters.

Can anyone see where I've gone wrong?

Thanks
ID: 19658 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 19660 - Posted: 21 Aug 2008, 12:48:48 UTC - in response to Message 19658.  


I have also tried using the line <file_name><OUTPUT_0/></file_name>

but that doesn't help matters.

Can anyone see where I've gone wrong?

Thanks


Try <file><OUTPUT_0/></file> on the leading <file_info> block as well. They have to match.

Here is a result template for the sample app 'concat', which I gather is similar to yours (takes in two files, outputs one).

<file_info>
    <name><OUTFILE_0/></name>
    <generated_locally/>
    <upload_when_present/>
    <max_nbytes>32768</max_nbytes>
    <url><UPLOAD_URL/></url>
</file_info>

<result>
    <file_ref>
        <file_name><OUTFILE_0/></file_name>
        <open_name> outfile </open_name>
    </file_ref>
</result>

-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 19660 · Report as offensive
Aharon Levine

Send message
Joined: 18 Aug 08
Posts: 5
Israel
Message 19662 - Posted: 21 Aug 2008, 13:24:50 UTC - in response to Message 19660.  

Thanks

I tried that but I still have the same problem. Only now instead of the error message:
8/21/2008 2:56:06 PM|test_proj1|Output file logfile.txt for task uc_1219319569_46_1 absent

I get the message:
8/21/2008 2:56:06 PM|test_proj1|Output file uc_1219319569_46_1_1 for task uc_1219319569_46_1 absent

any other ideas?
ID: 19662 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 19682 - Posted: 22 Aug 2008, 12:42:24 UTC - in response to Message 19662.  

any other ideas?


My guess is that because this is a wrapper app you need to add <copy_file/> to the <file_ref> block. Otherwise, BOINC tries to use it's own flavor of soft link, but the app will just write over that, and the file will not make its way home.

See the Example section of the WrapperApp page in the Trac wiki, esp. the sample result template.

Other things to check are on the server:


* Check that the upload area, and subdirectories, are writable by the web server.

* Turn off the file deleter (in config.xml) so that you can see the files being uploaded (if they are).

* Check the logs of the file uploader and the file deleter.


-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 19682 · Report as offensive
Aharon Levine

Send message
Joined: 18 Aug 08
Posts: 5
Israel
Message 19725 - Posted: 24 Aug 2008, 8:04:21 UTC - in response to Message 19682.  

Thanks so much!
the <copy_file/> did the trick, all systems go now
ID: 19725 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 19924 - Posted: 2 Sep 2008, 19:11:09 UTC - in response to Message 19660.  

I am testing concat and looking for the templates files. This one really helps!
Could you give me a sample for the wu_template? It seems we need 2 input files there.




I have also tried using the line <file_name><OUTPUT_0/></file_name>

but that doesn't help matters.

Can anyone see where I've gone wrong?

Thanks


Try <file><OUTPUT_0/></file> on the leading <file_info> block as well. They have to match.

Here is a result template for the sample app 'concat', which I gather is similar to yours (takes in two files, outputs one).

<file_info>
    <name><OUTFILE_0/></name>
    <generated_locally/>
    <upload_when_present/>
    <max_nbytes>32768</max_nbytes>
    <url><UPLOAD_URL/></url>
</file_info>

<result>
    <file_ref>
        <file_name><OUTFILE_0/></file_name>
        <open_name> outfile </open_name>
    </file_ref>
</result>

ID: 19924 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 19948 - Posted: 4 Sep 2008, 2:38:16 UTC - in response to Message 19924.  

I am testing concat and looking for the templates files. This one really helps!
Could you give me a sample for the wu_template? It seems we need 2 input files there.


Here is the workunit template for 'concat':

<file_info>
    <number>0</number>
</file_info>
<file_info>
    <number>1</number>
</file_info>

<workunit>
  <file_ref>
     <file_number>0</file_number>
     <open_name>infile0</open_name>
  </file_ref>
  <file_ref>
     <file_number>1</file_number>
     <open_name>infile1</open_name>
  </file_ref>

  <app>          concat                             </app>
  <command_line> -run_slow infile0 infile1 outfile  </command_line>
  <env_vars>    LANG=en_US                          </env_vars>
  <min_quorum>             2  </min_quorum>
  <target_nresults>        3  </target_nresults>
  <max_error_results>      9  </max_error_results>
  <max_total_results>     10  </max_total_results>
  <max_success_results>    3  </max_success_results>
  <rsc_fpops_est>       1234567  </rsc_fpops_est>
  <rsc_fpops_bound>     6789012  </rsc_fpops_bound>
  <rsc_memory_bound>   10010000  </rsc_mem_bound>
  <rsc_disk_bound>      2048000  </rsc_disk_bound>
  <delay_bound>            3600  </delay_bound>
</workunit>


-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 19948 · Report as offensive
new@boinc

Send message
Joined: 28 Aug 09
Posts: 1
Syria
Message 26830 - Posted: 28 Aug 2009, 3:09:36 UTC

hi all

i m having the same problem, and i try <copy_file/> and didnt work.
so any idea.
help please.
thanks
ID: 26830 · Report as offensive

Message boards : Server programs : Output file absent error on client

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.