Hey, I struggle with selfhosted typesense breaking...
# community-help
s
Hey, I struggle with selfhosted typesense breaking after few days. Here's log file stripped around the event it happens. Here's my compose version: '3.8' services: web: build: context: . dockerfile: Dockerfile args: - BUILDKIT_PROGRESS=plain ports: - "26396:4321" environment: - DB_HOST=${DB_HOST} - DB_PORT=${DB_PORT} - DB_USER=${DB_USER} - DB_PASSWORD=${DB_PASSWORD} - DB_NAME=${DB_NAME} - AUTH_SECRET=${AUTH_SECRET} - LANG=C.UTF-8 - LC_ALL=C.UTF-8 - PYTHONIOENCODING=utf-8 command: pnpm start network_mode: bridge typesense: image: typesense/typesense:27.0 restart: on-failure ports: - "26397:8108" volumes: - ./typesense-data:/data command: '--data-dir /data --api-key=${TYPESENSE_API_KEY} --enable-cors' environment: - TYPESENSE_API_KEY=${TYPESENSE_API_KEY} Any ideas?
j
This is the actual error:
Copy code
E20240926 18:11:38.393096   361 snapshot.cpp:188] Fail to create directory /data/state/snapshot/temp, -4
E20240926 18:11:38.398139   361 snapshot.cpp:565] Fail to init writer in path /data/state/snapshot/temp, CreateDirectory failed with path: /data/state/snapshot/temp
E20240926 18:11:38.398463   471 raft_server.cpp:1157] Timed snapshot failed, error: Fail to create writer, code: 5
E20240926 18:11:38.398656   466 raft_server.h:289] Met peering error {type=SnapshotError, error_code=5, error_text=`Fail to create SnapshotWriter'}
W20240926 18:11:38.399212   466 node.cpp:1311] node default_group:192.168.16.2:8107:8108 got error={type=SnapshotError, error_code=5, error_text=`Fail to create SnapshotWriter'}
I20240926 18:11:38.399274   466 replicator.cpp:1499] Group default_group Fail to find the next candidate
I20240926 18:11:38.400369   466 raft_server.h:281] Node stepped down : Raft node(leader or candidate) is in error.
Looks like somehow that volume is not writeable?
s
well, I did 777 on the directory, we'll see. Thanks