Open
Description
Hi, very interested in trying this out but ran into some issues this afternoon:
- docker compose ( Create docker-compose.yml #10 ) fails on step 2 (snippet included below) while building the backend:
Step 2/8 : RUN npm install -g ts-node typescript grunt grunt-cli
---> Running in 3fbe17ca45b6
node[7]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
1: 0xb9a330 node::Abort() [node]
2: 0xb9a3ae [node]
3: 0xc084be [node]
4: 0xc085a1 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
5: 0xb56253 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
6: 0xb568ab node::Start(int, char**) [node]
7: 0x786aaf7f124a [/lib/x86_64-linux-gnu/libc.so.6]
8: 0x786aaf7f1305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
9: 0xad58ae _start [node]
Aborted (core dumped)
The command '/bin/sh -c npm install -g ts-node typescript grunt grunt-cli' returned a non-zero code: 134
ERROR: Service 'backend' failed to build : Build failed
- Following this up with a direct
docker build
command on worklenz-backend results in the same error.- from within the repo, reproduce with:
docker build -t worklenz-backend worklenz-backend/ --no-cache
- switching to the more recent node.js 20 image as base in the
Dockerfile
does not resolve the issue - switching to
18-alpine
or20-alpine
means that additionalapk
dependencies would need to be installed- I did not chase this all the way to the end, but can if this information would be useful.
- from within the repo, reproduce with:
Sending build context to Docker daemon 14.2MB
Step 1/9 : FROM node:20
---> a740756586cb
Step 2/9 : WORKDIR /usr/src/app
---> Running in 5bbc6aa61764
Removing intermediate container 5bbc6aa61764
---> b55c863d2060
Step 3/9 : RUN npm install -g ts-node typescript grunt grunt-cli
---> Running in dee45f93d7e4
# node[7]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
# Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
----- Native stack trace -----
1: 0xcba0f7 node::Assert(node::AssertionInfo const&) [node]
2: 0xd3942e node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
3: 0xd3950c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
4: 0xc6e2d6 [node]
5: 0xc6f7d4 node::Start(int, char**) [node]
6: 0x74ac9f11824a [/lib/x86_64-linux-gnu/libc.so.6]
7: 0x74ac9f118305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
8: 0xbc5c8e _start [node]
Aborted (core dumped)
Metadata
Metadata
Assignees
Labels
No labels