Even if not officially supported, I used to run Indexer and now Conduit on Windows.
During Importer initialization, Conduit reads and overwrites metadata.json file using a temporary metadata.json.temp file:
create temp file metadata.json.temp
write metadata to temp file metadata.json.temp
rename temp file metadata.json.temp to metadata.json
An file access error occurs at step 3. when renaming metadata.json.temp to metadata.json as the temp file is still open.
Launch conduit with or without metadata.json file or round override
Expected behaviour
Handle metadata.json.temp access.
I have modified the encodeToFile function in metadata.go as follow to prevent this error, I am no Golang expert at all so it is a very dumb way at the moment:
Exiting with error: pipeline init error: Pipeline.Init() failed to write metadata to file: encodeMetadataToFile():
failed to replace metadata file: rename e:\test\Conduit\Importer/metadata.json.temp e:\test\Conduit\Importer/metadata.json: The process cannot access the file because it is being used by another process..
Subject of the issue
Even if not officially supported, I used to run Indexer and now Conduit on Windows. During Importer initialization, Conduit reads and overwrites metadata.json file using a temporary metadata.json.temp file:
An file access error occurs at step 3. when renaming metadata.json.temp to metadata.json as the temp file is still open.
Your environment
Steps to reproduce
Expected behaviour
Handle metadata.json.temp access.
I have modified the encodeToFile function in metadata.go as follow to prevent this error, I am no Golang expert at all so it is a very dumb way at the moment:
Actual behaviour
Critical failure: