Posts by Kunsheng Chen

21) Message boards : Server programs : how to create my own boinc project... (Message 17959)
Posted 19 Jun 2008 by Kunsheng Chen
Post:
I found out the problem finally. There are some fatal errors in the template in the instruction I followed so far.

The following link is workable:
http://www.linux-magazine.com/issue/71/Distributed_Applications_With_BOINC.pdf

Hope it will help new comers.
22) Message boards : Server programs : how to create my own boinc project... (Message 17923)
Posted 17 Jun 2008 by Kunsheng Chen
Post:
Thank you, peter. The link you gave me is great helpful. I appreciate it.

Hi, the sequence goes (roughly and summarised), install the boinc server, run /tools/make_project and then ./bin/create_work. There is lots of info on this on various wikis but I found this article very useful and consice.

http://w3.linux-magazine.com/issue/71/Distributed_Applications_With_BOINC.pdf

Peter

I set up a boinc server. (hopefully, the first content is 'relpace with project name', it's successful, isn't?) Here is the link http://canis.csc.ncsu.edu:8005/boinc_test/.

Then I tried to run the sample app upper_case, everything goes on well according to the instruction except create_work,


kchen3@lobo:/chen/project/boinc_test$ ./bin/create_work -appname upper_case -wu_name test -wu_template templates/upper_case_wu -result_template templates/upper_case_result in
No file number found
process_wu_template: -112
create_work: -112
kchen3@lobo:/chen/project/boinc_test$



I set the file number into 0 in the wu template the first time and second time for 1, neither worked. Also I can't find anything in table workunit in the database.

And then when I try to access the web page, the content hasn't changed at all.

I don't know whether because I failed to create the work so the web page content doesn't change (but it should be changed to error message,isn't ?) or I have to do something else to create the project?

I am totally new to this project creating thing. Appreciate any help from you. Thank you.


23) Message boards : BOINC client : boinc_client failed ----- gstate.init() failed:181 (Message 17834)
Posted 12 Jun 2008 by Kunsheng Chen
Post:
I made a directory 'boinc_test' under project directory and try to run boinc_client but got message below:


kchen3@lobo:/chen/project/boinc_test/boinc_test$ boinc_client
2008-06-12 16:17:06 [---] Starting BOINC client version 5.10.8 for i686-pc-linux-gnu
2008-06-12 16:17:06 [---] log flags: task, file_xfer, sched_ops
2008-06-12 16:17:06 [---] Libraries: libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3.3 libidn/1.0
2008-06-12 16:17:06 [---] Data directory: /chen/project/boinc_test/boinc_test
2008-06-12 16:17:06 [---] Processor: 4 GenuineIntel Intel(R) Xeon(TM) CPU 2.80GHz [Family 15 Model 2 Stepping 7]
2008-06-12 16:17:06 [---] 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 cid
2008-06-12 16:17:06 [---] Memory: 503.59 MB physical, 1.43 GB virtual
2008-06-12 16:17:06 [---] Disk: 31.97 GB total, 28.52 GB free
2008-06-12 16:17:06 [---] No general preferences found - using BOINC defaults
2008-06-12 16:17:06 [---] Preferences limit memory usage when active to 251.79MB
2008-06-12 16:17:06 [---] Preferences limit memory usage when idle to 453.23MB
2008-06-12 16:17:06 [---] Preferences limit disk usage to 9.31GB

2008-06-12 16:17:35 [---] [error] GUI RPC bind failed: 98
gstate.init() failed: -180
kchen3@lobo:/chen/project/boinc_test/boinc_test$


I found a same problem here http://setiweb.ssl.berkeley.edu/sah/forum_thread.php?id=36336

because of a boinc version 4. I am using boinc version 5, really don't know what is happening. Appreciate any idea from you. Thanks.
24) Message boards : Server programs : how to create my own boinc project... (Message 17824)
Posted 12 Jun 2008 by Kunsheng Chen
Post:
Also I have a question is that can I change content index.php directly for simple application (such as show the current time of the machine). Or I should create a project for that?

Thanks.
25) Message boards : Server programs : how to create my own boinc project... (Message 17822)
Posted 12 Jun 2008 by Kunsheng Chen
Post:
I set up a boinc server. (hopefully, the first content is 'relpace with project name', it's successful, isn't?) Here is the link http://canis.csc.ncsu.edu:8005/boinc_test/.

