pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
314 stars 217 forks source link

Crash / Abort in Node create_thread on Ubuntu 20.04 #336

Closed joshelson closed 6 months ago

joshelson commented 6 months ago

Brand new checkout here, on Ubuntu 20.04 with a standard project setup. Everything is fine, until running pelias elastic create, which results in this:

Creating pelias_schema_run ... done

node[6]: ../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: 0xb090e0 node::Abort() [node]
 2: 0xb0915e  [node]
 3: 0xb7512e  [node]
 4: 0xb751f6 node::NodePlatform::NodePlatform(int, v8::TracingController*) [node]
 5: 0xacbf74 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [node]
 6: 0xaccb59 node::Start(int, char**) [node]
 7: 0x7f15c5a9ed90  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7f15c5a9ee40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0xa408ec  [node]
./bin/create_index: line 4:     6 Aborted                 (core dumped) node --max-http-header-size=16384 scripts/create_index.js

Anyone run into this before?

joshelson commented 6 months ago

Welp, I can answer this one for myself really quick.

It appears that my 20.04 shipped with a fairly old Docker version... 19.x. And just updating to 24.x seems to have, at least in this case, resolved the issue. Weird, but it worked.

I hope that helps someone else.