Comments (7)
@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.
@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.
@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.
@mehrdadpfg Please use our official binary OpenResty package to test this. I've given you the link above.
from lua-resty-core.
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.
@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.
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)
- can ngx.resty.core support proxy ceritificate setting directives
- ngx.var.ssl_ciphers in ssl_certificate_by_lua HOT 1
- Failed on IBM Z/S390x HOT 1
- how to set error log level ? HOT 4
- 2022/06/14 05:43:28 [error] 159#0: *45 lua entry thread aborted: runtime error: /opt/nginx/lib/lua/resty/core/misc.lua:178: /usr/local/lib/libluajit-5.1.so.2: undefined symbol: ngx_http_lua_ffi_req_is_internal stack traceback: coroutine 0: [C]: in function '__index' /opt/nginx/lib/lua/resty/core/misc.lua:178: in function 'is_internal' /opt/nginx/scripts/manage_access_session.lua:70: in main chunk, client: 10.221.16.1 HOT 11
- no ssl session caching happen, always new session ID!
- 0.1.24 tag missing features from lua-nginx-module 0.10.22
- I want to get all the extension information of client hello, not just server name , what can I do? HOT 6
- b64.encode_base64url problem HOT 3
- undocumented that errlog.set_filter_level can not be set lower than error_log level HOT 1
- ngx.sleep() does not work in ssl_client_hello_by_lua* HOT 13
- undefined symbol: ngx_http_lua_ffi_var_get HOT 3
- ngx.balancer 如何设置重试状态码 HOT 3
- why the lua version number is commented out in Makefile HOT 4
- nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: HOT 5
- ngx.shared.DICT:ttl() returns 0 for the exipred key
- Requesting information about security fixes. HOT 1
- runtime error: /usr/local/openresty/lualib/ngx/semaphore.lua:129: attempt to perform arithmetic on a nil value HOT 1
- get_client_hello_ext() | lua-resty-core/lib/ngx/ssl | Issue with custom TLS Extension Type 17516
- The feature set_upstream_tls is marked as being introduced in version 0.1.29
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-core.