Open luismiv85 opened 3 years ago
I am facing the same issue, it works for few hours . After few hours it stopped working, i can't see anything in the log, i have to delete the existing pod so it starts again
I am facing the same issue, it works for few hours . After few hours it stopped working, i can't see anything in the log, i have to delete the existing pod so it starts again
I am facing the same issue in production sneaker is 2.12.0, bunny is 2.22.0, ruby is 2.7.8. Cant't really say it is due to inactivity but it works for some time and after some time it stops working with queue count static or increasing and consumer consumer count 0. Any one got a solution or found the root cause?
@luismiv85 Have you found any solution for it? Below are versions
Ruby - 3.2.2 Bunny - 2.22.0 Sneakers - 2.12.0
My issue is fixed, It was due to the timeout error
Consumer 1 on channel 1 has timed out waiting for delivery acknowledgement. Timeout used: 1800000 ms. This timeout value can be configured, see consumers doc guide to learn more
one job was taking a lot of time hence it did not acknowledge on time.
@KinWang-2013 My issue is also resolved, I was using this as config earlier
~ Sneakers.configure( { amqp: ENV.fetch('SNEAKER_URL', 'amqp://guest:guest@localhost:5672'), ~
Now i am using this
module Connection
def self.sneakers
@_sneakers ||= begin
Bunny.new(
host: ENV.fetch('RABBITMQ_HOST', 'localhost'),
port: ENV.fetch('RABBITMQ_PORT', 5672).to_i,
username: ENV.fetch('RABBITMQ_USER', 'guest'),
password: ENV.fetch('RABBITMQ_PASSWORD', 'guest'),
automatic_recovery: true,
heartbeat: 30,
log_level: :debug,
log_file: 'log/rabbitmq.log'
)
end
end
end
Sneakers.configure(
{
connection: Connection.sneakers,
I am not sure whether its a right way or not but it is working for me.
Hi community!
Some time ago I leave an issue about this problem (https://github.com/jondot/sneakers/issues/440), but I could not give a clear information or sufficient information.
I have been collect more information about this issue through rabbit and sneaker logs.
Bunny: 2.14.3 Sneaker: 2.12.0
### sneakers.log:
### rabbitMQ log:
On the other hand, my config sneaker file (initialize/sneakers.rb):
And every worker override some configuration. worker_1.rb
Anyone can help me or have any idea about this error?
Thanks in advance!! Cheers.