Creating a Project - Using make project
From Unofficial BOINC Wiki
The file named make_project is the script to create a Project and is located in the tools folder in the standard directory structure (see Server Directory Structure).
If you return to the root folder of the BOINC distribution in the terminal, you can type
./tools/make_project YourProjectName
See Make Project Script for the options and how to run the script.
PROBLEM!!!
The MySQL socket needs to be in /var/lib/mysql/mysql.sock or /tmp/mysql.sock before running this command otherwise you get a long traceback of errors and will need to re-run the script. If you do get the errors like this:
Traceback (most recent call last):
File "./tools/make_project", line 208, in ?
project.install_project()
File "/software/boinc_public/py/Boinc/setup_project.py", line 500, in install_project
drop_first = options.drop_db_first
File "/software/boinc_public/py/Boinc/database.py", line 257, in create_database
connect(config, nodb=True)
File "/software/boinc_public/py/Boinc/database.py", line 244, in connect
passwd=config.__dict__.get('db_passwd', ))
File "/software/boinc_public/py/Boinc/db_base.py", line 492, in do_connect
cursorclass=MySQLdb.cursors.DictCursor)
File "/usr/lib/python2.2/site-packages/MySQLdb/__init__.py", line 64, in Connect
return apply(Connection, args, kwargs)
File "/usr/lib/python2.2/site-packages/MySQLdb/connections.py", line 116, in __init__
self._make_connection(args, kwargs2)
File "/usr/lib/python2.2/site-packages/MySQLdb/connections.py", line 41, in _make_connection
apply(super(ConnectionBase, self).__init__, args, kwargs)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)")
make MySQL run in the opposite folder or you can just give it the IP as long as MySQL is running on a TCP socket as well.
The way to force the socket's location:
Run mysql like this:
mysqld_safe --socket=/var/lib/mysql/mysql.sock
or
mysqld_safe --socket=/tmp/mysql.sock
Next: Creating a Project - Getting the server system up and running
RSS Feeds

