I20221101 09:36:09.179997 110 store.h:307] DB op...
# community-help
v
I20221101 093609.179997 110 store.h:307] DB open success! I20221101 093609.182243 110 raft_server.cpp:479] Loading collections from disk... I20221101 093609.182246 110 collection_manager.cpp:132] CollectionManager::load() E20221101 093609.262549 85 typesense_server.cpp:95] Typesense 0.23.1 is terminating abruptly.
k
There should be a stack trace in the logs.
v
where will i find logs
k
Either stderr or the log directory it you've configured one specifically
v
E20221101 103650.559422 84 backward.hpp:4199] Stack trace (most recent call last) in thread 84: E20221101 103650.559542 84 backward.hpp:4199] #5 Object "", at 0xffffffffffffffff, in E20221101 103650.559551 84 backward.hpp:4199] #4 Object "/lib/x86_64-linux-gnu/libc-2.23.so", at 0x7efdfabcd51c, in __clone E20221101 103650.559557 84 backward.hpp:4199] #3 Object "/lib/x86_64-linux-gnu/libpthread-2.23.so", at 0x7efdfb5ac6b9, in start_thread E20221101 103650.559805 84 backward.hpp:4199] #2 Source "../../../../../libstdc++-v3/src/c++11/thread.cc", line 80, in execute_native_thread_routine [0x14ac6cf] E20221101 103650.559813 84 backward.hpp:4199] #1 Source "/typesense/src/batched_indexer.cpp", line 123, in run [0x50c1b6] E20221101 103650.559814 84 backward.hpp:4199] #0 Source "/typesense/include/store.h", line 169, in scan [0x512145] Segmentation fault (Address not mapped to object [(nil)])
k
Are you able to reproduce this issue consistently?
v
yes
whenever i restart it shows this error and all data got deleted.
k
Is this on Docker?
Post the full docker command used
v
yes
i am using docker run -i -p 8108:8108 -v/tmp/typesense-server-data-1c/:/data typesense/typesense:0.23.1 --data-dir /data --api-key=xyz --listen-port 8108 --enable-cors
k
Don't mount tmp directory from localhost. That will get purged often.
v
so i have to use other location to avoid this?. Can you tell how to remove typesense server from local i am unable to remove it.
k
What do you mean by remove? If you are running using Docker, you stop the container.
v
ok thanks
👍 2