snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.01k stars 3.18k forks source link

500 out of blue, with no changes made to system #12295

Closed AlexTryHarder closed 1 year ago

AlexTryHarder commented 1 year ago

Debug mode

Describe the bug

ErrorException fwrite(): Write of 2105 bytes failed with errno=22 Invalid argument

When running:

composer dump-autoload; php artisan cache:clear; php artisan config:clear; php artisan route:clear; php artisan debugbar:clear; php artisan event:clear; php artisan view:clear; php artisan optimize:clear; php artisan clear-compiled

   ErrorException

  fwrite(): Write of 2288 bytes failed with errno=22 Invalid argument

  at C:\inetpub\wwwroot\snipeIT\snipe-it\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:178
    174▕      * @phpstan-param FormattedRecord $record
    175▕      */
    176▕     protected function streamWrite($stream, array $record): void
    177▕     {
  ➜ 178▕         fwrite($stream, (string) $record['formatted']);
    179▕     }
    180▕
    181▕     private function customErrorHandler(int $code, string $msg): bool
    182▕     {

  1   C:\inetpub\wwwroot\snipeIT\snipe-it\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:178
      fwrite()

  2   C:\inetpub\wwwroot\snipeIT\snipe-it\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:162
      Monolog\Handler\StreamHandler::streamWrite()

Reproduction steps

1.Hard to tell, it just stoped working without any changes made to this os 2. 3. ...

Expected behavior

No error

Screenshots

image

Snipe-IT Version

v6.0.14

Operating System

Windows

Web Server

IIS

PHP Version

8.0.26

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

welcome[bot] commented 1 year ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 1 year ago

My guess here would be a permissions issue. What are the permissions of your storage directory and storage/logs and storage/logs/laravel.log? We haven't changed anything with the logging recently. Did you try running composer --install --no-dev

snipe commented 1 year ago

Hi there - We haven't heard back in a bit, so I'm going to close this ticket for now, but will re-open it if you're still having issues.

hackerman-hacking