create_work: unexpected XML tag or syntax

Message boards : Server programs : create_work: unexpected XML tag or syntax
Message board moderation

To post messages, you must log in.

AuthorMessage
michael

Send message
Joined: 17 Jul 18
Posts: 6
United States
Message 87134 - Posted: 17 Jul 2018, 8:05:12 UTC

I was doing single job submission. I'm trying to create a test (fib calculation) and i got this message:

PHP Warning: copy(/home/boincadm/projects/test_project//download/34a/../fibjob/fib_x86_64-pc-linux-gnu_d5ef183a): failed to open stream: No such file or directory in /home/boincadm/projects/test_project/bin/boinc_submit on line 414
process_input_template: bad WU template - no <workunit>
process_input_template(): unexpected XML tag or syntax
create_work: unexpected XML tag or syntax
create_work in /home/boincadm/projects/test_project/ failed: 1

Can anyone help?
ID: 87134 · Report as offensive
rebirther
Avatar

Send message
Joined: 21 Jun 06
Posts: 156
Germany
Message 87145 - Posted: 17 Jul 2018, 16:04:24 UTC - in response to Message 87134.  

I was doing single job submission. I'm trying to create a test (fib calculation) and i got this message:

PHP Warning: copy(/home/boincadm/projects/test_project//download/34a/../fibjob/fib_x86_64-pc-linux-gnu_d5ef183a): failed to open stream: No such file or directory in /home/boincadm/projects/test_project/bin/boinc_submit on line 414
process_input_template: bad WU template - no <workunit>
process_input_template(): unexpected XML tag or syntax
create_work: unexpected XML tag or syntax
create_work in /home/boincadm/projects/test_project/ failed: 1

Can anyone help?


Can you post your input_template content?
ID: 87145 · Report as offensive
michael

Send message
Joined: 17 Jul 18
Posts: 6
United States
Message 87149 - Posted: 17 Jul 2018, 16:54:54 UTC - in response to Message 87145.  

<input_template>
<file_info>
<number>0</number>
</file_info>
<workunit>
<file_ref>
<file_number>0</file_number>
<open_name>in</open_name>
</file_ref>
<command_line>-cpu_time 30</command_line>
</workunit>
</input_template>

This is actually from example_app's template.
Right now, I just want to build a simple server that can handle job submit.
Thanks!
ID: 87149 · Report as offensive
rebirther
Avatar

Send message
Joined: 21 Jun 06
Posts: 156
Germany
Message 87152 - Posted: 17 Jul 2018, 17:56:02 UTC - in response to Message 87149.  

<input_template>
<file_info>
<number>0</number>
</file_info>
<workunit>
<file_ref>
<file_number>0</file_number>
<open_name>in</open_name>
</file_ref>
<command_line>-cpu_time 30</command_line>
</workunit>
</input_template>

This is actually from example_app's template.
Right now, I just want to build a simple server that can handle job submit.
Thanks!


Do you have an input file? And whats your create_work command line?
ID: 87152 · Report as offensive
michael

Send message
Joined: 17 Jul 18
Posts: 6
United States
Message 87153 - Posted: 17 Jul 2018, 18:05:16 UTC - in response to Message 87152.  
Last modified: 17 Jul 2018, 18:21:10 UTC

I don't actually need input file, is it necessary?
The create work command is from bin/boinc_submit create_job() function:

function create_job() {
global $wuid, $app_name, $infiles_phys, $program_phys, $project_dir;
global $result_template_filename, $wu_template_filename;
global $wrapper_job_filename, $verbose;

chdir($project_dir);
$cmd = "bin/create_work --min_quorum 1 --target_nresults 1 --appname $app_name --wu_name sj_$wuid --wu_id $wuid --wu_template $wu_template_filename --result_template $result_template_filename";
foreach ($infiles_phys as $infile) {
$cmd .= " $infile";
}
$cmd .= " $wrapper_job_filename";
$cmd .= " $program_phys";

if ($verbose) {
echo "Executing command: $cmd\n";
}
#echo "cmd is: $cmd\n";
system($cmd, $retval);
if ($retval) {
echo "create_work in $project_dir failed: $retval\n";
exit(1);
}
}

which I echo to see:
./create_work --min_quorum 1 --target_nresults 1 --appname single_job_x86_64-pc-linux-gnu --wu_name sj_ --wu_id --wu_template templates/sj_wu_template_ --result_template templates/sj_result_template_ sj_.xml ../fibjob/fib_x86_64-pc-linux-gnu

this gives me error like I described above.
Sorry, I just started learning bionc, this question may look stupid to you.
But can't the job that sent to host just an executable? or somehow, the input has already defined inside?
ID: 87153 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 87163 - Posted: 18 Jul 2018, 15:53:17 UTC

If you don't have an input file you need to remove it from the input template. Simple as that. But then every workunit created will do the same calculations. You somehow need to parameterize the work. In your simple case that would maybe mean that workunit_1 calculates fib(1), workunit_2 fib(2) and so on. How should the executable on the client computer know which part of your parameter space it should work on. The simplest case is via input file another is via commandline but than you need to alter the create_work call for every workunit which is harder to do.
ID: 87163 · Report as offensive

Message boards : Server programs : create_work: unexpected XML tag or syntax

Copyright © 2021 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.