Skip to content

初始化浏览器出现错误 #373

@KusuLeung

Description

@KusuLeung

2025-06-12 19:28:06 | initialize kuaishou crawler failed:
---------------------
Failed to connect to browser
---------------------
One of the causes could be when you are running as root.
In that case you need to pass no_sandbox=True
, will abort all the sources for kuaishou platform
...

初始化浏览器出现错误,配置如下:
{'user_data_dir': 'work_dir/browser_data', 'headless': False, 'no_sandbox': True, 'browser_args': ['--lang=zh-CN', '--no-sandbox', '--disable-setuid-sandbox', '--disable-translate', '--no-first-run', '--no-default-browser-check']}

我是在Docker里面使用非root用户执行,但即使修改了--no-sandbox也依然不行。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions