openresty-china
openresty-china copied to clipboard
500 Internal Server Error
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
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