文章目录
- 背景
- 一、步骤
- 1.分析阶段
- 2.查看nginx
- 3.修改用户(也可以修改所有者权限)
背景
故障报错:
nginx报错信息:
2024/12/19 15:25:31 [crit, 500299#0: *249 onen0 " /var/lib/nginx/tmp/cient body/0000000001" failed 13: Permission denied).
10.16.0.51,server: 10.16.0.105, request:"POsT
CIYW1102410ii7bmmULCI1c2VTmftZSl6lnleGuMi9iceb0muNaw4MYg a5Sab-PnW4Et0gWalfl y HIP/.1, host: "dgovsysu.educn, reerer."XXXX/dataManage/2024/1219 16.23:.15 cit 520323#0. *317 open0 “harlilb/nginxtmp/cdient body0000001” aled (13: Permission denied, dient 10.16.0.52 sener. 10.16.0.105, request: "PosTICLYW10MO1UI7AmLCHCATmESISEGHM9HEKC5x2-0x0m&ynkurylow?hhn2ighMdtm0 HPh " hast: "dweb suedun, referer"htosoweb sueduldataMaae2024/1219 16:24.23 cnt 520323#0. *430 open0 “har/ilb!nginx/tmp/client body/0000002” failed (13: Perision dened, dient: 10.16.0.54. serer: 10.16.0.105, request."PosT
/dataManage/action/tableModelResource/update?submitState=2
&kcomments =undeined&token=eWhbGO:IUZINIS. VOHGKOIKNZMINTOSODKSMIMIWAWNFWIOXNL2MONTOSODKSLCIEHAIOLE3MZO2MZMNOIKS IMIZOHGInNI6M UZXOUY2SHINIYNI6SVUENVZGUIOIXNTAXMIUI
/dataManaae/action/tableModelResource/update?submitState=
&CommenS =UnOEINStOKED=EVADGGOUUZINUHEWOGROIKNZVONK2N OWNTOUIWEAWFIOXWNZMONTKZNTON CIEHAIOIESMZO2M730DASIMZOHNIHMIZXONYSHIYWNIHMIHENZG IOINTAYMI
/dataManaae/action/tableModelResource/update?submitState
client: 10.16.0.54 server: 10.16.0.105, request: "POST
&commens =undeimed &toKe=eVhGIO!UZINU9 VOGKOINZMINTIK2NTOWNITOONAWFHUONLMONIKNTOW CIHAIOIF3NA02N7K30DASIMZOURNIhm1XO2SHTYNNI3YMENZGHIOINTAYMII
CMYN10240II7bmUI CHCWTImFZSI6IEGIUMU9.HEWSKC5XZ-0xroRnkTxfomshn2iGbMdtm0 HIiP/.1,host "dweb.svsueducn, eiere."htos:/XXX/dataManae
2024/12/19 16:25:06 crit, 520323#0: *508 o pen0 “/var/lib/nginx/tmp/client body/0000000003” failed (13: Permission denied).
/dataManaae/action/tableModelResource/update?submitState=?
一、步骤
1.分析阶段
首先排查web报错日志,发现没有相关日志,进入相关故障网页,F12找出相关接口,然后根据接口再去排查是否有访问日志,本文该问题没有日志报错。
2.查看nginx
查看nginx日志,发现有报错信息(见背景报错),同时发现/var/log/nginx目录权限都是nginx。
3.修改用户(也可以修改所有者权限)
将nginx配置文件的用户改成root
*注:有的会报多个ip错误,可能有多个nginx入口,需要根据实际报错来判断。