failed (13: Permission denied) while reading upstream [How to Solve]

Error Messages:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
2022/10/20 18:38:56 [crit] 67121#0: *16996 open() "/app/openresty/nginx/proxy_temp/8/03/0000000038" failed (13: Permission denied) while reading upstream, client: 100.xxx.xxx.92, server: sfimplat.sf-express.com, request: "GET /sfimplat/release/issuesql/query HTTP/1.1", upstream: "http://100.111.xxx.xxx:9080/sfimplat/release/issuesql/query", host: "100.111.136.71", referrer: "http://100.xxx.xxx.xxx/issue/sql/approve"
2022/10/20 18:38:56 [crit] 67121#0: *16996 open() "/app/openresty/nginx/proxy_temp/8/03/0000000038" failed (13: Permission denied) while reading upstream, client: 100.xxx.xxx.92, server: sfimplat.sf-express.com, request: "GET /sfimplat/release/issuesql/query HTTP/1.1", upstream: "http://100.111.xxx.xxx:9080/sfimplat/release/issuesql/query", host: "100.111.136.71", referrer: "http://100.xxx.xxx.xxx/issue/sql/approve"
2022/10/20 18:38:56 [crit] 67121#0: *16996 open() "/app/openresty/nginx/proxy_temp/8/03/0000000038" failed (13: Permission denied) while reading upstream, client: 100.xxx.xxx.92, server: sfimplat.sf-express.com, request: "GET /sfimplat/release/issuesql/query HTTP/1.1", upstream: "http://100.111.xxx.xxx:9080/sfimplat/release/issuesql/query", host: "100.111.136.71", referrer: "http://100.xxx.xxx.xxx/issue/sql/approve"

 

Solution:

Modify the following codes:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
vi /usr/local/nginx/conf/nginx.conf
#use nobody;
vi /usr/local/nginx/conf/nginx.conf #use nobody;
vi /usr/local/nginx/conf/nginx.conf

#use nobody;

to

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
use root;
use root;
use root;

Restart Nginx and it will be OK!

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *