openchatai / OpenChat

LLMs custom-chatbots console ⚡
https://openchat.so
MIT License
5.1k stars 639 forks source link

mysql image not running after install #237

Open ahhany opened 4 months ago

ahhany commented 4 months ago

on a new clean ubuntu server, after the make install, mysql image is always restarting, and here is output after the make install:

=== Run backend server migrations === docker-compose exec backend-server php artisan migrate --seed

Illuminate\Database\QueryException

SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: select * from information_schema.tables where table_schema = openchat and table_name = migrations and table_type = 'BASE TABLE')

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:793 789▕ // If an exception occurs when attempting to run a query, we'll format the error 790▕ // message to include the bindings with SQL, which will make this exception a 791▕ // lot more helpful to the developer instead of just the database's errors. 792▕ catch (Exception $e) { ➜ 793▕ throw new QueryException( 794▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 795▕ ); 796▕ } 797▕ }

  +38 vendor frames

39 artisan:37 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

make: *** [Makefile:35: install] Error 1 ubuntu@chatbots:~/github/OpenChat$ sudo docker ps -l CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES debe0d6f09f3 openchat_backend-server "docker-php-entrypoi…" 3 minutes ago Up 3 minutes 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp openchat_backend-server_1 ubuntu@chatbots:~/github/OpenChat$ sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES debe0d6f09f3 openchat_backend-server "docker-php-entrypoi…" 3 minutes ago Up 3 minutes 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp openchat_backend-server_1 cb85f500a34a redis:3.2 "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp openchat_redis_1 97de7767ebfd mysql:5.7 "docker-entrypoint.s…" 3 minutes ago Restarting (1) 36 seconds ago openchat_mysql_1 bafcfc6e70c1 openchat_llm-server "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 3000/tcp openchat_llm-server_1 217b28fcbfb3 qdrant/qdrant "./entrypoint.sh" 3 minutes ago Up 3 minutes 0.0.0.0:6333-6334->6333-6334/tcp, :::6333-6334->6333-6334/tcp openchat_qdrant_1 ubuntu@chatbots:~/github/OpenChat$

codebanesr commented 4 months ago

can you try using a different mysql image?