Posts by Kunsheng Chen

1) Message boards : Server programs : Is that a BOINC server virus? (Message 24740)
Posted 5 May 2009 by Kunsheng Chen
Post:
Hello everyone,


I have set up the project for almost a year (http://canis.csc.ncsu.edu:8005/anansi), yet the server hang last week, and I reboot that couple times, every time just after I reboot, everything is fine until I ./bin/start daemons again. I just modified assimilator and work generator a little bit, but I don't think that could hang the machine since all operations there are no more than file operations.

I am not sure whether similar things has been reported as virus or bug recently.


Thanks,

-Kunsheng
2) Message boards : Server programs : boinc application faild to run execlp(): permission denied (Message 20313)
Posted 16 Sep 2008 by Kunsheng Chen
Post:
This is fixed. You have to specify the file in execlp() to be executable , boinc doesn't take care of it if it is not an executable file ( files such as .pl, sh)
3) Message boards : BOINC client : boinc client created a boinc account? (Message 20304)
Posted 16 Sep 2008 by Kunsheng Chen
Post:
Hello, everyone. I am using the latest boinc-client but it failed to run my boinc server application.

I go inside /var/lib/boinc-client/ ( I am using linux, ubuntu in client side) and try to run the application in single-mode (with root) and it succeeded to. However when I use 'sudo su - boinc' to switch to boinc account and try the same thing, it failed.

I have no idea what happened inside boinc-client. Since it was working good for sample application 'uppercase',

Do I have to assign that 'boinc' account with the same privileges for 'root'?

Any idea is well apprecaited ?Thanks!
4) Message boards : Server programs : Convert boinc server into distributed system (Message 20302)
Posted 16 Sep 2008 by Kunsheng Chen
Post:
Hello, I am going to divide the boinc server into several machines. ( in linux, utunbu server )

For example, I am going to have database in server 1, 'upload' folder in server 2, 'download' folder in server 3, and the test in server 4.

I specified local folders such as 'upload' and 'download' in the server before. I don't know whether I can do the similar things to distribute it.

Any idea is well appreciated. Thanks!
5) Message boards : Server programs : boinc application faild to run execlp(): permission denied (Message 20299)
Posted 16 Sep 2008 by Kunsheng Chen
Post:
Hello everyone,

My boinc application (for linux) has an execlp() function inside the code to call another perl file in the same folder for the task.

I tried many times and finally found out that this execlp() functino was permission denied which caused the whole application failed.

The permission problem still exists even after I tried 'chmod 777 /usr/bin/boingmr' in the client side and invoke './boincmgr' by root in client. It is obvious that when the application was downloaded from the server, it was assigned limited permission in the client side.

I am not sure whether I could assign executing permission for the application when it was downloaded from the server , or I have no way to execute execlp() but have to put all code inside one executable file in this case.

Any idea is well apprecaited. thanks!

Kunsheng
6) Message boards : Server programs : Receive from headers: HTTP/1.1 404 Not Found (Message 20298)
Posted 16 Sep 2008 by Kunsheng Chen
Post:
thanks! it is my mistake this time. I forgot to update 'schedule.txt' file for the new urls.



Is the path correct? Is it really /boinc_test_cgi/cgi, or just /boinc_test/cgi ?

7) Message boards : Server programs : Receive from headers: HTTP/1.1 404 Not Found (Message 20119)
Posted 11 Sep 2008 by Kunsheng Chen
Post:
I reset the whole boinc server and still, grant excessive privileges to all sub folders

This time I tried the client in several machines but they failed to request HTTP at the very beginning.

My log is as below , it seems the client couldn't receive http header at the last line:

----------------------------------------------------------------

Thu 11 Sep 2008 01:24:01 PM EDT|anansi|Sending scheduler request: Requested by user. Requesting 30240 seconds of work, reporting 0 completed tasks
Thu 11 Sep 2008 01:24:01 PM EDT||[http_debug] HTTP_OP::init_post(): http://canis.csc.ncsu.edu:8005/boinc_test_cgi/cgi
Thu 11 Sep 2008 01:24:02 PM EDT||[http_debug] [ID#0] info: About to connect() to canis.csc.ncsu.edu port 8005 (#0)
Thu 11 Sep 2008 01:24:02 PM EDT||[http_debug] [ID#0] info: Trying 152.14.92.168...
Thu 11 Sep 2008 01:24:02 PM EDT||[http_debug] [ID#0] info: Connected to canis.csc.ncsu.edu (152.14.92.168) port 8005 (#0)
Thu 11 Sep 2008 01:24:02 PM EDT||[http_debug] [ID#0] Sent header to server: POST /boinc_test_cgi/cgi HTTP/1.1 User-Agent: BOINC client (i686-pc-linux-gnu 5.10.45) Host: canis.csc.ncsu.edu:8005 Accept: */* Accept-Encoding: deflate, gzip Content-Type: application/x-www-form-urlencoded Content-Length: 3668 Expect: 100-continue
Thu 11 Sep 2008 01:24:02 PM EDT||[http_debug] [ID#0] Received header from server: HTTP/1.1 100 Continue
Thu 11 Sep 2008 01:24:02 PM EDT||[http_debug] [ID#0] info: Expire cleared
Thu 11 Sep 2008 01:24:02 PM EDT||[http_debug] [ID#0] Received header from server: HTTP/1.1 404 Not Found

---------------------------------------------------------

I could attach to the project and verify my account. I really need some helps with this. Thanks you guys!

8) Message boards : Server programs : Output file absent error (Message 20062)
Posted 9 Sep 2008 by Kunsheng Chen
Post:
I installed boinc-client, boinc-manager in several machines (Exactly the same version of client).

I am testing uppercase. Some of the clients work pretty good but some of them keep reminding me 'Output file *** for *** absent' after finished as below:

Tue 09 Sep 2008 12:24:55 PM EDT|boinc_test|Starting task wu_uppercase_05_0 using uppercase version 700
Tue 09 Sep 2008 12:24:56 PM EDT|boinc_test|Computation for task wu_uppercase_05_0 finished
Tue 09 Sep 2008 12:24:56 PM EDT|boinc_test|Output file wu_uppercase_05_0_0 for task wu_uppercase_05_0 absent


All configuration is default since I only installed what I need. I wonder if there is some packages missing in those defective clients.

Any idea is well appreciated. Thank you very much!
9) Message boards : Server programs : Output file absent error on client (Message 19924)
Posted 2 Sep 2008 by Kunsheng Chen
Post:
I am testing concat and looking for the templates files. This one really helps!
Could you give me a sample for the wu_template? It seems we need 2 input files there.




I have also tried using the line <file_name><OUTPUT_0/></file_name>

but that doesn't help matters.

Can anyone see where I've gone wrong?

Thanks


Try <file><OUTPUT_0/></file> on the leading <file_info> block as well. They have to match.

Here is a result template for the sample app 'concat', which I gather is similar to yours (takes in two files, outputs one).

<file_info>
    <name><OUTFILE_0/></name>
    <generated_locally/>
    <upload_when_present/>
    <max_nbytes>32768</max_nbytes>
    <url><UPLOAD_URL/></url>
</file_info>

<result>
    <file_ref>
        <file_name><OUTFILE_0/></file_name>
        <open_name> outfile </open_name>
    </file_ref>
</result>

10) Message boards : Server programs : Does someone know how to start or stop a Daemon? (Message 18752)
Posted 23 Jul 2008 by Kunsheng Chen
Post:
Hi, everyone

Daemons including feeder,sample_work_generator are started when you run the bin/start script, and killed when you run bin/stop.

Does someone know how to start/stop one Daemon,not all Daemons? Or we could only start/stop all?



I think the best way is to remove the daemon you want to stop from config.xml. ./bin/start will check config.xml first.

11) Message boards : Server programs : How do you solve error code 195 (No app version) (Message 18621)
Posted 18 Jul 2008 by Kunsheng Chen
Post:
According to your message, the client succeeded to download the work instance, there might be some error in your application. You can try other sample applications such as 'uppercase' to see where the problem is.

Hope it helps.
12) Message boards : Server programs : Should I redo from compiling the boinc souce code? (Message 18594)
Posted 17 Jul 2008 by Kunsheng Chen
Post:
I bet you don't want to write your own Makefile.
backup the original sample_work_generator.C inside /$<boinc_source>/sched then modify sample_work_generator.C directly, then you run make inside that folder. There should be an executable file sample_work_generator there and copy that directly into the 'bin' folder under your project directory.



Here's the question: How to use the modified sample_work_generator.c to generate Daemon sample_work_generator

13) Message boards : Server programs : sample_work_generator is not running (Message 18593)
Posted 17 Jul 2008 by Kunsheng Chen
Post:
Have you ever modified the code inside sample_work_generator or just copy the executable files from boinc source? The templates name inside the sample_work_generator.C might be different from the ones you are using.

Try to write your own sample_work_generator and it will work.

Also you could run './bin/sample_work_generator' inside project directory to see more information than looking into the log.


hope it helps.
14) Message boards : Server programs : upload results doesn't trigger function assimilate_handler() (Message 18331)
Posted 9 Jul 2008 by Kunsheng Chen
Post:
Thanks for those concern the post.
I add sample_trival_assimilator to config.xml and fix the problem. It is mentioned in unofficial wiki that a validator would create canonical results which would be used in an assimilator. I think they have to run at the same time. This seems not be documented officially in boinc website.

