問題
- Fedora に以降して selenium 関連も移行したら上手く起動しなくなった
- Btrfs
-
--user-data-dir
を指定して、1回目は起動する - 2回目以降はエラー
-
--user-data-dir
の対象を削除すると起動するが、ログイン状態は解除されてしまう
-
Error
Traceback (most recent call last):
File "/home/uyiromo/workspace/.venv/lib/python3.10/site-packages/seleniumwire/webdriver.py", line 218, in __init__
super().__init__(*args, **kwargs)
File "/home/uyiromo/workspace/.venv/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 80, in __init__
super().__init__(
File "/home/uyiromo/workspace/.venv/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
super().__init__(
File "/home/uyiromo/workspace/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
self.start_session(capabilities, browser_profile)
File "/home/uyiromo/workspace/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/home/uyiromo/workspace/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/home/uyiromo/workspace/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(chrome not reachable)
(The process started from chrome location /home/uyiromo/workspace/chrome/chrome-linux64/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x5556fb31f783 <unknown>
#1 0x5556fb04b917 <unknown>
#2 0x5556fb076978 <unknown>
#3 0x5556fb0739c9 <unknown>
#4 0x5556fb0b3a13 <unknown>
#5 0x5556fb0b315f <unknown>
#6 0x5556fb0aabd3 <unknown>
#7 0x5556fb07ea7b <unknown>
#8 0x5556fb07f81e <unknown>
#9 0x5556fb2e0e98 <unknown>
#10 0x5556fb2e4d67 <unknown>
#11 0x5556fb2ef32c <unknown>
#12 0x5556fb2e5993 <unknown>
#13 0x5556fb2b4827 <unknown>
#14 0x5556fb3098a8 <unknown>
#15 0x5556fb309a36 <unknown>
#16 0x5556fb3185f3 <unknown>
#17 0x7f85da60a907 start_thread
#18 0x7f85da690870 __clone3
対処
-
--user-data-dir
の先に残存しているSingletonLock
を削除する- おそらく broken symbolic link になっている筈
- どうもこのファイルがあると Chrome が起動してくれないらしい