XMR (Docker) 1.0 Problems

I’m getting this error in my XMR instance:

cms-xmr_1 | [2025-09-04 16:42:31] xmr.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 1146. --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.
cms-xmr_1 | [2025-09-04 16:42:31] xmr.ERROR: #0 /opt/xmr/vendor/react/event-loop/src/StreamSelectLoop.php(300): {closure}(2, ‘stream_select()…’, ‘/opt/xmr/vendor…’, 304) #1 [internal function]: React\EventLoop\StreamSelectLoop->React\EventLoop{closure}(2, ‘stream_select()…’, ‘/opt/xmr/vendor…’, 304) #2 /opt/xmr/vendor/react/event-loop/src/StreamSelectLoop.php(304): stream_select(Array, Array, NULL, 0, 1427811) #3 /opt/xmr/vendor/react/event-loop/src/StreamSelectLoop.php(232): React\EventLoop\StreamSelectLoop->streamSelect(Array, Array, 1427811) #4 /opt/xmr/vendor/react/event-loop/src/StreamSelectLoop.php(213): React\EventLoop\StreamSelectLoop->waitForStreamActivity(1427811) #5 /opt/xmr/index.php(233): React\EventLoop\StreamSelectLoop->run() #6 {main}
cms-xmr_1 | [2025-09-04 16:44:01] xmr.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 1152. --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.
cms-xmr_1 | [2025-09-04 16:44:01] xmr.ERROR: #0 /opt/xmr/vendor/react/event-loop/src/StreamSelectLoop.php(300): {closure}(2, ‘stream_select()…’, ‘/opt/xmr/vendor…’, 304) #1 [internal function]: React\EventLoop\StreamSelectLoop->React\EventLoop{closure}(2, ‘stream_select()…’, ‘/opt/xmr/vendor…’, 304) #2 /opt/xmr/vendor/react/event-loop/src/StreamSelectLoop.php(304): stream_select(Array, Array, NULL, 0, 716003) #3 /opt/xmr/vendor/react/event-loop/src/StreamSelectLoop.php(232): React\EventLoop\StreamSelectLoop->streamSelect(Array, Array, 716003) #4 /opt/xmr/vendor/react/event-loop/src/StreamSelectLoop.php(213): React\EventLoop\StreamSelectLoop->waitForStreamActivity(716003) #5 /opt/xmr/index.php(233): React\EventLoop\StreamSelectLoop->run() #6 {main}

just restarted my XMR container, and still persist.
What can it be?
Thanks!

On top of head, Linux Increase The Maximum Number Of Open Files / File Descriptors (FD)

Maybe its ulimits, systemd or apache(if any)php, too many opened files at once ?

Check for number “1024 descriptors” overload in error log, its changing too high, above limit, constantly !

Not sure where “–enable-fd-setsize=2048” is set (on php compilation or php startup) but this might also give some more insight…

My ulimits are high:

I guess you are on docker-compose, are you refering to host ulimits and not container ulimits ?

maybe check: compose-spec/spec.md at main · compose-spec/compose-spec · GitHub
ulimits

ulimits overrides the default ulimits for a container. It’s specified either as an integer for a single limit or as mapping for soft/hard limits.

ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000

hmm let me check this