xtrime-ru / TelegramApiServer

Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
https://tg.i-c-a.su
MIT License
562 stars 124 forks source link

Docker mysql error connection #72

Closed Maverick1983 closed 3 years ago

Maverick1983 commented 3 years ago

telegram-api-server-mysql | 2021-05-17 16:47:18 0 [Note] Server socket created on IP: '::'. telegram-api-server-mysql | 2021-05-17 16:47:18 0 [Warning] 'proxies_priv' entry '@% root@517469e1600d' ignored in --skip-name-resolve mode. telegram-api-server-mysql | 2021-05-17 16:47:18 0 [Note] Reading of all Master_info entries succeeded telegram-api-server-mysql | 2021-05-17 16:47:18 0 [Note] Added new Master_info '' to hash table telegram-api-server-mysql | 2021-05-17 16:47:18 0 [Note] mysqld: ready for connections. telegram-api-server-mysql | Version: '10.5.8-MariaDB-1:10.5.8+maria~focal' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution telegram-api-server-mysql | 2021-05-17 16:47:18 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'unauthenticated' host: '172.21.0.3' (This connection closed normally without authentication)

telegram-api-server | [2021-05-17 20:20:06] [critical] telegram-api-server | { telegram-api-server | "exception": "danog\MadelineProto\Exception", telegram-api-server | "message": "Could not extract session from database!", telegram-api-server | "file": "\/app-host-link\/vendor\/danog\/madelineproto\/src\/danog\/MadelineProto\/Serialization.php", telegram-api-server | "line": 219, telegram-api-server | "code": 0, telegram-api-server | "backtrace": [ telegram-api-server | { telegram-api-server | "function": "unserialize", telegram-api-server | "class": "danog\MadelineProto\Serialization", telegram-api-server | "type": "::", telegram-api-server | "args": [ telegram-api-server | {}, telegram-api-server | {}, telegram-api-server | true telegram-api-server | ] telegram-api-server | }, telegram-api-server | { telegram-api-server | "file": "\/app-host-link\/vendor\/danog\/madelineproto\/src\/danog\/MadelineProto\/Coroutine.php", telegram-api-server | "line": 117, telegram-api-server | "function": "send", telegram-api-server | "class": "Generator", telegram-api-server | "type": "->", telegram-api-server | "args": [ telegram-api-server | null telegram-api-server | ] telegram-api-server | }, telegram-api-server | { telegram-api-server | "file": "\/app-host-link\/vendor\/amphp\/amp\/lib\/Internal\/Placeholder.php", telegram-api-server | "line": 149, telegram-api-server | "function": "danog\MadelineProto\{closure}", telegram-api-server | "class": "danog\MadelineProto\Coroutine", telegram-api-server | "type": "->", telegram-api-server | "args": [ telegram-api-server | null, telegram-api-server | null telegram-api-server | ] telegram-api-server | } telegram-api-server | ] telegram-api-server | }

xtrime-ru commented 3 years ago

Is this an actual issue or it has been fixed by updating image?

Maverick1983 commented 3 years ago

When I use last version

Il Mar 18 Mag 2021, 12:42 Alexander Pankratov @.***> ha scritto:

Is this an actual issue or it has been fixed by updating image?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xtrime-ru/TelegramApiServer/issues/72#issuecomment-843061361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE43GZWI36WLYGEOF22XPL3TOJADFANCNFSM45A2VHIQ .

Maverick1983 commented 3 years ago

Actual issue when I use last TelegramApiServer with your docker-compose

Maverick1983 commented 3 years ago

I had downloaded the latest version and inserted the telegram session files in the "sessions / users" folder. In this way the mysql went into error. I updated directly with "git pull" and everything worked fine

xtrime-ru commented 3 years ago

Oh. Yes to fully update you need: git pull && composer install --no-dev --ignore-platform-reqs && docker-compose pull && docker-compose up

Also composer install can be done inside of container with docker-exec -it zparser bash if there is no php or composer on host machine...