help on how to upload multiple output files?

Message boards : Server programs : help on how to upload multiple output files?
Message board moderation

To post messages, you must log in.

AuthorMessage
Wei Hao

Send message
Joined: 13 Dec 13
Posts: 21
United States
Message 53550 - Posted: 8 Apr 2014, 19:17:58 UTC
Last modified: 8 Apr 2014, 19:21:58 UTC

Hi colleagues,

I just have an application that has 4 output files. I tried to figure the output template like this:

<output_template>

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

<file_info>
<name><OUTFILE_1/></name>
<generated_locally/>
<upload_when_present/>
<max_nbytes>5000000</max_nbytes>
<url><UPLOAD_URL/></url>
</file_info>

<file_info>
<name><OUTFILE_2/></name>
<generated_locally/>
<upload_when_present/>
<max_nbytes>5000000</max_nbytes>
<url><UPLOAD_URL/></url>
</file_info>

<file_info>
<name><OUTFILE_3/></name>
<generated_locally/>
<upload_when_present/>
<max_nbytes>5000000</max_nbytes>
<url><UPLOAD_URL/></url>
</file_info>

<result>
<file_ref>
<file_name><OUTFILE_0/></file_name>
<open_name>Results/Output1.asc</open_name>
<copy_file/>
<no_validate>1</no_validate>
</file_ref>
</result>

<result>
<file_ref>
<file_name><OUTFILE_1/></file_name>
<open_name>Results/Output2.csv</open_name>
<copy_file/>
<no_validate>1</no_validate>
</file_ref>
</result>

<result>
<file_ref>
<file_name><OUTFILE_2/></file_name>
<open_name>Results/Output3.csv</open_name>
<copy_file/>
<no_validate>1</no_validate>
</file_ref>
</result>

<result>
<file_ref>
<file_name><OUTFILE_3/></file_name>
<open_name>Results/Output4.asc</open_name>
<copy_file/>
<no_validate>1</no_validate>
</file_ref>
</result>

</output_template>



the application runs as anticipated,

<core_client_version>7.0.27</core_client_version>
<![CDATA[
<stderr_txt>
14:34:37 (26208): wrapper: starting
14:34:37 (26208): wrapper: running crest ()
14:35:39 (26208): called boinc_finish

</stderr_txt>
]]>


But I found in the upload folder on the server that there is only one file successfully uploaded. Do you guys meet this situation before.

Any suggestions or comments would be appreciated.
ID: 53550 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 53560 - Posted: 9 Apr 2014, 11:51:39 UTC

The output template looks good.

Did you check the client message log? It prints a message if an output file is not found. You can also check with the --exit_after_finish option that all files are in the right places on the client. You can also enable the logflags file_xfer_debug and http_xfer_debug to see what the client is doing. See http://boinc.berkeley.edu/wiki/Client_configuration for Client configurationIf there are no errors we have to see what's wrong with your file_upload_handler.

Since a lot of projects use multiple upload files and I'm not aware of any change to it lately, it seems to be a Client/config issue.

How do you check if the files are in the upload directory?
ID: 53560 · Report as offensive
Wei Hao

Send message
Joined: 13 Dec 13
Posts: 21
United States
Message 53563 - Posted: 9 Apr 2014, 14:48:13 UTC - in response to Message 53560.  

Here is how I checked the upload results:

boincadm@test1:~/projects/mypro/upload$ tree
.
├── 15d
│   └── myapp_2_0_1
└── 37f
└── myapp_2_1_1

I supposed that there should be more than one file in each directory.

I will check the client log and configuration files. Thanks,
ID: 53563 · Report as offensive

Message boards : Server programs : help on how to upload multiple output files?

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.