Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql image not running after install #237

Open
ahhany opened this issue Feb 10, 2024 · 2 comments
Open

mysql image not running after install #237

ahhany opened this issue Feb 10, 2024 · 2 comments

Comments

@ahhany
Copy link

ahhany commented Feb 10, 2024

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$

@ahhany ahhany changed the title make install not working mysql image not running after install Feb 11, 2024
@codebanesr
Copy link
Contributor

can you try using a different mysql image?

@adhile
Copy link

adhile commented Oct 1, 2024

i am also facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants