Develop branch & sidekiq crash

So I decided to update diaspora-fr to the last develop code, and now sidekiq is crashing:

diaspora@diaspora-fr:~/diaspora$ script/server
WARNING: Project gemset is diaspora but you are using ruby-2.6.8
WARNING: diaspora.yml is deprecated and will no longer be read in diaspora 0.9.
         Please copy over diaspora.toml.example to diaspora.toml and migrate your settings from diaspora.yml.
Starting Diaspora in production mode with 1 Sidekiq worker(s).

I, [2021-08-09T21:53:30.619085 #2635]  INFO -- : [diaspora:__default__] call: 
I, [2021-08-09T21:53:30.619232 #2635]  INFO -- : [diaspora:__default__] schedule :monitor (load by user)
I, [2021-08-09T21:53:30.619537 #2635]  INFO -- : [diaspora:__default__] => monitor  (load by user)
I, [2021-08-09T21:53:30.619638 #2635]  INFO -- : [diaspora:__default__] starting async with 0.2s chain monitor 
I, [2021-08-09T21:53:30.619965 #2635]  INFO -- : [diaspora:sidekiq] call: 
I, [2021-08-09T21:53:30.620554 #2635]  INFO -- : [diaspora:sidekiq] schedule :monitor (load by user)
I, [2021-08-09T21:53:30.620987 #2635]  INFO -- : [diaspora:sidekiq] => monitor  (load by user)
I, [2021-08-09T21:53:30.621282 #2635]  INFO -- : [diaspora:web] schedule :monitor (monitor by user)
I, [2021-08-09T21:53:30.621553 #2635]  INFO -- : [diaspora:web] => monitor  (monitor by user)
I, [2021-08-09T21:53:30.622070 #2635]  INFO -- : [diaspora:sidekiq] starting async with 0.2s chain monitor 
I, [2021-08-09T21:53:30.622445 #2635]  INFO -- : [Eye] <= loading: ["/home/diaspora/diaspora/config/eye.rb"]
I, [2021-08-09T21:53:30.642831 #2635]  INFO -- : [Eye] <= command: load /home/diaspora/diaspora/config/eye.rb (0.398741491s)
I, [2021-08-09T21:53:30.643365 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] schedule :monitor (monitor by user)
I, [2021-08-09T21:53:30.643980 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] => monitor  (monitor by user)
I, [2021-08-09T21:53:30.644378 #2635]  INFO -- : [diaspora:__default__] <= monitor
I, [2021-08-09T21:53:30.644597 #2635]  INFO -- : [diaspora:sidekiq] <= monitor
I, [2021-08-09T21:53:30.722490 #2635]  INFO -- : [diaspora:web] load_external_pid_file: pid_file not found
I, [2021-08-09T21:53:30.722957 #2635]  INFO -- : [diaspora:web] switch :starting [:unmonitored => :starting] monitor by user
I, [2021-08-09T21:53:30.723231 #2635]  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-08-09T21:53:30.745150 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] load_external_pid_file: pid_file not found
I, [2021-08-09T21:53:30.745538 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :starting [:unmonitored => :starting] monitor by user
I, [2021-08-09T21:53:30.746473 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] daemonizing: `bin/bundle exec sidekiq` with start_grace: 2.5s, env: 'RAILS_ENV=production', <2799> (in /home/diaspora/diaspora)
I, [2021-08-09T21:53:30.746556 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] sleeping for :start_grace 2.5
I, [2021-08-09T21:53:33.247325 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :started [:starting => :up] monitor by user
I, [2021-08-09T21:53:33.247726 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] <= monitor
W, [2021-08-09T21:53:45.739782 #2635]  WARN -- : [Eye::System] [web] sending :KILL signal to <2797> due to timeout (15s)
E, [2021-08-09T21:53:45.740892 #2635] 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-08-09T21:53:45.740945 #2635] ERROR -- : [diaspora:web] process <> failed to start ("#<Timeout::Error: execution expired>")
I, [2021-08-09T21:53:45.741341 #2635]  INFO -- : [diaspora:web] switch :crashed [:starting => :down] monitor by user
I, [2021-08-09T21:53:45.741631 #2635]  INFO -- : [diaspora:web] schedule :check_crash (crashed)
I, [2021-08-09T21:53:45.741686 #2635]  INFO -- : [diaspora:web] <= monitor
I, [2021-08-09T21:53:45.741725 #2635]  INFO -- : [diaspora:web] => check_crash  (crashed)
W, [2021-08-09T21:53:45.741769 #2635]  WARN -- : [diaspora:web] check crashed: process is down
I, [2021-08-09T21:53:45.741807 #2635]  INFO -- : [diaspora:web] schedule :restore (crashed)
I, [2021-08-09T21:53:45.741841 #2635]  INFO -- : [diaspora:web] <= check_crash
I, [2021-08-09T21:53:45.741873 #2635]  INFO -- : [diaspora:web] => restore  (crashed)
I, [2021-08-09T21:53:45.742299 #2635]  INFO -- : [diaspora:web] load_external_pid_file: process <2802> from pid_file found and running (identity: ok) (/home/diaspora/diaspora/vendor/bundle/ruby/2.6.0/bi)
I, [2021-08-09T21:53:45.742448 #2635]  INFO -- : [diaspora:web] switch :already_running [:down => :up] crashed
I, [2021-08-09T21:53:45.746766 #2635]  INFO -- : [diaspora:web] <= restore
W, [2021-08-09T21:53:53.248452 #2635]  WARN -- : [diaspora:sidekiq:sidekiq1] check_alive: process <2799> not found
I, [2021-08-09T21:53:53.248582 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] delete pid_file: /home/diaspora/diaspora/tmp/pids/sidekiq1.pid
I, [2021-08-09T21:53:53.248918 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :crashed [:up => :down] crashed
I, [2021-08-09T21:53:53.249315 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] schedule :check_crash (crashed)
I, [2021-08-09T21:53:53.249512 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] => check_crash  (crashed)
W, [2021-08-09T21:53:53.249580 #2635]  WARN -- : [diaspora:sidekiq:sidekiq1] check crashed: process is down
I, [2021-08-09T21:53:53.249642 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] schedule :restore (crashed)
I, [2021-08-09T21:53:53.249695 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] <= check_crash
I, [2021-08-09T21:53:53.249739 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] => restore  (crashed)
I, [2021-08-09T21:53:53.350145 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] load_external_pid_file: pid_file not found
I, [2021-08-09T21:53:53.350462 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :starting [:down => :starting] crashed
I, [2021-08-09T21:53:53.350929 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] daemonizing: `bin/bundle exec sidekiq` with start_grace: 2.5s, env: 'RAILS_ENV=production', <2829> (in /home/diaspora/diaspora)
I, [2021-08-09T21:53:53.350978 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] sleeping for :start_grace 2.5
I, [2021-08-09T21:53:55.851740 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :started [:starting => :up] crashed
I, [2021-08-09T21:53:55.851939 #2635]  INFO -- : [diaspora:sidekiq:sidekiq1] <= restore

I had that previously when gems weren’t up to date for example, but here everything went well during the update (well, I had to install nodejs 14 because it was actually running nodejs 4…). I saw the update of sidekiq to 6.0, I don’t know if it’s related. Any idea about what I could look to know what is wrongly going on?

I found the root cause: it was indeed coming from the upgrade, Sidekiq 6 needs at least Redis 4:

    Rails <5 is no longer supported. Rails 6+ only works in zeitwerk mode.
    Ruby <2.5 is no longer supported.
    Redis <4 is no longer supported.

I can’t update the wiki page about Updating, it is still in read only mode? We need to push that new website.

I can edit Updating - diaspora* project wiki – is that the page you’re talking about?

Yes this is the page I am talking about.

That’s odd, then; I’m not sure why you can’t edit it. I could do so for you, although I’d be more comfortable leaving it to someone who understands installation. If you give me some text to add (and tell me where), we could double-check in this thread with Jonne/Dennis/Benjamin that they are happy, and I could then edit it.

Fla’s wiki account was assigned the “Bureaucrat” role in April 2017, but not the “Administrator” role. The wiki is currently locked in a way that only admins can edit. I’m not sure if the fact that Goob is admin but Fla not was deliberate, but @waithamai did promote Goob on 23 August 2017. I think that was related to the massive amount of spam we had back then.

In any case, Fla is now part of the Admin role as well. @flaburgan, please log out of the wiki and log back in again. After that, you can edit stuff yourself.

It’s a wiki. Just do it. :slight_smile: We can always go back and edit things if there is a need to do so, but I don’t think there would be.

1 Like