"unexpected XML tag or syntax" error in bin/create_work command

Message boards : Server programs : "unexpected XML tag or syntax" error in bin/create_work command
Message board moderation

To post messages, you must log in.

AuthorMessage
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47744 - Posted: 14 Feb 2013, 20:20:40 UTC

hello all,
I have problem when I want to create workunits for hello world application.
The out put is so:
bin/./create_work -appname hello -wu_name helloWU -wu_template templates/world_wu.xml -result_template templates/hello_re.xml

process_input_template(): unexpected XML tag or syntax
create_work: unexpected XML tag or syntax

any solution?
tnx
ID: 47744 · Report as offensive
rebirther
Avatar

Send message
Joined: 21 Jun 06
Posts: 156
Germany
Message 47746 - Posted: 15 Feb 2013, 16:59:09 UTC - in response to Message 47744.  

hello all,
I have problem when I want to create workunits for hello world application.
The out put is so:
bin/./create_work -appname hello -wu_name helloWU -wu_template templates/world_wu.xml -result_template templates/hello_re.xml

process_input_template(): unexpected XML tag or syntax
create_work: unexpected XML tag or syntax

any solution?
tnx


You need to check the input_template. Looks like a missing tag somewhere.
ID: 47746 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47747 - Posted: 15 Feb 2013, 17:16:31 UTC - in response to Message 47746.  

Thanks for you help,as I am new boinc user just Where is the input template?
do you mean templates/world_wu.xml?and do you have any sample template?
tnx

ID: 47747 · Report as offensive
rebirther
Avatar

Send message
Joined: 21 Jun 06
Posts: 156
Germany
Message 47748 - Posted: 15 Feb 2013, 17:33:12 UTC - in response to Message 47747.  
Last modified: 15 Feb 2013, 17:34:52 UTC

Thanks for you help,as I am new boinc user just Where is the input template?
do you mean templates/world_wu.xml?and do you have any sample template?
tnx



Take a look into the projects/projectxyz/templates folder.
More infos you can find here--> http://boinc.berkeley.edu/trac/wiki/JobSubmission#

You can post your template world_wu.xml here.
ID: 47748 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47749 - Posted: 15 Feb 2013, 17:47:19 UTC - in response to Message 47748.  

actually I have seen that page.
this is my world_wu.xml contents:

<!-- workunit template for the BOINC hello world program -->
<input_template>
<file_info>
<number>0</number>
[ <gzip/> ]
[ <sticky/> ]
[ <no_delete/> ]
[ <report_on_rpc/> ]
[ <url>...</url> ]
[ <url>...</url> ]
[ <md5_cksum>...</md5_cksum> ]
[ <nbytes>...</nbytes> ]
</file_info>
<workunit>
<min_quorum> 2 </min_quorum>
<target_nresults> 2 </target_nresults>
<max_error_results> 3 </max_error_results>
<max_success_results> 6 </max_success_results>
<max_total_results> 9 </max_total_results>
<rsc_memory_bound> 2e6 </rsc_mem_bound>
<rsc_disk_bound> 2e6 </rsc_disk_bound>
<rsc_fpops_est> 2e11 </rsc_fpops_est>
<rsc_fpops_bound> 6e11 </rsc_fpops_bound>
<delay_bound> 90000 </delay_bound>
</workunit>
</input_template>

thanks.
ID: 47749 · Report as offensive
rebirther
Avatar

Send message
Joined: 21 Jun 06
Posts: 156
Germany
Message 47750 - Posted: 15 Feb 2013, 17:53:59 UTC - in response to Message 47749.  

actually I have seen that page.
this is my world_wu.xml contents:

<!-- workunit template for the BOINC hello world program -->
<input_template>
<file_info>
<number>0</number>
[ <gzip/> ]
[ <sticky/> ]
[ <no_delete/> ]
[ <report_on_rpc/> ]
[ <url>...</url> ]
[ <url>...</url> ]
[ <md5_cksum>...</md5_cksum> ]
[ <nbytes>...</nbytes> ]
</file_info>
<workunit>
<min_quorum> 2 </min_quorum>
<target_nresults> 2 </target_nresults>
<max_error_results> 3 </max_error_results>
<max_success_results> 6 </max_success_results>
<max_total_results> 9 </max_total_results>
<rsc_memory_bound> 2e6 </rsc_mem_bound>
<rsc_disk_bound> 2e6 </rsc_disk_bound>
<rsc_fpops_est> 2e11 </rsc_fpops_est>
<rsc_fpops_bound> 6e11 </rsc_fpops_bound>
<delay_bound> 90000 </delay_bound>
</workunit>
</input_template>