Then I tried to run the sample app upper_case, everything goes on well according to the instruction except create_work,


kchen3@lobo:/chen/project/boinc_test$ ./bin/create_work -appname upper_case -wu_name test -wu_template templates/upper_case_wu -result_template templates/upper_case_result in
No file number found
process_wu_template: -112
create_work: -112
kchen3@lobo:/chen/project/boinc_test$



I set the file number into 0 in the wu template the first time and second time for 1, neither worked. Also I can't find anything in table workunit in the database.

And then when I try to access the web page, the content hasn't changed at all.

I don't know whether because I failed to create the work so the web page content doesn't change (but it should be changed to error message,isn't ?) or I have to do something else to create the project?

I am totally new to this project creating thing. Appreciate any help from you. Thank you.
26) Message boards : Server programs : Could not load language interface. This is a fatal error, exiting. (Message 17818)
Posted 12 Jun 2008 by Kunsheng Chen
Post:
Thank you. I got it fixed. The package 'gettext' is missing in the machine. use apt-get to install it and everything is good now.

I copied file 'language_interface.inc' from others and put it in the directory. Still doesn't work ,the same error. Does anyone know what is happening?

Check the file permissions. The web server has to be able to write to certain directories to regenerate the language interface. (See here)



27) Message boards : Server programs : Could not load language interface. This is a fatal error, exiting. (Message 17813)
Posted 12 Jun 2008 by Kunsheng Chen
Post:
I copied file 'language_interface.inc' from others and put it in the directory. Still doesn't work ,the same error. Does anyone know what is happening?
28) Message boards : Server programs : Could not load language interface. This is a fatal error, exiting. (Message 17786)
Posted 11 Jun 2008 by Kunsheng Chen
Post:
Hello everyone,

I built the website up and use chmod to fix the privilege problem. Finally I got into this bedlam, or might be the last step.

The error occurred in the page:

ERROR: Could not load language interface. This is a fatal error, exiting.


This information is caused by the file translation.inc under directory
$projectName/html/inc, since the project could not find the file '/$projectName/html/languages/compiled/language_interface.inc'.

I tried to create another new project and still, no 'language_interface.inc' file there anyway.

I don't know whether there is any mistake during the steps. Also does anyone have that 'language_interface.inc' file? I think its content is constant in the software. Hope someone could help me to kick out this door.

Thank you.

29) Message boards : Server programs : create_work doesn't work... (Message 17753)
Posted 9 Jun 2008 by Kunsheng Chen
Post:
Hello, I followed the link http://www.boinc-wiki.info/Creating_a_Project_-_Creating_work to create a work for existing project 'upper_case'
Everything goes well except the message 'create_work: app not found' below:



kchen3@lobo:~/projects/test1$ ./bin/create_work -appname 'upper_case' -wu_name 'test' -wu_template 'templates/upper_case_wu' -result_template 'templates/upper_case_result'
create_work: app not found

kchen3@lobo:~/projects/test1$ ./bin/create_work
create_work: bad command line: need -appname
kchen3@lobo:~/projects/test1$



Does anyone know what it means? Can not find the application 'create_work'? Or can't find data table 'app' in the database? Actually they are there, so I am really confused about it.

Thanks.



Sorry, I got it. I mistook the project name 'upper_case' for 'uppser_case'... Thank you anyway
30) Message boards : Server programs : create_work doesn't work... (Message 17751)
Posted 9 Jun 2008 by Kunsheng Chen
Post:
Hello, I followed the link http://www.boinc-wiki.info/Creating_a_Project_-_Creating_work to create a work for existing project 'upper_case'
Everything goes well except the message 'create_work: app not found' below:



kchen3@lobo:~/projects/test1$ ./bin/create_work -appname 'upper_case' -wu_name 'test' -wu_template 'templates/upper_case_wu' -result_template 'templates/upper_case_result'
create_work: app not found

kchen3@lobo:~/projects/test1$ ./bin/create_work
create_work: bad command line: need -appname
kchen3@lobo:~/projects/test1$



Does anyone know what it means? Can not find the application 'create_work'? Or can't find data table 'app' in the database? Actually they are there, so I am really confused about it.

