Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ./launcher rebuild discourse
- which: no docker.io in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
- Ensuring discourse docker is up to date
- Fetching origin
- Discourse Docker is up-to-date
- Stopping old container
- + /usr/bin/docker stop -t 10 discourse
- discourse
- cd /pups && git pull && /pups/bin/pups --stdin
- From https://github.com/SamSaffron/pups
- 8d972ab..7d741e1 master -> origin/master
- Updating 8d972ab..7d741e1
- Fast-forward
- README.md | 16 ++++++++++++++++
- 1 file changed, 16 insertions(+)
- I, [2015-05-28T10:34:03.372918 #48] INFO -- : Loading --stdin
- I, [2015-05-28T10:34:03.375957 #48] INFO -- : > mkdir -p /shared/postgres_run
- I, [2015-05-28T10:34:03.377588 #48] INFO -- :
- I, [2015-05-28T10:34:03.377948 #48] INFO -- : > chown postgres:postgres /shared/postgres_run
- I, [2015-05-28T10:34:03.379225 #48] INFO -- :
- I, [2015-05-28T10:34:03.379725 #48] INFO -- : > chmod 775 /shared/postgres_run
- I, [2015-05-28T10:34:03.381061 #48] INFO -- :
- I, [2015-05-28T10:34:03.381543 #48] INFO -- : > rm -fr /var/run/postgresql
- I, [2015-05-28T10:34:03.382887 #48] INFO -- :
- I, [2015-05-28T10:34:03.383380 #48] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
- I, [2015-05-28T10:34:03.384758 #48] INFO -- :
- I, [2015-05-28T10:34:03.385206 #48] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
- 2015/05/28 10:34:03 socat[56] E connect(4, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
- I, [2015-05-28T10:34:03.387421 #48] INFO -- :
- I, [2015-05-28T10:34:03.387708 #48] INFO -- : > rm -fr /shared/postgres_run/.s*
- I, [2015-05-28T10:34:03.389428 #48] INFO -- :
- I, [2015-05-28T10:34:03.389736 #48] INFO -- : > rm -fr /shared/postgres_run/*.pid
- I, [2015-05-28T10:34:03.391189 #48] INFO -- :
- I, [2015-05-28T10:34:03.391535 #48] INFO -- : > mkdir -p /shared/postgres_run/9.3-main.pg_stat_tmp
- I, [2015-05-28T10:34:03.392664 #48] INFO -- :
- I, [2015-05-28T10:34:03.392991 #48] INFO -- : > chown postgres:postgres /shared/postgres_run/9.3-main.pg_stat_tmp
- I, [2015-05-28T10:34:03.394252 #48] INFO -- :
- I, [2015-05-28T10:34:03.396879 #48] INFO -- : File > /etc/service/postgres/run chmod: +x
- I, [2015-05-28T10:34:03.399447 #48] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x
- I, [2015-05-28T10:34:03.402050 #48] INFO -- : File > /root/upgrade_postgres chmod: +x
- I, [2015-05-28T10:34:03.402906 #48] INFO -- : > chown -R root /var/lib/postgresql/9.3/main
- I, [2015-05-28T10:34:03.405810 #48] INFO -- :
- I, [2015-05-28T10:34:03.405869 #48] INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/9.3/bin/initdb -D /shared/postgres_data || exit 0
- I, [2015-05-28T10:34:03.406954 #48] INFO -- :
- I, [2015-05-28T10:34:03.406998 #48] INFO -- : > chown -R postgres:postgres /shared/postgres_data
- I, [2015-05-28T10:34:03.882268 #48] INFO -- :
- I, [2015-05-28T10:34:03.882424 #48] INFO -- : > chown -R postgres:postgres /var/run/postgresql
- I, [2015-05-28T10:34:03.884181 #48] INFO -- :
- I, [2015-05-28T10:34:03.884698 #48] INFO -- : > /root/upgrade_postgres
- I, [2015-05-28T10:34:03.887300 #48] INFO -- :
- I, [2015-05-28T10:34:03.887611 #48] INFO -- : > rm /root/upgrade_postgres
- I, [2015-05-28T10:34:03.888849 #48] INFO -- :
- I, [2015-05-28T10:34:03.888970 #48] INFO -- : Replacing data_directory = '/var/lib/postgresql/9.3/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:03.889408 #48] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:04.790641 #48] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:05.880818 #48] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:06.443334 #48] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:06.907986 #48] INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:07.455097 #48] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
- I, [2015-05-28T10:34:07.457531 #48] INFO -- :
- I, [2015-05-28T10:34:07.457710 #48] INFO -- : Replacing (?-mix:#?max_wal_senders *=.*) with max_wal_senders = $db_max_wal_senders in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:08.176993 #48] INFO -- : Replacing (?-mix:#?wal_level *=.*) with wal_level = $db_wal_level in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:09.242463 #48] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:09.938451 #48] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:10.456631 #48] INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/9.3/main/postgresql.conf
- I, [2015-05-28T10:34:12.341850 #48] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/9.3/main/pg_hba.conf
- I, [2015-05-28T10:34:12.342248 #48] INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/9.3/main/pg_hba.conf
- I, [2015-05-28T10:34:12.351432 #48] INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main
- I, [2015-05-28T10:34:12.361424 #48] INFO -- : > sleep 5
- I, [2015-05-28T10:34:17.363332 #48] INFO -- :
- I, [2015-05-28T10:34:17.363914 #48] INFO -- : > su postgres -c 'createdb discourse' || true
- 2015-05-28 10:34:18 UTC [83-1] LOG: database system was shut down at 2015-05-28 10:31:41 UTC
- 2015-05-28 10:34:18 UTC [84-1] postgres@postgres FATAL: the database system is starting up
- 2015-05-28 10:34:18 UTC [85-1] postgres@template1 FATAL: the database system is starting up
- createdb: could not connect to database template1: FATAL: the database system is starting up
- I, [2015-05-28T10:34:18.852345 #48] INFO -- :
- I, [2015-05-28T10:34:18.853083 #48] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
- 2015-05-28 10:34:18 UTC [96-1] postgres@discourse FATAL: the database system is starting up
- psql: FATAL: the database system is starting up
- I, [2015-05-28T10:34:18.882284 #48] INFO -- :
- I, [2015-05-28T10:34:18.882856 #48] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
- 2015-05-28 10:34:18 UTC [107-1] postgres@discourse FATAL: the database system is starting up
- psql: FATAL: the database system is starting up
- I, [2015-05-28T10:34:18.910570 #48] INFO -- :
- I, [2015-05-28T10:34:18.911116 #48] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
- 2015-05-28 10:34:18 UTC [118-1] postgres@discourse FATAL: the database system is starting up
- psql: FATAL: the database system is starting up
- I, [2015-05-28T10:34:18.940385 #48] INFO -- :
- I, [2015-05-28T10:34:18.940639 #48] INFO -- : Terminating async processes
- I, [2015-05-28T10:34:18.940686 #48] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main pid: 77
- 2015-05-28 10:34:18 UTC [77-1] LOG: received fast shutdown request
- 2015-05-28 10:34:19 UTC [121-1] LOG: shutting down
- 2015-05-28 10:34:24 UTC [121-2] LOG: database system is shut down
- FAILED
- --------------------
- RuntimeError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 108 exit 2>
- Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
- exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
- 87a5d6aeff98d3c44fb9b3aeed6bb2c592cdf3efcfc9462ea0f90efd44f8aa23
- FAILED TO BOOTSTRAP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement