xtrime-ru / TelegramApiServer

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

Last image docker error #71

Closed Maverick1983 closed 3 years ago

Maverick1983 commented 3 years ago

[2021-05-17 18:39:39] [critical] telegram-api-server | { telegram-api-server | "exception": "PDOException", telegram-api-server | "message": "could not find driver", telegram-api-server | "file": "\/app-host-link\/vendor\/danog\/madelineproto\/src\/danog\/MadelineProto\/Db\/MysqlArray.php", telegram-api-server | "line": 102, telegram-api-server | "code": 0, telegram-api-server | "backtrace": [ telegram-api-server | { telegram-api-server | "file": "\/app-host-link\/vendor\/danog\/madelineproto\/src\/danog\/MadelineProto\/Db\/MysqlArray.php", telegram-api-server | "line": 102, telegram-api-server | "function": "__construct", telegram-api-server | "class": "PDO", telegram-api-server | "type": "->", telegram-api-server | "args": [ telegram-api-server | "mysql:host=mysql;port=3306;charset=UTF8", telegram-api-server | "root", telegram-api-server | "" telegram-api-server | ] telegram-api-server | }, telegram-api-server | { telegram-api-server | "file": "\/app-host-link\/vendor\/danog\/madelineproto\/src\/danog\/MadelineProto\/Db\/DriverArray.php", telegram-api-server | "line": 101, telegram-api-server | "function": "initConnection", telegram-api-server | "class": "danog\MadelineProto\Db\MysqlArray", telegram-api-server | "type": "->", telegram-api-server | "args": [ telegram-api-server | {} telegram-api-server | ] telegram-api-server | }, telegram-api-server | { telegram-api-server | "function": "danog\MadelineProto\Db\{closure}", telegram-api-server | "class": "danog\MadelineProto\Db\DriverArray", telegram-api-server | "type": "::", telegram-api-server | "args": [] telegram-api-server | } telegram-api-server | ] telegram-api-server | } telegram-api-server | telegram-api-server | Fatal error: Uncaught PDOException: could not find driver in /app-host-link/vendor/danog/madelineproto/src/danog/MadelineProto/Db/MysqlArray.php:102

Maverick1983 commented 3 years ago

it's possibile to have docker image's file https://hub.docker.com/r/xtrime/telegram-api-server/?

xtrime-ru commented 3 years ago

https://github.com/xtrime-ru/TelegramApiServer/blob/master/Dockerfile

Maverick1983 commented 3 years ago

I have local lastes image. Delete image and now it's working

xtrime-ru commented 3 years ago

Ah, pdo extension was added some time ago.

You can use one of the following methods to update/rebuild image:

docker-compose pull && docker-compose up
docker-compose up --build 
docker-compose build && docker-compose up