写log写不进去 报错 环境 homestead win10

周小云

ErrorException: fwrite(): Write of 2236 bytes failed with errno=5 Input/output error in /home/vagrant/code/merchant/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:178
Stack trace:

0 [internal function]: {closure}()

1 /home/vagrant/code/merchant/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(178): fwrite()

2 /home/vagrant/code/merchant/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(162): Monolog\Handler\StreamHandler->streamWrite()

3 /home/vagrant/code/merchant/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(125): Monolog\Handler\StreamHandler->write()

4 /home/vagrant/code/merchant/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(48): Monolog\Handler\RotatingFileHandler->write()

5 /home/vagrant/code/merchant/vendor/monolog/monolog/src/Monolog/Logger.php(327): Monolog\Handler\AbstractProcessingHandler->handle()

6 /home/vagrant/code/merchant/vendor/monolog/monolog/src/Monolog/Logger.php(565): Monolog\Logger->addRecord()

7 /home/vagrant/code/merchant/vendor/workerman/webman-framework/src/Exception/ExceptionHandler.php(65): Monolog\Logger->error()

8 /home/vagrant/code/merchant/support/exception/ApiExceptionHandler.php(26): Webman\Exception\ExceptionHandler->report()

9 /home/vagrant/code/merchant/vendor/workerman/webman-framework/src/App.php(197): support\exception\ApiExceptionHandler->report()

10 /home/vagrant/code/merchant/vendor/workerman/webman-framework/src/App.php(164): Webman\App::exceptionResponse()

11 /home/vagrant/code/merchant/vendor/workerman/workerman/Connection/TcpConnection.php(638): Webman\App->onMessage()

12 /home/vagrant/code/merchant/vendor/workerman/workerman/Events/Select.php(295): Workerman\Connection\TcpConnection->baseRead()

13 /home/vagrant/code/merchant/vendor/workerman/workerman/Worker.php(2417): Workerman\Events\Select->loop()

14 /home/vagrant/code/merchant/vendor/workerman/workerman/Worker.php(1541): Workerman\Worker->run()

15 /home/vagrant/code/merchant/vendor/workerman/workerman/Worker.php(1383): Workerman\Worker::forkOneWorkerForLinux()

16 /home/vagrant/code/merchant/vendor/workerman/workerman/Worker.php(1357): Workerman\Worker::forkWorkersForLinux()

17 /home/vagrant/code/merchant/vendor/workerman/workerman/Worker.php(1678): Workerman\Worker::forkWorkers()

18 /home/vagrant/code/merchant/vendor/workerman/workerman/Worker.php(1627): Workerman\Worker::monitorWorkersForLinux()

19 /home/vagrant/code/merchant/vendor/workerman/workerman/Worker.php(551): Workerman\Worker::monitorWorkers()

20 /home/vagrant/code/merchant/start.php(90): Workerman\Worker::runAll()

21 {main}

94 1 0
1个回答

xiuwang

不可写一般是没权限

🔝