debug2.txt
Hello!
Cron works well for domains nginx mode (@ and www)
But I have a problem with wildcard domains and certificates (regru api).
I run cron command:
"/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
Now I set 2500 seconds sleeping, and when in log :
[Tue May 26 21:44:17 MSK 2020] The txt record is added: Success.
[Tue May 26 21:44:17 MSK 2020] Sleep 2500 seconds for the txt records to take effect
I go to regru panel and found: no _acme-challenge txt records!
But I manually renew other domain
acme.sh --renew -d bystro-okna.ru
This works Fine!
Help me Please! I have many of domains and have to manually renewing every 3 month(
UPD:
I digged log, and what I found, that in cron name of domain in url is lost:
Cron (not work):
url='https://api.reg.ru/api/regru2/zone/add_txt?input_data={%22username%22:%[email protected]%22,%22password%22:%22mypass%22,%22domains%22:[{%22dnam
e%22:%22%22}],%22subdomain%22:%22_acme-challenge%22,%22text%22:%2261H7RUa5xyDqT7yz3K8BKNCvXiZOutrMXI9c2CAQ_L8%22,%22output_content_type%22:%22plain%22}&input_format=json'
But In manual renewing its present:
url='https://api.reg.ru/api/regru2/zone/add_txt?input_data={%22username%22:%[email protected]%22,%22password%22:%22mypass%22,%22domains%22:[{%22dnam
e%22:%22bystro-okna.ru%22}],%22subdomain%22:%22_acme-challenge%22,%22text%22:%22ElSCygxpu4TRqp3Uup67ZJFLzm0o2UPigduvL-GQp3Y%22,%22output_content_type%22:%22plain%22}&input_format=j
son'
Please, Help! What I need to do in Cron?
If this is a bug report, please upgrade to the latest code and try again:
如果有 bug, 请先更新到最新版试试:
acme.sh --upgrade
please also provide the log with --debug 2.
同时请提供调试输出 --debug 2
see: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
Without --debug 2 log, your issue will NEVER get replied.
没有调试输出, 你的 issue 不会得到任何解答.
Got fixed this by https://github.com/acmesh-official/acme.sh/pull/2964/files
The variable _domain does not contain a value. Probably something was updated, I did not find it.
I change line from _domain=$_domain to _domain=$_main_domain and it worked for me.
The variable
_domaindoes not contain a value. Probably something was updated, I did not find it.
I change line from_domain=$_domainto_domain=$_main_domainand it worked for me.
May be pull request?