Logged into the server as root. Ran each of the lines one at a time at # command prompt and verified each mv and cd command after each was executed with ls commands and pwd commands. Everything works ok until I run the
/home/baruwa/px/bin/paster setup-app /etc/baruwa/production.ini and I get the same error about it trying to run the setup_app() in websetup.py and not being able to connect. I didn't try to run the rest of the commands since I didn't get past this one. Maybe my 6.3 minimal install is missing a package or something? Angelo ________________________________ From: [email protected] [[email protected]] on behalf of Mohammed Alli [[email protected]] Sent: Friday, July 19, 2013 9:42 AM To: Baruwa users list Subject: Re: [Baruwa] Error using Jeremy centos script in baruwa admin function From: [email protected] [mailto:[email protected]] On Behalf Of Valbuena, Angelo Sent: Thursday, July 18, 2013 2:09 PM To: Baruwa users list Subject: Re: [Baruwa] Error using Jeremy centos script in baruwa admin function I checked the production.ini file for the sqlalchemy.url= settings. I see the postgresql://baruwa:[email protected]:5432/baruwa line. Did a su postgres. Then psql -h 127.0.0.1 -U baruwa -d baruwa. Got prompted for the password. Entered the password that is in the production.ini file on the sqlalchemy.url line and got to the psql prompt. Was able to enter \l and \dt commands and \q normally. Sorry if I am on the wrong path here but I might be in over my head at this point. Angelo Try running the section manually like below, does it run? *Note: Make sure to update $baruwaadmin, $adminpass and $adminemail with proper values before running. mv /home/baruwa/px/lib/python2.6/site-packages/baruwa/websetup.py /home/baruwa/px/lib/python2.6/site-packages/baruwa/websetup.py.orig cd /home/baruwa/px/lib/python2.6/site-packages/baruwa/ curl -O https://raw.github.com/fluxlabs/baruwa/master/2.0/extras/websetup.py cd /home/baruwa/ virtualenv --distribute px source px/bin/activate export SWIG_FEATURES="-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl" /home/baruwa/px/bin/paster setup-app /etc/baruwa/production.ini /home/baruwa/px/bin/paster create-admin-user -u "$baruwaadmin" -p "$adminpass" -e "$adminemail" -t UTC /etc/baruwa/production.ini rm -f /home/baruwa/px/lib/python2.6/site-packages/baruwa/websetup.py mv /home/baruwa/px/lib/python2.6/site-packages/baruwa/websetup.py.orig /home/baruwa/px/lib/python2.6/site-packages/baruwa/websetup.py
_______________________________________________ http://pledgie.com/campaigns/12056

