sumory/openresty-china

500 Internal Server Error

piaoxuebingfeng opened this issue · 3 comments

tailf dev-error.log
2020/09/24 00:04:53 [error] 121500#0: *3 lua entry thread aborted: runtime error: ...openresty-lor/lor-example/openresty-china/./app/main.lua:37: attempt to call local 'uploader_middleware' (a userdata value)
stack traceback:
coroutine 0:
...openresty-lor/lor-example/openresty-china/./app/main.lua: in main chunk, client: 192.168.7.79, server: , request: "GET / HTTP/1.1", host: "192.168.7.73"

i use centos7 and openresty/1.15.8.2

chmod 777 /data/openresty-china/static

#13 (comment)
解决办法

opm install openresty/lua-resty-upload
apt-get install uuid-dev
openresty -p `pwd`  -c conf/nginx-dev.conf