Univention Bugzilla – Bug 48856
Selenium tests: chromedriver/chrome crash with version 72.0.3626.96-1~deb9u2
Last modified: 2021-12-13 12:33:29 CET
Traceback (most recent call last): File "/opt/b", line 28, in <module> driver = webdriver.Chrome(chrome_options=options) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 151, in __init__ self.start_session(desired_capabilities, browser_profile) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 240, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 308, in execute self.error_handler.check_response(response) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.) (Driver info: chromedriver=72.0.3626.96,platform=Linux 4.9.0-8-amd64 x86_64) This happens since version 72.0.3626.96-1~deb9u2 and all selenium test are broken. Workaround: install version 71.0.3578.80-1~deb9u1 in utils.sh install_selenium
33bd50e108586d5b0a7c016076774db08ca8598c
Selenium calls "/usr/bin/chromium --headless --remote-debugging-port=0", which crashed - the bugs is in Debian too: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922794> /usr/share/doc/chromium/changelog.Debian.gz: > chromium (72.0.3626.96-1~deb9u2) stretch-security; urgency=medium > > * Fix crash when launched in headless mode (closes: #922794). > * Replace files from chromium-sandbox on upgrade (closes: #923298). > > -- Michael Gilbert <mgilbert@debian.org> Tue, 26 Feb 2019 02:53:04 +0000 is NOT fixed!
(In reply to Philipp Hahn from comment #2) > Selenium calls "/usr/bin/chromium --headless --remote-debugging-port=0", > which crashed - the bugs is in Debian too: > <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922794> > > /usr/share/doc/chromium/changelog.Debian.gz: > > chromium (72.0.3626.96-1~deb9u2) stretch-security; urgency=medium > > > > * Fix crash when launched in headless mode (closes: #922794). > > * Replace files from chromium-sandbox on upgrade (closes: #923298). > > > > -- Michael Gilbert <mgilbert@debian.org> Tue, 26 Feb 2019 02:53:04 +0000 > is NOT fixed! Fixed by 72.0.3626.122-1~deb9u1: apt-cache policy chromium chromium-driver chromium-l10n chromium-shell chromium-widevine chromium: Installiert: 73.0.3683.75-1~deb9u1 Installationskandidat: 73.0.3683.75-1~deb9u1 Versionstabelle: *** 73.0.3683.75-1~deb9u1 500 500 http://updates.knut.univention.de/4.3/unmaintained 4.3-4/amd64/ Packages 100 /var/lib/dpkg/status 72.0.3626.96-1~deb9u2 500 500 http://updates.knut.univention.de/4.4/unmaintained 4.4-0/amd64/ Packages 71.0.3578.80-1~deb9u1 500 500 http://updates.knut.univention.de/4.3/unmaintained 4.3-3/amd64/ Packages Do we released an update for the older UCS-4.3-4 but never for the newer UCS-4.4-0. Never the less its available since UCS-4.3-4, but the broken version is still hard-coded in /usr/lib/python2.7/dist-packages/univention/appcenter/actions/test_appcenter.py:91 > chromium_version = "71.0.3578.80-1~deb9u1" # Bug #48856 … > ret_code = self._subprocess(['univention-install', '-y', 'python-pip', 'ucs-test', 'xvfb', 'chromium=%s' % chromium_version, 'chromium-driver=%s' % chromium_version, 'python-xvfbwrapper']).returncode which breaks as the new version is pulled in by other means and running `univention-app dev-test-setup` required a downgrade, which must be enabled explicitly with `--allow-downgrades`.