openresty-china icon indicating copy to clipboard operation
openresty-china copied to clipboard

500 Internal Server Error

Open piaoxuebingfeng opened this issue 4 years ago • 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"

piaoxuebingfeng avatar Sep 24 '20 04:09 piaoxuebingfeng

i use centos7 and openresty/1.15.8.2

piaoxuebingfeng avatar Sep 24 '20 04:09 piaoxuebingfeng

chmod 777 /data/openresty-china/static

piaoxuebingfeng avatar Sep 24 '20 06:09 piaoxuebingfeng

https://github.com/sumory/openresty-china/issues/13#issue-707835624 解决办法

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

helloJiu avatar Nov 01 '22 02:11 helloJiu