From: "Niv Gal Waizer" <nivw(a)infinidat.com>
To: nitrate-devel(a)lists.fedorahosted.org
Sent: Sunday, February 23, 2014 9:39:13 PM
Subject: Re: Installing nitrate stable on centos6
Here are the steps I took to run the development version on centos6:
0. Install python 2.7 using :
cd /etc/pki/rpm-gpg/
wget -q
http://springdale.math.ias.edu/data/puias/6/x86_64/os/RPM-GPG-KEY-puias
rpm --import RPM-GPG-KEY-puias
yum install python27 python27-tools
* git clone
git://git.fedorahosted.org/nitrate.git ; cd nitrate
* git checkout --track origin/development
* sudo yum install python-devel mysql-devel krb5-devel libxml2-devel
libxslt-devel
* sudo yum install mysql mysql-server
* chkconfig --level 2345 mysqld on; service mysqld start
* python setup.py install
#setup mysql db #take care missing ;
mysql -uroot
mysql> create database nitrate CHARACTER SET utf8 COLLATE
utf8_general_ci;
mysql> use nitrate; source nitrate_db_setup.sql;
mysql> grant all privileges on nitrate.* to nitrate@'localhost'
identified by 'nitrate';
mysql> flush privileges;
export PYTHONPATH=`pwd`:$PYTHONPATH
export DJANGO_SETTINGS_MODULE=tcms.dev_settings
echo 'from settings import *' >tcms/dev_settings.py
django-admin.py runserver --settings=tcms.settings.product
I now see nitrate in my browser with no graphics, no design. here is the
error:
django-admin.py runserver --settings=tcms.settings.product
Validating models...
0 errors found
February 23, 2014 - 21:25:35
Django version 1.5.5, using settings 'tcms.settings.product'
Development server is running at
http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[23/Feb/2014 21:25:39] "GET / HTTP/1.1" 302 0
[23/Feb/2014 21:25:39] "GET /accounts/login/ HTTP/1.1" 200 6501
[23/Feb/2014 21:25:39] "GET /static/style/base.css HTTP/1.1" 404 5540
[23/Feb/2014 21:25:39] "GET /static/style/print.css HTTP/1.1" 404 5542
[23/Feb/2014 21:25:39] "GET /static/js/lib/jquery-1.5.1.min.js HTTP/1.1"
404 5564
[23/Feb/2014 21:25:39] "GET /static/js/lib/livepipe/lib/scriptaculous.js
HTTP/1.1" 404 5584
[23/Feb/2014 21:25:39] "GET /static/js/lib/livepipe/lib/prototype.js
HTTP/1.1" 404 5576
[23/Feb/2014 21:25:40] "GET /static/js/index.js HTTP/1.1" 404 5534
[23/Feb/2014 21:25:40] "GET /static/js/lib/livepipe/src/livepipe.js
HTTP/1.1" 404 5574
[23/Feb/2014 21:25:40] "GET /static/js/lib/jquery.shiftcheckbox.js
HTTP/1.1" 404 5572
[23/Feb/2014 21:25:40] "GET /static/js/footer_at_the_end.js HTTP/1.1"
404 5558
[23/Feb/2014 21:25:40] "GET /static/images/favicon.png HTTP/1.1" 404 5548
[23/Feb/2014 21:25:40] "GET /static/js/tcms_actions.js HTTP/1.1" 404 5548
[23/Feb/2014 21:25:40] "GET /static/images/logo_shipshape_1.png
HTTP/1.1" 404 5566
[23/Feb/2014 21:25:40] "GET /static/js/lib/jquery-1.5.1.min.js HTTP/1.1"
404 5564
[23/Feb/2014 21:25:40] "GET /static/js/lib/livepipe/lib/prototype.js
HTTP/1.1" 404 5576
[23/Feb/2014 21:25:40] "GET /static/js/lib/livepipe/lib/scriptaculous.js
HTTP/1.1" 404 5584
[23/Feb/2014 21:25:40] "GET /static/js/lib/livepipe/src/livepipe.js
HTTP/1.1" 404 5574
[23/Feb/2014 21:25:40] "GET /static/js/lib/jquery.shiftcheckbox.js
HTTP/1.1" 404 5572
[23/Feb/2014 21:25:40] "GET /static/js/tcms_actions.js HTTP/1.1" 404 5548
[23/Feb/2014 21:25:40] "GET /static/js/index.js HTTP/1.1" 404 5534
[23/Feb/2014 21:25:40] "GET /static/js/footer_at_the_end.js HTTP/1.1"
404 5558
[23/Feb/2014 21:25:40] "GET /static/images/logo_shipshape_1.png
HTTP/1.1" 404 5566
[23/Feb/2014 21:26:15] "POST /accounts/login/ HTTP/1.1" 302 0
[23/Feb/2014 21:26:16] "GET /accounts/profile/ HTTP/1.1" 302 0
[23/Feb/2014 21:26:16] "GET /accounts/admin/recent/ HTTP/1.1" 200 8588
[23/Feb/2014 21:26:16] "GET /static/style/base.css HTTP/1.1" 404 6986
[23/Feb/2014 21:26:16] "GET /static/style/print.css HTTP/1.1" 404 6987
[23/Feb/2014 21:26:16] "GET /static/js/lib/livepipe/lib/prototype.js
HTTP/1.1" 404 7004
[23/Feb/2014 21:26:16] "GET /static/js/lib/jquery-1.5.1.min.js HTTP/1.1"
404 6998
[23/Feb/2014 21:26:16] "GET /static/js/lib/livepipe/lib/scriptaculous.js
HTTP/1.1" 404 7008
[23/Feb/2014 21:26:16] "GET /static/js/tcms_actions.js HTTP/1.1" 404 6990
[23/Feb/2014 21:26:16] "GET /static/js/lib/livepipe/src/livepipe.js
HTTP/1.1" 404 7003
[23/Feb/2014 21:26:16] "GET /static/js/lib/jquery.shiftcheckbox.js
HTTP/1.1" 404 7002
[23/Feb/2014 21:26:16] "GET /static/js/footer_at_the_end.js HTTP/1.1"
404 6995
[23/Feb/2014 21:26:16] "GET /static/js/index.js HTTP/1.1" 404 6983
[23/Feb/2014 21:26:16] "GET /static/images/logo_shipshape_1.png
HTTP/1.1" 404 6999
[23/Feb/2014 21:26:16] "GET /static/js/lib/livepipe/lib/prototype.js
HTTP/1.1" 404 7004
[23/Feb/2014 21:26:16] "GET /static/js/lib/livepipe/lib/scriptaculous.js
HTTP/1.1" 404 7008
[23/Feb/2014 21:26:16] "GET /static/js/lib/livepipe/src/livepipe.js
HTTP/1.1" 404 7003
[23/Feb/2014 21:26:16] "GET /static/js/lib/jquery.shiftcheckbox.js
HTTP/1.1" 404 7002
[23/Feb/2014 21:26:16] "GET /static/js/tcms_actions.js HTTP/1.1" 404 6990
[23/Feb/2014 21:26:16] "GET /static/js/index.js HTTP/1.1" 404 6983
[23/Feb/2014 21:26:16] "GET /static/js/footer_at_the_end.js HTTP/1.1"
404 6995
[23/Feb/2014 21:26:16] "GET /static/images/logo_shipshape_1.png
HTTP/1.1" 404 6999
Traceback (most recent call last):
File "/usr/lib64/python2.7/wsgiref/handlers.py", line 86, in run
self.finish_response()
File "/usr/lib64/python2.7/wsgiref/handlers.py", line 127, in
finish_response
self.write(data)
File "/usr/lib64/python2.7/wsgiref/handlers.py", line 210, in write
self.send_headers()
File "/usr/lib64/python2.7/wsgiref/handlers.py", line 269, in
send_headers
self._write(str(self.headers))
File "/usr/lib64/python2.7/socket.py", line 324, in write
self.flush()
File "/usr/lib64/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 52201)
Traceback (most recent call last):
File "/usr/lib64/python2.7/SocketServer.py", line 582, in
process_request_thread
self.finish_request(request, client_address)
File "/usr/lib64/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File
"/usr/lib/python2.7/site-packages/django/core/servers/basehttp.py", line
143, in __init__
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
File "/usr/lib64/python2.7/SocketServer.py", line 640, in __init__
self.finish()
File "/usr/lib64/python2.7/SocketServer.py", line 693, in finish
self.wfile.flush()
File "/usr/lib64/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
[23/Feb/2014 21:26:25] "GET /plans/ HTTP/1.1" 200 11829
Hi Niv,
This error is normal when you run Nitrate under Django's development server. Just
ignore it. When it runs behind httpd, no such error occurs.
Regards,
Chenxiong Qi
_______________________________________________
nitrate-devel mailing list
nitrate-devel(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/nitrate-devel