I tried that (in my post)... Didn't work. I get the following and no database:

(px)root@baruwa20DB:/home/baruwa# paster setup-app /etc/baruwa/production.ini
Running setup_app() from baruwa.websetup
----------------------------------------------------------------------------------------------------
2013-02-27 15:32:59,372 INFO  [baruwa.websetup] [MainThread] Creating tables
Traceback (most recent call last):
  File "/home/baruwa/px/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/home/baruwa/px/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
File "/home/baruwa/px/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
File "/home/baruwa/px/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 68, in run
    return super(AbstractInstallCommand, self).run(new_args)
File "/home/baruwa/px/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
File "/home/baruwa/px/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 456, in command
    self, config_file, section, self.sysconfig_install_vars(installer))
File "/home/baruwa/px/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 598, in setup_config
    mod.setup_app, command, filename, section, vars)
File "/home/baruwa/px/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 614, in _call_setup_app
    func(command, conf, vars)
File "/home/baruwa/px/local/lib/python2.7/site-packages/baruwa/websetup.py", line 53, in setup_app
    Base.metadata.create_all(bind=Session.bind)
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/schema.py", line 2737, in create_all
    tables=tables)
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1486, in _run_visitor
    with self._optional_conn_ctx_manager(connection) as conn:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1479, in _optional_conn_ctx_manager
    with self.contextual_connect() as conn:
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1669, in contextual_connect
    self.pool.connect(),
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 272, in connect
    return _ConnectionFairy(self).checkout()
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 425, in __init__
    rec = self._connection_record = pool._do_get()
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 855, in _do_get
    return self._create_connection()
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 225, in _create_connection
    return _ConnectionRecord(self)
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 318, in __init__
    self.connection = self.__connect()
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 368, in __connect
    connection = self.__pool._creator()
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 80, in connect
    return dialect.connect(*cargs, **cparams)
File "/home/baruwa/px/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 279, in connect
    return self.dbapi.connect(*cargs, **cparams)
File "/home/baruwa/px/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 178, in connect return _connect(dsn, connection_factory=connection_factory, async=async) File "/home/baruwa/px/local/lib/python2.7/site-packages/eventlet/support/psycopg2_patcher.py", line 44, in eventlet_wait_callback
    state = conn.poll()
sqlalchemy.exc.OperationalError: (OperationalError) asynchronous connection failed None None


On 02/27/2013 03:27 PM, Jeremy McSpadden wrote:


      Step 5b: Populate the database

The creation of all database tables, addition of initial data and the creation of an admin user is taken care of via this Pylons command:

paster setup-app /etc/baruwa/production.ini

Next create the required directories and start the celeryd daemon.


      Step 5c: Create the sphinx indexes

The initial sphinx search indexes need to be created by running the command:

indexer  --all  --rotate

--
Jeremy McSpadden
Flux Labs, Inc | http://www.fluxlabs.net <http://www.fluxlabs.net/> | Endless Solutions Office : 850-250-5590x101 <tel:850-250-5590;101> | Cell : 850-890-2543 <tel:850-890-2543> | Fax : 850-254-2955 <tel:850-254-2955>

On Feb 27, 2013, at 3:20 PM, "Raymond Norton" <[email protected] <mailto:[email protected]>> wrote:

Ubuntu 12.0.4 Baruwa 2.0.0

I dropped my database to start clean on an install:

How can I recreate and populate the database after baruwa has already been installed?

The following does not work

pip install baruwa

paster setup-app /etc/baruwa/production.ini


--
Raymond Norton
LCTN
952.955.7766


_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056


--
Raymond Norton
LCTN
952.955.7766

_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Reply via email to