acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
38.92k stars 4.94k forks source link

grep: unrecognized option: P #5116

Open Ada19960111 opened 5 months ago

Ada19960111 commented 5 months ago

Steps to reproduce

在群晖1621+上按照官方文档部署docker容器,然后使用定时脚本激活docker容器来申请证书 Debug log

[Fri Apr 26 07:37:46 UTC 2024] The domain 'xxx' seems to have a ECC cert already, lets use ecc cert.
[Fri Apr 26 07:37:46 UTC 2024] Logging into localhost:10000...
grep: unrecognized option: P
BusyBox v1.35.0 (2022-11-19 10:13:10 UTC) multi-call binary.

Usage: grep [-HhnlLoqvsrRiwFE] [-m N] [-A|B|C N] { PATTERN | -e PATTERN... | -f FILE... } [FILE]...

Search for PATTERN in FILEs (or stdin)

    -H  Add 'filename:' prefix
    -h  Do not add 'filename:' prefix
    -n  Add 'line_no:' prefix
    -l  Show only names of files that match
    -L  Show only names of files that don't match
    -c  Show only count of matching lines
    -o  Show only the matching part of line
    -q  Quiet. Return 0 if PATTERN is found, 1 otherwise
    -v  Select non-matching lines
    -s  Suppress open and read errors
    -r  Recurse
    -R  Recurse and dereference symlinks
    -i  Ignore case
    -w  Match whole words only
    -x  Match whole lines only
    -F  PATTERN is a literal (not regexp)
    -E  PATTERN is an extended regexp
    -m N    Match up to N times per file
    -A N    Print N lines of trailing context
    -B N    Print N lines of leading context
    -C N    Same as '-A N -B N'
    -e PTRN Pattern to match
    -f FILE Read pattern from file
[Fri Apr 26 07:37:46 UTC 2024] Unable to authenticate to http://localhost:10000, you may report the full log to the community.
[Fri Apr 26 07:37:46 UTC 2024] Error deploy for domain:xxx
[Fri Apr 26 07:37:46 UTC 2024] Deploy error.
github-actions[bot] commented 5 months ago

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

Ada19960111 commented 5 months ago

已在发生错误后重新拉去镜像,并进入容器upgrade,问题依旧

scruel commented 5 months ago

dup as #5105

xdj86 commented 5 months ago

docker需要拉取 dev标签 不是latest

Ada19960111 commented 5 months ago

我使用了dev标签,但是进去看还是master分支

xdj86 commented 5 months ago

把原来的镜像删除后再拉取,重新创建容器

Nothend commented 5 months ago

把原来的镜像删除后再拉取,重新创建容器 删除容器,重新拉dev,问题依旧

Nothend commented 5 months ago

并且这个提示也很奇怪 “The domain 'xxx.xxx.com' seems to have a ECC cert already, lets use ecc cert.”证书明明生成成功了

Ada19960111 commented 5 months ago

我目前发现了如何更新其他分支,进入容器内部,使用命令 acme.sh --upgrade -b dev 完成更新到dev分支,目前已经工作正常

Ada19960111 commented 5 months ago

他日志其实是部署到群晖上时出的问题,所以申请证书部分是没有问题的,同时,发现问题之后,大家不要多次重试,什么都不改重试是不行的,容易超出签发限制被冷却,我是起了两个容器,一个master一个dev,等master更新了,再切回来就行

Ada19960111 commented 5 months ago

不管怎么说,还是很感谢作者以及其他贡献者,让证书签发变得简单方便很多,点赞点赞

Nothend commented 5 months ago

他日志其实是部署到群晖上时出的问题,所以申请证书部分是没有问题的,同时,发现问题之后,大家不要多次重试,什么都不改重试是不行的,容易超出签发限制被冷却,我是起了两个容器,一个master一个dev,等master更新了,再切回来就行

确实如此。我被冷却了好几次。现在发现签发证书是没问题。就是部署的时候出错。等冷却到了我再试试

Neilpang commented 5 months ago

master 应该已经更新了.

Nothend commented 5 months ago

报告:最新latest已经正常运行