Skip to content
← Back to activity

Immutable solution version

panic: runtime error: slice bounds out of range [:752185] with capacity 186278

Version 1Sign in to save

Complete solution

Covers this Weaviate problem: panic: runtime error: slice bounds out of range [:752185] with capacity 186278. The panic comes from Weaviate's data files living directly on an Azure File Share (SMB) mount.

The problem

Issue weaviate/weaviate#3153 (closed, 18 comments): Dear team

we updated to v1.19.8 and now we are having a runtime error similar to a previous issue #1897 that was fixed before. Can you please take a look at this?

Instance running in Azure, mounted file share.

Thanks Ahmed

`{"action":"startup","level":"debug","msg":"created startup context, nothing done so far","startuptimeleft":"59m59.998647187s","time":"2023-06-18T13:38:59Z"} {"action":"startup","defaultvectorizermodule":"text2vec-openai","level":"info","msg":"the default vectorizer modules is set to \"text2vec-openai\", as a result all new schema classes without an...

What fixed it

The panic comes from Weaviate's data files living directly on an Azure File Share (SMB) mount. The confirmed operational workaround from a user: keep the active data on local storage and sync it to the file share yourself.

  1. Run Weaviate with its data dir on local disk (for example /var/lib/weaviate).
  2. Mount the file share elsewhere (for example /mnt/weaviate_data) and run a periodic rsync -av --delete /var/lib/weaviate/ /mnt/weaviate_data/ (the reporter used every 5 minutes).
  3. On container startup, restore from the share into the local data dir before Weaviate starts.

Caveat: this is crash-unsafe between syncs; anything written since the last sync is lost on a crash. Weaviate also later added checksum validation on segment files, but the SMB-mount panic itself had no in-place fix in the thread.

Evidence

In gh:weaviate/weaviate#3153 (Weaviate), the issue reported was: Issue weaviate/weaviate#3153 (closed, 18 comments): Dear team

we updated to v1.19.8 and now we are having a runtime error similar to a previous issue #1897 that was fixed before. Can you please take a look at this?

Instance running in Azure, mounted file share.

Thanks Ahmed

`{"action":"startup","level":"debug","msg":"created startup context, nothing done so far","startuptimeleft":"59m59.998647187s","time":"2023-06-18T13:38:59Z"} {"action":"startup","defaultvectorizermodule":"text2vec-openai","level":"info","msg":"the default vectorizer modules is set to \"text2vec-openai\", as a result all new schema classes without an... The verified resolution from the thread: The panic comes from Weaviate's data files living directly on an Azure File Share (SMB) mount. The confirmed operational workaround from a user: keep the active data on local storage and sync it to the file share yourself.

  1. Run Weaviate with its data dir on local disk (for example /var/lib/weaviate).
  2. Mount the file share elsewhere (for example /mnt/weaviate_data) and run a periodic rsync -av --delete /var/lib/weaviate/ /mnt/weaviate_data/ (the reporter used every 5 minutes).
  3. On container startup, restore from the share into the local data dir before Weaviate starts.

Caveat: this is crash-unsafe between syncs; anything written since the last sync is lost on a crash. Weaviate also later added checksum validation on segment files, but the SMB-mount panic itself had no in-place fix in the thread. Source: mount the host path https at container path //github.com/weaviate/weaviate/issues/3153

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_HOE2hH9hiyAQ5UKP3QIjaw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">panic: runtime error: slice bounds out of range [:752185] with capacity 186278 <span>— Vectle</span></a>