[Other] Docker entrypoint refuses a MODEL_PATH folder of GGUF files when it holds no .strata file
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 88/100
Hướng nghiên cứu
Mở tools/docker/entrypoint.sh và tìm guard của model_path có điều kiện là ! ls "$model_path"/*.gguf "$model_path"/*.strata >/dev/null 2>&1; chạy hai lệnh sh -c 'ls …; echo exit=$?' từ báo cáo với một thư mục chứa các shard GGUF và không có tệp .strata để thấy exit=2. Tách guard thành hai kiểm tra ls riêng để mỗi mẫu được kiểm tra độc lập, sau đó tái hiện việc khởi động container với một volume chỉ có GGUF. Hoàn tất nghĩa là entrypoint khởi động trên một thư mục gồm các shard GGUF không có gói .strata trong khi vẫn từ chối thư mục không có cả hai, khớp với đường dẫn "files you already have" trong docs/DOCKER.md.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C++
- Star
- 11.6k
- Fork
- 1k
- Merge trung bình
- 17 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Niko1221/Strata
-
needs-format
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Niko1221/Strata#6934 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Niko1221/Strata#6731 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Docker entrypoint MODEL_PATH check fails when folder has .gguf but no .strata files (circular error message)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởneeds-format
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Niko1221/Strata#6721 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Niko1221/Strata#6698 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của Niko1221/Strata
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
compatibility difficulty:easy prio:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NatronGitHub/openfx-misc#390 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
deprecation internal refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày