[Other] Docker entrypoint refuses a MODEL_PATH folder of GGUF files when it holds no .strata file
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 88/100
調査の方向性
tools/docker/entrypoint.sh を開き、条件が ! ls "$model_path"/*.gguf "$model_path"/*.strata >/dev/null 2>&1 である model_path ガードを見つけてください。レポートにある 2 つの sh -c 'ls …; echo exit=$?' コマンドを、GGUF シャードを含み .strata ファイルを含まないフォルダに対して実行し、exit=2 を確認します。ガードを 2 つの別々の ls チェックに分割して各パターンが単独でテストされるようにし、その後、GGUF のみのボリュームに対してコンテナ起動を再現します。完了とは、entrypoint が .strata パックのない GGUF シャードのフォルダで起動しつつ、どちらも含まないフォルダは引き続き拒否することであり、docs/DOCKER.md の "files you already have" パスと一致します。
索引モデルが issue の本文から書いたものです。
説明
Area: Docker / container entrypoint (tools/docker/entrypoint.sh)
Version: 0.2.20 (engine 0.1.66), image ghcr.io/niko1221/strata:0.2.20-cuda13
Model: Qwen3.8-Flash-Next IQ3_S, two GGUF shards in one folder, no .strata pack
What happened
The container exits immediately with code 2 and stays in CrashLoopBackOff. The log says:
[X] MODEL_PATH=/data/Strata-data/models/IQ3_S has no .gguf or .strata files directly in it, but there are some in /data/Strata-data/models/IQ3_S. Set MODEL_PATH=/data/Strata-data/models/IQ3_S (the folder that holds the shards of one model). Nothing was downloaded.
The two paths in that message are the same, and the folder does contain the model files, so the advice cannot be followed.
Cause
In tools/docker/entrypoint.sh (0.2.20), the guard is:
elif [ -d "$model_path" ] && ! ls "$model_path"/*.gguf "$model_path"/*.strata >/dev/null 2>&1; then
When the folder holds .gguf files but no .strata file, the second pattern does not expand, ls receives the literal path …/*.strata, fails on it and exits 2. The negated test therefore succeeds and the launcher refuses to start.
Reproduced outside the container
With the same volume mounted and no GPU involved:
$ sh -c 'ls /data/Strata-data/models/IQ3_S/*.gguf >/dev/null 2>&1; echo exit=$?'
exit=0
$ sh -c 'ls /data/Strata-data/models/IQ3_S/*.gguf /data/Strata-data/models/IQ3_S/*.strata >/dev/null 2>&1; echo exit=$?'
exit=2
Workspace
Testing the two patterns separately keeps the intent and fixes it:
elif [ -d "$model_path" ] && ! ls "$model_path"/*.gguf >/dev/null 2>&1 && ! ls "$model_path"/*.strata >/dev/null 2>&1; then
With that one-line change the same container starts, detects engine 0.1.66, and prepares the model normally. I rebuilt from source with the patch as a workaround; it is the only reason this deployment runs.
Who this affects
Any Docker/Kubernetes install that mounts a folder of GGUF files without a .strata pack — which is the documented "files you already have" path in docs/DOCKER.md. The check is new in 0.2.20: 0.2.9 started from the same folder without complaint.
- 主要言語
- C++
- スター
- 11.6k
- フォーク
- 1k
- 平均マージ
- 17日 21時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Niko1221/Strata のほかの issue
-
needs-format
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Niko1221/Strata#6934 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Niko1221/Strata#6731 · コメント 2 件 ·
メンテナーはふだん 5 日以内に返信
-
Docker entrypoint MODEL_PATH check fails when folder has .gguf but no .strata files (circular error message)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンneeds-format
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
Niko1221/Strata#6721 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Niko1221/Strata#6698 · コメント 2 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 5 日以内に返信
Niko1221/Strata の issue をすべて見る
似ている issue
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS pools対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
CefRequestContext::ClearHttpCache crashes with a null callback, though the callback is optionalオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
chromiumembedded/cef#4376 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
itinance/react-native-fs#1270 ·
-
area-CodeGen-coreclr untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/runtime#138181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
yuaotian/antigravity-proxy#181 ·