Thanks.
31) Message boards : Server programs : Don't have permission to the project URL through web browser (Message 17748)
Posted 9 Jun 2008 by Kunsheng Chen
Post:
I did the following things to test a boinc server. Before that I created a project named 'test1' successfully and the following command didn't have any error message when running: (Also I have boinc_client and boinc_cmd copied in the directory 'boinc_test' before)


cd projects/test1
bin/xadd
bin/update_versions

bin/start

cd boinc_test
boinc_client



However I could not access the website after all this. Information is simple:

Forbidden

You don't have permission to access /test1 on this server.
Apache/2.2.4 (Ubuntu) DAV/2 SVN/1.4.4 PHP/5.2.3-1ubuntu6.3 Server at canis Port 8005


I think it's privilege problem but just can'
t figure out what it is. Could any one help me?
Thanks for all your help
32) Message boards : Server programs : ./make_project script created database successfully ,but not the whole projec (Message 17726)
Posted 7 Jun 2008 by Kunsheng Chen
Post:
Upgrade to the latest version. There was an error in schema.sql


Thank you,Nic. I redownloaded all the files and the response is like this:


kchen3@lobo:~/boinc_trunk/tools$ ./make_project --db_user 'kchen3' --db_passwd 'mysql' test1 'test1';
Creating project 'test1' (short name 'test1'):
PROJECT_ROOT = /osr/users/kchen3/projects/test1/
URL_BASE = http://lobo.csc.ncsu.edu/
HTML_USER_URL = http://lobo.csc.ncsu.edu/test1/
HTML_OPS_URL = http://lobo.csc.ncsu.edu/test1_ops/
CGI_URL = http://lobo.csc.ncsu.edu/test1_cgi/
KEY_DIR = /osr/users/kchen3/projects/test1/keys/
DB_NAME = test1
DB_HOST =

Continue? [Y/n] Y
Setting up server: creating directories

Keys don't exist in /osr/users/kchen3/projects/test1/keys/; generate them? [Y/n] y
Setting up server files: linking cgi programs Done installing default daemons.

Done installing files. Please view
/osr/users/kchen3/projects/test1/test1.readme
for important additional instructions.




That means I got it done finally. Isn't it?

I am still a little confused by the instruction in the readme file, the second step.


2. Add to crontab (as kchen3)

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /osr/users/kchen3/projects/test1/bin/start --cron

(If cron cannot run "start", try using a helper script to set PATH and
PYTHONPATH)


What does it really mean? I have no idea what to do by it

Thank! It really help me!
33) Message boards : Server programs : ./make_project script created database successfully ,but not the whole projec (Message 17683)
Posted 5 Jun 2008 by Kunsheng Chen
Post:
I used 'make_project' to create a project but strange things happened: The script did create database and 31 tables in it inside mysql, however I could not find the file $projectname.httpd.conf under the project directory (which ought to be combined with httpd.conf under apache2 later)

Also the message come after the script ran .

The message is as below:


kchen3@lobo:~$ ./make_project --db_user 'kchen3' --db_host 'localhost' --db_passwd 'mypassword';
-bash: ./make_project: No such file or directory
kchen3@lobo:~$ cd boinc
kchen3@lobo:~/boinc$ cd tools
kchen3@lobo:~/boinc/tools$ ./make_project --db_user 'kchen3' --db_passwd 'mysql' test_app5 'test app5';
Creating project 'test app5' (short name 'test_app5'):
PROJECT_ROOT = /osr/users/kchen3/projects/test_app5/
URL_BASE = http://lobo.csc.ncsu.edu/
HTML_USER_URL = http://lobo.csc.ncsu.edu/test_app5/
HTML_OPS_URL = http://lobo.csc.ncsu.edu/test_app5_ops/
CGI_URL = http://lobo.csc.ncsu.edu/test_app5_cgi/
KEY_DIR = /osr/users/kchen3/projects/test_app5/keys/
DB_NAME = test_app5
DB_HOST =

Continue? [Y/n] Y
Setting up server: creating directories

Keys don't exist in /osr/users/kchen3/projects/test_app5/keys/; generate them? [Y/n] y
Setting up database
Traceback (most recent call last):
File "./make_project", line 217, in <module>
project.install_project()
File "/osr/users/kchen3/boinc/py/Boinc/setup_project.py", line 538, in install_project
drop_first = options.drop_db_first
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 271, in create_database
_execute_sql_script(cursor, os.path.join(schema_path, file))
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 257, in _execute_sql_script
cursor.execute(query)
File "/var/lib/python-support/python2.5/MySQLdb/cursors.py", line 166, in execute
self.errorhandler(self, exc, value)
File "/var/lib/python-support/python2.5/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6")



I did grant all privileges to the user 'kchen3', also I set up PYTHONPATH as '/osr/users/kchen3/boinc/py' in ~./bashrc, which should be correct setting.
Does anyone have some idea? I appreciate any help here.
Thank you.
34) Message boards : Server programs : Could anyone tell me where is PYTHONPATH in ubuntu? (Message 17679)
Posted 5 Jun 2008 by Kunsheng Chen
Post:
Files whose name begins with a dot are hidden by default as they are "clutter". You can see dotfiles by using "ls -a"

As for your second question, I'd make extra sure you're a) typing in the same terminal you use ssh in, and b) it's maybe just a coincidence that the two computers have the same set of files in their directories (very likely if they're both fresh installs)



wow..thank you for your instant reply. Do you have any idea for the second problem?
I first login a machine with username@while: and then ssh -X url -p [port] to ssh the remote server. Then the prefix becomre username@lobo, After that I fun svn ** something like that to get boinc resource but now it seems I download it in the @while machine for so long.. How could I get that in the server? I mean the prefix is username@lobo and I run everything after that, really don't know why it downloaded to the @while machine..

35) Message boards : Server programs : Could anyone tell me where is PYTHONPATH in ubuntu? (Message 17677)
Posted 5 Jun 2008 by Kunsheng Chen
Post:
It's okay if ~/.bashrc doesn't already exist. Open it in a text editor like this:

$ gedit ~/.bashrc
[or use vi, or emacs, or nano, or whatever]

and add this line [to the end, if there's something in it]:
export PYTHONPATH="/the/path/you/need"



Thank you. It works. when I run 'gedit ~/bashrc', I found the file actually exits.. which I can't see using 'ls'.

Also I am a little confused about I m doing: I login a workstation in ubuntu and use the terminal to ssh the remote server installed ubuntu too. Whenever I type 'ls' inside the terminal, it shows the files in the original workstation, but I did successfully login in the remote server (I can tell from the prefix username@machinename). I am totally new to Linux system and I don't know why. Is that normal? All I do must be in the server, hope I am right now. Thanks.


36) Message boards : Server programs : Could anyone tell me where is PYTHONPATH in ubuntu? (Message 17667)
Posted 5 Jun 2008 by Kunsheng Chen
Post:
I screwed up with the previous ubuntu server and is trying on a new one. The first problem for me is to set up 'PYTHONPATH' correctly according to my mate.

I search online and found PYTHONPATH should be in './bashsrc' , which I don't have in /etc but another similar 'bash.bashsrc'. Could anyone tell me is this 'bash.bashsrc' the one I need?

It's an emergency for me and I really appreciate any help from you guys.
37) Message boards : Server programs : mysql problem in ubuntu when setting up a boinc (Message 17653)
Posted 4 Jun 2008 by Kunsheng Chen
Post:
It is mysql problem happened during the set up of boinc, did anyone meet this before?

I want to reinstall mysql server in ubuntu and got message below:

kchen3@steppe:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
failed to open configuration file `/osr/users/kchen3/.dpkg.cfg' for reading: Permission denied
Setting up mysql-server-5.0 (5.0.45-1ubuntu3.3) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "start" failed.


Then I try 'sudo dpkg --configure -a' according to the reminder and still:

kchen3@steppe:~$ sudo dpkg --configure -a
failed to open configuration file `/osr/users/kchen3/.dpkg.cfg' for reading: Permission denied
Setting up mysql-server-5.0 (5.0.45-1ubuntu3.3) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "start" failed.



I don't know what this dpkg file do, I think there must be something wrong with it. could anyone help me? Thanks
38) Message boards : Server programs : ./bin/xadd running error, probably pyodbc error? (Message 17644)
Posted 3 Jun 2008 by Kunsheng Chen
Post:
I thought it was the mysql problem referring to this link:
http://www.boinc-wiki.info/Creating_a_Project_-_Using_make_project.
I did meet the problem it mentioned but fail to fix that with 'mysqld_safe'


