Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome failed to start: exited abnormally #181

Closed
lamyergeier opened this issue May 15, 2023 · 3 comments
Closed

Chrome failed to start: exited abnormally #181

lamyergeier opened this issue May 15, 2023 · 3 comments
Labels
wontfix This will not be worked on

Comments

@lamyergeier
Copy link

lamyergeier commented May 15, 2023

Operating System - Fedora38

$ google-chrome --version
Google Chrome 113.0.5672.92 

$ chromium-browser --version
Chromium 113.0.5672.63 Fedora Project

$ chromedriver --version
ChromeDriver 113.0.5672.63 (0e1a4471d5ae5bf128b1bd8f4d627c8cbd55f70c-refs/branch-heads/5672@{#912})

Browser Configuration in config.yaml

# browser configuration
browser:
  # https://peter.sh/experiments/chromium-command-line-switches/
  arguments:
    #[IP got blocked! · Issue #152 · Second-Hand-Friends/kleinanzeigen-bot](https://github.com/Second-Hand-Friends/kleinanzeigen-bot/issues/152)
    #- --user-agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
    # https://stackoverflow.com/a/50725918/5116073
    - --disable-dev-shm-usage
    - --no-sandbox
    #- --headless
    # --start-maximized
  binary_location: #"/snap/bin/chromium.chromedriver" #"/usr/bin/chromedriver" #
  # path to custom browser executable, if not specified will be looked up on PATH
  extensions: [] # a list of .crx extension files to be loaded
  use_private_window: true
  user_data_dir: "" # see https://github.com/chromium/chromium/blob/main/docs/user_data_dir.md
  profile_name: ""

 _    _      _                           _                       _           _
| | _| | ___(_)_ __   __ _ _ __  _______(_) __ _  ___ _ __      | |__   ___ | |_
| |/ / |/ _ \ | '_ \ / _` | '_ \|_  / _ \ |/ _` |/ _ \ '_ \ ____| '_ \ / _ \| __|
|   <| |  __/ | | | | (_| | | | |/ /  __/ | (_| |  __/ | | |____| |_) | (_) | |_
|_|\_\_|\___|_|_| |_|\__,_|_| |_/___\___|_|\__, |\___|_| |_|    |_.__/ \___/ \__|
                                           |___/
                         https://github.com/Second-Hand-Friends/kleinanzeigen-bot

[INFO] Logging to [/mnt/Documents/Mobile/Data/Task/Todo/Sales/kleinanzeigen-bot.log]...
[INFO] App version: 0.1.dev1+gb82b1f7
[INFO] Loading config from [/home/lamy/opt/Kleinanzeigen/config.yaml]...
[INFO]  -> found 138 categories
[INFO] Searching for ad config files...
[INFO]  -> found 2 ad config files
[INFO] Loading ad from [/home/lamy/Documents/Mobile/Data/Task/Todo/Sales/Bike/ad_Bike.yaml]...
[INFO] Loading ad from [/home/lamy/Documents/Mobile/Data/Task/Todo/Sales/Macbook/ad_Laptop.yaml]...
[INFO] Loaded 2 ads
[INFO] Creating WebDriver session...
[INFO] Using pre-installed Chrome Driver [/usr/bin/chromedriver]
[INFO]  -> Custom chrome argument: --disable-dev-shm-usage
[INFO]  -> Custom chrome argument: --no-sandbox
[ERROR] WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/lib64/chromium-browser/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55ed2cfbbee3 <unknown>
#1 0x55ed2cc21f08 <unknown>
#2 0x55ed2cc4aa63 <unknown>
#3 0x55ed2cc46e8e <unknown>
#4 0x55ed2cc8364b <unknown>
#5 0x55ed2cc7a963 <unknown>
#6 0x55ed2cc51429 <unknown>
#7 0x55ed2cc52952 <unknown>
#8 0x55ed2cf8e459 <unknown>
#9 0x55ed2cf90b2e <unknown>
#10 0x55ed2cf90579 <unknown>
#11 0x55ed2cf91245 <unknown>
#12 0x55ed2cf96c93 <unknown>
#13 0x55ed2cf915c5 <unknown>
#14 0x55ed2cf6fd6a <unknown>
#15 0x55ed2cfa9948 <unknown>
#16 0x55ed2cfa9adb <unknown>
#17 0x55ed2cfb66ff <unknown>
#18 0x7fbf56bcd907 start_thread
#19 0x7fbf56c53870 __clone3

[113660] Failed to execute script '__main__' due to unhandled exception!
@sebthom
Copy link
Contributor

sebthom commented May 15, 2023

Looks like duplicate of your other issue #146

@lamyergeier
Copy link
Author

lamyergeier commented May 15, 2023

@sebthom Unfortunately not as in #146, chrome actually starts and remains blank (for the whole duration) as shown in the attached image in that issue.

In this case the chrome doesn't even start. Also, the current issue is from Fedora 38, while #146 is from Ubuntu 22.04 and 23.04. Ubuntu uses snap for Chrome and Chromewebdriver, while Fedora uses native rpm package for the browser and the webdriver.

@stale
Copy link

stale bot commented Sep 13, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If the issue is still valid, please add a respective comment to prevent this issue from being closed automatically. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 13, 2023
@stale stale bot closed this as completed Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Development

No branches or pull requests

2 participants