acme.sh icon indicating copy to clipboard operation
acme.sh copied to clipboard

grep: unrecognized option: P

Open Ada19960111 opened this issue 1 year ago • 14 comments

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.

Ada19960111 avatar Apr 26 '24 07:04 Ada19960111

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.

github-actions[bot] avatar Apr 26 '24 07:04 github-actions[bot]

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

Ada19960111 avatar Apr 26 '24 07:04 Ada19960111

dup as #5105

scruel avatar Apr 26 '24 15:04 scruel

docker需要拉取 dev标签 不是latest

xdj86 avatar Apr 28 '24 02:04 xdj86

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

Ada19960111 avatar Apr 29 '24 04:04 Ada19960111

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

xdj86 avatar Apr 29 '24 04:04 xdj86

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

Nothend avatar Apr 29 '24 20:04 Nothend

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

Nothend avatar Apr 29 '24 21:04 Nothend

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

Ada19960111 avatar Apr 30 '24 10:04 Ada19960111

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

Ada19960111 avatar Apr 30 '24 10:04 Ada19960111

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

Ada19960111 avatar Apr 30 '24 10:04 Ada19960111

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

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

Nothend avatar Apr 30 '24 11:04 Nothend

master 应该已经更新了.

Neilpang avatar Apr 30 '24 12:04 Neilpang

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

Nothend avatar May 01 '24 05:05 Nothend