Advertisement
Guest User

Untitled

a guest
Jul 25th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.18 KB | None | 0 0
  1. root@discourser:/var/discourse# ./launcher rebuild app
  2. Ensuring launcher is up to date
  3. Fetching origin
  4. Launcher is up-to-date
  5. cd /pups && git pull && /pups/bin/pups --stdin
  6. Already up to date.
  7. I, [2020-07-25T11:03:15.476650 #1] INFO -- : Loading --stdin
  8. I, [2020-07-25T11:03:15.483045 #1] INFO -- : > locale-gen $LANG && update-locale
  9. I, [2020-07-25T11:03:15.523450 #1] INFO -- : Generating locales (this might take a while)...
  10. Generation complete.
  11.  
  12. I, [2020-07-25T11:03:15.524061 #1] INFO -- : > mkdir -p /shared/postgres_run
  13. I, [2020-07-25T11:03:15.527036 #1] INFO -- :
  14. I, [2020-07-25T11:03:15.527652 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
  15. I, [2020-07-25T11:03:15.529784 #1] INFO -- :
  16. I, [2020-07-25T11:03:15.530200 #1] INFO -- : > chmod 775 /shared/postgres_run
  17. I, [2020-07-25T11:03:15.532470 #1] INFO -- :
  18. I, [2020-07-25T11:03:15.533004 #1] INFO -- : > rm -fr /var/run/postgresql
  19. I, [2020-07-25T11:03:15.535150 #1] INFO -- :
  20. I, [2020-07-25T11:03:15.535651 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
  21. I, [2020-07-25T11:03:15.537942 #1] INFO -- :
  22. I, [2020-07-25T11:03:15.538445 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
  23. 2020/07/25 11:03:15 socat[26] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
  24. I, [2020-07-25T11:03:15.544583 #1] INFO -- :
  25. I, [2020-07-25T11:03:15.544872 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
  26. I, [2020-07-25T11:03:15.547292 #1] INFO -- :
  27. I, [2020-07-25T11:03:15.547598 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
  28. I, [2020-07-25T11:03:15.550130 #1] INFO -- :
  29. I, [2020-07-25T11:03:15.550439 #1] INFO -- : > mkdir -p /shared/postgres_run/12-main.pg_stat_tmp
  30. I, [2020-07-25T11:03:15.552506 #1] INFO -- :
  31. I, [2020-07-25T11:03:15.553046 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/12-main.pg_stat_tmp
  32. I, [2020-07-25T11:03:15.554926 #1] INFO -- :
  33. I, [2020-07-25T11:03:15.559829 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
  34. I, [2020-07-25T11:03:15.563673 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
  35. I, [2020-07-25T11:03:15.567540 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
  36. I, [2020-07-25T11:03:15.571523 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
  37. I, [2020-07-25T11:03:15.572033 #1] INFO -- : > chown -R root /var/lib/postgresql/12/main
  38. I, [2020-07-25T11:03:22.471530 #1] INFO -- :
  39. I, [2020-07-25T11:03:22.471843 #1] INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/12/bin/initdb -D /shared/postgres_data || exit 0
  40. I, [2020-07-25T11:03:22.474263 #1] INFO -- :
  41. I, [2020-07-25T11:03:22.474410 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
  42. I, [2020-07-25T11:03:22.504273 #1] INFO -- :
  43. I, [2020-07-25T11:03:22.504767 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
  44. I, [2020-07-25T11:03:22.506950 #1] INFO -- :
  45. I, [2020-07-25T11:03:22.507508 #1] INFO -- : > /root/upgrade_postgres
  46. I, [2020-07-25T11:03:22.514990 #1] INFO -- :
  47. I, [2020-07-25T11:03:22.515320 #1] INFO -- : > rm /root/upgrade_postgres
  48. I, [2020-07-25T11:03:22.517285 #1] INFO -- :
  49. I, [2020-07-25T11:03:22.519525 #1] INFO -- : Replacing data_directory = '/var/lib/postgresql/12/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/12/main/postgresql.conf
  50. I, [2020-07-25T11:03:22.520429 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/12/main/postgresql.conf
  51. I, [2020-07-25T11:03:22.521034 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/12/main/postgresql.conf
  52. I, [2020-07-25T11:03:22.521618 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/12/main/postgresql.conf
  53. I, [2020-07-25T11:03:22.522195 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/12/main/postgresql.conf
  54. I, [2020-07-25T11:03:22.522754 #1] INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/12/main/postgresql.conf
  55. I, [2020-07-25T11:03:22.523290 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
  56. I, [2020-07-25T11:03:22.554257 #1] INFO -- :
  57. I, [2020-07-25T11:03:22.555135 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/12/main/postgresql.conf
  58. I, [2020-07-25T11:03:22.555899 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/12/main/postgresql.conf
  59. I, [2020-07-25T11:03:22.556750 #1] INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/12/main/postgresql.conf
  60. I, [2020-07-25T11:03:22.557726 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/12/main/pg_hba.conf
  61. I, [2020-07-25T11:03:22.558441 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/12/main/pg_hba.conf
  62. I, [2020-07-25T11:03:22.559040 #1] INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/12/bin/postmaster -D /etc/postgresql/12/main
  63. I, [2020-07-25T11:03:22.560346 #1] INFO -- : > sleep 5
  64. 2020-07-25 11:03:22.911 GMT [49] LOG: 0 8kB is outside the valid range for parameter "shared_buffers" (16 .. 1073741823)
  65. 2020-07-25 11:03:22.915 UTC [49] FATAL: configuration file "/etc/postgresql/12/main/postgresql.conf" contains errors
  66. I, [2020-07-25T11:03:27.565521 #1] INFO -- :
  67. I, [2020-07-25T11:03:27.565790 #1] INFO -- : > su postgres -c 'createdb discourse' || true
  68. createdb: error: could not connect to database template1: could not connect to server: No such file or directory
  69. Is the server running locally and accepting
  70. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  71. I, [2020-07-25T11:03:27.709263 #1] INFO -- :
  72. I, [2020-07-25T11:03:27.709665 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
  73. psql: error: could not connect to server: could not connect to server: No such file or directory
  74. Is the server running locally and accepting
  75. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  76. I, [2020-07-25T11:03:27.766650 #1] INFO -- :
  77. I, [2020-07-25T11:03:27.767140 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
  78. psql: error: could not connect to server: could not connect to server: No such file or directory
  79. Is the server running locally and accepting
  80. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  81. I, [2020-07-25T11:03:27.820055 #1] INFO -- :
  82. I, [2020-07-25T11:03:27.820920 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
  83. psql: error: could not connect to server: could not connect to server: No such file or directory
  84. Is the server running locally and accepting
  85. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  86. I, [2020-07-25T11:03:27.877312 #1] INFO -- :
  87. I, [2020-07-25T11:03:27.878026 #1] INFO -- : Terminating async processes
  88.  
  89.  
  90. FAILED
  91. --------------------
  92. Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 75 exit 2>
  93. Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
  94. exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
  95. 9dd72bb57a523ffdc0730c2eba370180c55a5c27d9ca6552d6f637160a4a7572
  96. ** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
  97. ./discourse-doctor may help diagnose the problem.
  98.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement