DiscordBot-PMMP / DiscordBot

DiscordBot, A Discord core API for pocketmine-mp.
Open Software License 3.0
51 stars 11 forks source link

PHP FD_SETSIZE Size error #57

Closed Tuvqlu closed 2 years ago

Tuvqlu commented 2 years ago

Help

[2022-04-10T03:17:56.831031+00:00] DiscordThread.DEBUG: resetting payload count {"count":7} [] [2022-04-10T03:18:19.332043+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":16} [] [2022-04-10T03:18:19.370049+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":37.78195381164551} [] [2022-04-10T03:18:56.831128+00:00] DiscordThread.DEBUG: resetting payload count {"count":2} [] [2022-04-10T03:19:00.582114+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":21} [] [2022-04-10T03:19:00.624547+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":42.21701622009277} [] [2022-04-10T03:19:41.832229+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":23} [] [2022-04-10T03:19:41.868159+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":35.691022872924805} [] [2022-04-10T03:19:56.831242+00:00] DiscordThread.DEBUG: resetting payload count {"count":2} [] [2022-04-10T03:20:23.082494+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":24} [] [2022-04-10T03:20:23.118790+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":35.70389747619629} [] [2022-04-10T03:20:56.831379+00:00] DiscordThread.DEBUG: resetting payload count {"count":2} [] [2022-04-10T03:21:04.332425+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":27} [] [2022-04-10T03:21:04.364593+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":31.93187713623047} [] [2022-04-10T03:21:45.582615+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":28} [] [2022-04-10T03:21:45.614928+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":32.01699256896973} [] [2022-04-10T03:21:56.831567+00:00] DiscordThread.DEBUG: resetting payload count {"count":2} [] [2022-04-10T03:22:26.832636+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":29} [] [2022-04-10T03:22:26.865726+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":32.807111740112305} [] [2022-04-10T03:22:56.831773+00:00] DiscordThread.DEBUG: resetting payload count {"count":2} [] [2022-04-10T03:23:08.082711+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":32} [] [2022-04-10T03:23:08.116331+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":33.40411186218262} [] [2022-04-10T03:23:49.332937+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":33} [] [2022-04-10T03:23:49.367921+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":34.750938415527344} [] [2022-04-10T03:23:56.831939+00:00] DiscordThread.DEBUG: resetting payload count {"count":2} [] [2022-04-10T03:24:30.583028+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":33} [] [2022-04-10T03:24:30.619132+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":35.83216667175293} [] [2022-04-10T03:24:56.832447+00:00] DiscordThread.DEBUG: resetting payload count {"count":1} [] [2022-04-10T03:25:11.833099+00:00] DiscordThread.DEBUG: sending heartbeat {"seq":34} [] [2022-04-10T03:25:11.865663+00:00] DiscordThread.DEBUG: received heartbeat ack {"response_time":32.29212760925293} []

JaxkDev commented 2 years ago

This log shows absolutely nothing related to the title, please explain the issue and attach the relevant logs/files (error message / stack traces etc if applicable)

Tuvqlu commented 2 years ago

[2022-04-12T02:27:14.321429+00:00] DiscordThread.DEBUG: TLS cafile set to '/home/container/plugin_data/DiscordBot/cacert.pem' [] [] [2022-04-12T02:27:14.376234+00:00] DiscordThread.DEBUG: BUCKET getoauth2/applications/@me queued REQ GET oauth2/applications/@me [] [] [2022-04-12T02:27:14.386628+00:00] DiscordThread.DEBUG: BUCKET getgateway/bot queued REQ GET gateway/bot [] [] [2022-04-12T02:27:14.398764+00:00] DiscordThread.CRITICAL: ErrorException: "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 1143. --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) in "phar:///home/container/plugins/DiscordBot 3.phar/vendor/react/event-loop/src/StreamSelectLoop.php" at line 303 [] [] [2022-04-12T02:27:14.399047+00:00] DiscordThread.CRITICAL: #0 /home/container/plugins/DiscordBot 3.phar/vendor/react/event-loop/src/StreamSelectLoop(299): JaxkDev\DiscordBot\Bot\Client->sysErrorHandler(integer 2, string[349] stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE..It is, string[97] phar:///home/container/plugins/DiscordBot 3.phar/vendor/react/event-loop/src/Str, integer 303) [] [] [2022-04-12T02:27:14.399091+00:00] DiscordThread.CRITICAL: #1 (): React\EventLoop\StreamSelectLoop->React\EventLoop{closure}(integer 2, string[349] stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE..It is, string[97] phar:///home/container/plugins/DiscordBot 3.phar/vendor/react/event-loop/src/Str, integer 303) [] []

JaxkDev commented 2 years ago

What PHP Binary are you using specifically? (run /version in console/game) and where did you get it specifically?

JaxkDev commented 2 years ago

And are you on Ubuntu by any chance? if so can I get the exact version.

JaxkDev commented 2 years ago

https://github.com/DiscordBot-PMMP/DiscordBot/issues/58#issue-1202617265

JaxkDev commented 2 years ago

Ive tried reproducing on ubuntu 20.04 with self built PHP (due to architectural differences with prebuilt) but cannot get that error and based off similar issues in past few years no one has got permanent reproducing steps so without that I cannot even begin to look at this.

JaxkDev commented 2 years ago

No response.