bungle / lua-resty-session

Session library for OpenResty – flexible and secure
BSD 2-Clause "Simplified" License
320 stars 111 forks source link

error log product by example #62

Closed stlnkm closed 5 years ago

stlnkm commented 5 years ago

Hi! I use docker compose contains 3 services: a openresty naming app, a mysql service naming db, and a redis service naming redis. Part of nginx config below: image

And I run the /start location, and found a error in the nginx's error log file: image

How can I fix it? Thx!

bungle commented 5 years ago

Can your Nginx resolve redis? How have you setup your resolvers? Remember Nginx doesn't use system resolver.

stlnkm commented 5 years ago

Thanks for your reply! Yes, I have setup resolver directive: resolver 127.0.0.11 valid=30s local=on; Everything goes well except leaving an error log, when directive lua_socket_log_errors on.