./bin/start-database.sh
## Starting postgres in /mnt/tarmac/cache/txstatsd/distinct-plugin/tmp/db1 ##
The files belonging to this database system will be owned by user "tarmac".
This user must also own the server process.
The database cluster will be initialized with locale C.
The default text search configuration will be set to "english".
fixing permissions on existing directory /mnt/tarmac/cache/txstatsd/distinct-plugin/tmp/db1/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 28MB
creating configuration files ... ok
creating template1 database in /mnt/tarmac/cache/txstatsd/distinct-plugin/tmp/db1/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
Success. You can now start the database server using:
/usr/lib/postgresql/8.4/bin/postgres -D /mnt/tarmac/cache/txstatsd/distinct-plugin/tmp/db1/data
or
/usr/lib/postgresql/8.4/bin/pg_ctl -D /mnt/tarmac/cache/txstatsd/distinct-plugin/tmp/db1/data -l logfile start
waiting for server to start.... done
server started
CREATE ROLE
To set your environment so psql will connect to this DB instance type:
export PGHOST=/mnt/tarmac/cache/txstatsd/distinct-plugin/tmp/db1
## Done. ##
psql -h `pwd`/tmp/db1 -d distinct < bin/schema.sql
CREATE TABLE
CREATE TABLE
CREATE INDEX
./bin/start-redis.sh
trial distinctdb/ [ERROR]
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 563, in loadPackage
module = modinfo.load()
File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 381, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/mnt/tarmac/cache/txstatsd/distinct-plugin/distinctdb/tests/test_distinct.py", line 25, in <module>
from twisted.plugins import distinctdbplugin
File "/mnt/tarmac/cache/txstatsd/distinct-plugin/twisted/plugins/distinctdbplugin.py", line 4, in <module>
from txstatsd.itxstatsd import IMetricFactory
exceptions.ImportError: No module named txstatsd.itxstatsd
-------------------------------------------------------------------------------
FAILED (errors=1)
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.
ERROR: role "client" already exists
NOTICE: CREATE TABLE will create implicit sequence "paths_id_seq" for serial column "paths.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "paths_pkey" for table "paths"
NOTICE: CREATE TABLE / UNIQUE will create implicit index "paths_path_key" for table "paths"
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/twisted/python/usage.py", line 241, in parseOptions
self.postOptions()
File "/usr/lib/python2.6/dist-packages/twisted/scripts/trial.py", line 295, in postOptions
self['reporter'] = self._loadReporterByName(self['reporter'])
File "/usr/lib/python2.6/dist-packages/twisted/scripts/trial.py", line 281, in _loadReporterByName
for p in plugin.getPlugins(itrial.IReporter):
File "/usr/lib/python2.6/dist-packages/twisted/plugin.py", line 200, in getPlugins
allDropins = getCache(package)
--- <exception caught here> ---
File "/usr/lib/python2.6/dist-packages/twisted/plugin.py", line 165, in getCache
provider = pluginModule.load()
File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 381, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/mnt/tarmac/cache/txstatsd/distinct-plugin/twisted/plugins/distinctdbplugin.py", line 4, in <module>
from txstatsd.itxstatsd import IMetricFactory
exceptions.ImportError: No module named txstatsd.itxstatsd
make: *** [trial] Error 1
The attempt to merge lp:~lucio.torre/txstatsd/distinct-plugin-fix-http into lp:~txstatsd-dev/txstatsd/distinct-plugin failed. Below is the output from the failed tests.
./bin/start- database. sh cache/txstatsd/ distinct- plugin/ tmp/db1 ##
## Starting postgres in /mnt/tarmac/
The files belonging to this database system will be owned by user "tarmac".
This user must also own the server process.
The database cluster will be initialized with locale C.
The default text search configuration will be set to "english".
fixing permissions on existing directory /mnt/tarmac/ cache/txstatsd/ distinct- plugin/ tmp/db1/ data ... ok cache/txstatsd/ distinct- plugin/ tmp/db1/ data/base/ 1 ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 28MB
creating configuration files ... ok
creating template1 database in /mnt/tarmac/
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
Success. You can now start the database server using:
/usr/ lib/postgresql/ 8.4/bin/ postgres -D /mnt/tarmac/ cache/txstatsd/ distinct- plugin/ tmp/db1/ data lib/postgresql/ 8.4/bin/ pg_ctl -D /mnt/tarmac/ cache/txstatsd/ distinct- plugin/ tmp/db1/ data -l logfile start
or
/usr/
waiting for server to start.... done /mnt/tarmac/ cache/txstatsd/ distinct- plugin/ tmp/db1 redis.sh
[ERROR]
server started
CREATE ROLE
To set your environment so psql will connect to this DB instance type:
export PGHOST=
## Done. ##
psql -h `pwd`/tmp/db1 -d distinct < bin/schema.sql
CREATE TABLE
CREATE TABLE
CREATE INDEX
./bin/start-
trial distinctdb/
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == tests.test_ distinct
[ERROR]: distinctdb.
Traceback (most recent call last): python2. 6/dist- packages/ twisted/ trial/runner. py", line 563, in loadPackage python2. 6/dist- packages/ twisted/ python/ modules. py", line 381, in load pythonPath. moduleLoader( self.name) python2. 6/dist- packages/ twisted/ python/ reflect. py", line 464, in namedAny Stack(trialname ) cache/txstatsd/ distinct- plugin/ distinctdb/ tests/test_ distinct. py", line 25, in <module> cache/txstatsd/ distinct- plugin/ twisted/ plugins/ distinctdbplugi n.py", line 4, in <module> ImportError: No module named txstatsd.itxstatsd ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
File "/usr/lib/
module = modinfo.load()
File "/usr/lib/
return self.pathEntry.
File "/usr/lib/
topLevelPackage = _importAndCheck
File "/mnt/tarmac/
from twisted.plugins import distinctdbplugin
File "/mnt/tarmac/
from txstatsd.itxstatsd import IMetricFactory
exceptions.
-------
FAILED (errors=1)
WARNING: enabling "trust" authentication for local connections python2. 6/dist- packages/ twisted/ python/ usage.py" , line 241, in parseOptions postOptions( ) python2. 6/dist- packages/ twisted/ scripts/ trial.py" , line 295, in postOptions 'reporter' ] = self._loadRepor terByName( self['reporter' ]) python2. 6/dist- packages/ twisted/ scripts/ trial.py" , line 281, in _loadReporterByName getPlugins( itrial. IReporter) : python2. 6/dist- packages/ twisted/ plugin. py", line 200, in getPlugins python2. 6/dist- packages/ twisted/ plugin. py", line 165, in getCache python2. 6/dist- packages/ twisted/ python/ modules. py", line 381, in load pythonPath. moduleLoader( self.name) python2. 6/dist- packages/ twisted/ python/ reflect. py", line 464, in namedAny Stack(trialname ) cache/txstatsd/ distinct- plugin/ twisted/ plugins/ distinctdbplugi n.py", line 4, in <module> ImportError: No module named txstatsd.itxstatsd
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.
ERROR: role "client" already exists
NOTICE: CREATE TABLE will create implicit sequence "paths_id_seq" for serial column "paths.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "paths_pkey" for table "paths"
NOTICE: CREATE TABLE / UNIQUE will create implicit index "paths_path_key" for table "paths"
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self[
File "/usr/lib/
for p in plugin.
File "/usr/lib/
allDropins = getCache(package)
--- <exception caught here> ---
File "/usr/lib/
provider = pluginModule.load()
File "/usr/lib/
return self.pathEntry.
File "/usr/lib/
topLevelPackage = _importAndCheck
File "/mnt/tarmac/
from txstatsd.itxstatsd import IMetricFactory
exceptions.
make: *** [trial] Error 1