Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.73 KB | None | 0 0
  1. ./launcher rebuild app
  2. Ensuring launcher is up to date
  3. Fetching origin
  4. Launcher is up-to-date
  5. Stopping old container
  6. + /usr/bin/docker stop -t 10 app
  7. app
  8. cd /pups && git pull && /pups/bin/pups --stdin
  9. Already up-to-date.
  10. I, [2016-06-30T08:16:40.465779 #14] INFO -- : Loading --stdin
  11. I, [2016-06-30T08:16:40.474124 #14] INFO -- : > apt-get remove -y postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5
  12. I, [2016-06-30T08:16:43.420689 #14] INFO -- : Reading package lists...
  13. Building dependency tree...
  14. Reading state information...
  15. The following packages will be REMOVED:
  16. postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5
  17. 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
  18. After this operation, 26.0 MB disk space will be freed.
  19. (Reading database ... 34207 files and directories currently installed.)
  20. Removing postgresql-contrib-9.5 (9.5.3-1.pgdg16.04+1) ...
  21. 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
  22. Removing postgresql-9.5 (9.5.3-1.pgdg16.04+1) ...
  23. invoke-rc.d: could not determine current runlevel
  24. invoke-rc.d: policy-rc.d denied execution of stop.
  25. Removing postgresql-client-9.5 (9.5.3-1.pgdg16.04+1) ...
  26. Processing triggers for postgresql-common (174.pgdg16.04+1) ...
  27. Building PostgreSQL dictionaries from installed myspell/hunspell packages...
  28. Removing obsolete dictionary files:
  29.  
  30. 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
  31. dpkg-preconfigure: unable to re-open stdin:
  32. I, [2016-06-30T08:16:56.655570 #14] INFO -- : Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
  33. Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
  34. Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
  35. Get:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease [26.5 kB]
  36. Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [303 kB]
  37. Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [157 kB]
  38. Get:7 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [141 kB]
  39. Get:8 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [34.0 kB]
  40. Get:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages [64.9 kB]
  41. Get:10 https://deb.nodesource.com/node_4.x xenial InRelease [3,914 B]
  42. Get:11 https://deb.nodesource.com/node_4.x xenial/main Sources [762 B]
  43. Get:12 https://deb.nodesource.com/node_4.x xenial/main amd64 Packages [961 B]
  44. Fetched 921 kB in 1s (599 kB/s)
  45. Reading package lists...
  46. Reading package lists...
  47. Building dependency tree...
  48. Reading state information...
  49. The following additional packages will be installed:
  50. libossp-uuid16
  51. Suggested packages:
  52. uuid locales-all postgresql-doc-9.3 libdbd-pg-perl
  53. The following NEW packages will be installed:
  54. libossp-uuid16 postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3
  55. 0 upgraded, 4 newly installed, 0 to remove and 26 not upgraded.
  56. Need to get 4,990 kB of archives.
  57. After this operation, 23.9 MB of additional disk space will be used.
  58. Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libossp-uuid16 amd64 1.6.2-1.5build2 [28.6 kB]
  59. 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]
  60. 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]
  61. 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]
  62. Fetched 4,990 kB in 1s (3,249 kB/s)
  63. Selecting previously unselected package libossp-uuid16:amd64.
  64. (Reading database ... 33538 files and directories currently installed.)
  65. Preparing to unpack .../libossp-uuid16_1.6.2-1.5build2_amd64.deb ...
  66. Unpacking libossp-uuid16:amd64 (1.6.2-1.5build2) ...
  67. Selecting previously unselected package postgresql-client-9.3.
  68. Preparing to unpack .../postgresql-client-9.3_9.3.13-1.pgdg16.04+1_amd64.deb ...
  69. Unpacking postgresql-client-9.3 (9.3.13-1.pgdg16.04+1) ...
  70. Selecting previously unselected package postgresql-9.3.
  71. Preparing to unpack .../postgresql-9.3_9.3.13-1.pgdg16.04+1_amd64.deb ...
  72. Unpacking postgresql-9.3 (9.3.13-1.pgdg16.04+1) ...
  73. Selecting previously unselected package postgresql-contrib-9.3.
  74. Preparing to unpack .../postgresql-contrib-9.3_9.3.13-1.pgdg16.04+1_amd64.deb ...
  75. Unpacking postgresql-contrib-9.3 (9.3.13-1.pgdg16.04+1) ...
  76. Processing triggers for libc-bin (2.23-0ubuntu3) ...
  77. Processing triggers for postgresql-common (174.pgdg16.04+1) ...
  78. Building PostgreSQL dictionaries from installed myspell/hunspell packages...
  79. Removing obsolete dictionary files:
  80. Setting up libossp-uuid16:amd64 (1.6.2-1.5build2) ...
  81. Setting up postgresql-client-9.3 (9.3.13-1.pgdg16.04+1) ...
  82. 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
  83. Setting up postgresql-9.3 (9.3.13-1.pgdg16.04+1) ...
  84. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  85. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  86. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  87. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  88. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  89. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  90. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  91. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  92. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  93. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  94. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  95. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  96. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  97. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  98. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
  99. Creating new cluster 9.3/main ...
  100. config /etc/postgresql/9.3/main
  101. data /var/lib/postgresql/9.3/main
  102. locale C
  103. socket /var/run/postgresql
  104. port 5432
  105. 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
  106. invoke-rc.d: could not determine current runlevel
  107. invoke-rc.d: policy-rc.d denied execution of start.
  108. Setting up postgresql-contrib-9.3 (9.3.13-1.pgdg16.04+1) ...
  109. Processing triggers for libc-bin (2.23-0ubuntu3) ...
  110.  
  111. I, [2016-06-30T08:16:56.657961 #14] INFO -- : > /etc/init.d/postgresql stop
  112. I, [2016-06-30T08:16:56.881087 #14] INFO -- : * Stopping PostgreSQL 9.3 database server
  113. ...done.
  114.  
  115. I, [2016-06-30T08:16:56.881717 #14] INFO -- : > mkdir -p /shared/postgres_run
  116. I, [2016-06-30T08:16:56.885520 #14] INFO -- :
  117. I, [2016-06-30T08:16:56.886602 #14] INFO -- : > chown postgres:postgres /shared/postgres_run
  118. I, [2016-06-30T08:16:56.890742 #14] INFO -- :
  119. I, [2016-06-30T08:16:56.891356 #14] INFO -- : > chmod 775 /shared/postgres_run
  120. I, [2016-06-30T08:16:56.894259 #14] INFO -- :
  121. I, [2016-06-30T08:16:56.894854 #14] INFO -- : > rm -fr /var/run/postgresql
  122. I, [2016-06-30T08:16:56.897931 #14] INFO -- :
  123. I, [2016-06-30T08:16:56.898481 #14] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
  124. I, [2016-06-30T08:16:56.901847 #14] INFO -- :
  125. 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
  126. 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
  127. I, [2016-06-30T08:16:56.959870 #14] INFO -- :
  128. I, [2016-06-30T08:16:56.960591 #14] INFO -- : > rm -fr /shared/postgres_run/.s*
  129. I, [2016-06-30T08:16:56.966061 #14] INFO -- :
  130. I, [2016-06-30T08:16:56.966810 #14] INFO -- : > rm -fr /shared/postgres_run/*.pid
  131. I, [2016-06-30T08:16:56.972612 #14] INFO -- :
  132. I, [2016-06-30T08:16:56.973808 #14] INFO -- : > mkdir -p /shared/postgres_run/9.3-main.pg_stat_tmp
  133. I, [2016-06-30T08:16:56.977875 #14] INFO -- :
  134. I, [2016-06-30T08:16:56.978806 #14] INFO -- : > chown postgres:postgres /shared/postgres_run/9.3-main.pg_stat_tmp
  135. I, [2016-06-30T08:16:56.983645 #14] INFO -- :
  136. I, [2016-06-30T08:16:56.986071 #14] INFO -- : Replacing (?-mix:port =.*) with port = 5432 in /etc/postgresql/9.3/main/postgresql.conf
  137. I, [2016-06-30T08:16:56.995381 #14] INFO -- : File > /etc/service/postgres/run chmod: +x
  138. I, [2016-06-30T08:16:57.003450 #14] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x
  139. I, [2016-06-30T08:16:57.004969 #14] INFO -- : > chown -R root /var/lib/postgresql/9.3/main
  140. I, [2016-06-30T08:16:57.024264 #14] INFO -- :
  141. 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
  142. I, [2016-06-30T08:16:57.028708 #14] INFO -- :
  143. I, [2016-06-30T08:16:57.029394 #14] INFO -- : > chown -R postgres:postgres /shared/postgres_data
  144. I, [2016-06-30T08:16:57.093063 #14] INFO -- :
  145. I, [2016-06-30T08:16:57.093762 #14] INFO -- : > chown -R postgres:postgres /var/run/postgresql
  146. I, [2016-06-30T08:16:57.096302 #14] INFO -- :
  147. 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
  148. I, [2016-06-30T08:16:57.097550 #14] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/9.3/main/postgresql.conf
  149. 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
  150. 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
  151. 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
  152. 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
  153. I, [2016-06-30T08:16:57.103007 #14] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
  154. I, [2016-06-30T08:16:57.108248 #14] INFO -- :
  155. 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
  156. 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
  157. 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
  158. 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
  159. 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
  160. 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
  161. 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
  162. 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
  163. I, [2016-06-30T08:16:57.125327 #14] INFO -- : > sleep 5
  164. 2016-06-30 08:16:57 UTC [1481-1] FATAL: database files are incompatible with server
  165. 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.
  166. I, [2016-06-30T08:17:02.127979 #14] INFO -- :
  167. I, [2016-06-30T08:17:02.129747 #14] INFO -- : > su postgres -c 'createdb discourse' || true
  168. createdb: could not connect to database template1: could not connect to server: No such file or directory
  169. Is the server running locally and accepting
  170. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  171. I, [2016-06-30T08:17:02.337945 #14] INFO -- :
  172. I, [2016-06-30T08:17:02.340142 #14] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
  173. psql: could not connect to server: No such file or directory
  174. Is the server running locally and accepting
  175. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  176. I, [2016-06-30T08:17:02.472451 #14] INFO -- :
  177. I, [2016-06-30T08:17:02.472725 #14] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
  178. psql: could not connect to server: No such file or directory
  179. Is the server running locally and accepting
  180. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  181. I, [2016-06-30T08:17:02.577930 #14] INFO -- :
  182. I, [2016-06-30T08:17:02.578303 #14] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
  183. psql: could not connect to server: No such file or directory
  184. Is the server running locally and accepting
  185. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  186. I, [2016-06-30T08:17:02.668653 #14] INFO -- :
  187. I, [2016-06-30T08:17:02.669253 #14] INFO -- : Terminating async processes
  188.  
  189.  
  190. FAILED
  191. --------------------
  192. Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 1507 exit 2>
  193. Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
  194. exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
  195. 02c45bf74b100b0c75533cbd637cfb592d3822696261414084c428adb18c5157
  196. ** 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