Trying what @clay suggested - trying to flush the queue (and then restarted and EVEN rebooting the machine) and I got:
[1] pry(main)> Sidekiq.redis { |r| puts r.flushall }
Passing ‘flushall’ command to redis as is; administrative commands cannot be effectively namespaced and should be called on the redis connection directly; passthrough has been deprecated and will be removed in redis-namespace 2.0 (at (pry):1:in `block in pry’)
OK
=> nil
Taking my clues from here, nothing seems to work. Any ideas what’s going on and how to fix it?
I would agree, I really don’t know why it happened and what exactly fixed it. Just that repeating the steps over a few times and rebooting a few times fixed it, but like you said I’m not convinced that’s the long term solution.
First upgrade to the latest version (there are some new patches related to this I think that went in a few hours ago). Open yourwebsite/admin/upgrade and upgrade to the latest version (+101 is working for me now, so you’re good there)
Then from the terminal
cd /var/discourse
sudo ./launcher enter app
rails c
Sidekiq.redis { |r| puts r.flushall }
exit
exit
sudo ./launcher restart app
Then reboot the machine. I did this loop 2 times and it solved the issue.
I think someone also mentioned you can try a few things
Leave it for 24 hours and the scheduler should kick off again and this error should go away
Force the schedules to start, open yourwebsite/sidekiq, goto scheduler and trigger the schedule Jobs::VersionCheck
Yeah, simply updating and waiting 24 hours (or manually triggering Jobs::VersionCheck in the web UI as you suggested) should suffice, no messing within Rails necessary