Problem with sidekiq and chromedriver combined #6339
Unanswered
brunotiago
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First of all I don't know if this is the right place to ask for help on this, but I will try.
I have a rails app which is trying to launch a chromedriver to navigate and parse a website. The thing is: when I call the code from rails console it works pretty fine, but when I add a job to process on sidekiq and it is processed from there, the exact same code doesn't work and I have an error:
Selenium::WebDriver::Error::WebDriverError: unable to connect to /usr/bin/chromedriver 127.0.0.1:9515and the job fails to execute. I printed env vars, current user, chromedriver path, google-chrome, etc; and everything seems exactly the same. Right now I'm out of the ideas of how to proceed and debug. I don't know a lot about sidekiq but I believe this is related with some context/environment on Sidekiq or the way Sidekiq is spawning processes. It's just a guessing from me, but I don't know how to debug that or change the code.I will attach part of the code for you to see and try to give me some lights on this.
Beta Was this translation helpful? Give feedback.
All reactions