Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

VlatkoPet's avatar

Laravel Log File causing error

I have configured my Log file to write it daily errors or info logs. And I had very unusual behavior yesterday that I can not stop thinking about it.

I had server error

production.ERROR: stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 1024, but you have descriptors numbered at least as high as 1024. --enable-fd-setsize=2048 is recommended, but you may want to set it to equal the maximum number of open files supported by your system, in order to avoid seeing this error again at a later date. {"exception":"[object] (ErrorException(code: 0): stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 1024, but you have descriptors numbered at least as high as 1024.

This error caused my API request not to return the ''data" key in SOME part of the app where the request was returned with the User data. After 4 hours of debuging and testing, I deleted yesterday's Log file and everything magicly resolved itself.

Can someone explaine why this happened. How can error in the Log file cause my app this unusual behavior. And causing error in the IOS app cause that 'data' key was not returned.

0 likes
0 replies

Please or to participate in this conversation.