Neil Kumar
08/31/2024, 8:34 PMtypesense-1 | E20240831 20:32:14.127265 1 store.cpp:54] Error while initializing store: IO error: No such file or directory: While mkdir if missing: No such file or directory
typesense-1 | E20240831 20:32:14.127300 1 store.cpp:56] It seems like the data directory is already being used by another Typesense server.
typesense-1 | E20240831 20:32:14.127313 1 store.cpp:58] If you are SURE that this is not the case, delete the LOCK file in the data db directory and try again.
r
I tried deleting the LOCK files and trying again, but same issue. I was able to revert back to 0.26 for now.Kishore Nallan
09/01/2024, 6:25 AMNeil Kumar
09/01/2024, 9:00 AMcommand: '--log-dir /logs --data-dir /data --api-key=REDACTED --enable-cors --healthy-read-lag 10000 --healthy-write-lag 1000'
Kishore Nallan
09/01/2024, 9:01 AMError while initializing store: IO error: No such file or directory: While mkdir if missing: No such file or directorySeems like that data directory somehow does not exist when you started with the new version. Can you double check that command indeed points to the correct directory?
Neil Kumar
09/01/2024, 9:41 AM/data
directory:
root@10553484d797:/# ls /data
db meta models state
Kishore Nallan
09/01/2024, 11:16 AMNeil Kumar
09/01/2024, 5:27 PMimage: typesense/typesense:26.0
to
image: typesense/typesense:27.0
Still getting the above errors. I can get into the container running 0.27 and I can verify that it can see and has access to all of the files in the /data
directory.Neil Kumar
09/02/2024, 9:55 AMNeil Kumar
09/08/2024, 5:56 AMtypesense:
image: typesense/typesense:27.0
restart: on-failure
ports:
- "5724:8108"
environment:
TYPESENSE_LOG_DIR: /logs
TYPESENSE_DATA_DIR: /data
TYPESENSE_API_KEY: REDACTED
TYPESENSE_HEALTHY_READ_LAG: 10000
TYPESENSE_HELATHY_WRITE_LAG: 1000
TYPESENSE_DB_COMPACTION_SECONDS: 0
volumes:
- /var/local/typesense/data:/data
- /var/local/typesense/logs:/logs
Neil Kumar
09/08/2024, 5:57 AMNeil Kumar
09/08/2024, 5:57 AMKishore Nallan
09/08/2024, 5:59 AMNeil Kumar
09/08/2024, 6:04 AMstate_dir_path
is that supposed to be the state directory under the /data directory?Kishore Nallan
09/08/2024, 6:10 AM/<data_dir_path>/db
Kishore Nallan
09/08/2024, 6:14 AMNeil Kumar
09/08/2024, 6:14 AMNeil Kumar
09/08/2024, 6:14 AMKishore Nallan
09/08/2024, 6:15 AMKishore Nallan
09/08/2024, 6:17 AMNeil Kumar
09/08/2024, 6:18 AMKishore Nallan
09/08/2024, 6:18 AMNeil Kumar
09/08/2024, 6:19 AMKishore Nallan
09/08/2024, 6:21 AM28.0.rc3
Neil Kumar
09/08/2024, 6:22 AM28.0.rc3
Kishore Nallan
09/08/2024, 6:23 AMNeil Kumar
09/08/2024, 6:31 AMdata
directory.Kishore Nallan
09/08/2024, 6:32 AMNeil Kumar
09/08/2024, 6:33 AM/data
and /logs
directories with 26.0, ran the command to create the schema and add a couple of documents, then shut down, and changed docker to point to 27.0, and the problem exhibited. I didn't try taking a snapshot.Kishore Nallan
09/08/2024, 6:34 AMNeil Kumar
09/08/2024, 6:35 AMNeil Kumar
09/08/2024, 6:37 AMKishore Nallan
09/08/2024, 6:57 AMKishore Nallan
09/08/2024, 7:07 AMNeil Kumar
09/09/2024, 4:54 PMAttaching to typesense-1
typesense-1 | Log directory is configured as: /logs
typesense-1 | E20240908 16:32:35.939123 1 store.cpp:54] Error while initializing store: IO error: No such file or directory: While mkdir if missing: No such file or directory
typesense-1 | E20240908 16:32:35.939168 1 store.cpp:56] It seems like the data directory is already being used by another Typesense server.
typesense-1 | E20240908 16:32:35.939189 1 store.cpp:58] If you are SURE that this is not the case, delete the LOCK file in the data db directory and try again.
typesense-1 | E20240908 16:41:44.446480 992 raft_server.h:62] Peer refresh failed, error: Doing another configuration change
It'd be great if it were to actually say that it's building the indicies and that its ready to take requests. I couldn't see any place in the docs that mentioned a loglevel or setting for this.Kishore Nallan
09/10/2024, 3:24 AM