Exception: Couldn't parse XML config

Something is wrong with the project configuration file, config.xml.




Thanks. Could you give me more details about that? Also I wonder if there is some problems with mysql. When I try to use './tools/make_project [project_name]' to create a project, it will never succeed but with the message below:

Traceback (most recent call last):
File "./tools/make_project", line 217, in <module>
project.install_project()
File "/osr/users/kchen3/boinc/py/Boinc/setup_project.py", line 538, in install_project
drop_first = options.drop_db_first
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 263, in create_database
connect(config, nodb=True)
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 250, in connect
passwd=config.__dict__.get('db_passwd', ''))
File "/osr/users/kchen3/boinc/py/Boinc/db_base.py", line 492, in do_connect
cursorclass=MySQLdb.cursors.DictCursor)
File "/var/lib/python-support/python2.5/MySQLdb/__init__.py", line 74, in Connect
return Connection(*args, **kwargs)
File "/var/lib/python-support/python2.5/MySQLdb/connections.py", line 170, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
kchen3@steppe:~/boinc$ mysql --socket=/var/lib/mysql/mysql.sock
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


I tried both 'mysqld_safe --socket=/var/lib/mysql/mysql.sock' and 'mysqld_safe --socket=/tmp/mysql.sock' but the last message is still 'ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'. The socket path seems to be fixed.

In the previous time I created the project with parameters '--db_name' ,'--db_user' with some error messages after that. However the script did create the tables in the database but fail to execute './bin/xadd'.

apprecaite it.




39) Message boards : Server programs : ./bin/xadd running error, probably pyodbc error? (Message 17643)
Posted 3 Jun 2008 by Kunsheng Chen
Post:

Exception: Couldn't parse XML config

Something is wrong with the project configuration file, config.xml.




Thanks. Could you give me more details about that? Also I wonder if there is some problems with mysql. When I try to use './tools/make_project [project_name]' to create a project, it will never succeed but with the message below:

Traceback (most recent call last):
File "./tools/make_project", line 217, in <module>
project.install_project()
File "/osr/users/kchen3/boinc/py/Boinc/setup_project.py", line 538, in install_project
drop_first = options.drop_db_first
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 263, in create_database
connect(config, nodb=True)
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 250, in connect
passwd=config.__dict__.get('db_passwd', ''))
File "/osr/users/kchen3/boinc/py/Boinc/db_base.py", line 492, in do_connect
cursorclass=MySQLdb.cursors.DictCursor)
File "/var/lib/python-support/python2.5/MySQLdb/__init__.py", line 74, in Connect
return Connection(*args, **kwargs)
File "/var/lib/python-support/python2.5/MySQLdb/connections.py", line 170, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
kchen3@steppe:~/boinc$ mysql --socket=/var/lib/mysql/mysql.sock
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


I tried both 'mysqld_safe --socket=/var/lib/mysql/mysql.sock' and 'mysqld_safe --socket=/tmp/mysql.sock' but the last message is still 'ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'. The socket path seems to be fixed.

In the previous time I created the project with parameters '--db_name' ,'--db_user' with some error messages after that. However the script did create the tables in the database but fail to execute './bin/xadd'.

apprecaite it.



40) Message boards : Server programs : ./bin/xadd running error, probably pyodbc error? (Message 17638)
Posted 3 Jun 2008 by Kunsheng Chen
Post:
I used make_script to create a project successfully. yet I met the error message below when using ./bin/xadd to add an application:

Traceback (most recent call last):
File "./bin/xadd", line 25, in <module>
database.connect()
File "/osr/users/kchen3/projects/boinctest/bin/database.py", line 240, in connect
config = config or configxml.default_config().config
File "/osr/users/kchen3/projects/boinctest/bin/configxml.py", line 99, in default_config
if not default_config_file: ConfigFile().read()
File "/osr/users/kchen3/projects/boinctest/bin/boincxml.py", line 129, in read
raise Exception("Couldn't parse XML config\n")
Exception: Couldn't parse XML config


I search for the message online and someone got it in windows when using pyodbc. it might be kind of permission problem but I don't know what exactly it is. Appreciate any help from you. Thanks.


Previous 20

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.