Package: chromium-driver Version: 73.0.3683.75-1 Severity: important Hi
My chromiumdriver stopped working recently with an odd error message: % python3 -c "from selenium import webdriver; webdriver.Chrome()" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__ desired_capabilities=desired_capabilities) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome version must be between 70 and 73 (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.19.0-5-amd64 x86_64) Given that my chromium was indeed version 73, it took me a while to find out what was happening. Strace gave the answer: % strace -q -f -e trace=execve python3 -c "from selenium import webdriver; webdriver.Chrome()" [...] [pid 12780] execve("/usr/bin/chromedriver", ["/usr/bin/chromedriver", "--port=54905"], 0x7f952aeb2df8 /* 62 vars */) = 0 [pid 12787] execve("/usr/bin/google-chrome", ["/usr/bin/google-chrome", "--disable-background-networking", "--disable-client-side-phishing-d"..., "--disable-default-apps", "--disable-hang-monitor", "--disable-popup-blocking", "--disable-prompt-on-repost", "--disable-sync", "--disable-web-resources", "--enable-automation", "--enable-blink-features=ShadowDO"..., "--enable-logging", "--force-fieldtrials=SiteIsolatio"..., "--ignore-certificate-errors", "--load-extension=/tmp/.org.chrom"..., "--log-level=0", "--metrics-recording-only", "--no-first-run", "--password-store=basic", "--remote-debugging-port=0", "--test-type=webdriver", "--use-mock-keychain", "--user-data-dir=/tmp/.org.chromi"..., "data:,"], 0x7ffefe6e9090 /* 62 vars */) = 0 I have the Chrome stable packages installed (due to an issue with Meet hanging with Chromium). So my /usr/bin/google-chrome points to % readlink -f /usr/bin/google-chrome /opt/google/chrome/google-chrome If I move /usr/bin/google-chrome out of the way, it starts chromium instead: % sudo mv /usr/bin/google-chrome /usr/bin/google-chrome.disable % strace -q -f -e trace=execve python3 -c "from selenium import webdriver; webdriver.Chrome()" [...] [pid 14105] execve("/usr/bin/chromedriver", ["/usr/bin/chromedriver", "--port=51095"], 0x7f6b2e777df8 /* 62 vars */) = 0 [pid 14112] execve("/usr/bin/chromium", ["/usr/bin/chromium", "--disable-background-networking", "--disable-client-side-phishing-d"..., "--disable-default-apps", "--disable-hang-monitor", "--disable-popup-blocking", "--disable-prompt-on-repost", "--disable-sync", "--disable-web-resources", "--enable-automation", "--enable-blink-features=ShadowDO"..., "--enable-logging", "--force-fieldtrials=SiteIsolatio"..., "--ignore-certificate-errors", "--load-extension=/tmp/.org.chrom"..., "--log-level=0", "--metrics-recording-only", "--no-first-run", "--password-store=basic", "--remote-debugging-port=0", "--test-type=webdriver", "--use-mock-keychain", "--user-data-dir=/tmp/.org.chromi"..., "data:,"], 0x7ffc630f6490 /* 62 vars */) = 0 In case someone wants to try to reproduce this, the package providing /opt/google/chrome/google-chrome is google-chrome-stable from this repository: % cat /etc/apt/sources.list.d/google-chrome.list deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main Thanks Chris -- System Information: Debian Release: 10.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages chromium-driver depends on: ii chromium 73.0.3683.75-1 ii libatomic1 8.3.0-6 ii libc6 2.28-10 ii libdbus-1-3 1.12.14-1 ii libdrm2 2.4.97-1 ii libevent-2.1-6 2.1.8-stable-4 ii libexpat1 2.2.6-1 ii libfontconfig1 2.13.1-2 ii libfreetype6 2.9.1-3 ii libgcc1 1:8.3.0-6 ii libglib2.0-0 2.58.3-2 ii libharfbuzz0b 2.3.1-1 ii libicu63 63.1-6 ii libjpeg62-turbo 1:1.5.2-2+b1 ii libminizip1 1.1-8+b1 ii libnspr4 2:4.21-1 ii libnss3 2:3.42.1-1 ii libpng16-16 1.6.36-6 ii libre2-5 20190101+dfsg-2 ii libstdc++6 8.3.0-6 ii libwebp6 0.6.1-2 ii libwebpdemux2 0.6.1-2 ii libwebpmux3 0.6.1-2 ii libx11-6 2:1.6.7-1 ii libx11-xcb1 2:1.6.7-1 ii libxcb1 1.13.1-2 ii libxcomposite1 1:0.4.4-2 ii libxcursor1 1:1.1.15-2 ii libxdamage1 1:1.1.4-3+b3 ii libxext6 2:1.3.3-1+b2 ii libxfixes3 1:5.0.3-1 ii libxi6 2:1.7.9-1 ii libxrandr2 2:1.5.1-1 ii libxrender1 1:0.9.10-1 ii libxss1 1:1.2.3-1 ii libxtst6 2:1.2.3-1 ii zlib1g 1:1.2.11.dfsg-1 chromium-driver recommends no packages. chromium-driver suggests no packages. -- no debconf information