Closed commeta closed 1 year ago
You should switch to php 8.2 via cli (php -v
should return 8.2.9)
You should switch to php 8.2 via cli (
php -v
should return 8.2.9)
I'm already using php8.2.9 but still got the same error
Including in CLI?
Yes, I'm using CLI to run the bot, here is the log output:
Server: Starting IPC server /var/www/tebot/session.madeline (process)
ProcessRunner: Starting process with '/usr/bin/php8.2' '-dhtml_errors=0' '-ddisplay_errors=0' '-dlog_errors=1' '/var/www/tebot/vendor/danog/madelineproto/src/Ipc/Runner/entry.php' 'madeline-ipc' '/var/www/tebot/session.madeline' '511505229'
ProcessRunner: Got message from worker: PHP Warning: Module "uv" is already loaded in Unknown on line 0
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Serialization: Connected to IPC socket!
APIWrapper: Restarting to full instance (again): sending shutdown signal!
Serialization: MadelineProto is starting, please wait...
Exception: filetype(): Lstat failed for /var/www/tebot/session.madeline/ipc in functions.php:40
Serialization: filetype(): Lstat failed for /var/www/tebot/session.madeline/ipc while connecting to IPC socket
ProcessRunner: Got final message from worker:
ProcessRunner: Got final message from worker:
Server: IPC server started successfully!
ClientAbstract: Got exception while reconnecting in IPC client: RuntimeException: The endpoint does not exist! in /var/www/tebot/vendor/danog/ipc/lib/functions.php:36
here is the last exception:
Server: Starting IPC server /var/www/tebot/session.madeline (process)
ProcessRunner: Starting process with '/usr/bin/php8.2' '-dhtml_errors=0' '-ddisplay_errors=0' '-dlog_errors=1' '/var/www/tebot/vendor/danog/madelineproto/src/Ipc/Runner/entry.php' 'madeline-ipc' '/var/www/tebot/session.madeline' '762603908'
ProcessRunner: Got message from worker: PHP Warning: Module "uv" is already loaded in Unknown on line 0
Exception: Could not connect to MadelineProto, please enable proc_open or disable webserver path rewrites to fix! If you already did that, make sure the CLI version of PHP is exactly the same as the web version (same version, extensions, et cetera) and check out the MadelineProto.log file for more info about the error that prevented the IPC server from starting. in API.php:331
Exception: \danog\MadelineProto\Exception: Could not connect to MadelineProto, please enable proc_open or disable webserver path rewrites to fix! If you already did that, make sure the CLI version of PHP is exactly the same as the web version (same version, extensions, et cetera) and check out the MadelineProto.log file for more info about the error that prevented the IPC server from starting. in /var/www/tebot/vendor/danog/madelineproto/src/API.php:331
Revision: 8.0.0-beta143
TL Trace:
API.php(294): connectToMadelineProto()
AbstractAPI.php(77): reconnectFull()
AbstractAPI.php(65): startAndLoopLogic()
EventHandler.php(73): startAndLoopInternal()
bot.php(25): startAndLoop()
also I checked the /etc/php/8.2/cli/php.ini configuration and disable_functions
doesn't contain 'proc_open'
Try with the latest beta, and open a new issue with full logs if it happens again please.
MadelineProto error in sapi mode
When trying to add an apiid & hash account, it crashes with an error
log