danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.8k stars 636 forks source link

PHP - fpm fall down in infinitive loop #1532

Closed AMishchan closed 1 month ago

AMishchan commented 1 month ago

Hello, in the case when we did not define the session path correctly when creating new danog\MadelineProto\API('bad/path') - all forwarded API client calls where a Fibers loop works in vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php:96. Here I see an error which says me "Amp\CompositeException::getReasons()" to retrieve the array of exceptions thrown:

Amp\Parallel\Context\ContextException: Mismatch between absolute root dir (/var/www/carma/pub/) and URI dir (//telegram/auth/authenticate/key/b6ed42cf92146c4f9f8f14f0a77f48be75b471577a91d312e1a81dd57e3fd42b/) Thanks Aleksandr

danog commented 1 month ago

Please upload the entire MadelineProto.log file to pastebin and send the URL here. Either way, enabling proc_open should fix the issue for you

danog commented 1 month ago

Closing for inactivity.