系统运行一直正常,但在2021跨到2022的元旦时节,出问题了,经查询报错
FastCGI sent in stderr: "PHP message: PHP Fatal error: ?Uncaught think\exception\ErrorException?failed to open stream: Permission denied?
#0 [internal function]: think\Error::appError(2, 'error_log(/www/...', '/www/wwwroot/ba...', 128, Array) #1 /www/wwwroot/baiao/vendor/thinkphp/library/think/log/driver/File.php(128): error_log('---------------...', 3, '/www/wwwroot/ba...') #2 /www/wwwroot/baiao/vendor/thinkphp/library/think/log/driver/File.php(86): think\log\driver\File->write('---------------...', '/www/wwwroot/ba...', false, true) #3 /www/wwwroot/baiao/vendor/thinkphp/library/think/Log.php(224): think\log\driver\File->save(Array, true) #4 /www/wwwroot/baiao/vendor/thinkphp/library/think/Error.php(94): think\Log->save() #5 [internal function]: think\Error::appShutdown() #6 {main} ? thrown in /www/wwwroot/baiao/vendor/thinkphp/library/think/log/driver/File.php on line 128" while reading response header from upstream, client: 112.96.115.210, server: 47.100.226.161, request: "POST //task/taskNoticeList HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-73.sock:", host: "www.baiao.xin", referrer: "https://servicewechat.com/wxe25470ed1954f7c9/1/page-frame.html" 2022/01/01 11:23:42 [error] 1418702#0: *695294 FastCGI sent in stderr: "PHP message: PHP Fatal error: ?Uncaught think\exception\ErrorException: error_log(/www/wwwroot/baiao/runtime/log/202201/01.log): failed to open stream: Permission denied in /www/wwwroot/baiao/vendor/thinkphp/library/think/log/driver/File.php:128 ?
解决方式
找到了对应的日志文件,创建了一个202201的目录,但系统没有权限读写造成
chmod 777 202201就可以了
|