Can someone help me understand the following error...
# community-help
a
Can someone help me understand the following error? I'm using Typesense version 27.1. Whenever I send a request to Typesense, I get the error:
[Errno 503] Not Ready or Lagging
After this, the service restarts.
Copy code
E20250305 04:41:57.465174    59 backward.hpp:4200] Stack trace (most recent call last) in thread 59:
E20250305 04:41:57.465246    59 backward.hpp:4200] #13   Object "", at 0xffffffffffffffff, in
E20250305 04:41:57.465263    59 backward.hpp:4200] #12   Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7c4df0ebba03, in __clone
E20250305 04:41:57.465279    59 backward.hpp:4200] #11   Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7c4df0e2aac2, in
E20250305 04:41:57.465292    59 backward.hpp:4200] #10   Object "/opt/typesense-server", at 0x57cf0626cc33, in execute_native_thread_routine
E20250305 04:41:57.465306    59 backward.hpp:4200] #9  | Source "include/threadpool.h", line 59, in operator()
E20250305 04:41:57.465319    59 backward.hpp:4200]       Source "/usr/include/c++/10/future", line 1592, in ThreadPool [0x57cf03700a7c]
E20250305 04:41:57.465333    59 backward.hpp:4200] #8  | Source "/usr/include/c++/10/future", line 1459, in _M_set_result
E20250305 04:41:57.465348    59 backward.hpp:4200]     | Source "/usr/include/c++/10/future", line 412, in call_once<void (std::__future_base::_State_baseV2::*)(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter>()>*, bool*), std::__future_base::_State_baseV2*, std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter>()>*, bool*>
E20250305 04:41:57.465363    59 backward.hpp:4200]     | Source "/usr/include/c++/10/mutex", line 729, in __gthread_once
E20250305 04:41:57.465375    59 backward.hpp:4200]       Source "/usr/include/x86_64-linux-gnu/c++/10/bits/gthr-default.h", line 700, in _M_run [0x57cf038c6d53]
E20250305 04:41:57.465389    59 backward.hpp:4200] #7    Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7c4df0e2fee7, in
E20250305 04:41:57.465420    59 backward.hpp:4200] #6  | Source "/usr/include/c++/10/future", line 572, in operator()
E20250305 04:41:57.465435    59 backward.hpp:4200]       Source "/usr/include/c++/10/bits/std_function.h", line 622, in _M_do_set [0x57cf036ffc92]
E20250305 04:41:57.465452    59 backward.hpp:4200] #5  | Source "/usr/include/c++/10/bits/std_function.h", line 292, in __invoke_r<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter>, std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args ...)>::_M_run<std::_Bind<HttpServer::process_request(const std::shared_ptr<http_req>&, const std::shared_ptr<http_res>&, route_path*, const h2o_custom_req_handler_t*, bool)::<lambda()>()>, std::allocator<int>, void, {}>::<lambda()>, void>&>
E20250305 04:41:57.465468    59 backward.hpp:4200]     | Source "/usr/include/c++/10/bits/invoke.h", line 115, in __invoke_impl<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args ...)>::_M_run<std::_Bind<HttpServer::process_request(const std::shared_ptr<http_req>&, const std::shared_ptr<http_res>&, route_path*, const h2o_custom_req_handler_t*, bool)::<lambda()>()>, std::allocator<int>, void, {}>::<lambda()>, void>&>
E20250305 04:41:57.465483    59 backward.hpp:4200]     | Source "/usr/include/c++/10/bits/invoke.h", line 60, in operator()
E20250305 04:41:57.465499    59 backward.hpp:4200]     | Source "/usr/include/c++/10/future", line 1397, in operator()
E20250305 04:41:57.465515    59 backward.hpp:4200]     | Source "/usr/include/c++/10/future", line 1456, in __invoke_r<void, std::_Bind<HttpServer::process_request(const std::shared_ptr<http_req>&, const std::shared_ptr<http_res>&, route_path*, const h2o_custom_req_handler_t*, bool)::<lambda()>()>&>
E20250305 04:41:57.465530    59 backward.hpp:4200]     | Source "/usr/include/c++/10/bits/invoke.h", line 110, in __invoke_impl<void, std::_Bind<HttpServer::process_request(const std::shared_ptr<http_req>&, const std::shared_ptr<http_res>&, route_path*, const h2o_custom_req_handler_t*, bool)::<lambda()>()>&>
E20250305 04:41:57.465546    59 backward.hpp:4200]     | Source "/usr/include/c++/10/bits/invoke.h", line 60, in operator()<>
E20250305 04:41:57.465562    59 backward.hpp:4200]     | Source "/usr/include/c++/10/functional", line 499, in __call<void>
E20250305 04:41:57.465577    59 backward.hpp:4200]     | Source "/usr/include/c++/10/functional", line 416, in __invoke<HttpServer::process_request(const std::shared_ptr<http_req>&, const std::shared_ptr<http_res>&, route_path*, const h2o_custom_req_handler_t*, bool)::<lambda()>&>
E20250305 04:41:57.465595    59 backward.hpp:4200]     | Source "/usr/include/c++/10/bits/invoke.h", line 95, in __invoke_impl<void, HttpServer::process_request(const std::shared_ptr<http_req>&, const std::shared_ptr<http_res>&, route_path*, const h2o_custom_req_handler_t*, bool)::<lambda()>&>
E20250305 04:41:57.465610    59 backward.hpp:4200]     | Source "/usr/include/c++/10/bits/invoke.h", line 60, in operator()
E20250305 04:41:57.465626    59 backward.hpp:4200]       Source "src/http_server.cpp", line 727, in _M_invoke [0x57cf038c8bd3]
E20250305 04:41:57.465641    59 backward.hpp:4200] #4    Source "src/core_api.cpp", line 574, in get_search [0x57cf03830acb]
E20250305 04:41:57.465657    59 backward.hpp:4200] #3    Source "src/collection_manager.cpp", line 1696, in do_search [0x57cf037cfc2f]
E20250305 04:41:57.465672    59 backward.hpp:4200] #2    Source "src/collection.cpp", line 1728, in search [0x57cf0374e6bc]
E20250305 04:41:57.465691    59 backward.hpp:4200] #1    Source "src/collection.cpp", line 6545, in parse_and_validate_vector_query [0x57cf0372f9f3]
E20250305 04:41:57.465705    59 backward.hpp:4200] #0  | Source "src/vector_query_ops.cpp", line 177, in operator-><>
E20250305 04:41:57.465720    59 backward.hpp:4200]     | Source "include/tsl/htrie_hash.h", line 658, in value<>
E20250305 04:41:57.465739    59 backward.hpp:4200]     | Source "include/tsl/htrie_hash.h", line 638, in value<>
E20250305 04:41:57.465754    59 backward.hpp:4200]     | Source "include/tsl/htrie_hash.h", line 645, in value<>
E20250305 04:41:57.465770    59 backward.hpp:4200]     | Source "include/tsl/array-hash/array_hash.h", line 870, in value_position<>
E20250305 04:41:57.465785    59 backward.hpp:4200]     | Source "include/tsl/array-hash/array_hash.h", line 927, in value<>
E20250305 04:41:57.465798    59 backward.hpp:4200]     | Source "include/tsl/array-hash/array_hash.h", line 318, in key_size
E20250305 04:41:57.465845    59 backward.hpp:4200]       Source "include/tsl/array-hash/array_hash.h", line 312, in parse_vector_query_str [0x57cf03a6bffc]
Segmentation fault (Address not mapped to object [(nil)])
j
IIRC, this is fixed in v28.0. You want to upgrade to that version
k
This bug has been fixed in v28
a
@Kishore Nallan @Jason Bosco Thank you for the update