thanks.


Remove these lines, only optional but if you need them remove []
[ <gzip/> ]
[ <sticky/> ]
[ <no_delete/> ]
[ <report_on_rpc/> ]
[ <url>...</url> ]
[ <url>...</url> ]
[ <md5_cksum>...</md5_cksum> ]
[ <nbytes>...</nbytes> ]

You need also an input file. Can be empty.

And at this one
<workunit>
<file_ref>
<file_number>0</file_number>
<open_name>input.txt</open_name>//or change the name of the input file
<copy_file/>

Your command looks like
create_work -appname hello -wu_name helloWU -wu_template templates/world_wu.xml -result_template templates/hello_re.xml input.txt
ID: 47750 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47751 - Posted: 15 Feb 2013, 18:20:10 UTC - in response to Message 47750.  
Last modified: 15 Feb 2013, 18:21:02 UTC

Thanks very much for your helpful in information. It is solved.
ID: 47751 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47752 - Posted: 15 Feb 2013, 18:22:57 UTC - in response to Message 47751.  

another problem that I have is that when I execute the bin/xadd I see this:

Processing <Platform#None i686-pc-linux-gnu> ...
Skipped existing <Platform#None i686-pc-linux-gnu>
Processing <Platform#None x86_64-pc-linux-gnu> ...
Skipped existing <Platform#None x86_64-pc-linux-gnu>
Processing <App#None hello> ...
Skipped existing <App#None hello>

why this is happened?
ID: 47752 · Report as offensive
rebirther
Avatar

Send message
Joined: 21 Jun 06
Posts: 156
Germany
Message 47753 - Posted: 15 Feb 2013, 18:31:57 UTC - in response to Message 47752.  

another problem that I have is that when I execute the bin/xadd I see this:

Processing <Platform#None i686-pc-linux-gnu> ...
Skipped existing <Platform#None i686-pc-linux-gnu>
Processing <Platform#None x86_64-pc-linux-gnu> ...
Skipped existing <Platform#None x86_64-pc-linux-gnu>
Processing <App#None hello> ...
Skipped existing <App#None hello>

why this is happened?


You have run this one yet. What do you want to do? Adding new apps?
ID: 47753 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47754 - Posted: 15 Feb 2013, 19:23:19 UTC - in response to Message 47753.  
Last modified: 15 Feb 2013, 19:30:43 UTC

yes I want to add hello application but this was run only once.How can I ensure that it is ok?
ID: 47754 · Report as offensive
rebirther
Avatar

Send message
Joined: 21 Jun 06
Posts: 156
Germany
Message 47755 - Posted: 15 Feb 2013, 19:26:41 UTC - in response to Message 47754.  

yes I want to add hello application but this was run only once.How can I ensure that it is ok?


bin/appmgr list
or
check your _ops
or
apps.php on frontpage
ID: 47755 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47756 - Posted: 15 Feb 2013, 19:31:43 UTC - in response to Message 47755.  

thanks it seems that it is added.

Another thing is that I can not access to my server web page. when I look into error_log file it says "File does not exist: /var/www/hello".
how can I solve this?

thanks for your help.
ID: 47756 · Report as offensive
rebirther
Avatar

Send message
Joined: 21 Jun 06
Posts: 156
Germany
Message 47757 - Posted: 15 Feb 2013, 19:35:43 UTC - in response to Message 47756.  
Last modified: 15 Feb 2013, 19:36:01 UTC

thanks it seems that it is added.

Another thing is that I can not access to my server web page. when I look into error_log file it says "File does not exist: /var/www/hello".
how can I solve this?

thanks for your help.


Your server webpage should be:
192.168.x.x/projectxyz_ops/
192.168.x.x/projectxyz/
192.168.x.x/projectxyz/apps.php
ID: 47757 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47758 - Posted: 15 Feb 2013, 20:14:50 UTC - in response to Message 47757.  
Last modified: 15 Feb 2013, 20:15:36 UTC

Actually I have try all of them but non of them is correct.
Do you have any httpd.conf template?
because in var/www directory the only file is index.html(default) and I think there is some thing wrong with my httpd.conf file.

thanks dear.
ID: 47758 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 47759 - Posted: 15 Feb 2013, 21:23:52 UTC - in response to Message 47758.  

my problem is solved.
Thanks for your attention. I really appreciate it.
ID: 47759 · Report as offensive

Message boards : Server programs : "unexpected XML tag or syntax" error in bin/create_work command

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.