lgwapnitsky
(Larry G. Wapnitsky)
April 20, 2021, 8:24pm
1
Followed the wiki, but the server won’t start. The following error repeats in the eye error logs
Redis#exists(key)` will return an Integer in redis-rb 4.3. `exists?` retur\ns a boolean, you should use it instead. To opt-in to the new behavior now \you can set Redis.exists_returns_integer = true. To disable this message a\nd keep the current (boolean) behaviour of 'exists' you can set `Redis.exis\ts_returns_integer = false`, but this option will be removed in 5.0. (/home\/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/sidekiq-cron-1.2.0/lib/sid\ekiq/cron/job.rb:464:in `block in save')
Advice needed
lgwapnitsky
(Larry G. Wapnitsky)
April 20, 2021, 8:52pm
2
from stdout:
W, [2021-04-20T16:51:10.596327 #583] WARN -- : [Eye::System] [web] sending :KILL signal to <938> due to timeout (15s)
E, [2021-04-20T16:51:10.599335 #583] ERROR -- : [diaspora:web] execution failed with #<Timeout::Error: execution expired>; try increasing the start_timeout value(the current value of 15s seems too short)
E, [2021-04-20T16:51:10.599415 #583] ERROR -- : [diaspora:web] process <> failed to start ("#<Timeout::Error: execution expired>")
I, [2021-04-20T16:51:10.599711 #583] INFO -- : [diaspora:web] switch :crashed [:starting => :down] crashed
I, [2021-04-20T16:51:10.600109 #583] INFO -- : [diaspora:web] schedule :check_crash (crashed)
I, [2021-04-20T16:51:10.600177 #583] INFO -- : [diaspora:web] <= restore
I, [2021-04-20T16:51:10.600221 #583] INFO -- : [diaspora:web] => check_crash (crashed)
W, [2021-04-20T16:51:10.600269 #583] WARN -- : [diaspora:web] check crashed: process is down
I, [2021-04-20T16:51:10.600312 #583] INFO -- : [diaspora:web] schedule :restore (crashed)
I, [2021-04-20T16:51:10.600350 #583] INFO -- : [diaspora:web] <= check_crash
I, [2021-04-20T16:51:10.600387 #583] INFO -- : [diaspora:web] => restore (crashed)
W, [2021-04-20T16:51:10.601793 #583] WARN -- : [diaspora:web] compare_identity: fail, pid_file: '20 Apr 16:50', process: '26 Apr 18:10' (/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/bi)
W, [2021-04-20T16:51:10.601845 #583] WARN -- : [diaspora:web] load_external_pid_file: process <941> from pid_file failed check_identity
I, [2021-04-20T16:51:10.602050 #583] INFO -- : [diaspora:web] switch :starting [:down => :starting] crashed
I, [2021-04-20T16:51:10.602226 #583] INFO -- : [diaspora:web] executing: `bin/bundle exec unicorn -c config/unicorn.rb -D` with start_timeout: 15.0s, start_grace: 2.5s, env: 'RAILS_ENV=production PORT=' (in /home/diaspora/diaspora)
I, [2021-04-20T16:51:12.949445 #583] INFO -- : [diaspora:web] sleeping for :start_grace 2.5
lgwapnitsky
(Larry G. Wapnitsky)
April 20, 2021, 8:59pm
3
and when I try to run unicorn manually:
diaspora@disaspora:~/diaspora$ bin/bundle exec unicorn -c config/unicorn.rb [5/72]
I, [2021-04-20T16:58:05.108049 #1278] INFO -- : Refreshing Gem list
bundler: failed to load command: unicorn (/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/bin/unicorn)
NameError: uninitialized constant TurboDevAssets
/home/diaspora/diaspora/config/environments/development.rb:64:in `block in <top (required)>'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/railtie.rb:216:in `instance_eval'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/railtie.rb:216:in `configure'
/home/diaspora/diaspora/config/environments/development.rb:3:in `<top (required)>'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:608:in `block (2 levels) in <class:Engine>'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:607:in `each'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:607:in `block in <class:Engine>'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `instance_exec'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `run'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:61:in `block in run_initializers'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `each'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `tsort_each_child'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:415:in `call'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `each'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `call'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
/home/diaspora/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:60:in `run_initializers'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:361:in `initialize!'
/home/diaspora/diaspora/config/environment.rb:7:in `<top (required)>'
config.ru:10:in `require'
config.ru:10:in `block in <main>'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `instance_eval'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/unicorn-6.0.0/lib/unicorn.rb:54:in `eval'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/unicorn-6.0.0/lib/unicorn.rb:54:in `block in builder'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/unicorn-6.0.0/lib/unicorn/http_server.rb:826:in `build_app!'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/unicorn-6.0.0/lib/unicorn/http_server.rb:140:in `start'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/gems/unicorn-6.0.0/bin/unicorn:128:in `<top (required)>'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `load'
/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `<top (required)>'
jhass
(Jonne Haß)
April 21, 2021, 6:58am
4
Can you try running unicorn manually in production mode? RAILS_ENV=production bundle exec unicorn -c config/unicorn.rb
.
Any other messages in the eye error log than the one you showed? This one is just a warning, non-fatal.
Anything interesting in eye’s stdout log?
lgwapnitsky
(Larry G. Wapnitsky)
April 21, 2021, 8:02am
6
Running the next stage in the startup script fails with the prior errors
PORT=3000 RAILS_ENV=production bin/bundle exec loader_eye --stop_all -c config/eye.rb
jhass
(Jonne Haß)
April 21, 2021, 11:15am
7
Not sure what you’re saying with next stage, unicorn is booted up by eye normally.
Does sidekiq run on its own? RAILS_ENV=production bundle exec sidekiq
lgwapnitsky
(Larry G. Wapnitsky)
April 21, 2021, 12:09pm
8
next stage was the command at the bottom of the startup script - exec bin/bundle exec loader_eye --stop_all -c config/eye.rb
sidqkiq does run on its own. Just tested that.
Larry G. Wapnitsky
E: Larry@Wapnitsky.com
Web: Larry.Wapnitsky.com
Twitter: @LGWapnitsky
jhass
(Jonne Haß)
April 21, 2021, 12:12pm
9
Super weird, can you please upload the complete log/eye_processes_stdout.log
and log/eye_processes_stderr.log
somewhere?
lgwapnitsky
(Larry G. Wapnitsky)
April 21, 2021, 1:53pm
10
lgwapnitsky
(Larry G. Wapnitsky)
April 21, 2021, 1:54pm
11
jhass
(Jonne Haß)
April 21, 2021, 3:24pm
12
Okay, still confusing. When running RAILS_ENV=production bundle exec unicorn -c config/unicorn.rb
how many seconds does it take you to see worker=0 ready
?
lgwapnitsky
(Larry G. Wapnitsky)
April 21, 2021, 4:08pm
13
I wound up following your ubuntu install and another centos install to get it up and running with systemd.
jhass
(Jonne Haß)
April 21, 2021, 4:12pm
14
Well if it works it works
1 Like