-
-
Notifications
You must be signed in to change notification settings - Fork 824
Description
All work good long time, but i get freeze and after freeze get error on start. I coudn't get catch, only error stack :(
My code:
$prefix = $tguser->madelineuniq;
$settings = new Settings();
$dbinfo = new Mysql();
$dbinfo->setDatabase($this->madelinedb);
$dbinfo->setUsername($this->madelinedbuname);
$dbinfo->setPassword($this->madelinedbpwd);
$dbinfo->setUri($this->madelinedburi);
$dbinfo->setEphemeralFilesystemPrefix($prefix);
$settings->setDb($dbinfo);
$settings->setAppInfo((new \danog\MadelineProto\Settings\AppInfo)
->setApiId($tguser->apiid)
->setApiHash($tguser->apihash)
);
try {
$MadelineProto = new API('/tguserdata/session.madeline_'.$prefix, $settings); //<---------------------error here
} catch (Exception $e) {
}
Error stack(500 internal server error):
danog\MadelineProto\Exception: Client backtrace in /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/Ipc/ExitFailure.php:62
Stack trace:
#0 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/Ipc/IpcState.php(71): danog\MadelineProto\Ipc\ExitFailure->getException()
#1 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/Ipc/AbstractServer.php(154): danog\MadelineProto\Ipc\IpcState->getException()
#2 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/amphp/amp/src/functions.php(33): danog\MadelineProto\Ipc\AbstractServer::monitor()
#3 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(430): Amp{closure}()
#4 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(567): Revolt\EventLoop\Internal\AbstractDriver->invokeMicrotasks()
#5 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()
#6 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php(64): Fiber->resume()
#7 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(430): Revolt\EventLoop\Internal\DriverSuspension::Revolt\EventLoop\Internal{closure}()
#8 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(567): Revolt\EventLoop\Internal\AbstractDriver->invokeMicrotasks()
#9 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()
#10 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(502): Fiber->resume()
#11 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(558): Revolt\EventLoop\Internal\AbstractDriver->invokeCallbacks()
#12 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()
#13 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(96): Fiber->resume()
#14 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php(117): Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()
#15 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/amphp/amp/src/Future.php(251): Revolt\EventLoop\Internal\DriverSuspension->suspend()
#16 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/API.php(313): Amp\Future->await()
#17 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/API.php(194): danog\MadelineProto\API->connectToMadelineProto()
#18 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/controllers/ApiController.php(8269): danog\MadelineProto\API->__construct()
#19 [internal function]: app\controllers\ApiController->actionAddActiveTgContact()
#20 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/yiisoft/yii2/base/InlineAction.php(60): call_user_func_array()
#21 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/yiisoft/yii2/base/Controller.php(184): yii\base\InlineAction->runWithParams()
#22 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/yiisoft/yii2/base/Module.php(555): yii\base\Controller->runAction()
#23 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction()
#24 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/yiisoft/yii2/base/Application.php(387): yii\web\Application->handleRequest()
#25 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/web/index.php(12): yii\base\Application->run()
#26 {main}
Next Error: Typed property danog\MadelineProto\MTProto::$logger must not be accessed before initialization in /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/Connection.php:584
Stack trace:
#0 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/DataCenterConnection.php(349): danog\MadelineProto\Connection->setExtra()
#1 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/DataCenterConnection.php(326): danog\MadelineProto\DataCenterConnection->connectMore()
#2 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/DataCenterConnection.php(403): danog\MadelineProto\DataCenterConnection->connect()
#3 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/DataCenter.php(115): danog\MadelineProto\DataCenterConnection->reconnect()
#4 [internal function]: danog\MadelineProto\DataCenter->__wakeup()
#5 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/async-orm/src/Serializer/Native.php(50): unserialize()
#6 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/async-orm/src/Driver/SqlArray.php(85): danog\AsyncOrm\Serializer\Native->deserialize()
#7 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/async-orm/src/Internal/Containers/CacheContainer.php(96): danog\AsyncOrm\Driver\SqlArray->get()
#8 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/async-orm/src/Internal/Driver/CachedArray.php(103): danog\AsyncOrm\Internal\Containers\CacheContainer->get()
#9 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/Serialization.php(257): danog\AsyncOrm\Internal\Driver\CachedArray->get()
#10 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/amphp/amp/src/functions.php(33): danog\MadelineProto\Serialization::unserialize()
#11 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(430): Amp{closure}()
#12 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(567): Revolt\EventLoop\Internal\AbstractDriver->invokeMicrotasks()
#13 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()
#14 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php(64): Fiber->resume()
#15 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(430): Revolt\EventLoop\Internal\DriverSuspension::Revolt\EventLoop\Internal{closure}()
#16 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(621): Revolt\EventLoop\Internal\AbstractDriver->invokeMicrotasks()
#17 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()
#18 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(502): Fiber->resume()
#19 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(558): Revolt\EventLoop\Internal\AbstractDriver->invokeCallbacks()
#20 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()
#21 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(96): Fiber->resume()
#22 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php(117): Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()
#23 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/amphp/amp/src/Future.php(251): Revolt\EventLoop\Internal\DriverSuspension->suspend()
#24 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/API.php(313): Amp\Future->await()
#25 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/API.php(194): danog\MadelineProto\API->connectToMadelineProto()
#26 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/Ipc/Runner/entry.php(114): danog\MadelineProto\API->__construct()
#27 /var/www/gpt.integrity24.ru/yii2-yandex-gpt-v1/vendor/danog/madelineproto/src/Ipc/Runner/entry.php(154): danog\MadelineProto\Ipc\Runner{closure}()
#28 {main}