Comments (7)
Actually the error only happened when trying to access /.well-known
, looks like I received my certificate from Let's Encrypt and the site is running fine.
Thank you very much for your help! I think the issue is resolved now.
from lua-resty-acme.
Hi @tpimh, this looks like a unmatched version of lua-resty-openssl. Could you list the version installed with opm list
?
from lua-resty-acme.
I have lua-resty-openssl 0.5.0 installed. Looks like 0.5.1 and 0.5.2 didn't make it to opm yet.
from lua-resty-acme.
Yeah I'm having some trouble uploading lua-resty-openssl 0.5.2 to opm, so does lua-resty-acme 0.5.0 since it requires that version of lua-resty-openssl. Would you try install from source or luarocks please?
https://github.com/fffonion/lua-resty-openssl/archive/0.5.2.tar.gz and
https://github.com/fffonion/lua-resty-acme/archive/0.5.0.tar.gz
from lua-resty-acme.
Updated both lua-resty-acme and lua-resty-openssl by unpacking over old version and replacing old files. Still get the following:
2020/02/10 17:32:43 [error] 23802#23802: *344 lua entry thread aborted: runtime error: /usr/local/openresty/site/lualib/resty/acme/util.lua:63: attempt to concatenate local 'err' (a boolean value)
stack traceback:
coroutine 0:
/usr/local/openresty/site/lualib/resty/acme/util.lua: in function 'create_csr'
/usr/local/openresty/site/lualib/resty/acme/client.lua:423: in function 'order_certificate'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:169: in function 'update_cert_handler'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:219: in function 'update_cert'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:388: in function </usr/local/openresty/site/lualib/resty/acme/autossl.lua:385>, context: ngx.timer, client: 2001:0db8:85a3:0000:0000:8a2e:0370:7334, server: [::]:443
2020/02/10 17:33:14 [error] 23802#23802: *351 lua entry thread aborted: runtime error: /usr/local/openresty/site/lualib/resty/acme/util.lua:63: attempt to concatenate local 'err' (a boolean value)
stack traceback:
coroutine 0:
/usr/local/openresty/site/lualib/resty/acme/util.lua: in function 'create_csr'
/usr/local/openresty/site/lualib/resty/acme/client.lua:423: in function 'order_certificate'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:169: in function 'update_cert_handler'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:219: in function 'update_cert'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:388: in function </usr/local/openresty/site/lualib/resty/acme/autossl.lua:385>, context: ngx.timer, client: 2001:0db8:85a3:0000:0000:8a2e:0370:7334, server: [::]:443
2020/02/10 17:33:21 [error] 23802#23802: *352 lua entry thread aborted: runtime error: ...l/openresty/site/lualib/resty/acme/challenge/http-01.lua:37: attempt to index local 'captures' (a nil value)
stack traceback:
coroutine 0:
...l/openresty/site/lualib/resty/acme/challenge/http-01.lua: in function 'serve_challenge'
/usr/local/openresty/site/lualib/resty/acme/client.lua:446: in function 'serve_http_challenge'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:342: in function 'serve_http_challenge'
content_by_lua(mysite.tld.conf:30):2: in main chunk, client: 2001:0db8:85a3:0000:0000:8a2e:0370:7334, server: mysite.tld, request: "GET /.well-known HTTP/1.1", host: "mysite.tld"
Right now can't even access http version of the site because of HSTS.
from lua-resty-acme.
🤔 emm this feels weird, could you verify for me line 61 of /usr/local/openresty/site/lualib/resty/acme/util.lua
is
_, err = csr:set_subject_name(subject)
please and nginx reload is successful?
from lua-resty-acme.
Thanks for reminding me. Actually forgot to restart openresty after replacing the files.
Now the error is the following:
2020/02/10 17:33:21 [error] 23802#23802: *352 lua entry thread aborted: runtime error: ...l/openresty/site/lualib/resty/acme/challenge/http-01.lua:37: attempt to index local 'captures' (a nil value)
stack traceback:
coroutine 0:
...l/openresty/site/lualib/resty/acme/challenge/http-01.lua: in function 'serve_challenge'
/usr/local/openresty/site/lualib/resty/acme/client.lua:446: in function 'serve_http_challenge'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:342: in function 'serve_http_challenge'
content_by_lua(mysite.tld.conf:30):2: in main chunk, client: 2001:0db8:85a3:0000:0000:8a2e:0370:7334, server: mysite.tld, request: "GET /.well-known HTTP/1.1", host: "mysite.tld"
2020/02/10 17:48:22 [error] 29748#29748: *18 lua entry thread aborted: runtime error: ...l/openresty/site/lualib/resty/acme/challenge/http-01.lua:37: attempt to index local 'captures' (a nil value)
stack traceback:
coroutine 0:
...l/openresty/site/lualib/resty/acme/challenge/http-01.lua: in function 'serve_challenge'
/usr/local/openresty/site/lualib/resty/acme/client.lua:449: in function 'serve_http_challenge'
/usr/local/openresty/site/lualib/resty/acme/autossl.lua:344: in function 'serve_http_challenge'
content_by_lua(mysite.tld.conf:30):2: in main chunk, client: 89.166.7.13, server: mysite.tld, request: "GET /.well-known HTTP/1.1", host: "mysite.tld"
from lua-resty-acme.
Related Issues (20)
- 按照Synopsis的步骤操作之后,没有生效,访问网站发现使用的是fallback证书,如何查找原因呢? HOT 4
- During renewal, errors on list() operation from consul storage is not logged: instead results in runtime error
- dns-01 challenge HOT 3
- How do I use ZeroSSL? HOT 3
- Error while trying to use subdomain with "_" simbol HOT 2
- How to use it? HOT 3
- -
- - HOT 1
- ZeroSSL integration failing to create account HOT 5
- How to configure other storage configs when in DB-less? HOT 2
- Zerossl config api_uri but error ngx.timer HOT 5
- Storage adapter not connect redis HOT 1
- -
- BoringSSL not working HTTP3 HOT 2
- error during acme login HOT 2
- get_certkey_parsed: Pass stale certificate if getting certificate from storage fails HOT 2
- Problem with update locks HOT 4
- Option to delete none whitelisted domains in certificate update HOT 2
- Check cache from domain_whitelist_callback? HOT 7
- Ability to block the first request until certs are created? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-resty-acme.