./test/test_sanity.py fails

Message boards : Server programs : ./test/test_sanity.py fails
Message board moderation

To post messages, you must log in.

AuthorMessage
HTH

Send message
Joined: 8 Aug 06
Posts: 30
Finland
Message 49239 - Posted: 22 May 2013, 15:44:26 UTC
Last modified: 22 May 2013, 15:46:11 UTC

I'm trying to set up a BOINC server. This is what I get after ./test/test_sanity.py
-- Testing framework sanity --------------------------------------------------
Traceback (most recent call last):
  File "./test/test_sanity.py", line 34, in <module>
    test_msg("framework sanity")
  File "/home/boincadm/boinc-v2/test/testbase.py", line 759, in test_msg
    test_init()
  File "/home/boincadm/boinc-v2/test/testbase.py", line 30, in test_init
    os.chdir(os.path.join(os.getenv('srcdir'),'test'))
  File "/usr/lib/python2.7/posixpath.py", line 68, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
 
Exception thrown - bug in test scripts?
ERRORS.COUNT: 1
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/boincadm/boinc-v2/test/testbase.py", line 788, in osexit_test_done
    os._exit(test_done())
  File "/home/boincadm/boinc-v2/test/testbase.py", line 772, in test_done
    if options.delete_testbed == 'always':
AttributeError: Options instance has no attribute 'delete_testbed'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/boincadm/boinc-v2/test/testbase.py", line 788, in osexit_test_done
    os._exit(test_done())
  File "/home/boincadm/boinc-v2/test/testbase.py", line 772, in test_done
    if options.delete_testbed == 'always':
AttributeError: Options instance has no attribute 'delete_testbed'


This is how I tried to set up the server:
apt-cache search "^language-pack-[a-z][a-z]$"
sudo apt-get update
sudo apt-get install language-pack-fi
sudo apt-get upgrade
sudo nano ~/.bash_profile
----
export LC_CTYPE="fi_FI.UTF-8"
----
sudo nano /etc/default/useradd
----
SHELL=/bin/bash
HOME=/home
----
sudo useradd -d /home/boincadm -m boincadm
sudo passwd boincadm
sudo passwd root
sudo nano /etc/sudoers
----
# User privilege specification
root    ALL=(ALL:ALL) ALL
boincadm ALL=(ALL) ALL
----
su boincadm
cd /home/boincadm
sudo usermod -aG boincadm www-data
sudo apt-get install git build-essential apache2 php5 mysql-server php5-gd php5-cli php5-mysql python-mysqldb libtool automake autoconf pkg-config libmysql++-dev libssl-dev
git clone git://boinc.berkeley.edu/boinc-v2.git
mysql -u root -p
GRANT ALL ON *.* TO 'boincadm'@'localhost';
SELECT * FROM mysql.user WHERE user='boincadm';
EXIT
cd boinc-v2
./_autosetup
./configure --enable-server --disable-client --disable-manager
make
./test/test_sanity.py
ID: 49239 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 49250 - Posted: 22 May 2013, 17:23:06 UTC
Last modified: 22 May 2013, 17:23:19 UTC

I saw your mail on boinc_projects, but I'm very busy this week. So here is it in short. Everything in test/ is old and deprecated. If make succeeds than you have a (somehow) working source and can run make_project with the appropriate options. Options are here: http://boinc.berkeley.edu/trac/wiki/MakeProject
A more explainative tutorial-like description is in the cookbook: http://boinc.berkeley.edu/trac/wiki/CreateProjectCookbook This is for Debain based systems! You may have to change some commands for other distributions.

Regards
Christian
ID: 49250 · Report as offensive
HTH

Send message
Joined: 8 Aug 06
Posts: 30
Finland
Message 49259 - Posted: 22 May 2013, 20:18:15 UTC - in response to Message 49250.  

I saw your mail on boinc_projects, but I'm very busy this week. So here is it in short. Everything in test/ is old and deprecated. If make succeeds than you have a (somehow) working source and can run make_project with the appropriate options. Options are here: http://boinc.berkeley.edu/trac/wiki/MakeProject
A more explainative tutorial-like description is in the cookbook: http://boinc.berkeley.edu/trac/wiki/CreateProjectCookbook This is for Debain based systems! You may have to change some commands for other distributions.

Regards
Christian


Thanks for the reply.

I got it to work! It just works. :)
ID: 49259 · Report as offensive

Message boards : Server programs : ./test/test_sanity.py fails

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.