Describe the bug
It doesn't start at all.
To Reproduce
This looks like a crash to me:
$ docker run -it --rm browserless/chrome:latest
node[8]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
1: 0xb06730 node::Abort() [node]
2: 0xb067ae [node]
3: 0xb756fe [node]
4: 0xb757c6 node::NodePlatform::NodePlatform(int, v8::TracingController*) [node]
5: 0xacc654 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [node]
6: 0xacd239 node::Start(int, char**) [node]
7: 0x7fd633dafd90 [/lib/x86_64-linux-gnu/libc.so.6]
8: 0x7fd633dafe40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
9: 0xa4080c [node]
Expected behavior
No crash.
Desktop (please complete the following information):
Duplicate issue on a fresh pull (first time trying). Pulled from latest with the changedetection.io defaults.
Error is basically identical.
node[10]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
...
docker-compose.yml snippet
playwright-chrome:
hostname: playwright-chrome
image: browserless/chrome
restart: unless-stopped
environment:
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1024
- SCREEN_DEPTH=16
- ENABLE_DEBUGGER=false
- PREBOOT_CHROME=true
- CONNECTION_TIMEOUT=300000
- MAX_CONCURRENT_SESSIONS=10
- CHROME_REFRESH_TIME=600000
- DEFAULT_BLOCK_ADS=true
- DEFAULT_STEALTH=true
Kernel: 5.4.78-2-pve
Docker: 18.09.1, build 4c52b90
Same problem and I have it also on older images, not just the latest
docker run -p 3000:3000 browserless/chrome:1.56-puppeteer-16.2.0
node[8]: ../src/node_platform.cc:61:std::unique_ptr node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
1: 0xb02960 node::Abort() [node]
2: 0xb029de [node]
3: 0xb6fb7e [node]
4: 0xb6fc46 node::NodePlatform::NodePlatform(int, v8::TracingController*) [node]
5: 0xac7d64 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [node]
6: 0xac8949 node::Start(int, char**) [node]
7: 0x7f45b8651d90 [/lib/x86_64-linux-gnu/libc.so.6]
8: 0x7f45b8651e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
Might be the pr to bump to node 18.... let me revert that and see if it fixes it
Nope. :(
Fails on the latest. browserless/[email protected]:dd3a9625f
I also tried a much older container after my initial comment. 1-puppeteer-10.4.0
I suspect it's something on the underlying OS that's killing it. I did try a fresh apt update and dist-upgrade when I got those errors.
Same issue with the latest image and even older images on ubuntu 18.04!
$ docker run -it --rm browserless/chrome:latest
node[9]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion (0) == (uv_thread_create(t.get(), start_thread, this)) failed.
1: 0xb08e80 node::Abort() [node]
2: 0xb08efe [node]
3: 0xb750ce [node]
4: 0xb75196 node::NodePlatform::NodePlatform(int, v8::TracingController*) [node]
5: 0xacbee4 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [node]
6: 0xaccac9 node::Start(int, char**) [node]
7: 0x7f1e0996dd90 [/lib/x86_64-linux-gnu/libc.so.6]
8: 0x7f1e0996de40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
9: 0xa408ec [node]
$ uname -a
Linux quaeris-v3-dev01-vm-dockerhost 5.4.0-1091-azure #96~18.04.1-Ubuntu SMP Tue Aug 30 19:15:32 UTC 2022 x86_64 GNU/Linux
One thing I noticed is that nodejs is not installed on the VM, but then it's containerized anyway.
I haven't gotten around to investigating in this direction but this seems related: nodejs/help#1754
Owner Name | browserless |
Repo Name | chrome |
Full Name | browserless/chrome |
Language | TypeScript |
Created Date | 2017-11-17 |
Updated Date | 2023-03-22 |
Star Count | 5309 |
Watcher Count | 47 |
Fork Count | 516 |
Issue Count | 29 |
Issue Title | Created Date | Updated Date |
---|