Coder Social home page Coder Social logo

Comments (7)

tpimh avatar tpimh commented on May 27, 2024 1

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.

fffonion avatar fffonion commented on May 27, 2024

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.

tpimh avatar tpimh commented on May 27, 2024

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.

fffonion avatar fffonion commented on May 27, 2024

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.

tpimh avatar tpimh commented on May 27, 2024

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.

fffonion avatar fffonion commented on May 27, 2024

🤔 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.

tpimh avatar tpimh commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.