Skip to content

Instantly share code, notes, and snippets.

@xloem
Created January 4, 2017 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xloem/56ff8055cc40312593fab3702709f003 to your computer and use it in GitHub Desktop.
Save xloem/56ff8055cc40312593fab3702709f003 to your computer and use it in GitHub Desktop.
./runtests.sh
ConnectorDB v0.3.0git1112
arch: linux/amd64
go: go1.6.2
git: b4e83f0a886912f693a9cb3f7caf80599cc5c965
build: 2017-01-04_11:19:15AM
Waiting for servers to start...
My PID 20758
postgres: no process found
redis-server: no process found
gnatsd: no process found
connectordb: no process found
postgres: no process found
redis-server: no process found
gnatsd: no process found
connectordb: no process found
===================================================
Doing Create
===================================================
time="2017-01-04T11:44:26Z" level=warning msg="Test flag is set: Using testing configuration!"
time="2017-01-04T11:44:26Z" level=debug msg="Setting DEBUG log level"
time="2017-01-04T11:44:26Z" level=info msg="Creating new ConnectorDB database at 'database_test'"
time="2017-01-04T11:44:26Z" level=debug msg="Loading configuration from /home/user/src/connectordb/database_test/connectordb.conf"
time="2017-01-04T11:44:26Z" level=info msg="Setting up redis server"
time="2017-01-04T11:44:26Z" level=debug msg="Copying redis.conf from '/home/user/src/connectordb/bin/config/redis.conf'"
time="2017-01-04T11:44:27Z" level=info msg="Setting up gnatsd server"
time="2017-01-04T11:44:27Z" level=debug msg="Copying gnatsd.conf from '/home/user/src/connectordb/bin/config/gnatsd.conf'"
time="2017-01-04T11:44:27Z" level=info msg="Setting up postgres server"
time="2017-01-04T11:44:27Z" level=debug msg="Copying postgres.conf from '/home/user/src/connectordb/bin/config/postgres.conf'"
time="2017-01-04T11:44:27Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/initdb'"
time="2017-01-04T11:44:27Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/initdb'"
time="2017-01-04T11:44:27Z" level=debug msg="Checking for initdb in path..."
time="2017-01-04T11:44:27Z" level=debug msg="Checking for initdb by grep in /usr/lib/postgresql"
time="2017-01-04T11:44:27Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/initdb -U postgres --pwfile database_test/POSTGRES_TEMP_PASS.tmp -D database_test/postgres_database --auth md5"
The files belonging to this database system will be owned by user "user".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory database_test/postgres_database ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
creating template1 database in database_test/postgres_database/base/1 ... ok
initializing pg_authid ... ok
setting password ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
/usr/lib/postgresql/9.4/bin/postgres -D database_test/postgres_database
or
/usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -l logfile start
time="2017-01-04T11:44:34Z" level=info msg="Staring postgres on port 52592"
time="2017-01-04T11:44:34Z" level=debug msg="Writing postgres.conf"
time="2017-01-04T11:44:34Z" level=debug msg="wrote config file database_test/postgres.conf.tmp"
time="2017-01-04T11:44:34Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/pg_ctl'"
time="2017-01-04T11:44:34Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pg_ctl'"
time="2017-01-04T11:44:34Z" level=debug msg="Checking for pg_ctl in path..."
time="2017-01-04T11:44:34Z" level=debug msg="Checking for pg_ctl by grep in /usr/lib/postgresql"
time="2017-01-04T11:44:34Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -w start"
waiting for server to start....LOG: redirecting log output to logging collector process
HINT: Future log output will appear in directory "/home/user/src/connectordb/database_test".
done
server started
time="2017-01-04T11:44:35Z" level=debug msg="Waiting for localhost:52592 to open..."
time="2017-01-04T11:44:35Z" level=debug msg="...localhost:52592 is now open."
time="2017-01-04T11:44:35Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/psql'"
time="2017-01-04T11:44:35Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/psql'"
time="2017-01-04T11:44:35Z" level=debug msg="Checking for psql in path..."
time="2017-01-04T11:44:35Z" level=debug msg="Using /usr/bin/psql"
time="2017-01-04T11:44:35Z" level=debug msg="> /usr/bin/psql postgres://postgres:sqlpassword@localhost:52592/postgres?sslmode=disable -c CREATE DATABASE connectordb;"
CREATE DATABASE
time="2017-01-04T11:44:37Z" level=debug msg="Setting up postgres database at postgres://postgres:sqlpassword@localhost:52592/connectordb?sslmode=disable"
time="2017-01-04T11:44:39Z" level=info msg="Creating user test (test@localhost)"
time="2017-01-04T11:44:39Z" level=debug msg="Opening postgres database at postgres://postgres:sqlpassword@localhost:52592/connectordb?sslmode=disable"
time="2017-01-04T11:44:40Z" level=info msg="Stopping Postgres..."
time="2017-01-04T11:44:40Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/pg_ctl'"
time="2017-01-04T11:44:40Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pg_ctl'"
time="2017-01-04T11:44:40Z" level=debug msg="Checking for pg_ctl in path..."
time="2017-01-04T11:44:40Z" level=debug msg="Checking for pg_ctl by grep in /usr/lib/postgresql"
time="2017-01-04T11:44:40Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -m fast stop"
waiting for server to shut down........ done
server stopped
===================================================
Checking For Runaway Processes
===================================================
Looking for postgres proc...
Looking for redis proc...
Looking for gnatsd proc...
Looking for connectordb proc...
===================================================
Doing Backend Start
===================================================
time="2017-01-04T11:44:45Z" level=info msg="Starting ConnectorDB"
time="2017-01-04T11:44:45Z" level=info msg="Starting: redis=true sql=true nats=true frontend=false"
time="2017-01-04T11:44:45Z" level=info msg="Staring redis on port 6379"
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 21
>>> 'repl-diskless-sync no'
Bad directive or wrong number of arguments
Error: Timeout on operation reached - it looks like something crashed.
Usage:
connectordb start [config file path or database directory] [flags]
Flags:
--backend start only backend servers - same as --redis --nats --sql (if no flags given, all started)
--force forces start of the database even if connectordb.pid exists
--frontend start the ConnectorDB server (same as connectordb run but as daemon) (if no flags given, all started)
--host string Override the interface to which the ConnectorDB server should bind
--http forces server to run in http mode even when TLS cert/key are in conf
--join Enables free join on the server (anyone can join)
--nats start the backend nats server (if no flags given, all started)
-p, --port uint16 Override the port on which to run frontend
--redis start the backend redis server (if no flags given, all started)
--sql start the backend sql server (postgres) (if no flags given, all started)
Global Flags:
--cpuprofile string File to which a cpu profile of ConnectorDB will be written
--logfile string The file to which log output is written
-l, --loglevel string The types of messages to show (debug,info,warn,error)
time="2017-01-04T11:44:55Z" level=error msg="Timeout on operation reached - it looks like something crashed."
===================================================
Running coverage tests
===================================================
2017/01/04 11:45:02 dial tcp [::1]:52592: getsockopt: connection refused
FAIL connectordb 0.012s
2017/01/04 11:45:06 dial tcp [::1]:52592: getsockopt: connection refused
FAIL connectordb/authoperator 0.012s
? connectordb/authoperator/permissions [no test files]
time="2017-01-04T11:45:09Z" level=error msg="dial tcp [::1]:52592: getsockopt: connection refused"
FAIL connectordb/datastream 0.012s
time="2017-01-04T11:45:12Z" level=error msg="dial tcp [::1]:6379: getsockopt: connection refused"
FAIL connectordb/datastream/rediscache 0.012s
--- FAIL: TestMessenger (0.00s)
Error Trace: messenger_test.go:26
Error: Received unexpected error:
nats: no servers available for connection
FAIL
coverage: 14.3% of statements
FAIL connectordb/messenger 0.011s
? connectordb/operator [no test files]
? connectordb/pathwrapper [no test files]
ok connectordb/query 0.011s coverage: 79.4% of statements
ok connectordb/schema 0.007s coverage: 100.0% of statements
time="2017-01-04T11:45:21Z" level=warning msg="Clearing postgres database at postgres://postgres:sqlpassword@localhost:52592/connectordb?sslmode=disable"
panic: dial tcp [::1]:52592: getsockopt: connection refused
goroutine 1 [running]:
panic(0xa948c0, 0xc82025a5d0)
/usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
connectordb/users.initDB(0xcc1730, 0x8, 0xc8200132c0, 0x4b, 0x0, 0x0)
/home/user/src/connectordb/src/connectordb/users/setup_test.go:47 +0x2e4
connectordb/users.init.1()
/home/user/src/connectordb/src/connectordb/users/setup_test.go:37 +0x5b
connectordb/users.init()
/home/user/src/connectordb/src/connectordb/users/userdb_test.go:66 +0x58d
main.init()
connectordb/users/_test/_testmain.go:214 +0x56
FAIL connectordb/users 0.014s
===================================================
Doing Stop
===================================================
time="2017-01-04T11:45:21Z" level=info msg="Stopping ConnectorDB"
Error: Could not find pid file for ConnectorDB backend. Looks like the servers are off already.
Usage:
connectordb stop [config file path or database directory] [flags]
Global Flags:
--cpuprofile string File to which a cpu profile of ConnectorDB will be written
--logfile string The file to which log output is written
-l, --loglevel string The types of messages to show (debug,info,warn,error)
time="2017-01-04T11:45:21Z" level=error msg="Could not find pid file for ConnectorDB backend. Looks like the servers are off already."
Makefile:101: recipe for target 'test' failed
make: *** [test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment