go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5.47k stars 359 forks source link

panic: [launcher] Failed to get the debug url: [11:11:1020/160954.246298:FATAL:spawn_subprocess.cc(221)] posix_spawn: Operation not permitted (1) #742

Open ysk229 opened 2 years ago

ysk229 commented 2 years ago

docker image 运行报错

FROM ghcr.io/go-rod/rod:v0.112.0 FROM ghcr.io/go-rod/rod:v0.110.1 这两个基础镜像都build之后,运行都 报 panic: [launcher] Failed to get the debug url: [11:11:1020/160954.246298:FATAL:spawn_subprocess.cc(221)] posix_spawn: Operation not permitted (1)

0 0x55a2a7aebf02 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x7559f01)

1 0x55a2a7a5d6f3 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x74cb6f2)

2 0x55a2a7a5a987 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x74c8986)

3 0x55a2a7a5b94a (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x74c9949)

4 0x55a2aa1e73a6 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x9c553a5)

5 0x55a2aa1e4723 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x9c52722)

6 0x55a2aa1f2757 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x9c60756)

7 0x55a2aa1d99d9 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x9c479d8)

8 0x55a2a3c6f4df (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x36dd4de)

9 0x55a2a75b3321 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x7021320)

10 0x55a2a75b0d90 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x701ed8f)

11 0x55a2a75b10d5 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x701f0d4)

12 0x55a2a3c6e227 (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x36dc226)

13 0x7fa554980d90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

14 0x7fa554980e40 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29e3f)

15 0x55a2a3c6e02a (/root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome+0x36dc029)

[10:10:1020/160957.720669:FATAL:crashpad_linux.cc(195)] Check failed: client.StartHandler(handler_path, *database_path, metrics_path, url, annotations, arguments, false, false).

0 0x55a2a7aebf02 base::debug::CollectStackTrace()

1 0x55a2a7a5d6f3 base::debug::StackTrace::StackTrace()

2 0x55a2a7a5a987 logging::LogMessage::~LogMessage()

3 0x55a2a7a5b6ce logging::LogMessage::~LogMessage()

4 0x55a2aa1f2791 crash_reporter::internal::PlatformCrashpadInitialization()

5 0x55a2aa1d99d9 crash_reporter::InitializeCrashpad()

6 0x55a2a3c6f4df ChromeMainDelegate::PreSandboxStartup()

7 0x55a2a75b3321 content::ContentMainRunnerImpl::Initialize()

8 0x55a2a75b0d90 content::RunContentProcess()

9 0x55a2a75b10d5 content::ContentMain()

10 0x55a2a3c6e227 ChromeMain

11 0x7fa554980d90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

12 0x7fa554980e40 __libc_start_main

13 0x55a2a3c6e02a _start

rod-robot commented 2 years ago

Please add a valid Rod Version: v0.0.0 to your issue. Current version is v0.112.0

Please fix the format of your markdown:

7:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#0 0x55a2a7aebf02 (/root/.cach..."]
8:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#1 0x55a2a7a5d6f3 (/root/.cach..."]
9:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#2 0x55a2a7a5a987 (/root/.cach..."]
10:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#3 0x55a2a7a5b94a (/root/.cach..."]
11:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#4 0x55a2aa1e73a6 (/root/.cach..."]
12:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#5 0x55a2aa1e4723 (/root/.cach..."]
13:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#6 0x55a2aa1f2757 (/root/.cach..."]
14:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#7 0x55a2aa1d99d9 (/root/.cach..."]
15:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#8 0x55a2a3c6f4df (/root/.cach..."]
16:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#9 0x55a2a75b3321 (/root/.cach..."]
17:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#10 0x55a2a75b0d90 (/root/.cac..."]
18:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#11 0x55a2a75b10d5 (/root/.cac..."]
19:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#12 0x55a2a3c6e227 (/root/.cac..."]
20:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#13 0x7fa554980d90 (/usr/lib/x..."]
21:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#14 0x7fa554980e40 (/usr/lib/x..."]
22:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#15 0x55a2a3c6e02a (/root/.cac..."]
24:178 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]
25:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#0 0x55a2a7aebf02 base::debug:..."]
26:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#1 0x55a2a7a5d6f3 base::debug:..."]
27:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#2 0x55a2a7a5a987 logging::Log..."]
28:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#3 0x55a2a7a5b6ce logging::Log..."]
29:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#4 0x55a2aa1f2791 crash_report..."]
30:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#5 0x55a2aa1d99d9 crash_report..."]
31:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#6 0x55a2a3c6f4df ChromeMainDe..."]
32:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#7 0x55a2a75b3321 content::Con..."]
33:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#8 0x55a2a75b0d90 content::Run..."]
34:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#9 0x55a2a75b10d5 content::Con..."]
35:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#10 0x55a2a3c6e227 ChromeMain"]
36:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#11 0x7fa554980d90 (/usr/lib/x..."]
37:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#12 0x7fa554980e40 __libc_star..."]
38:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#13 0x55a2a3c6e02a _start"]
40 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]

generated by check-issue

ysmood commented 2 years ago

我这儿 mac 和 linux 都没问题,你可以看看 rod 的 ci,3 个系统都测了,应该是你代码的问题

ysk229 commented 2 years ago

是debian系统有存在的问题

ysmood commented 2 years ago

抱歉,没看懂你描述的意思