Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./launcher rebuild app
- Ensuring launcher is up to date
- Fetching origin
- Launcher is up-to-date
- Stopping old container
- + /usr/bin/docker stop -t 10 app
- app
- cd /pups && git pull && /pups/bin/pups --stdin
- Already up-to-date.
- I, [2016-06-30T08:16:40.465779 #14] INFO -- : Loading --stdin
- I, [2016-06-30T08:16:40.474124 #14] INFO -- : > apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5
- I, [2016-06-30T08:16:43.420689 #14] INFO -- : Reading package lists...
- Building dependency tree...
- Reading state information...
- The following packages will be REMOVED:
- postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5
- 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
- After this operation, 26.0 MB disk space will be freed.
- (Reading database ... 34207 files and directories currently installed.)
- Removing postgresql-contrib-9.5 (9.5.3-1.pgdg16.04+1) ...
- update-alternatives: warning: forcing reinstallation of alternative /usr/share/postgresql/9.5/man/man1/postmaster.1.gz because link group postmaster.1.gz is broken
- Removing postgresql-9.5 (9.5.3-1.pgdg16.04+1) ...
- invoke-rc.d: could not determine current runlevel
- invoke-rc.d: policy-rc.d denied execution of stop.
- Removing postgresql-client-9.5 (9.5.3-1.pgdg16.04+1) ...
- Processing triggers for postgresql-common (174.pgdg16.04+1) ...
- Building PostgreSQL dictionaries from installed myspell/hunspell packages...
- Removing obsolete dictionary files:
- I, [2016-06-30T08:16:43.421492 #14] INFO -- : > apt-get update && apt-get install -y postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3
- dpkg-preconfigure: unable to re-open stdin:
- I, [2016-06-30T08:16:56.655570 #14] INFO -- : Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
- Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
- Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
- Get:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease [26.5 kB]
- Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [303 kB]
- Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [157 kB]
- Get:7 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [141 kB]
- Get:8 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [34.0 kB]
- Get:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages [64.9 kB]
- Get:10 https://deb.nodesource.com/node_4.x xenial InRelease [3,914 B]
- Get:11 https://deb.nodesource.com/node_4.x xenial/main Sources [762 B]
- Get:12 https://deb.nodesource.com/node_4.x xenial/main amd64 Packages [961 B]
- Fetched 921 kB in 1s (599 kB/s)
- Reading package lists...
- Reading package lists...
- Building dependency tree...
- Reading state information...
- The following additional packages will be installed:
- libossp-uuid16
- Suggested packages:
- uuid locales-all postgresql-doc-9.3 libdbd-pg-perl
- The following NEW packages will be installed:
- libossp-uuid16 postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3
- 0 upgraded, 4 newly installed, 0 to remove and 26 not upgraded.
- Need to get 4,990 kB of archives.
- After this operation, 23.9 MB of additional disk space will be used.
- Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libossp-uuid16 amd64 1.6.2-1.5build2 [28.6 kB]
- Get:2 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-client-9.3 amd64 9.3.13-1.pgdg16.04+1 [1,038 kB]
- Get:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-9.3 amd64 9.3.13-1.pgdg16.04+1 [3,515 kB]
- Get:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-contrib-9.3 amd64 9.3.13-1.pgdg16.04+1 [409 kB]
- Fetched 4,990 kB in 1s (3,249 kB/s)
- Selecting previously unselected package libossp-uuid16:amd64.
- (Reading database ... 33538 files and directories currently installed.)
- Preparing to unpack .../libossp-uuid16_1.6.2-1.5build2_amd64.deb ...
- Unpacking libossp-uuid16:amd64 (1.6.2-1.5build2) ...
- Selecting previously unselected package postgresql-client-9.3.
- Preparing to unpack .../postgresql-client-9.3_9.3.13-1.pgdg16.04+1_amd64.deb ...
- Unpacking postgresql-client-9.3 (9.3.13-1.pgdg16.04+1) ...
- Selecting previously unselected package postgresql-9.3.
- Preparing to unpack .../postgresql-9.3_9.3.13-1.pgdg16.04+1_amd64.deb ...
- Unpacking postgresql-9.3 (9.3.13-1.pgdg16.04+1) ...
- Selecting previously unselected package postgresql-contrib-9.3.
- Preparing to unpack .../postgresql-contrib-9.3_9.3.13-1.pgdg16.04+1_amd64.deb ...
- Unpacking postgresql-contrib-9.3 (9.3.13-1.pgdg16.04+1) ...
- Processing triggers for libc-bin (2.23-0ubuntu3) ...
- Processing triggers for postgresql-common (174.pgdg16.04+1) ...
- Building PostgreSQL dictionaries from installed myspell/hunspell packages...
- Removing obsolete dictionary files:
- Setting up libossp-uuid16:amd64 (1.6.2-1.5build2) ...
- Setting up postgresql-client-9.3 (9.3.13-1.pgdg16.04+1) ...
- update-alternatives: using /usr/share/postgresql/9.3/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
- Setting up postgresql-9.3 (9.3.13-1.pgdg16.04+1) ...
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
- Creating new cluster 9.3/main ...
- config /etc/postgresql/9.3/main
- data /var/lib/postgresql/9.3/main
- locale C
- socket /var/run/postgresql
- port 5432
- update-alternatives: using /usr/share/postgresql/9.3/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
- invoke-rc.d: could not determine current runlevel
- invoke-rc.d: policy-rc.d denied execution of start.
- Setting up postgresql-contrib-9.3 (9.3.13-1.pgdg16.04+1) ...
- Processing triggers for libc-bin (2.23-0ubuntu3) ...
- I, [2016-06-30T08:16:56.657961 #14] INFO -- : > /etc/init.d/postgresql stop
- I, [2016-06-30T08:16:56.881087 #14] INFO -- : * Stopping PostgreSQL 9.3 database server
- ...done.
- I, [2016-06-30T08:16:56.881717 #14] INFO -- : > mkdir -p /shared/postgres_run
- I, [2016-06-30T08:16:56.885520 #14] INFO -- :
- I, [2016-06-30T08:16:56.886602 #14] INFO -- : > chown postgres:postgres /shared/postgres_run
- I, [2016-06-30T08:16:56.890742 #14] INFO -- :
- I, [2016-06-30T08:16:56.891356 #14] INFO -- : > chmod 775 /shared/postgres_run
- I, [2016-06-30T08:16:56.894259 #14] INFO -- :
- I, [2016-06-30T08:16:56.894854 #14] INFO -- : > rm -fr /var/run/postgresql
- I, [2016-06-30T08:16:56.897931 #14] INFO -- :
- I, [2016-06-30T08:16:56.898481 #14] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
- I, [2016-06-30T08:16:56.901847 #14] INFO -- :
- I, [2016-06-30T08:16:56.902492 #14] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
- 2016/06/30 08:16:56 socat[1465] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
- I, [2016-06-30T08:16:56.959870 #14] INFO -- :
- I, [2016-06-30T08:16:56.960591 #14] INFO -- : > rm -fr /shared/postgres_run/.s*
- I, [2016-06-30T08:16:56.966061 #14] INFO -- :
- I, [2016-06-30T08:16:56.966810 #14] INFO -- : > rm -fr /shared/postgres_run/*.pid
- I, [2016-06-30T08:16:56.972612 #14] INFO -- :
- I, [2016-06-30T08:16:56.973808 #14] INFO -- : > mkdir -p /shared/postgres_run/9.3-main.pg_stat_tmp
- I, [2016-06-30T08:16:56.977875 #14] INFO -- :
- I, [2016-06-30T08:16:56.978806 #14] INFO -- : > chown postgres:postgres /shared/postgres_run/9.3-main.pg_stat_tmp
- I, [2016-06-30T08:16:56.983645 #14] INFO -- :
- I, [2016-06-30T08:16:56.986071 #14] INFO -- : Replacing (?-mix:port =.*) with port = 5432 in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:56.995381 #14] INFO -- : File > /etc/service/postgres/run chmod: +x
- I, [2016-06-30T08:16:57.003450 #14] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x
- I, [2016-06-30T08:16:57.004969 #14] INFO -- : > chown -R root /var/lib/postgresql/9.3/main
- I, [2016-06-30T08:16:57.024264 #14] INFO -- :
- I, [2016-06-30T08:16:57.025363 #14] 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, [2016-06-30T08:16:57.028708 #14] INFO -- :
- I, [2016-06-30T08:16:57.029394 #14] INFO -- : > chown -R postgres:postgres /shared/postgres_data
- I, [2016-06-30T08:16:57.093063 #14] INFO -- :
- I, [2016-06-30T08:16:57.093762 #14] INFO -- : > chown -R postgres:postgres /var/run/postgresql
- I, [2016-06-30T08:16:57.096302 #14] INFO -- :
- I, [2016-06-30T08:16:57.096753 #14] 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, [2016-06-30T08:16:57.097550 #14] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:57.098257 #14] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:57.099228 #14] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:57.100719 #14] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:57.102082 #14] 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, [2016-06-30T08:16:57.103007 #14] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
- I, [2016-06-30T08:16:57.108248 #14] INFO -- :
- I, [2016-06-30T08:16:57.109072 #14] INFO -- : Replacing (?-mix:#?max_wal_senders *=.*) with max_wal_senders = $db_max_wal_senders in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:57.110280 #14] INFO -- : Replacing (?-mix:#?wal_level *=.*) with wal_level = $db_wal_level in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:57.111226 #14] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:57.114751 #14] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/9.3/main/postgresql.conf
- I, [2016-06-30T08:16:57.115628 #14] 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, [2016-06-30T08:16:57.116673 #14] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/9.3/main/pg_hba.conf
- I, [2016-06-30T08:16:57.117816 #14] 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, [2016-06-30T08:16:57.118678 #14] 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, [2016-06-30T08:16:57.125327 #14] INFO -- : > sleep 5
- 2016-06-30 08:16:57 UTC [1481-1] FATAL: database files are incompatible with server
- 2016-06-30 08:16:57 UTC [1481-2] DETAIL: The data directory was initialized by PostgreSQL version 9.5, which is not compatible with this version 9.3.13.
- I, [2016-06-30T08:17:02.127979 #14] INFO -- :
- I, [2016-06-30T08:17:02.129747 #14] INFO -- : > su postgres -c 'createdb discourse' || true
- createdb: could not connect to database template1: could not connect to server: No such file or directory
- Is the server running locally and accepting
- connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
- I, [2016-06-30T08:17:02.337945 #14] INFO -- :
- I, [2016-06-30T08:17:02.340142 #14] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
- psql: could not connect to server: No such file or directory
- Is the server running locally and accepting
- connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
- I, [2016-06-30T08:17:02.472451 #14] INFO -- :
- I, [2016-06-30T08:17:02.472725 #14] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
- psql: could not connect to server: No such file or directory
- Is the server running locally and accepting
- connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
- I, [2016-06-30T08:17:02.577930 #14] INFO -- :
- I, [2016-06-30T08:17:02.578303 #14] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
- psql: could not connect to server: No such file or directory
- Is the server running locally and accepting
- connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
- I, [2016-06-30T08:17:02.668653 #14] INFO -- :
- I, [2016-06-30T08:17:02.669253 #14] INFO -- : Terminating async processes
- FAILED
- --------------------
- Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 1507 exit 2>
- Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
- exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
- 02c45bf74b100b0c75533cbd637cfb592d3822696261414084c428adb18c5157
- ** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement