Comments (9)
@frozenminds You don't have to remove ngx_ssi
from your nginx build. You just need to avoid mixing ngx_ssi
's configurations with ngx_lua
's in the same main request.
What do you have in your conf.d/server/fastcgi_params.conf
file? And what versions of ngx_lua and nginx are using? Are you using my openresty bundle?
BTW, please avoid using the word "ssi" in your configurations where ngx_ssi is not used at all. That is very confusing.
from lua-resty-redis.
Hi @agentzh ,
First of all thank you for the quick reply.
I am using ngx_openresty-1.5.8.1
, seems like the latest. Also tried with ngx_openresty-1.4.3.6
.
Added now also the fastcgi_params.conf
file to my Gist: https://gist.github.com/frozenminds/5a1f0b9047c7af69ec61#file-fastcgi_params-conf
I do have in my main request some small Lua's: set_by_lua_file
, rewrite_by_lua_file
and header_filter_by_lua_file
. None of them is making any other sub-request or big stuff. Just very basic IF/ELSE.
Thank you!
from lua-resty-redis.
@frozenminds Thank you for the info! I have several suggestions for you:
- Please try creating a minimal but still complete example that can reproduce the issue. It'll be trivial for me to analyze the issue if I can reproduce it on my side :) You'd better use ngx_proxy instead of ngx_fastcgi if you can in your minimal test case because I don't want to run a fastcgi backend to run your example, which is quite a burden for me.
- Failing that, please enable nginx's debug logging in your openresty build (by specifying
--with-debug
for./configure
and use thedebug
level in yourerror_log
directive) and provide all the debug logs for the problematic request. See also http://nginx.org/en/docs/debugging_log.html
Thanks!
from lua-resty-redis.
@agentzh I will try to create an example for you. Hopefully tomorrow.
Thank you very much!
from lua-resty-redis.
Still haven't finished the setup :( Would you mind to get access via SSH to an already configured server?
Thanks!
from lua-resty-redis.
@frozenminds No, I don't mind. Please send me details privately to my email address, agentzh at gmail dot com :)
from lua-resty-redis.
Seems to be something else actually. Will try to fix the code that I suspect and get back to you.
from lua-resty-redis.
I have the same problem!
Could you tell me the Solutions!
Thank you @agentzh
from lua-resty-redis.
@KunkkaCoco The NGINX SSI module is complicated and error prone. Better use ngx_lua to do the content templating instead. For example, with Lemplate:
https://github.com/openresty/lemplate
from lua-resty-redis.
Related Issues (20)
- SSL not working
- The performance of redis pipeline mode is unstable HOT 3
- CLIENT SETNAME?
- redis:get(key) question HOT 2
- opm package outdated HOT 1
- Connection pool not creating HOT 2
- How to create a single redis connection HOT 5
- this support two-way authentication?
- Add keepalive for redis client to make the connections reliable
- Nginx 1.24 HOT 2
- Nginx creates more connection than poolsize, backlog to redis HOT 5
- lua tcp socket read timed out, context: ssl_certificate_by_lua*, client: 172.69.58.204, server: 0.0.0.0:443 HOT 2
- redis set_keepalive doesn't work HOT 1
- lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/redis.lua:357: bad request HOT 2
- no request found HOT 1
- Add the host:port to the error message
- Reading from client: error:0A000126:SSL routines::unexpected eof while reading
- red:smembers("key"), sometime not include the new member? HOT 6
- [Feature Request] Pipeline coroutine safety HOT 6
- Redis: timeout HOT 5
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-redis.