YouTube-Viewer icon indicating copy to clipboard operation
YouTube-Viewer copied to clipboard

Chrome failed to start and OSError

Open ind0 opened this issue 1 year ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

I'm submitting a ...

  • [X] bug report
  • [ ] feature request
  • [ ] support request --> Contact me over mail for support https://github.com/MShawon

Description

[02-Aug-2022 06:33:32] | 11.5% | Worker 1 | Line : 643 | WebDriverException | unknown error: Chrome failed to start: was killed. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

[02-Aug-2022 06:34:37] | 3.8% | Worker 11 | Line : 643 | OSError | 22

Environment

- OS : win 10
- Python : EXE
- Script version : 1.7.4

Running on 
Intel Xeon platinum 8161 and 32gb ram

config.json

{
    "http_api": {
        "enabled": true,
        "host": "0.0.0.0",
        "port": 5000
    },
    "database": true,
    "views": 10000,
    "minimum": 85.0,
    "maximum": 99.0,
    "proxy": {
        "category": "p",
        "proxy_type": "http",
        "filename": "proxy.txt",
        "authentication": true,
        "proxy_api": false,
        "refresh": 1.0
    },
    "background": false,
    "bandwidth": true,
    "playback_speed": 3,
    "max_threads": 4,
    "min_threads": 2
}

ind0 avatar Aug 02 '22 06:08 ind0

encounter another issue with the same vps

[05-Aug-2022 02:22:39] | 7.7% | Worker 3 | Line : 663 | TypeError | argument of type 'NoneType' is not iterable [05-Aug-2022 02:23:31] | 7.7% | Worker 4 | Line : 643 | WebDriverException | chrome not reachable

ind0 avatar Aug 05 '22 02:08 ind0

which vps?

you were able to run the program on your local machine or on a VirtualBox?

MShawon avatar Aug 05 '22 11:08 MShawon

using azure vps works normal for first 24hrs and then all error i said showed up

ind0 avatar Aug 06 '22 16:08 ind0

and today i got this error

[06-Aug-2022 23:56:27] | 100.0% | Worker 54 | Line : 687 | MaxRetryError | HTTPConnectionPool(host='localhost', port=6503): Max retries exceeded with url: /session/47b35353590ce0117b58f3238c1c35c1/element/61b4bb9e-fc03-4274-9f00-06789372962e/text (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001A98596B670>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

ind0 avatar Aug 06 '22 23:08 ind0

so it works for 24 hrs? if so then it is related to your VPS limitation or configuration.. you might want to setup your VPS to restart every 24 hrs or so and start the script automatically by some bat file

MShawon avatar Aug 08 '22 15:08 MShawon