Thread 'Troubleshooting app with wrapper'

Message boards : API : Troubleshooting app with wrapper
Message board moderation

To post messages, you must log in.

AuthorMessage
Matias Salimbene

Send message
Joined: 14 Jun 24
Posts: 7
Message 114275 - Posted: 17 Jul 2024, 16:50:37 UTC

Hello there, I’m trying to setup my own Boinc environments/apps. So far I was able to almost have everything up, the problem I’m having is when running an app via the wrapper. The tasks just get stuck in “downloading” for ever. Or in some case, I get an “error calculation” and that’s it.

This is as much as I was able to get from logs:
<core_client_version>8.0.2</core_client_version> <![CDATA[ <message> process exited with code 195 (0xc3, -61)</message> <stderr_txt> 15:31:07 (66779): wrapper (7.5.26013): starting 15:31:07 (66779): wrapper: running ../../projects/34.41.104.158_8080_helloworld/process_file.sh () 15:31:08 (66779): process_file exited; CPU time 0.018046 15:31:08 (66779): app exit status: 0x100 15:31:08 (66779): called boinc_finish(195) </stderr_txt> ]]>


I’m using Boinc server 8.1.0, and boinc client for MacOS 8.0.2. I have another client for aarch64 with version 7.14.2, with same results.

Bellow some additional information.

To make it simple, I’ve tried setting a up a simple script that takes an input file “input.txt” and produced “output.txt” by simple adding some text and a time stamp.

This is the script:

#!/bin/bash
# Check if the input file is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <input_file>"
exit 1
fi

INPUT_FILE="$1"
OUTPUT_FILE="output_file.txt"

# Add the text and timestamp to the output file
echo "This is the output file - $(date)" > "$OUTPUT_FILE"

# Append the content of the input file to the output file
cat "$INPUT_FILE" >> "$OUTPUT_FILE"

echo "Output written to $OUTPUT_FILE”


this is “version.xml”
<version>
<file>
<physical_name>wrapper_26014_x86_64-apple-darwin</physical_name>
<main_program/>
</file>
<file>
<physical_name>process_file.sh</physical_name>
<logical_name>process_file</logical_name>
</file>
<file>
<physical_name>process_job_1.0.xml</physical_name>
<logical_name>job.xml</logical_name>
</file>
</version>


this is “process_job_1.0.xml”:


<job_desc>
<task>
<application>process_file</application>
<append_cmdline_args>input.txt</append_cmdline_args>
</task>
</job_desc>


this is “process_file_in”


<file_info>
<number>0</number>
</file_info>
<workunit>
<file_ref>
<file_number>0</file_number>
<open_name>in</open_name>
<copy_file/>
</file_ref>
</workunit>


this is “process_file_out”
<file_info>
<name>output_file.txt</name>
<generated_locally/>
<upload_when_present/>
<max_nbytes>5000000</max_nbytes>
<url>
<UPLOAD_URL/>
</url>
</file_info>
<result>
<file_ref>
<file_name>output_file.txt</file_name>
<open_name>out</open_name>
<copy_file/>
</file_ref>
</result>
ID: 114275 · Report as offensive

Message boards : API : Troubleshooting app with wrapper

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.