mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[GH-ISSUE #1653] Bad file descriptor on line 133 in file StreamHandler.php #707
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#707
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ferdbags on GitHub (Apr 14, 2022).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1653
Monolog version 2.5
Hey guys,
We are occasionally getting the following from StreamHandler. Any suggestions would be greatly appreciated. I assume it's a permissions or locking issue but am unsure how best to approach it.
[2022-04-14 16:55:31] api.NOTICE: Error number [8] fwrite(): write of 123 bytes failed with errno=9 Bad file descriptor on line 133 in file E:\websites\app\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php {"url_trimmed":"123456789"} {"uid":"4a7f141"}
@Seldaek commented on GitHub (May 3, 2022):
Is this using long running processes? Only on windows? It most likely happens because the file gets closed by the OS somehow, so it fails to write to the open file handle it's got.