Hi everyone, I'm trying to trigger a very simple web scraper from Odoo. Right now, all I am trying to do is to instantiate a webdriver.Chrome object inside one of my model's functions, that is triggered by a button on my form view.
I am able to run this code as a separate python script (simply doing python my_script.py) which proves that Selenium is correctly configured in my system. However, it seems like the Odoo server's threads have a problem running it:
selenium\.common\.exceptions\.WebDriverException:\ Message:\ Service\ /root/\.wdm/drivers/chromedriver/linux64/103.0.5060.53/chromedriver unexpectedly exited. Status code was: -5
I have spent several hours trying to understand what is going on, but to no avail. Things I've tried so far include using both Chrome, Chromium and Firefox; tried every single combination of Webdriver parameters (headless, etc.); trying giving full permissions on chromedriver, chrome and chromium executables (chmod 777); running odoo with and without sudo.
Unfortauntely nothing worked so far, so I started looking into Odoo's ThreadedServer code, so see if I found any reason why Selenium's subprocess.Popen calls wouldn't work, but unfortunately this is so beyond my knowledge that I don't even know what to Google!
Any insights would be greatly appreciated... thanks!