Also one interesting thing was that when I didn't add validator to the application before, the assimilaor did run randomly to report error log (maybe 1 out of 10 tries). I don't know whether it is a bug or not.

Hope this helps the newcomers
15) Message boards : Server programs : upload results doesn't trigger function assimilate_handler() (Message 18322)
Posted 9 Jul 2008 by Kunsheng Chen
Post:
I am testing app 'uppercase' and try to hook the upload results inside assimlator_handler yet it seems to be blind to the results. The client did upload the results successfully.

I add some useless code inside the function to see whether boinc trigger this function, yet it didn't.
The assimilator is running well.

The code i add is as below:

int assimilate_handler(
WORKUNIT& wu, vector<RESULT>& /*results*/, RESULT& canonical_result
) {
// -------test started

char test[256]="../error.txt";
int temp=write_error(test);
if(temp)
{
perror("create file failed");
}


//--------test finished

--------------

-------------
}

Also I checked the log of the assimilator but it has no information recorded after the daemon started.

I have some guesses on reasons for the problem:
1. The upload results is not qualified for trigger the function.
2. I disabled this function.
3. I don't have the permission (yet I use 'chmod 777' to all folders inside project directory, which should be good enough'.

Does anyone meet this before? Or could anyone give me some testing code or idea for how-to debug this assimilator? Or may be to enable the trigger if it is disabled.

Any idea is appreciated.
16) Message boards : Server programs : procedure to create an assimilator (Message 18164)
Posted 2 Jul 2008 by Kunsheng Chen
Post:
I am going to hook the upload results and I have to create an assimilator for that.

My aim is to hook the name of the result file and store it or print it in someway.

Here are the steps I am thinking of:

1. Create an assimilator, which I could refer to $BONIC_SOURCE/sched/assimilator.C.

2. put the assimilator inside $PROJECT/bin

3. Add following tags into config.xml and restart the application:
<daemon>
<cmd>
<assimilator_name> -d 3
</cmd>
</daemon>


Are those the correct steps I should follow? Any idea is apprecaited. Thanks.
17) Message boards : Server programs : Don't have permission to the project URL through web browser (Message 18163)
Posted 2 Jul 2008 by Kunsheng Chen
Post:
Yes. It is fixed. Do you have exactly the same problem for it?
I was using ubuntu and or I had to do was use 'chmod' to grant privileges to the directory (in my case, it is 'test1', I grant all privileges to it, which is not so appropriate). If it still fails, try to 'chmod' privileges to $ProjectName/html/user ,where all *.php fils are.


You could download boinc manager to connect the server instead of command, here's the link:
http://boinc.berkeley.edu/download.php

Also remember to run boinc manager in different machine other than the server.

Hope it helps


Problem solved? I am having the same issue. Please help if you did find the answer. Thanks, ldong
18) Message boards : Server programs : compiling boinc source code (Message 18148)
Posted 1 Jul 2008 by Kunsheng Chen
Post:
Glad it helps. I met lot troubles when setting up a boinc server in ubuntu. It all turned out to be problems like 'missing packages' or typo.

Appreciate your response,
Add #include "stdio.h" in the header file solve the problem.
It is required by GCC 0.43. Now I will see more bugs coming.
Thanks,


19) Message boards : Server programs : Required head files separate in different directories (Message 18127)
Posted 30 Jun 2008 by Kunsheng Chen
Post:
I tried to compile a source file but all the boinc head files I needed are not in the source directory.

The bad thing is they separate in different directories (might be 3 or 4) in BOINC SOURCE directory.

Should I copy all the header files to the source directory or add a reference to all of them when compiling?

I know it's not a BOINC question but linux compilation, Yet I think all people met this before when compiling boinc source code. Any idea is appreciated.

Thanks

20) Message boards : Server programs : compiling boinc source code (Message 18126)
Posted 30 Jun 2008 by Kunsheng Chen
Post:
I was in a similar situation before, meeting a lot of errors only a few steps after installation.

The problem might be you missing some packages required for boinc in your system. Try to get all of them installed before try again.


Next 20

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