FAILED Error after update


(Алексей Копаев) #1

After you try to update, you receive this error. How do I return the discourse?

root@root:~# cd /var/discourse
root@root:/var/discourse# git pull
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 25 (delta 15), reused 21 (delta 11), pack-reused 0
Unpacking objects: 100% (25/25), done.
From https://github.com/discourse/discourse_docker
   cf18ecc..e7696e0  master     -> origin/master
   02e0cf8..44fbae4  auto       -> origin/auto
Updating cf18ecc..e7696e0
Fast-forward
 image/auto_build.rb             | 45 +++++++++++++++++++++++++++++++++++++++++
 image/base/Dockerfile           | 20 +++++++++++++++---
 image/base/install-imagemagick  |  2 +-
 image/discourse/Dockerfile      | 18 -----------------
 image/discourse_dev/Dockerfile  | 10 ++++-----
 image/discourse_test/Dockerfile |  4 ++--
 launcher                        |  2 +-
 7 files changed, 70 insertions(+), 31 deletions(-)
 create mode 100644 image/auto_build.rb
 delete mode 100644 image/discourse/Dockerfile
root@root:/var/discourse# ./launcher rebuild app

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

Unable to find image 'discourse/base:2.0.20170531' locally
2.0.20170531: Pulling from discourse/base
62ede6aff2e8: Pulling fs layer
fc19d60a83f1: Pulling fs layer
de413bb911fd: Pulling fs layer
2879a7ad3144: Pulling fs layer
668604fde02e: Pulling fs layer
a33b406cce2c: Pulling fs layer
2879a7ad3144: Waiting
668604fde02e: Waiting
a33b406cce2c: Waiting
de413bb911fd: Verifying Checksum
de413bb911fd: Download complete
fc19d60a83f1: Verifying Checksum
fc19d60a83f1: Download complete
668604fde02e: Verifying Checksum
668604fde02e: Download complete
2879a7ad3144: Verifying Checksum
2879a7ad3144: Download complete
62ede6aff2e8: Verifying Checksum
62ede6aff2e8: Download complete
62ede6aff2e8: Pull complete
fc19d60a83f1: Pull complete
de413bb911fd: Pull complete
2879a7ad3144: Pull complete
668604fde02e: Pull complete
a33b406cce2c: Verifying Checksum
a33b406cce2c: Download complete
a33b406cce2c: Pull complete
Digest: sha256:c822d41adc6c48f73734aab5d79250f5f2afc0024e9ebaab955acb7175c7187a
Status: Downloaded newer image for discourse/base:2.0.20170531
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, [2017-06-02T14:14:40.416247 #13]  INFO -- : Loading --stdin
I, [2017-06-02T14:14:40.427866 #13]  INFO -- : > mkdir -p /shared/postgres_run
I, [2017-06-02T14:14:40.433615 #13]  INFO -- : 
I, [2017-06-02T14:14:40.434794 #13]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2017-06-02T14:14:40.439479 #13]  INFO -- : 
I, [2017-06-02T14:14:40.440463 #13]  INFO -- : > chmod 775 /shared/postgres_run
I, [2017-06-02T14:14:40.448115 #13]  INFO -- : 
I, [2017-06-02T14:14:40.449277 #13]  INFO -- : > rm -fr /var/run/postgresql
I, [2017-06-02T14:14:40.453595 #13]  INFO -- : 
I, [2017-06-02T14:14:40.454581 #13]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2017-06-02T14:14:40.457042 #13]  INFO -- : 
I, [2017-06-02T14:14:40.457609 #13]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2017/06/02 14:14:40 socat[21] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2017-06-02T14:14:40.466807 #13]  INFO -- : 
I, [2017-06-02T14:14:40.467579 #13]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2017-06-02T14:14:40.471326 #13]  INFO -- : 
I, [2017-06-02T14:14:40.472127 #13]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2017-06-02T14:14:40.475349 #13]  INFO -- : 
I, [2017-06-02T14:14:40.476187 #13]  INFO -- : > mkdir -p /shared/postgres_run/9.5-main.pg_stat_tmp
I, [2017-06-02T14:14:40.478785 #13]  INFO -- : 
I, [2017-06-02T14:14:40.479485 #13]  INFO -- : > chown postgres:postgres /shared/postgres_run/9.5-main.pg_stat_tmp
I, [2017-06-02T14:14:40.482064 #13]  INFO -- : 
I, [2017-06-02T14:14:40.486848 #13]  INFO -- : File > /etc/service/postgres/run  chmod: +x
I, [2017-06-02T14:14:40.492333 #13]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x
I, [2017-06-02T14:14:40.496764 #13]  INFO -- : File > /root/upgrade_postgres  chmod: +x
I, [2017-06-02T14:14:40.497763 #13]  INFO -- : > chown -R root /var/lib/postgresql/9.5/main
I, [2017-06-02T14:14:40.803708 #13]  INFO -- : 
I, [2017-06-02T14:14:40.804109 #13]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/9.5/bin/initdb -D /shared/postgres_data || exit 0
I, [2017-06-02T14:14:40.807044 #13]  INFO -- : 
I, [2017-06-02T14:14:40.807826 #13]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2017-06-02T14:14:40.859662 #13]  INFO -- : 
I, [2017-06-02T14:14:40.860649 #13]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2017-06-02T14:14:40.863529 #13]  INFO -- : 
I, [2017-06-02T14:14:40.864191 #13]  INFO -- : > /root/upgrade_postgres
I, [2017-06-02T14:14:40.875399 #13]  INFO -- : 
I, [2017-06-02T14:14:40.876499 #13]  INFO -- : > rm /root/upgrade_postgres
I, [2017-06-02T14:14:40.879501 #13]  INFO -- : 
I, [2017-06-02T14:14:40.880855 #13]  INFO -- : Replacing data_directory = '/var/lib/postgresql/9.5/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.881787 #13]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.884178 #13]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.892068 #13]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.903854 #13]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.905011 #13]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.918852 #13]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2017-06-02T14:14:40.923922 #13]  INFO -- : 
I, [2017-06-02T14:14:40.924851 #13]  INFO -- : Replacing (?-mix:#?max_wal_senders *=.*) with max_wal_senders = $db_max_wal_senders in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.925595 #13]  INFO -- : Replacing (?-mix:#?wal_level *=.*) with wal_level = $db_wal_level in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.930936 #13]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.940961 #13]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.942188 #13]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/9.5/main/postgresql.conf
I, [2017-06-02T14:14:40.948957 #13]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/9.5/main/pg_hba.conf
I, [2017-06-02T14:14:40.949968 #13]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/9.5/main/pg_hba.conf
I, [2017-06-02T14:14:40.950913 #13]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.5/bin/postmaster -D /etc/postgresql/9.5/main
I, [2017-06-02T14:14:40.952832 #13]  INFO -- : > sleep 5
2017-06-02 14:14:41.085 UTC [45] LOG:  database system was shut down at 2017-06-02 14:14:26 UTC
2017-06-02 14:14:41.110 UTC [45] LOG:  MultiXact member wraparound protections are now enabled
2017-06-02 14:14:41.115 UTC [42] LOG:  database system is ready to accept connections
2017-06-02 14:14:41.116 UTC [49] LOG:  autovacuum launcher started
I, [2017-06-02T14:14:45.958077 #13]  INFO -- : 
I, [2017-06-02T14:14:45.960145 #13]  INFO -- : > su postgres -c 'createdb discourse' || true
2017-06-02 14:14:46.181 UTC [54] postgres@postgres ERROR:  database "discourse" already exists
2017-06-02 14:14:46.181 UTC [54] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: database creation failed: ERROR:  database "discourse" already exists
I, [2017-06-02T14:14:46.184976 #13]  INFO -- : 
I, [2017-06-02T14:14:46.185808 #13]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2017-06-02 14:14:46.302 UTC [65] postgres@discourse ERROR:  role "discourse" already exists
2017-06-02 14:14:46.302 UTC [65] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2017-06-02T14:14:46.305288 #13]  INFO -- : 
I, [2017-06-02T14:14:46.305953 #13]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2017-06-02T14:14:46.423211 #13]  INFO -- : GRANT

I, [2017-06-02T14:14:46.424216 #13]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2017-06-02T14:14:46.525455 #13]  INFO -- : ALTER SCHEMA

I, [2017-06-02T14:14:46.526534 #13]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2017-06-02T14:14:46.727490 #13]  INFO -- : CREATE EXTENSION

I, [2017-06-02T14:14:46.728518 #13]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2017-06-02T14:14:46.838546 #13]  INFO -- : CREATE EXTENSION

I, [2017-06-02T14:14:46.839755 #13]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2017-06-02T14:14:46.940772 #13]  INFO -- : CREATE EXTENSION

I, [2017-06-02T14:14:46.941489 #13]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2017-06-02T14:14:47.033720 #13]  INFO -- : CREATE EXTENSION

I, [2017-06-02T14:14:47.034467 #13]  INFO -- : > sudo -u postgres psql discourse
I, [2017-06-02T14:14:47.038455 #13]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2017-06-02T14:14:47.188819 #13]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x
I, [2017-06-02T14:14:47.194192 #13]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod: 
I, [2017-06-02T14:14:47.195297 #13]  INFO -- : > echo postgres installed!
I, [2017-06-02T14:14:47.198582 #13]  INFO -- : postgres installed!

I, [2017-06-02T14:14:47.206047 #13]  INFO -- : File > /etc/service/redis/run  chmod: +x
I, [2017-06-02T14:14:47.211732 #13]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x
I, [2017-06-02T14:14:47.212855 #13]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.213839 #13]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.215004 #13]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2017-06-02T14:14:47.218558 #13]  INFO -- : 
I, [2017-06-02T14:14:47.219611 #13]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.225897 #13]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.236317 #13]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2017-06-02T14:14:47.247245 #13]  INFO -- : > echo redis installed
I, [2017-06-02T14:14:47.251367 #13]  INFO -- : redis installed

I, [2017-06-02T14:14:47.252498 #13]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2017-06-02T14:14:47.258980 #13]  INFO -- : logfile ""

I, [2017-06-02T14:14:47.260181 #13]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2017-06-02T14:14:47.262589 #13]  INFO -- : > sleep 10
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 3.0.6 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 155
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

155:M 02 Jun 14:14:47.301 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
155:M 02 Jun 14:14:47.301 # Server started, Redis version 3.0.6
155:M 02 Jun 14:14:47.301 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
155:M 02 Jun 14:14:47.302 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
155:M 02 Jun 14:14:47.492 * DB loaded from disk: 0.190 seconds
155:M 02 Jun 14:14:47.492 * The server is now ready to accept connections on port 6379
I, [2017-06-02T14:14:57.268838 #13]  INFO -- : 
I, [2017-06-02T14:14:57.269943 #13]  INFO -- : Replacing <policymap> with <policymap>
  <policy domain="coder" rights="none" pattern="EPHEMERAL" />
  <policy domain="coder" rights="none" pattern="URL" />
  <policy domain="coder" rights="none" pattern="HTTPS" />
  <policy domain="coder" rights="none" pattern="MVG" />
  <policy domain="coder" rights="none" pattern="MSL" />
  <policy domain="coder" rights="none" pattern="TEXT" />
  <policy domain="coder" rights="none" pattern="SHOW" />
  <policy domain="coder" rights="none" pattern="WIN" />
  <policy domain="coder" rights="none" pattern="PLT" />
 in /usr/local/etc/ImageMagick-6/policy.xml
I, [2017-06-02T14:14:57.271232 #13]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2017-06-02T14:14:57.350554 #13]  INFO -- : 
I, [2017-06-02T14:14:57.351338 #13]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2017-06-02T14:14:57.436687 #13]  INFO -- : 
I, [2017-06-02T14:14:57.437527 #13]  INFO -- : > chown -R discourse /home/discourse
I, [2017-06-02T14:14:57.442034 #13]  INFO -- : 
I, [2017-06-02T14:14:57.442962 #13]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2017-06-02T14:14:57.445181 #13]  INFO -- : 
I, [2017-06-02T14:14:57.447928 #13]  INFO -- : File > /etc/cron.d/anacron  chmod: 
I, [2017-06-02T14:14:57.452176 #13]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x
I, [2017-06-02T14:14:57.456553 #13]  INFO -- : File > /etc/runit/1.d/enable-brotli  chmod: +x
I, [2017-06-02T14:14:57.460552 #13]  INFO -- : File > /etc/service/unicorn/run  chmod: +x
I, [2017-06-02T14:14:57.464545 #13]  INFO -- : File > /etc/service/nginx/run  chmod: +x
I, [2017-06-02T14:14:57.468762 #13]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x
I, [2017-06-02T14:14:57.473191 #13]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x
I, [2017-06-02T14:14:57.473983 #13]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2017-06-02T14:14:57.474729 #13]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2017-06-02T14:14:57.477060 #13]  INFO -- : > cd /var/www/discourse && git reset --hard
181:M 02 Jun 14:14:57.487 # Creating Server TCP listening socket *:6379: bind: Address already in use
Checking out files: 100% (11214/11214), done.
I, [2017-06-02T14:15:01.727871 #13]  INFO -- : HEAD is now at 82ed514 Version bump to v1.9.0.beta1

I, [2017-06-02T14:15:01.735526 #13]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2017-06-02T14:15:01.860534 #13]  INFO -- : 
I, [2017-06-02T14:15:01.861501 #13]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2017-06-02T14:15:01.867137 #13]  INFO -- : 
I, [2017-06-02T14:15:01.867617 #13]  INFO -- : > cd /var/www/discourse && git pull
From https://github.com/discourse/discourse
   82ed514..ceedec8  master     -> origin/master
   7ae8733..0eaa6de  beta       -> origin/beta
   d6ec9b3..d46f98a  stable     -> origin/stable
   82ed514..af3dc4e  tests-passed -> origin/tests-passed
I, [2017-06-02T14:15:07.130160 #13]  INFO -- : Updating 82ed514..ceedec8
Fast-forward
 Gemfile.lock                                       |   4 +-
 .../components/group-membership-button.js.es6      |  16 +++
 .../controllers/preferences/categories.js.es6      |   5 +
 .../components/group-membership-button.hbs         |   4 +-
 .../discourse/templates/preferences/categories.hbs |   4 +
 app/controllers/users_email_controller.rb          |   1 -
 app/models/group.rb                                |   5 +
 app/models/post_mover.rb                           |  27 +++--
 app/models/user.rb                                 |   8 ++
 config/locales/client.en.yml                       |   6 +-
 config/locales/server.en.yml                       |   2 +-
 config/site_settings.yml                           |   1 +
 lib/current_user.rb                                |   1 +
 lib/discourse_event.rb                             |   2 +-
 lib/search.rb                                      |   4 +-
 lib/upload_creator.rb                              |  12 ++-
 lib/wizard/builder.rb                              |   2 +-
 .../config/locales/server.de.yml                   |  38 +++----
 .../config/locales/server.en.yml                   |  40 ++++----
 .../config/locales/server.es.yml                   |  38 +++----
 .../config/locales/server.fi.yml                   |  40 ++++----
 .../config/locales/server.id.yml                   |  40 ++++----
 .../config/locales/server.it.yml                   |  38 +++----
 .../config/locales/server.zh_CN.yml                |  36 +++----
 .../advanced_user_narrative.rb                     |  54 +++++-----
 .../lib/discourse_narrative_bot/base.rb            |  15 ++-
 .../certificate_generator.rb                       |   2 +-
 .../discourse_narrative_bot/new_user_narrative.rb  |  85 +++++++++-------
 plugins/discourse-narrative-bot/plugin.rb          |  30 ++++--
 .../advanced_user_narrative_spec.rb                |  65 ++++++------
 .../new_user_narrative_spec.rb                     | 113 ++++++++++++---------
 .../spec/integration/discobot_welcome_post_spec.rb |  67 ++++++++++++
 plugins/discourse-narrative-bot/spec/user_spec.rb  |  24 +----
 spec/components/post_creator_spec.rb               |  23 +++--
 spec/controllers/invites_controller_spec.rb        |  19 +++-
 spec/controllers/session_controller_spec.rb        |  17 +++-
 spec/controllers/user_badges_controller_spec.rb    |  15 ++-
 spec/controllers/users_controller_spec.rb          |  47 ++++++---
 spec/controllers/users_email_controller_spec.rb    |   8 +-
 spec/integration/omniauth_callbacks_spec.rb        |   8 +-
 spec/models/group_spec.rb                          |  17 ++++
 spec/models/post_mover_spec.rb                     |  43 ++++++--
 spec/models/user_spec.rb                           |  12 ++-
 spec/support/discourse_event_helper.rb             |  18 ++++
 44 files changed, 664 insertions(+), 392 deletions(-)
 create mode 100644 plugins/discourse-narrative-bot/spec/integration/discobot_welcome_post_spec.rb
 create mode 100644 spec/support/discourse_event_helper.rb

I, [2017-06-02T14:15:07.131452 #13]  INFO -- : > cd /var/www/discourse && git fetch origin tests-passed
From https://github.com/discourse/discourse
 * branch            tests-passed -> FETCH_HEAD
I, [2017-06-02T14:15:09.015488 #13]  INFO -- : 
I, [2017-06-02T14:15:09.016574 #13]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2017-06-02T14:15:09.349961 #13]  INFO -- : Branch tests-passed set up to track remote branch tests-passed from origin.

I, [2017-06-02T14:15:09.350352 #13]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2017-06-02T14:15:09.405226 #13]  INFO -- : 
I, [2017-06-02T14:15:09.405715 #13]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2017-06-02T14:15:09.413120 #13]  INFO -- : 
I, [2017-06-02T14:15:09.414391 #13]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2017-06-02T14:15:09.479237 #13]  INFO -- : 
I, [2017-06-02T14:15:09.480039 #13]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2017-06-02T14:15:09.483498 #13]  INFO -- : 
I, [2017-06-02T14:15:09.483729 #13]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log"
I, [2017-06-02T14:15:09.488899 #13]  INFO -- : 
I, [2017-06-02T14:15:09.489162 #13]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log /var/www/discourse/log"
I, [2017-06-02T14:15:09.494726 #13]  INFO -- : 
I, [2017-06-02T14:15:09.495163 #13]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2017-06-02T14:15:09.501572 #13]  INFO -- : 
I, [2017-06-02T14:15:09.502630 #13]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2017-06-02T14:15:09.510414 #13]  INFO -- : 
I, [2017-06-02T14:15:09.510928 #13]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups
I, [2017-06-02T14:15:09.881967 #13]  INFO -- : 
I, [2017-06-02T14:15:09.882924 #13]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2017-06-02T14:15:09.887624 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2017-06-02T14:15:12.116956 #13]  INFO -- : 
I, [2017-06-02T14:15:12.117376 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/onebox.git
Cloning into 'onebox'...
I, [2017-06-02T14:15:14.669870 #13]  INFO -- : 
I, [2017-06-02T14:15:14.670751 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2017-06-02T14:15:16.444680 #13]  INFO -- : 
I, [2017-06-02T14:15:16.445101 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/wp-discourse.git
Cloning into 'wp-discourse'...
I, [2017-06-02T14:15:18.958166 #13]  INFO -- : 
I, [2017-06-02T14:15:18.958670 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-push-notifications.git
Cloning into 'discourse-push-notifications'...
I, [2017-06-02T14:15:20.189656 #13]  INFO -- : 
I, [2017-06-02T14:15:20.190218 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-adplugin.git
Cloning into 'discourse-adplugin'...
I, [2017-06-02T14:15:21.857422 #13]  INFO -- : 
I, [2017-06-02T14:15:21.858260 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-translator.git
Cloning into 'discourse-translator'...
I, [2017-06-02T14:15:24.388156 #13]  INFO -- : 
I, [2017-06-02T14:15:24.388832 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-cakeday.git
Cloning into 'discourse-cakeday'...
I, [2017-06-02T14:15:26.051035 #13]  INFO -- : 
I, [2017-06-02T14:15:26.051732 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-spoiler-alert.git
Cloning into 'discourse-spoiler-alert'...
I, [2017-06-02T14:15:27.346818 #13]  INFO -- : 
I, [2017-06-02T14:15:27.348074 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-canned-replies.git
Cloning into 'discourse-canned-replies'...
I, [2017-06-02T14:15:29.323406 #13]  INFO -- : 
I, [2017-06-02T14:15:29.324879 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-presence.git
Cloning into 'discourse-presence'...
I, [2017-06-02T14:15:30.646615 #13]  INFO -- : 
I, [2017-06-02T14:15:30.647196 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/stereobooster/discourse-vk-login.git
Cloning into 'discourse-vk-login'...
I, [2017-06-02T14:15:31.872773 #13]  INFO -- : 
I, [2017-06-02T14:15:31.873896 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discoursehosting/discourse-sitemap.git
Cloning into 'discourse-sitemap'...
I, [2017-06-02T14:15:33.361465 #13]  INFO -- : 
I, [2017-06-02T14:15:33.361828 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/xfalcox/discourse-backups-to-dropbox.git
Cloning into 'discourse-backups-to-dropbox'...
I, [2017-06-02T14:15:34.723804 #13]  INFO -- : 
I, [2017-06-02T14:15:34.724292 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/LeoMcA/discourse-rss-poster.git
Cloning into 'discourse-rss-poster'...
I, [2017-06-02T14:15:35.945939 #13]  INFO -- : 
I, [2017-06-02T14:15:35.946792 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/iunctis/discourse-formatting-toolbar.git
Cloning into 'discourse-formatting-toolbar'...
I, [2017-06-02T14:15:37.583309 #13]  INFO -- : 
I, [2017-06-02T14:15:37.583698 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidtaylorhq/discourse-whos-online.git
Cloning into 'discourse-whos-online'...
I, [2017-06-02T14:15:38.944463 #13]  INFO -- : 
I, [2017-06-02T14:15:38.944914 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-assign.git
Cloning into 'discourse-assign'...
I, [2017-06-02T14:15:40.299655 #13]  INFO -- : 
I, [2017-06-02T14:15:40.300451 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/jgujgu/discourse-guest-gate.git
Cloning into 'discourse-guest-gate'...
I, [2017-06-02T14:15:41.760040 #13]  INFO -- : 
I, [2017-06-02T14:15:41.760421 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-feature-voting.git
Cloning into 'discourse-feature-voting'...
I, [2017-06-02T14:15:43.260507 #13]  INFO -- : 
I, [2017-06-02T14:15:43.261190 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/danskdynamit/discourse-hot-topics.git
Cloning into 'discourse-hot-topics'...
I, [2017-06-02T14:15:44.645226 #13]  INFO -- : 
I, [2017-06-02T14:15:44.645738 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/mozilla/discourse-expose-emails-in.git
Cloning into 'discourse-expose-emails-in'...
I, [2017-06-02T14:15:45.873503 #13]  INFO -- : 
I, [2017-06-02T14:15:45.874023 #13]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidtaylorhq/discourse-telegram-notifications.git
Cloning into 'discourse-telegram-notifications'...
I, [2017-06-02T14:15:47.112390 #13]  INFO -- : 
I, [2017-06-02T14:15:47.113456 #13]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2017-06-02T14:15:47.117816 #13]  INFO -- : 
I, [2017-06-02T14:15:47.118478 #13]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2017-06-02T14:15:47.120689 #13]  INFO -- : 
I, [2017-06-02T14:15:47.121188 #13]  INFO -- : > mkdir -p /var/nginx/cache
I, [2017-06-02T14:15:47.123512 #13]  INFO -- : 
I, [2017-06-02T14:15:47.124272 #13]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2017-06-02T14:15:47.125073 #13]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2017-06-02T14:15:47.125801 #13]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2017-06-02T14:15:47.132028 #13]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2017-06-02T14:15:47.140068 #13]  INFO -- : > echo "done configuring web"
I, [2017-06-02T14:15:47.142690 #13]  INFO -- : done configuring web

I, [2017-06-02T14:15:47.143385 #13]  INFO -- : > cd /var/www/discourse && gem update bundler
I, [2017-06-02T14:15:54.969388 #13]  INFO -- : Updating installed gems
Updating bundler
Successfully installed bundler-1.15.1
Gems updated: bundler

I, [2017-06-02T14:15:54.969906 #13]  INFO -- : > cd /var/www/discourse && chown -R discourse /var/www/discourse
I, [2017-06-02T14:16:13.957106 #13]  INFO -- : 
I, [2017-06-02T14:16:13.958899 #13]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development'
I, [2017-06-02T14:16:14.470381 #13]  INFO -- : Running `bundle install --deployment --verbose --without "development"` with bundler 1.15.1
There was an error while trying to write to `/var/www/discourse/.bundle/config`.
There was insufficient space remaining on the device.

I, [2017-06-02T14:16:14.471573 #13]  INFO -- : Terminating async processes
I, [2017-06-02T14:16:14.471764 #13]  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.5/bin/postmaster -D /etc/postgresql/9.5/main pid: 42
I, [2017-06-02T14:16:14.472376 #13]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 155
155:signal-handler (1496412974) Received SIGTERM scheduling shutdown...
2017-06-02 14:16:14.472 UTC [42] LOG:  received fast shutdown request
2017-06-02 14:16:14.474 UTC [42] LOG:  aborting any active transactions
2017-06-02 14:16:14.474 UTC [49] LOG:  autovacuum launcher shutting down
2017-06-02 14:16:14.478 UTC [46] LOG:  shutting down
155:M 02 Jun 14:16:14.549 # User requested shutdown...
155:M 02 Jun 14:16:14.549 * Saving the final RDB snapshot before exiting.
155:M 02 Jun 14:16:14.551 # Write error saving DB on disk: No space left on device
155:M 02 Jun 14:16:14.552 # Error trying to save the DB, can't exit.
155:M 02 Jun 14:16:14.552 # SIGTERM received but errors trying to shut down the server, check the logs for more information
2017-06-02 14:16:14.604 UTC [46] LOG:  database system is shut down
2017-06-02 14:16:14.607 UTC [50] LOG:  could not write temporary statistics file "pg_stat/db_16384.tmp": No space left on device
2017-06-02 14:16:14.607 UTC [50] LOG:  could not close temporary statistics file "pg_stat/db_1.tmp": No space left on device
2017-06-02 14:16:14.608 UTC [50] LOG:  could not close temporary statistics file "pg_stat/db_12413.tmp": No space left on device
2017-06-02 14:16:14.608 UTC [50] LOG:  could not close temporary statistics file "pg_stat/db_0.tmp": No space left on device
2017-06-02 14:16:14.609 UTC [50] LOG:  could not close temporary statistics file "pg_stat/global.tmp": No space left on device
I, [2017-06-02T14:16:24.480054 #13]  INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid:155 did not terminate cleanly, forcing termination!


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development' failed with return #<Process::Status: pid 446 exit 31>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
4c921cd3a8d012120c29917150f867105d2a133db6152a22248a9d6445de2550
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
root@root:/var/discourse#

(Sam Saffron) #2

My guess is that you have a write error on the disk cause no free space is left. Just guessing :stuck_out_tongue_closed_eyes:

./launcher cleanup

(Алексей Копаев) #3

Thank you! Has helped :grinning: