danog / MadelineProto

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

Could not connect to URI tcp://my.telegram.org:443 via proxy. #1087

Closed m-maazi closed 2 years ago

m-maazi commented 2 years ago

Hi. Telegram is banned in my country and I am trying to run MadelineProto through a proxy on my host but it is not working. All my proxies are tested in mobile client app and are OK. Is there any issue in my code (I didn't really change anything)? Here is my code:

if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
require_once 'madeline.php';
use danog\MadelineProto\Stream\MTProtoTransport\ObfuscatedStream;
use danog\MadelineProto\Stream\Proxy\HttpProxy;
use danog\MadelineProto\Stream\Proxy\SocksProxy;
use danog\MadelineProto\Settings\Connection;

$settings = new Connection;
// $settings -> addProxy(
//     SocksProxy::class, 
//     [
//         'address'  => '142.93.143.155',
//         'port'     =>  9010,
//     ]
// );
$settings->addProxy(
    ObfuscatedStream::class, 
    [
        'address' => '49.12.212.73',
        'port'    =>  443,
        'secret'  => 'EE0a879f7b21114fc08857967f32ba422b736e6170702e6972'
    ]
);

$MadelineProto = new \danog\MadelineProto\API('session.madeline', $settings);
$MadelineProto->async(true);
$MadelineProto->start();
$me = $MadelineProto->getSelf();
$MadelineProto->logger($me);
class EventHandler extends \danog\MadelineProto\EventHandler {
    public function onAny($update) {
        if (isset($update['message']['out']) && $update['message']['out']) {
            return;
        }
        if (isset($update['message']['media']) && $update['message']['media']['_'] !== 'messageMediaGame') {
            yield $this->downloadToDir($update, '/tmp');
            yield $this->messages->sendMedia(['peer' => $update, 'message' => $update['message']['message'], 'media' => $update]);
        }
        $res = json_encode($update, JSON_PRETTY_PRINT);
        yield $this->sleep(3);
        try {
            yield $this->sm($update, "<code>$res</code>\nAsynchronously, after 3 seconds");
        } catch (\danog\MadelineProto\RPCErrorException $e) {
            \danog\MadelineProto\Logger::log((string) $e, \danog\MadelineProto\Logger::FATAL_ERROR);
        } catch (\danog\MadelineProto\Exception $e) {
            \danog\MadelineProto\Logger::log((string) $e, \danog\MadelineProto\Logger::FATAL_ERROR);
        }
    }
    public function sm($peer, $message)
    {
        yield $this->messages->sendMessage(['peer' => $peer, 'message' => $message, 'reply_to_msg_id' => isset($update['message']['id']) ? $update['message']['id'] : null, 'parse_mode' => 'HTML']);
    }
}

And my log:

[21-Dec-2021 18:29:42 Asia/Tehran] Enabled PHP logging
[21-Dec-2021 18:29:42 Asia/Tehran] Enabled PHP logging
Logger:             MadelineProto
Logger:             Copyright (C) 2016-2020 Daniil Gentili
Logger:             Licensed under AGPLv3
Logger:             https://github.com/danog/MadelineProto
Serialization:      Got exclusive session lock!
Exception:          php_uname() has been disabled for security reasons in AppInfo.php:50
Exception:          php_uname() has been disabled for security reasons in AppInfo.php:56
[21-Dec-2021 18:29:42 Asia/Tehran] Enabled PHP logging
MTProto:            Prompting final serialization (SHUTDOWN)...
MTProto:            Done final serialization (SHUTDOWN)!
ContextConnector:   OK!
ContextConnector:   Connection failed: Amp\TimeoutException: Operation timed out in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/functions.php:251
Stack trace:
#0 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(112): Amp\Promise\{closure}('ar', NULL)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Async/AsyncConstruct.php(46): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/API.php(347): danog\MadelineProto\Async\AsyncConstruct->init()
#7 [internal function]: danog\MadelineProto\API->__destruct()
#8 {main}
ContextConnector:   Connection failed: Amp\Socket\ConnectException: Connection to tcp://my.telegram.org:443 failed: [Error #101] Network is unreachable; previous attempts: tcp://my.telegram.org:443 (Error #101) in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/DoHConnector.php:126
Stack trace:
#0 [internal function]: danog\MadelineProto\DoHConnector->danog\MadelineProto\{closure}()
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(Array)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(40): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, Array)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(154): Amp\Coroutine->onResolve(Object(Closure))
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(449): danog\MadelineProto\Coroutine->__construct(Object(Generator))
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/DoHConnector.php(168): danog\MadelineProto\Tools::call(Object(Generator))
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Transport/DefaultStream.php(79): danog\MadelineProto\DoHConnector->connect('tcp://my.telegr...', Object(Amp\Socket\ConnectContext), Object(Amp\NullCancellationToken))
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/ConnectionContext.php(423): danog\MadelineProto\Stream\Transport\DefaultStream->connect(Object(danog\MadelineProto\Stream\ConnectionContext), '')
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php(52): danog\MadelineProto\Stream\ConnectionContext->getStream('')
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/ConnectionContext.php(423): danog\MadelineProto\Stream\Common\BufferedRawStream->connect(Object(danog\MadelineProto\Stream\ConnectionContext), '')
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/ContextConnector.php(58): danog\MadelineProto\Stream\ConnectionContext->getStream()
#11 [internal function]: danog\MadelineProto\ContextConnector->danog\MadelineProto\{closure}()
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(170): Generator->throw(Object(Amp\TimeoutException))
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(112): danog\MadelineProto\Coroutine->throw(Object(Amp\TimeoutException))
#14 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Failure.php(30): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(Object(Amp\TimeoutException), NULL)
#15 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(123): Amp\Failure->onResolve(Object(Closure))
#16 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(179): danog\MadelineProto\Coroutine->resolve(Object(Amp\Failure))
#17 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(147): danog\MadelineProto\Coroutine->fail(Object(Amp\TimeoutException))
#18 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Failure.php(30): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(Object(Amp\TimeoutException), NULL)
#19 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(123): Amp\Failure->onResolve(Object(Closure))
#20 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(153): class@anonymous->resolve(Object(Amp\Failure))
#21 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(64): class@anonymous->fail(Object(Amp\TimeoutException))
#22 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/functions.php(251): Amp\Deferred->fail(Object(Amp\TimeoutException))
#23 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(112): Amp\Promise\{closure}('ar', NULL)
#24 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#25 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#26 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#27 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#28 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Async/AsyncConstruct.php(46): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#29 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/API.php(347): danog\MadelineProto\Async\AsyncConstruct->init()
#30 [internal function]: danog\MadelineProto\API->__destruct()
#31 {main}
ContextConnector:   Connection failed: Amp\Socket\ConnectException: Connecting to tcp://my.telegram.org:443 failed: timeout exceeded (10000 ms) in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/socket/src/DnsConnector.php:77
Stack trace:
#0 [internal function]: Amp\Socket\DnsConnector::Amp\Socket\{closure}()
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Coroutine.php(92): Generator->throw(Object(Amp\TimeoutException))
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Failure.php(30): Amp\Coroutine->Amp\{closure}(Object(Amp\TimeoutException), NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(123): Amp\Failure->onResolve(Object(Closure))
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(153): class@anonymous->resolve(Object(Amp\Failure))
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(64): class@anonymous->fail(Object(Amp\TimeoutException))
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/functions.php(251): Amp\Deferred->fail(Object(Amp\TimeoutException))
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(112): Amp\Promise\{closure}('bc', NULL)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Async/AsyncConstruct.php(46): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/API.php(347): danog\MadelineProto\Async\AsyncConstruct->init()
#14 [internal function]: danog\MadelineProto\API->__destruct()
#15 {main}
ContextConnector:   Connection failed: Amp\Socket\ConnectException: Connecting to tcp://my.telegram.org:443 failed: timeout exceeded (10000 ms) in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/socket/src/DnsConnector.php:77
Stack trace:
#0 [internal function]: Amp\Socket\DnsConnector::Amp\Socket\{closure}()
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Coroutine.php(92): Generator->throw(Object(Amp\TimeoutException))
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Failure.php(30): Amp\Coroutine->Amp\{closure}(Object(Amp\TimeoutException), NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(123): Amp\Failure->onResolve(Object(Closure))
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(153): class@anonymous->resolve(Object(Amp\Failure))
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(64): class@anonymous->fail(Object(Amp\TimeoutException))
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/functions.php(251): Amp\Deferred->fail(Object(Amp\TimeoutException))
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(112): Amp\Promise\{closure}('bl', NULL)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Async/AsyncConstruct.php(46): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/API.php(347): danog\MadelineProto\Async\AsyncConstruct->init()
#14 [internal function]: danog\MadelineProto\API->__destruct()
#15 {main}
Exception:          Could not connect to URI tcp://my.telegram.org:443 in ContextConnector.php:73

Thanks!

danog commented 2 years ago

The MyTelegramOrgWrapper only supports socks or HTTP proxies, you should choose manual mode, instead.

m-maazi commented 2 years ago

Thanks for quick response!

I tried the manual mode but refreshing the page gets me to welcome page! Is my code correct? Here is my log:

[21-Dec-2021 20:33:41 Asia/Tehran] Enabled PHP logging
[21-Dec-2021 20:33:41 Asia/Tehran] Enabled PHP logging
Logger:             MadelineProto
Logger:             Copyright (C) 2016-2020 Daniil Gentili
Logger:             Licensed under AGPLv3
Logger:             https://github.com/danog/MadelineProto
Serialization:      Got exclusive session lock!
Exception:          php_uname() has been disabled for security reasons in AppInfo.php:50
Exception:          php_uname() has been disabled for security reasons in AppInfo.php:56
[21-Dec-2021 20:33:42 Asia/Tehran] Enabled PHP logging
TL:                 Loading TL schemes...
TL:                 Parsing TL_telegram_v135.tl...
TL:                 Parsing TL_mtproto_v1.tl...
TL:                 CRC32 mismatch (29c1636d, 73f1f8dc) for msg_container#73f1f8dc messages:vector<%Message> = MessageContainer;
TL:                 Parsing TL_secret.tl...
MTProto:            Filling database cache. This can take few minutes.
MTProto:            Cache filled.
TL:                 Loading TL schemes...
TL:                 Parsing TL_telegram_v135.tl...
TL:                 Parsing TL_mtproto_v1.tl...
TL:                 CRC32 mismatch (29c1636d, 73f1f8dc) for msg_container#73f1f8dc messages:vector<%Message> = MessageContainer;
TL:                 Parsing TL_secret.tl...
DataCenter:         Connecting to DC 2 from scratch
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (-1)
Connection:         Connecting to DC 2.0
Session:            Resetting session in DC 2.0...
MTProto:            Prompting final serialization (SHUTDOWN)...
Connection:         Connected to DC 2.0!
DataCenterConnection:   Restoring 0 messages to DC 2
DataCenter:         OK!
MTProto:            Initing authorization...
MTProto:            Initing authorization DC 2...
AuthKeyHandler:     Generating permanent authorization key for DC 2...
AuthKeyHandler:     Requesting pq...
ReadLoop:           danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('ad', Resource id #757, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 0.999)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop:           Got nothing in the socket in DC 2.0, reconnecting...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
Exception:          Restart because we were reconnected in Connection.php:355
DataCenter:         OK!
AuthKeyHandler:     An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
DataCenter:         OK!
AuthKeyHandler:     Requesting pq...
ReadLoop:           danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('aw', Resource id #795, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 1)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop:           Got nothing in the socket in DC 2.0, reconnecting...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
Exception:          Restart because we were reconnected in Connection.php:355
DataCenter:         OK!
AuthKeyHandler:     An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
DataCenter:         OK!
AuthKeyHandler:     Requesting pq...
ReadLoop:           danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('bs', Resource id #803, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 0.999)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop:           Got nothing in the socket in DC 2.0, reconnecting...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
Exception:          Restart because we were reconnected in Connection.php:355
DataCenter:         OK!
AuthKeyHandler:     An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
DataCenter:         OK!
AuthKeyHandler:     Requesting pq...
ReadLoop:           danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('co', Resource id #811, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 1)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop:           Got nothing in the socket in DC 2.0, reconnecting...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
Exception:          Restart because we were reconnected in Connection.php:355
DataCenter:         OK!
AuthKeyHandler:     An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
DataCenter:         OK!
AuthKeyHandler:     Requesting pq...
ReadLoop:           danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('dk', Resource id #819, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 1)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop:           Got nothing in the socket in DC 2.0, reconnecting...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
Exception:          Restart because we were reconnected in Connection.php:355
DataCenter:         OK!
AuthKeyHandler:     An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection:         Reconnecting DC 2.0
Connection:         Disconnecting from DC 2.0
Connection:         Disconnected from DC 2.0
DataCenter:         Reconnecting to DC 2 (0) from existing
DataCenterConnection:   Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection:         Connecting to DC 2.0
Connection:         Connected to DC 2.0!
DataCenter:         OK!
MTProto:            Done initing authorization DC 2
Tools:              Got the following exception within a forked strand, trying to rethrow
Tools:              danog\MadelineProto\SecurityException: Auth Failed, please check the logfile for more information, make sure to install https://prime.madelineproto.xyz! in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php:418
Stack trace:
#0 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php(609): danog\MadelineProto\MTProto->createAuthKey(-1, '2')
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php(568): danog\MadelineProto\MTProto->initAuthorizationSocket('2', Object(danog\MadelineProto\DataCenterConnection))
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(1510): danog\MadelineProto\MTProto->initAuthorization()
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(621): danog\MadelineProto\MTProto->connectToAllDcs()
#4 [internal function]: danog\MadelineProto\MTProto->__construct_async(Object(danog\MadelineProto\Settings))
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(64)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, Object(Amp\Socket\ResourceSocket))
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(126): danog\MadelineProto\Coroutine->resolve(Object(Amp\Socket\ResourceSocket))
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(40): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, 'ee')
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/PrivatePromise.php(26): class@anonymous->onResolve(Object(Closure))
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(123): Amp\Internal\PrivatePromise->onResolve(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(Object(Amp\Internal\PrivatePromise))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/functions.php(257): Amp\Deferred->resolve(Object(Amp\Internal\PrivatePromise))
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): Amp\Promise\{closure}(NULL, 'ee')
#14 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve('ee')
#15 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(302): Amp\Deferred->resolve('ee', Resource id #827, NULL)
#16 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 2)
#17 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#18 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#19 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#20 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#21 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#22 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#23 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#24 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#25 {main}