Created
October 14, 2014 15:21
-
-
Save npf/aa9a4a424006d9ca056b to your computer and use it in GitHub Desktop.
oar-server vs postgresql race condition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server | LiIRpdGvGPH0T6T3T+c4mPmwqbIHysAjHJ2p92cCceqQUxk2ExErxMn55dt8OzsH | |
server | HAN4MRp2lpDZWHXFJcRxaA3B8QuBGhHQUfMHsMKxin1dWE/ltf22 | |
server | -----END RSA PRIVATE KEY----- | |
server | | |
server | | |
server | *** Running /var/lib/container/my_init.d/server/01_init_database.sh... | |
server | Waiting database to be available2014-10-14 15:17:37,040 CRIT Supervisor running as root (no user in config file) | |
server | 2014-10-14 15:17:37,040 WARN Included extra file "/etc/supervisor/conf.d/sshd.conf" during parsing | |
server | 2014-10-14 15:17:37,041 WARN Included extra file "/etc/supervisor/conf.d/rsyslogd.conf" during parsing | |
server | 2014-10-14 15:17:37,041 WARN Included extra file "/etc/supervisor/conf.d/oar-server.conf" during parsing | |
server | 2014-10-14 15:17:37,041 WARN Included extra file "/etc/supervisor/conf.d/postgresql.conf" during parsing | |
server | 2014-10-14 15:17:37,086 INFO RPC interface 'supervisor' initialized | |
server | 2014-10-14 15:17:37,086 WARN cElementTree not installed, using slower XML parser for XML-RPC | |
server | 2014-10-14 15:17:37,086 CRIT Server 'unix_http_server' running without any HTTP authentication checking | |
server | 2014-10-14 15:17:37,086 INFO supervisord started with pid 8 | |
server | .2014-10-14 15:17:38,088 INFO spawned: 'postgresql' with pid 44 | |
server | 2014-10-14 15:17:38,090 INFO spawned: 'rsyslogd' with pid 45 | |
server | 2014-10-14 15:17:38,091 INFO spawned: 'oar-server' with pid 46 | |
server | 2014-10-14 15:17:38,092 INFO spawned: 'sshd' with pid 47 | |
server | . | |
server | 2014-10-14 15:17:38,952 INFO exited: oar-server (exit status 2; not expected) | |
server | Creating the database user... | |
server | psql: FATAL: the database system is starting up | |
server | FATAL: the database system is starting up | |
server | Creating the database read-only user... | |
server | 2014-10-14 15:17:39,129 INFO success: postgresql entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) | |
server | 2014-10-14 15:17:39,130 INFO success: rsyslogd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) | |
server | 2014-10-14 15:17:39,130 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) | |
server | CREATE ROLE | |
server | Creating the database... | |
server | ERROR: role "oar" does not exist | |
server | ERROR: database "oar" does not exist | |
server | DBI connect('database=oar;host=server;port=5432','oar',...) failed: FATAL: password authentication failed for user "oar" | |
server | FATAL: password authentication failed for user "oar" at /usr/local/sbin/oar-database line 567 | |
server | Error: The connection to the database failed (user=oar,host=server,port=5432,database=oar). Please check if the database server is up and ready. | |
server | Please read /usr/local/share/doc/oar-database/README.database for instructions. | |
server | *** /var/lib/container/my_init.d/server/01_init_database.sh failed with status 1 | |
server | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment