solid_queue: undefined method `supervisees`for nil
probably should look something like process&.supervisees.find_by... or
if registered_process = process.supervisees.find_by(name: terminated_fork.name) rescue false
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (5 by maintainers)
I just got this error again, this time I saved some additional events from the logs immediately before the error.
Just posting it here so that I can come back to debug this later.
Just found this issue. I only have the occassional jobs to send an email. Nothing that adds to load.
Environment information
jobs: bin/jobs startLog output
@tahirwaseer, no, that should be ok, what I mean is that in production usually your processes won’t go “to sleep” like if you have them running in your computer that might be suspended after some time inactive 😅
These are almost all the logs. other didn’t look relevant. It keeps processing the jobs and after a while i get this. Haven’t figured out the exact reason.
One more thing about the setup:
I’ve this in my puma.rb:
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }And I’m running four workers with three threads each which exceeds puma threads. Not sure if this could cause anything like that.
Got another one:
2aad22750000-2aad22760000 rw-p 00000000 00:00 0 2aad22770000-2aad22780000 rw-p 00000000 00:00 0 2aad22790000-2aad227a0000 rw-p 00000000 00:00 0 2aad227b0000-2aad227c0000 rw-p 00000000 00:00 0 2aad227d0000-2aad227e0000 rw-p 00000000 00:00 0 2aad227e7000-2aad2281a000 r–s 00000000 00:53 2836918 /usr/local/bin/ruby 2aad2281a000-2aad23992000 r–s 00000000 00:53 2964141 /usr/local/lib/libruby.so.3.2.0 2aad23992000-2aad239b7000 r–s 00000000 00:53 470233 /lib/x86_64-linux-gnu/libpthread-2.31.so 2aad239b7000-2aad23b89000 r–s 00000000 00:53 470188 /lib/x86_64-linux-gnu/libc-2.31.so 555555556000-555555557000 r–p 00000000 00:53 2836918 /usr/local/bin/ruby 555555557000-555555558000 r-xp 00001000 00:53 2836918 /usr/local/bin/ruby 555555558000-555555559000 r–p 00002000 00:53 2836918 /usr/local/bin/ruby 555555559000-55555555a000 r–p 00002000 00:53 2836918 /usr/local/bin/ruby 55555555a000-55555555b000 rw-p 00003000 00:53 2836918 /usr/local/bin/ruby 55555555b000-5555596d0000 rw-p 00000000 00:00 0 5555596d0000-555559ec0000 rw-p 00000000 00:00 0 ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0 [vsyscall]
qemu: uncaught target signal 6 (Aborted) - core dumped Time taken to download and set image for product_image f896458d-425f-4412-aed2-aa94b3c8847a: 4.836300586 seconds Time taken to download and set image for product_image 5bf46c41-1170-485a-a0df-1e69c82600a6: 4.656792128 seconds Time taken to download and set image for product_image 87420dce-35d8-49d6-8a1b-51f3c67176e6: 4.735127419 seconds /usr/local/bundle/gems/solid_queue-1.1.0/lib/solid_queue/supervisor.rb:174:in
handle_claimed_jobs_by': undefined methodsupervisees’ for nil:NilClass (NoMethodError)