I has a problem when I try to test the wrapper application

Message boards : API : I has a problem when I try to test the wrapper application
Message board moderation

To post messages, you must log in.

AuthorMessage
teddyman

Send message
Joined: 16 May 08
Posts: 2
Message 17357 - Posted: 16 May 2008, 5:07:51 UTC

I try to test wrapper application with worker application follow this link
http://boinc.berkeley.edu/trac/wiki/WrapperApp but I complied in Linux and change every name for Linux client.
I has a problem when BOINC Manager starting Task, it tell me "Task ... exited with zero status but no 'finished' file"

Please, help me for this problem

Fri May 16 11:27:47 2008||Starting BOINC client version 5.10.45 for i686-pc-linux-gnu
Fri May 16 11:27:47 2008||log flags: task, file_xfer, sched_ops
Fri May 16 11:27:47 2008||Libraries: libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.5.1
Fri May 16 11:27:47 2008||Data directory: /home/phoompos/Desktop/BOINC
Fri May 16 11:27:47 2008||Processor: 1 GenuineIntel Intel(R) Pentium(R) 4 CPU 2.66GHz [Family 15 Model 4 Stepping 9]
Fri May 16 11:27:47 2008||Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc up pebs bts sync_rdtsc pni monitor ds_cpl tm2 cid cx16 xtpr lahf_lm
Fri May 16 11:27:47 2008||OS: Linux: 2.6.24-16-generic
Fri May 16 11:27:47 2008||Memory: 1.17 GB physical, 2.29 GB virtual
Fri May 16 11:27:47 2008||Disk: 17.30 GB total, 13.74 GB free
Fri May 16 11:27:47 2008||Local time is UTC +7 hours
Fri May 16 11:27:47 2008||No general preferences found - using BOINC defaults
Fri May 16 11:27:47 2008||Preferences limit memory usage when active to 600.81MB
Fri May 16 11:27:47 2008||Preferences limit memory usage when idle to 1081.47MB
Fri May 16 11:27:47 2008||Preferences limit disk usage to 8.65GB
Fri May 16 11:27:47 2008||This computer is not attached to any projects
Fri May 16 11:27:47 2008||Visit http://boinc.berkeley.edu for instructions
Fri May 16 11:27:53 2008||Fetching configuration file from http://testboinc.thaigrid.or.th/test5/get_project_config.php
Fri May 16 11:28:12 2008|test5|Master file download succeeded
Fri May 16 11:28:17 2008|test5|Sending scheduler request: Project initialization. Requesting 1 seconds of work, reporting 0 completed tasks
Fri May 16 11:28:23 2008|test5|Scheduler request succeeded: got 1 new tasks
Fri May 16 11:28:25 2008|test5|Started download of worker_5.11_i686-pc-linux-gnu
Fri May 16 11:28:25 2008|test5|Started download of wrapper_5.11_i686-pc-linux-gnu
Fri May 16 11:28:26 2008|test5|Finished download of worker_5.11_i686-pc-linux-gnu
Fri May 16 11:28:26 2008|test5|Finished download of wrapper_5.11_i686-pc-linux-gnu
Fri May 16 11:28:26 2008|test5|Started download of job_5.11.xml
Fri May 16 11:28:26 2008|test5|Started download of input
Fri May 16 11:28:27 2008|test5|Finished download of job_5.11.xml
Fri May 16 11:28:27 2008|test5|Finished download of input
Fri May 16 11:28:28 2008|test5|Starting worker1_0
Fri May 16 11:28:28 2008|test5|Starting task worker1_0 using worker version 511
Fri May 16 11:28:33 2008|test5|Sending scheduler request: To fetch work. Requesting 28701 seconds of work, reporting 0 completed tasks
Fri May 16 11:28:38 2008|test5|Scheduler request succeeded: got 0 new tasks
Fri May 16 11:28:38 2008|test5|Message from server: No work sent
Fri May 16 11:28:39 2008|test5|Task worker1_0 exited with zero status but no 'finished' file
Fri May 16 11:28:39 2008|test5|If this happens repeatedly you may need to reset the project.
Fri May 16 11:28:39 2008|test5|Restarting task worker1_0 using worker version 511
Fri May 16 11:28:50 2008|test5|Task worker1_0 exited with zero status but no 'finished' file
Fri May 16 11:28:50 2008|test5|If this happens repeatedly you may need to reset the project.
Fri May 16 11:28:50 2008|test5|Restarting task worker1_0 using worker version 511
Fri May 16 11:29:00 2008|test5|Task worker1_0 exited with zero status but no 'finished' file
Fri May 16 11:29:00 2008|test5|If this happens repeatedly you may need to reset the project.
Fri May 16 11:29:00 2008|test5|Restarting task worker1_0 using worker version 511
ID: 17357 · Report as offensive
teddyman

