usage error: --no-wait and non-zero --timeout are mutually exclusive
目标不明确 —— 仓库有两个 Dist,而命令需要确定其一:
sow ls
workspace discovery error: managed: workspace discovery or configuration error: repository "pigsty" has multiple Dists (el9, trixie); select one or more with --dist
当前目录向上找不到任何工作区 —— 错误会说明搜索位置与修复方式:
workspace discovery error: managed: workspace discovery or configuration error: workspace not found (searched cwd="/home/vonng"); run sow init or set --workdir/SOW_DIR
起始目录本身不是真实目录(比如符号链接,macOS 上的 /tmp 就是)时,搜索根本不会开始:
workspace discovery error: managed: workspace discovery or configuration error: discover workspace from cwd "/tmp": start is not a directory
配置文件格式有问题 —— 注意错误会指出具体行号:
sow config check
configuration error: load config "/srv/repo/sow.yml": parse sow.yml: yaml: unmarshal errors:
line 3: field repositories not found in type config.Config
"items":[{"input":".../centos-release-6-0.el6.centos.5.i686.rpm","status":"failed",
"error":"managed: operation rejected: unknown rpm package architecture \"i686\"; supported rpm package architectures are [x86_64, aarch64, noarch] (canonical families [x86_64, aarch64, neutral]); use a supported package or update only supported architecture families in sow.yml"}]
目录里没有任何可索引的包:
sow create /srv/empty
plain: scan /srv/empty: no supported top-level regular RPM or DEB packages
--pigsty 完成标记挡住了对既有构建的覆盖:
sow create /www/pigsty
plain: marker gate /www/pigsty/repo_complete: repo_complete exists; use --pigsty or remove it explicitly before rebuilding
签名 key 引用文法正确但解析不出密钥 —— 文法错误是 2,解析失败是 6:
operation rejected: ... deb metadata key: key reference does not resolve to a bounded regular file
operation rejected: ... deb metadata key: environment key reference SOW_METADATA_KEY is unset