Posts by boinc42

1) Message boards : API : function boinc_upload_file (Message 61263)
Posted 29 Mar 2015 by boinc42
Post:
Yes, you are right. Thanks.

Only logical files, which are listed in the output template, can be uploaded.
2) Message boards : API : function boinc_upload_file (Message 61253)
Posted 28 Mar 2015 by boinc42
Post:
Thanks Juha for the answer.

The trickle messages are working now. I forgot to wait after sending the trickle messages (now I wait with boinc_sleep(12) before the app is terminated).

But to upload my file doesn't work.

This is my code:

string file1 = "input"; //the open_name of the input template
string file2 = "test"; //test is a generated file in the current slot, but it hasn't an entry in any template

//out is the result file
out << boinc_upload_file(file) << std::endl; //0
out << boinc_upload_status(file) << std::endl; //-161 (ERR_NOT_FOUND)
out << boinc_upload_file(file2) << std::endl; //0
out << boinc_upload_status(file2) << std::endl; //-161 (ERR_NOT_FOUND)

boinc_sleep(12);

out << boinc_upload_status(file) << std::endl; //-161 (ERR_NOT_FOUND)
out << boinc_upload_status(file2) << std::endl; //-161 (ERR_NOT_FOUND)


This is the result file out:

0
-161
0
-161
-161
-161


In the BOINC manager event log I got:

[error] Can't find uploadable file test
[error] Can't find uploadable file input
3) Message boards : API : Wrapper help for legacy applications (Message 61236)
Posted 27 Mar 2015 by boinc42
Post:
Hello,

in the article "The BOINC Wrapper" (http://boinc.berkeley.edu/trac/wiki/WrapperApp) there is an example job.xml file. There is a tag unzip_input. I haven't ever used the BOINC Wrapper, but maybe that can help.
4) Message boards : API : function boinc_upload_file (Message 61234)
Posted 27 Mar 2015 by boinc42
Post:
Hello,

I have some problems with the function int boinc_upload_file(std::string& name).

My app creates a file "test" in the current slot. The function boinc_file_exists("./test") returns 1. Then I set string name = "test", then the function boinc_upload_file(name) returns 0, which seems to be right. On the server there aren't any sign of the file (e.g. in the table msg_from_host). Where are the uploaded files usually saved on the server?

I think the problem is, that trickle messages don't work properly. In the slot there is a trickle_up.xml file generated, if I use the function boinc_send_trickle_up("test", "<test>msg</test>"), but this file won't be send.

Thanks in advance.
5) Message boards : Server programs : No start tag in scheduler reply (Message 58288)
Posted 28 Nov 2014 by boinc42
Post:
I use Apache 2.4.7 on Ubuntu Server 14.04.
6) Message boards : Server programs : No start tag in scheduler reply (Message 58267)
Posted 27 Nov 2014 by boinc42
Post:
Thanks Juha,

you were right. The CGI scheduler didn't work. I forgot to activate CGI in Apache. After activating CGI with this command
sudo a2enmod cgi

all things work.
7) Message boards : Server programs : No start tag in scheduler reply (Message 58205)
Posted 26 Nov 2014 by boinc42
Post:
Hello,

I downloaded (and made) the BOINC server from git://boinc.berkeley.edu/boinc-v2.git (version.log contains string 6.11.1).

Then I created a project with the example application uc2 for the plattforms i686-pc-linux-gnu and x86_64-pc-linux-gnu.
The project website and the project management website work.
All plattforms, the apps and the workunits are in the database.
In the download directory are all necessary files.

But if I connect a client, I get this in the event log of the client:

Mi 26 Nov 2014 12:02:43 CET | | Fetching configuration file from http://192.168.178.38/tah/get_project_config.php
Mi 26 Nov 2014 12:02:56 CET | Test@home | Master file download succeeded
Mi 26 Nov 2014 12:03:02 CET | Test@home | Sending scheduler request: Project initialization.
Mi 26 Nov 2014 12:03:02 CET | Test@home | Requesting new tasks for CPU
Mi 26 Nov 2014 12:03:03 CET | Test@home | [error] No start tag in scheduler reply


The workunits have the state unsent in the server.
There isn't a scheduler.log, but the other log files are present.
In the client the sched_reply_192.168.178.38_tah.xml file isn't a xml file, it is a .ELF file.

Thanks in advance.




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.