-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when acquire ssl cert in auto_ssl #287
Comments
@ryudoawaru Which version of mruby-io do you use? |
re-check everything and the error message changed:
in code:
|
changed the log level to debug and re-run again
|
I tried the same command in the log file and found error while executing ngx_mruby-hook.sh
|
Could you show me the nginx.conf with mruby? |
|
fmm, looks good to me. It seems that
can't run . Could you retry the code after cleaning up redis and dehydrated_out? |
I tried to run the dehydrated command with HOOK_SECRET manually without "unbound variable" error, but still can't finish whole process. HOOK_SECRET=6584e8fa-f865-412b-9aa4-f11e4454c688 /usr/local/nginx/conf/auto-ssl/dehydrated --cron --lock-suffix x.wild.5xruby.com --domain x.wild.5xruby.com --challenge http-01 --hook /usr/local/nginx/conf/auto-ssl/ngx_mruby-hook.sh --config /usr/local/nginx/conf/auto-ssl/dehydrated.conf
# INFO: Using main config file /usr/local/nginx/conf/auto-ssl/dehydrated.conf
Processing x.wild.5xruby.com
+ Checking domain name(s) of existing cert... unchanged.
+ Checking expire date of existing cert...
+ Valid till Aug 6 09:24:00 2017 GMT (Longer than 30 days). Skipping renew!
+ HOOK_SERVER_PORT=11111
+ HANDLER=unchanged_cert
+ shift
+ unchanged_cert x.wild.5xruby.com /usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/privkey.pem /usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/cert.pem /usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/fullchain.pem /usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/chain.pem
+ local DOMAIN=x.wild.5xruby.com KEYFILE=/usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/privkey.pem CERTFILE=/usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/cert.pem FULLCHAINFILE=/usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/fullchain.pem CHAINFILE=/usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/chain.pem
+ curl --silent --show-error --fail -XPOST --header 'X-Hook-Secret: 6584e8fa-f865-412b-9aa4-f11e4454c688' --data domain=x.wild.5xruby.com --data privkey=/usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/privkey.pem --data cert=/usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/cert.pem --data fullchain=/usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com/fullchain.pem http://127.0.0.1:11111/deploy-cert
curl: (22) The requested URL returned error: 500 Internal Server Error
+ echo 'hook request failed'
hook request failed
+ exit 1 in Nginx error log:
The first problem is in my server, I can not see any log of the command result here in auto_accept_terms method, but the method itself returned w/o exception. |
@ryudoawaru What files do you have in /usr/local/nginx/conf/auto-ssl/certs/x.wild.5xruby.com? |
If you try yyamano@6228e90 , you will get better logs. |
I use the config as the example here but found following error"
the code in line 8 is:
The text was updated successfully, but these errors were encountered: