Code Monkey home page Code Monkey logo

Comments (7)

agentzh avatar agentzh commented on July 28, 2024

@mehrdadpfg Unlike nginx version numbers, OpenResty's version numbers always have 4 number sections, like 1.11.2.4, see

https://openresty.org/en/download.html

So there is no such thing as "openresty 1.11.2" at all. Please be more careful.

Also, please try the official pre-built binary OpenResty packages mentioned this page and see if the problem goes away. See

https://openresty.org/en/linux-packages.html

At any rate, you should enable the debugging logs to see the details. (If you use pre-built Linux packages for OpenResty, then you should use the openresty-debug package instead of openresty and configure error_log logs/error.log debug; in your nginx.conf.)

from lua-resty-core.

mehrdadpfg avatar mehrdadpfg commented on July 28, 2024

@agentzh thanks for your attention.

I have used 1.11.2.4 and this is my debug output:

2017/08/09 06:13:34 [debug] 5#5: accept on 0.0.0.0:443, ready: 1
2017/08/09 06:13:34 [debug] 5#5: posix_memalign: 00005653BEF89A30:512 @16
2017/08/09 06:13:34 [debug] 5#5: *1 accept: X.X.X.X:2223 fd:22
2017/08/09 06:13:34 [debug] 5#5: *1 event timer add: 22: 180000:1502259394387
2017/08/09 06:13:34 [debug] 5#5: *1 reusable connection: 1
2017/08/09 06:13:34 [debug] 5#5: *1 epoll add event: fd:22 op:1 ev:80002001
2017/08/09 06:13:34 [debug] 5#5: accept() not ready (11: Resource temporarily unavailable)
2017/08/09 06:13:34 [debug] 5#5: *1 http check ssl handshake
2017/08/09 06:13:34 [debug] 5#5: *1 http recv(): 1
2017/08/09 06:13:34 [debug] 5#5: *1 https ssl handshake: 0x16
2017/08/09 06:13:34 [debug] 5#5: *1 SSL server name: "test.com"
2017/08/09 06:13:34 [debug] 5#5: *2 lua creating new thread
2017/08/09 06:13:34 [debug] 5#5: *2 http cleanup add: 00005653BEF8FF80
2017/08/09 06:13:34 [debug] 5#5: *2 lua run thread, top:0 c:1
2017/08/09 06:13:34 [error] 5#5: *2 [lua] ssl_certificate_by_lua:14: REDIS: befor...: nil, context: ssl_certificate_by_lua*, client: X.X.X.X, server: 0.0.0.0:443
2017/08/09 06:13:34 [debug] 5#5: *2 lua tcp socket pool get keepalive peer
2017/08/09 06:13:34 [debug] 5#5: *2 lua tcp socket keepalive connection pool not found
2017/08/09 06:13:34 [debug] 5#5: *2 lua tcp socket connect timeout: 60000
2017/08/09 06:13:34 [debug] 5#5: *2 lua tcp socket network address given directly
2017/08/09 06:13:34 [debug] 5#5: *2 lua tcp socket resolve retval handler
2017/08/09 06:13:34 [debug] 5#5: *2 stream socket 23
2017/08/09 06:13:34 [debug] 5#5: *2 epoll add connection: fd:23 ev:80002005
2017/08/09 06:13:34 [debug] 5#5: *2 connect to 127.0.0.1:6379, fd:23 #3
2017/08/09 06:13:34 [debug] 5#5: *2 http cleanup add: 00005653BEF900A0
2017/08/09 06:13:34 [debug] 5#5: *2 lua tcp socket connect: -2
2017/08/09 06:13:34 [debug] 5#5: *2 posix_memalign: 00005653BEF90140:128 @16
2017/08/09 06:13:34 [debug] 5#5: *2 event timer add: 23: 60000:1502259274387
2017/08/09 06:13:34 [debug] 5#5: *2 lua resume returned 1
2017/08/09 06:13:34 [debug] 5#5: *2 lua thread yielded
2017/08/09 06:13:34 [debug] 5#5: *2 http lua finalize fake request: -4, a:1, c:2
2017/08/09 06:13:34 [debug] 5#5: *2 http lua fake request count:2
2017/08/09 06:13:34 [debug] 5#5: *1 add cleanup: 00005653BEF89BD8
2017/08/09 06:13:34 [debug] 5#5: *1 SSL_do_handshake: -1
2017/08/09 06:13:34 [debug] 5#5: *1 SSL_get_error: 4
2017/08/09 06:13:34 [info] 5#5: *1 peer closed connection in SSL handshake while loading SSL certificate by lua, client: X.X.X.X, server: 0.0.0.0:443
2017/08/09 06:13:34 [debug] 5#5: *1 close http connection: 22
2017/08/09 06:13:34 [debug] 5#5: *1 event timer del: 22: 1502259394387
2017/08/09 06:13:34 [debug] 5#5: *1 reusable connection: 0
2017/08/09 06:13:34 [debug] 5#5: *1 run cleanup: 00005653BEF89BD8
2017/08/09 06:13:34 [debug] 5#5: *1 lua_certificate_by_lua: cert cb aborted
2017/08/09 06:13:34 [debug] 5#5: *2 http lua finalize fake request: -1, a:1, c:1
2017/08/09 06:13:34 [debug] 5#5: *2 http lua fake request count:1
2017/08/09 06:13:34 [debug] 5#5: *2 http lua close fake request
2017/08/09 06:13:34 [debug] 5#5: *2 cleanup lua tcp socket request: ""
2017/08/09 06:13:34 [debug] 5#5: *2 lua finalize socket
2017/08/09 06:13:34 [debug] 5#5: *2 event timer del: 23: 1502259274387
2017/08/09 06:13:34 [debug] 5#5: *2 lua close socket connection
2017/08/09 06:13:34 [debug] 5#5: *2 free: 00005653BEF90140, unused: 48
2017/08/09 06:13:34 [debug] 5#5: *2 reusable connection: 0
2017/08/09 06:13:34 [debug] 5#5: *2 lua request cleanup: forcible=0
2017/08/09 06:13:34 [debug] 5#5: *2 lua finalize socket
2017/08/09 06:13:34 [debug] 5#5: *2 http lua close fake http connection 00007F7E06AAB3D0
2017/08/09 06:13:34 [debug] 5#5: *1 free: 00005653BEF89A30, unused: 64

from lua-resty-core.

agentzh avatar agentzh commented on July 28, 2024

@mehrdadpfg Are you using our official binary OpenResty package for the testing? It seems that your OpenSSL library does not support yielding in its cert cb callbacks.

Also, what client software are you using? A web browser?

from lua-resty-core.

agentzh avatar agentzh commented on July 28, 2024

@mehrdadpfg Please use our official binary OpenResty package to test this. I've given you the link above.

from lua-resty-core.

mehrdadpfg avatar mehrdadpfg commented on July 28, 2024

thanks for your notice and fast reply,

that's right, the official OpenResty source has no problem with this.

I noticed that the problem is with the Nginx source new version
I was compiling with the latest Nginx version 1.12.1, then I replaced my Nginx source with the one that is in the official OpenResty file and the problem was solved.

do you have any idea when OpenResty will upgrade its Nginx to last stable version?

from lua-resty-core.

agentzh avatar agentzh commented on July 28, 2024

@mehrdadpfg The next next OpenResty formal release will be based on nginx 1.13.x. Please note that nginx stable series only mean API stability, not quality stability and OpenResty follows nginx's mainline series.

from lua-resty-core.

agentzh avatar agentzh commented on July 28, 2024

Let me emphasize it again: it is a VERY bad idea to replace the nginx core oneself and it's at your own risk of running into incompatibilities and known nginx core bugs. The whole point of OpenResty is to make sure everything works nice together, which is actually hard to guarantee for average users themselves.

from lua-resty-core.

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.