Hi I try to run typesense-server on ubuntu 20, wit...
# community-help
w
Hi I try to run typesense-server on ubuntu 20, with a prebuild binary. But when I try to start the server I always get an error. Did I miss something, I followed the commands of the install guide?
Copy code
I20220419 10:50:52.973781 908186 typesense_server_utils.cpp:306] Starting Typesense 0.22.2
I20220419 10:50:52.973887 908186 typesense_server_utils.cpp:309] Typesense is using jemalloc.
I20220419 10:50:52.974320 908186 typesense_server_utils.cpp:358] Thread pool size: 32
terminate called after throwing an instance of 'std::system_error'
  what():  Resource temporarily unavailable
E20220419 10:50:53.104020 908186 backward.hpp:4199] Stack trace (most recent call last):
E20220419 10:50:53.104068 908186 backward.hpp:4199] #11   Object "/home/william/wa/typesense/typesense-server", at 0xa2d680, in _start
E20220419 10:50:53.104084 908186 backward.hpp:4199] #10   Object "/lib/x86_64-linux-gnu/libc-2.31.so", at 0x7f2f8ba590b2, in __libc_start_main
E20220419 10:50:53.104095 908186 backward.hpp:4199] #9    Source "/typesense/src/main/typesense_server.cpp", line 147, in main [0x9fe342]
E20220419 10:50:53.104110 908186 backward.hpp:4199] #8  | Source "/typesense/src/typesense_server_utils.cpp", line 360, in ThreadPool
E20220419 10:50:53.104122 908186 backward.hpp:4199]     | Source "/typesense/include/threadpool.h", line 56, in emplace_back<ThreadPool::ThreadPool(size_t)::<lambda()> >
E20220419 10:50:53.104135 908186 backward.hpp:4199]     | Source "/usr/local/gcc-10.1.0/include/c++/10.1.0/bits/vector.tcc", line 115, in construct<std::thread, ThreadPool::ThreadPool(size_t)::<lambda()> >
E20220419 10:50:53.104147 908186 backward.hpp:4199]     | Source "/usr/local/gcc-10.1.0/include/c++/10.1.0/bits/alloc_traits.h", line 512, in construct<std::thread, ThreadPool::ThreadPool(size_t)::<lambda()> >
E20220419 10:50:53.104161 908186 backward.hpp:4199]     | Source "/usr/local/gcc-10.1.0/include/c++/10.1.0/ext/new_allocator.h", line 150, in thread<ThreadPool::ThreadPool(size_t)::<lambda()> >
E20220419 10:50:53.104172 908186 backward.hpp:4199]       Source "/usr/local/gcc-10.1.0/include/c++/10.1.0/thread", line 149, in run_server [0xbbc1a1]
E20220419 10:50:53.104184 908186 backward.hpp:4199] #7    Source "../../../../../libstdc++-v3/src/c++11/thread.cc", line 139, in _M_start_thread [0x19b7418]
E20220419 10:50:53.104197 908186 backward.hpp:4199] #6    Source "../../../../../libstdc++-v3/src/c++11/system_error.cc", line 338, in __throw_system_error [0x9fa535]
E20220419 10:50:53.104208 908186 backward.hpp:4199] #5    Source "../../../../libstdc++-v3/libsupc++/eh_throw.cc", line 95, in __cxa_throw [0x193f5d3]
E20220419 10:50:53.104220 908186 backward.hpp:4199] #4    Source "../../../../libstdc++-v3/libsupc++/eh_terminate.cc", line 58, in terminate [0x193f480]
E20220419 10:50:53.104231 908186 backward.hpp:4199] #3    Source "../../../../libstdc++-v3/libsupc++/eh_terminate.cc", line 48, in abort [0x193f415]
E20220419 10:50:53.104315 908186 backward.hpp:4199] #2    Source "../../../../libstdc++-v3/libsupc++/vterminate.cc", line 95, in __verbose_terminate_handler [0x9f89ea]
E20220419 10:50:53.104328 908186 backward.hpp:4199] #1    Object "/lib/x86_64-linux-gnu/libc-2.31.so", at 0x7f2f8ba57858, in abort
E20220419 10:50:53.104339 908186 backward.hpp:4199] #0    Object "/lib/x86_64-linux-gnu/libc-2.31.so", at 0x7f2f8ba7803b, in raise
Aborted (Signal sent by tkill() 908186 0)
E20220419 10:50:53.224926 908186 typesense_server.cpp:89] Typesense 0.22.2 is terminating abruptly.
k
@William Schneider Does this happen as soon as you start Typesense or during a specific operation?
w
No as soon as I try to start the server, this only happens on my vps, if I try it localy everything works fine.
k
I see:
Copy code
what():  Resource temporarily unavailable
According to the standard, this happens when:
the system lacked the necessary resources to create another thread, or the system-imposed limit on the number of threads in a process would be exceeded.
I think that your Linux is running into some resource related constraints. Either a limit on number of threads, or ulimit file limit.
w
I will check that thanks.