Reputation: 5522
I'm trying to run sidekiq but I'm getting this error:
getaddrinfo: No address associated with hostname
this is what I have in my sidekiq file (configinitializers):
Sidekiq.configure_server do |config|
config.redis = { url: 'redis://Policia9@host:6379'}
end
Sidekiq.configure_client do |config|
config.redis = { url: 'redis://Policia9@host:6379'}
end
Seems I simply used the non-existent host given in the docu, of course I need to put my own host or ip in there,but I don't know where to find the file.
Upvotes: 1
Views: 1241
Reputation: 1716
You have to replace the host
keyword with an hostname/ip address
this
'redis://Policia9@host:6379'
become
'redis://[email protected]:6379'
assuming 12.12.12.12
is your host ip address
Upvotes: 2