Send message
Joined: 16 May 08
Posts: 2
Message 17358 - Posted: 16 May 2008, 6:17:31 UTC

I do follow these

1.I complie wrapper and worker application

2.I create directory PROJECT/apps/worker/worker_5.11_i686-pc-linux-gnu

3.I copy wrapper and worker application to PROJECT/apps/worker/worker_5.11_i686-pc-linux-gnu/ rename to 'wrapper_5.11_i686-pc-linux-gnu' and 'worker_5.11_i686-pc-linux-gnu'

4.In the same directory, I create file job.xml=job_5.11.xml that contain
<job_desc>
<task>
<application>worker_5.11_i686-pc-linux-gnu</application>
<stdin_filename>stdin</stdin_filename>
<stdout_filename>stdout</stdout_filename>
<command_line>10</command_line>
</task>
</job_desc>

5.I edit project.xml
<app>
<name>worker</name>
<user_friendly_name>Example Application</user_friendly_name>
</app>

6. $ xadd
$ update_versions

7. In the 'PROJECT/templates' directory create a workunit template file called 'worker_wu':

<file_info>
<number>0</number>
</file_info>
<file_info>
<number>1</number>
</file_info>
<workunit>
<file_ref>
<file_number>0</file_number>
<open_name>in</open_name>
<copy_file/>
</file_ref>
<file_ref>
<file_number>1</file_number>
<open_name>stdin</open_name>
</file_ref>
<rsc_fpops_bound>1000000000000</rsc_fpops_bound>
<rsc_fpops_est>1000000000000</rsc_fpops_est>
</workunit>

and a result template file called 'worker_result'

<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>
<result>
<file_ref>
<file_name><OUTFILE_0/></file_name>
<open_name>out</open_name>
<copy_file/>
</file_ref>
<file_ref>
<file_name><OUTFILE_1/></file_name>
<open_name>stdout</open_name>
</file_ref>
</result>

8.Add a validator for the application by editing config.xml:
<daemon>
<cmd>
sample_bitwise_validator -d 3 -app worker
</cmd>
</daemon>

9. $ stop
$ start

10. I create file 'input' and 'input2' in directort 'PROJECT/download/' 'input' and 'input2' contain
abcdef

11. Create the work unit:
create_work -appname worker -wu_name worker_nodelete \
-wu_template templates/worker_wu \
-result_template templates/worker_result \
input input2
ID: 17358 · Report as offensive
hsor

Send message
Joined: 24 Sep 08
Posts: 2
Message 21605 - Posted: 2 Dec 2008, 7:20:48 UTC - in response to Message 17358.  

Not sure if this helps.
Problem should lies in your step 2
Change
2.I create directory PROJECT/apps/worker/worker_5.11_i686-pc-linux-gnu
to
PROJECT/apps/worker/wrapper_5.11_i686-pc-linux-gnu
instead.

Client should be executing the wrapper program first.


This might be helpful. http://blog.os-tools.net/?p=7&language=en
ID: 21605 · Report as offensive

Message boards : API : I has a problem when I try to test the wrapper application

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.