Geckodriver.log for geckodriver INFO Listening on 127.0.0.1:33947ġ614706983553 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.p37a7r0syAmR" 1614702900530 Marionette INFO Stopped listening on port 45145.1614702872140 Marionette WARN TimedPromise timed out after 500 ms: stacktrace:.JavaScript warning: line 119: unreachable code after return statement.1614702859109 Marionette WARN TLS certificate errors will be ignored for this session.1614702847019 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile7jTA4y".Geckodriver.log for for admin (without error) : 1614703595556 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile22XajP". Geckodriver.log for www-data user (with error): Would you have any idea of the way to solve this issue? I ve been searching for 3 days in all internet sources i can find and tried all i could, i haven't any solution for now When i call the script using web interface, the user is www-data and i encounter this error : connection refused (os error 111) It works fine in command line in debian if i am logged in root or another user. I aim to triggered this app by a ajax call in a web page, it's a nginx server so the py script is called in a php exec command : exec ('/usr/bin/python3 webdriver.py') I am quit new to webscraping, i am building a personal app with python on debian buster and firefox geckodriver as follow, the server is online firefox_binary = FirefoxBinary('/usr/bin/firefox')ĭriver = webdriver.Firefox(options=opts, firefox_binary=firefox_binary)
0 Comments
Leave a Reply. |