Can't rebuild app 'bundle exec rake db:migrate' failed

hi.
when running command:

     ./launcher rebuild app

output error:

    I, [2018-07-26T07:19:47.246135 #15]  INFO -- : > cd /var/www/discourse && su discourse -c 
   'bundle exec rake db:migrate'
   rake aborted!
   Gem::LoadError: can't activate public_suffix-2.0.5, already activated public_suffix-3.0.2
   /var/www/discourse/lib/plugin_gem.rb:18:in `load'
   /var/www/discourse/lib/plugin/instance.rb:528:in `gem'
   /var/www/discourse/plugins/discourse-backups-to-dropbox/plugin.rb:7:in `activate!'
   /var/www/discourse/lib/plugin/instance.rb:458:in `instance_eval'
   /var/www/discourse/lib/plugin/instance.rb:458:in `activate!'
   /var/www/discourse/lib/discourse.rb:151:in `block in activate_plugins!'
   /var/www/discourse/lib/discourse.rb:148:in `each'
   /var/www/discourse/lib/discourse.rb:148:in `activate_plugins!'
   /var/www/discourse/config/application.rb:220:in `<class:Application>'
   /var/www/discourse/config/application.rb:39:in `<module:Discourse>'
   /var/www/discourse/config/application.rb:38:in `<top (required)>'
   /var/www/discourse/Rakefile:5:in `require'
   /var/www/discourse/Rakefile:5:in `<top (required)>'
   /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
   /usr/local/bin/bundle:23:in `load'
   /usr/local/bin/bundle:23:in `<main>'
   (See full trace by running task with --trace)
   I, [2018-07-26T07:19:59.271510 #15]  INFO -- : gem install public_suffix -v 2.0.5 -i 
   /var/www/discourse/plugins/discourse-backups-to-dropbox/gems/2.5.1 --no-document --ignore- 
   dependencies
   Successfully installed public_suffix-2.0.5
    1 gem installed
   I, [2018-07-26T07:19:59.271967 #15]  INFO -- : Terminating async processes
   I, [2018-07-26T07:19:59.272020 #15]  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/10/bin/postmaster -D /etc/postgresql/10/main pid: 70
I, [2018-07-26T07:19:59.272091 #15]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 186
2018-07-26 07:19:59.272 UTC [70] LOG:  received fast shutdown request
186:signal-handler (1532589599) Received SIGTERM scheduling shutdown...
186:M 26 Jul 07:19:59.302 # User requested shutdown...
186:M 26 Jul 07:19:59.302 * Saving the final RDB snapshot before exiting.
2018-07-26 07:19:59.307 UTC [70] LOG:  aborting any active transactions
2018-07-26 07:19:59.310 UTC [70] LOG:  worker process: logical replication launcher (PID 79) exited with exit code 1
2018-07-26 07:19:59.312 UTC [74] LOG:  shutting down
186:M 26 Jul 07:19:59.758 * DB saved on disk
186:M 26 Jul 07:19:59.758 # Redis is now ready to exit, bye bye...
2018-07-26 07:19:59.936 UTC [70] LOG:  database system is shut down


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

can't rebuild app
output command:
    root@ubuntu:/var/discourse# docker images
    REPOSITORY             TAG                 IMAGE ID            CREATED             SIZE
   discourse/base         2.0.20180717        3af2eb204be0        8 days ago          1.71GB
   local_discourse/app    latest              8171651e3173        3 months ago        2.92GB
   discourse/base         2.0.20171231        3925ef3919cc        6 months ago        1.73GB
   samsaffron/docker-gc   latest              54ca424ca8d6        2 years ago         57.7MB
   root@ubuntu:/var/discourse# docker ps
   CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              
   PORTS               NAMES

thanks

Try

git pull
./discourse-doctor
6 Likes

Trying to throw but still faces the error:

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

thanks

@Falco It looks like this line needs to be updated to maintain compatibility with the latest version of Discourse.

5 Likes

app logs:

ok: run: postgres: (pid 210) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 207 unicorn pid: 213
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (213) - No such process
config/unicorn_launcher: line 10: kill: (213) - No such process
exiting
ok: run: redis: (pid 48) 94s
ok: run: postgres: (pid 222) 1s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 217 unicorn pid: 225
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (225) - No such process
config/unicorn_launcher: line 10: kill: (225) - No such process
exiting
ok: run: redis: (pid 48) 98s
timeout: down: postgres: 0s, normally up, want up
ok: run: redis: (pid 48) 105s
ok: run: postgres: (pid 247) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 239 unicorn pid: 250
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (250) - No such process
config/unicorn_launcher: line 10: kill: (250) - No such process
exiting
ok: run: redis: (pid 48) 112s
timeout: down: postgres: 0s, normally up, want up
ok: run: redis: (pid 48) 120s
ok: run: postgres: (pid 269) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 264 unicorn pid: 272
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (272) - No such process
config/unicorn_launcher: line 10: kill: (272) - No such process
exiting
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 335 unicorn pid: 342
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (342) - No such process
config/unicorn_launcher: line 10: kill: (342) - No such process
exiting
ok: run: redis: (pid 48) 153s
ok: run: postgres: (pid 349) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 346 unicorn pid: 352
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (352) - No such process
config/unicorn_launcher: line 10: kill: (352) - No such process
exiting

ok: run: redis: (pid 48) 159s
timeout: down: postgres: 1s, normally up, want up
ok: run: redis: (pid 48) 166s
ok: run: postgres: (pid 380) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 377 unicorn pid: 383
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (383) - No such process
config/unicorn_launcher: line 10: kill: (383) - No such process
exiting
ok: run: redis: (pid 48) 169s
ok: run: postgres: (pid 386) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 387 unicorn pid: 392
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (392) - No such process
config/unicorn_launcher: line 10: kill: (392) - No such process
exiting
ok: run: redis: (pid 48) 170s
ok: run: postgres: (pid 401) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 396 unicorn pid: 404
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (404) - No such process
config/unicorn_launcher: line 10: kill: (404) - No such process
exiting
ok: run: redis: (pid 48) 174s
ok: run: postgres: (pid 407) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 408 unicorn pid: 413
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (413) - No such process
config/unicorn_launcher: line 10: kill: (413) - No such process
exiting
ok: run: redis: (pid 48) 175s
ok: run: postgres: (pid 421) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 416 unicorn pid: 424
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (424) - No such process
config/unicorn_launcher: line 10: kill: (424) - No such process
exiting
ok: run: redis: (pid 48) 179s
ok: run: postgres: (pid 435) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 428 unicorn pid: 438
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (438) - No such process
config/unicorn_launcher: line 10: kill: (438) - No such process
exiting
ok: run: redis: (pid 48) 185s
ok: run: postgres: (pid 451) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 444 unicorn pid: 454
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (454) - No such process
config/unicorn_launcher: line 10: kill: (454) - No such process
exiting
ok: run: redis: (pid 48) 191s
ok: run: postgres: (pid 466) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 457 unicorn pid: 469
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (469) - No such process
config/unicorn_launcher: line 10: kill: (469) - No such process
exiting
ok: run: redis: (pid 48) 199s
timeout: down: postgres: 1s, normally up, want up
ok: run: redis: (pid 48) 206s
ok: run: postgres: (pid 489) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 482 unicorn pid: 492
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (492) - No such process
config/unicorn_launcher: line 10: kill: (492) - No such process
exiting
ok: run: redis: (pid 48) 212s
ok: run: postgres: (pid 500) 0s
chown: cannot access '/shared/log/rails': No such file or directory
supervisor pid: 496 unicorn pid: 503
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `initialize': No such file or directory @ rb_sysopen - /var/www/discourse/log/unicorn.stderr.log (Errno::ENOENT)
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `open'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:805:in `redirect_io'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:174:in `stderr_path='
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:120:in `block in commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `each'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/configurator.rb:117:in `commit!'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:104:in `initialize'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `new'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
	from /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'
config/unicorn_launcher: line 44: kill: (503) - No such process
config/unicorn_launcher: line 10: kill: (503) - No such process
exiting
ok: run: redis: (pid 48) 216s
Shutting Down
run-parts: executing /etc/runit/3.d/01-nginx
ok: down: nginx: 1s, normally up
run-parts: executing /etc/runit/3.d/02-unicorn
ok: down: unicorn: 0s, normally up
run-parts: executing /etc/runit/3.d/10-redis
timeout: down: postgres: 1s, normally up, want up
timeout: run: redis: (pid 48) 224s, want down, got TERM
run-parts: /etc/runit/3.d/10-redis exited with return code 1
run-parts: executing /etc/runit/3.d/99-postgres
ok: down: postgres: 1s, normally up, want up
When using programs that use GNU Parallel to process data for publication please cite:

  O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
  ;login: The USENIX Magazine, February 2011:42-47.

This helps funding further development; and it won't cost you a cent.
Or you can get GNU Parallel without this requirement by paying 10000 EUR.

To silence this citation notice run 'parallel --bibtex' once or use '--no-notice'.

ok: down: nginx: 9s, normally up
ok: down: postgres: 1s, normally up
ok: down: cron: 1s, normally up
run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/anacron
anacron: Can't chdir to /var/spool/anacron: No such file or directory
run-parts: /etc/runit/1.d/anacron exited with return code 1
Started runsvdir, PID is 28
fail: redis: runsv not running
rsyslogd: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http://www.rsyslog.com/e/2222 ]
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
rsyslogd: activation of module imklog failed [v8.16.0 try http://www.rsyslog.com/e/2145 ]
rsyslogd: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.16.0 try http://www.rsyslog.com/e/2039 ]
timeout: down: redis: 0s, normally up, want up
timeout: down: redis: 1s, normally up, want up
Shutting Down
run-parts: executing /etc/runit/3.d/01-nginx
ok: down: nginx: 0s, normally up
run-parts: executing /etc/runit/3.d/02-unicorn
ok: down: unicorn: 1s, normally up
run-parts: executing /etc/runit/3.d/10-redis
ok: down: redis: 1s, normally up, want up
run-parts: executing /etc/runit/3.d/99-postgres
ok: down: postgres: 1s, normally up, want up
When using programs that use GNU Parallel to process data for publication please cite:

  O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
  ;login: The USENIX Magazine, February 2011:42-47.

This helps funding further development; and it won't cost you a cent.
Or you can get GNU Parallel without this requirement by paying 10000 EU
exiting
ok: run: redis: (pid 38) 520s
timeout: down: postgres: 0s, normally up, want up
ok: run: redis: (pid 38) 527s
timeout: down: postgres: 0s, normally up, want up
ok: run: redis: (pid 38) 535s
timeout: down: postgres: 1s, normally up, want up
ok: run: redis: (pid 38) 542s
timeout: down: postgres: 0s, normally up, want up
ok: run: redis: (pid 38) 550s
timeout: down: postgres: 1s, normally up, want up
ok: run: redis: (pid 38) 557s
ok: run: postgres: (pid 1578) 1s
supervisor pid: 1570 unicorn pid: 1581
config/unicorn_launcher: line 44: kill: (1581) - No such process
config/unicorn_launcher: line 10: kill: (1581) - No such process

If I want to run the project without a docker
How can I transfer data?

You want to not do that.

discourse/INSTALL.md at master · discourse/discourse · GitHub

:bell: The only officially supported installs of Discourse are Docker based. You must have SSH access to a 64-bit Linux server with Docker support . We regret that we cannot support any other methods of installation including cpanel, plesk, webmin, etc.

What happened to your /var/discourse/shared/standalone/log/rails directory?

logs:

root@ubuntu:/var/discourse/shared/standalone/log/rails# tail -f production.log 
Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) subscribe failed, reconnecting in 1 second. Call stack ["/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:345:in `rescue in establish_connection'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:331:in `establish_connection'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:101:in `block in connect'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:293:in `with_reconnect'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:100:in `connect'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:276:in `with_socket_timeout'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/client.rb:133:in `call_loop'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/subscribe.rb:43:in `subscription'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis/subscribe.rb:12:in `subscribe'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis.rb:2775:in `_subscription'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis.rb:2143:in `block in subscribe'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis.rb:58:in `block in synchronize'", "/usr/local/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis.rb:58:in `synchronize'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/redis-3.3.5/lib/redis.rb:2142:in `subscribe'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.2/lib/message_bus/backends/redis.rb:336:in `global_subscribe'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.2/lib/message_bus.rb:525:in `global_subscribe_thread'", "/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.2/lib/message_bus.rb:473:in `block in new_subscriber_thread'"]

During the great effort, I realized that the project needs a PG version 10, and the version that it installs is version 9.5.
The following report is from the PG inside the container

2018-07-27 08:49:27.569 UTC [2144] HINT:  You might need to initdb.
2018-07-27 08:49:28.583 UTC [2146] FATAL:  "/shared/postgres_data" is not a valid data directory
2018-07-27 08:49:28.583 UTC [2146] DETAIL:  File "/shared/postgres_data/PG_VERSION" does not contain valid data.
2018-07-27 08:49:28.583 UTC [2146] HINT:  You might need to initdb.

How can I run the project inside the container manually?
thanks

hi.
When we manually execute the project into the container, we will be eating the following:
root@ubuntu-app:/var/www/discourse# bundle exec rails s -b 0.0.0.0:3000

Traceback (most recent call last):
	24: from bin/rails:4:in `<main>'
	23: from bin/rails:4:in `require'
	22: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<top (required)>'
	21: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:46:in `invoke'
	20: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command/base.rb:65:in `perform'
	19: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
	18: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
	17: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
	16: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `perform'
	15: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `tap'
	14: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:145:in `block in perform'
	13: from /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:145:in `require'
	12: from /var/www/discourse/config/application.rb:38:in `<top (required)>'
	11: from /var/www/discourse/config/application.rb:39:in `<module:Discourse>'
	10: from /var/www/discourse/config/application.rb:220:in `<class:Application>'
	 9: from /var/www/discourse/lib/discourse.rb:148:in `activate_plugins!'
	 8: from /var/www/discourse/lib/discourse.rb:148:in `each'
	 7: from /var/www/discourse/lib/discourse.rb:151:in `block in activate_plugins!'
	 6: from /var/www/discourse/lib/plugin/instance.rb:457:in `activate!'
	 5: from /var/www/discourse/lib/plugin/instance.rb:457:in `instance_eval'
	 4: from /var/www/discourse/plugins/discourse-backups-to-dropbox/plugin.rb:7:in `activate!'
	 3: from /var/www/discourse/lib/plugin/instance.rb:527:in `gem'
	 2: from /var/www/discourse/lib/plugin_gem.rb:18:in `load'
	 1: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1437:in `activate'
/usr/local/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:2322:in `check_version_conflict': can't activate public_suffix-2.0.5, already activated public_suffix-3.0.2 (Gem::LoadError)

[solved] I found the problem
The problem with the plugin is discourse-backups-to-dropbox
Removed the plugin and the project fared well.
thanks

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.