OpenChat icon indicating copy to clipboard operation
OpenChat copied to clipboard

docker-compose issue when running `make install`

Open ChrystianSchutz opened this issue 2 years ago • 1 comments

When I try to run make install on mx-linux, I have following error:

$ ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.mysql: 'platform'
make: *** [Makefile:13: install] Błąd 1

Docker version 24.0.2, build cb74dfc docker-compose version 1.25.0, build unknown Linux: Mx linux (5.10.0-18-amd64)

I did also try with older version of linux but it didn't work either. I did try with main and OpenChat-0.3.0

And if I try to comment that line out, I have following error: === Clearing backend server config cache === docker-compose exec backend-server php artisan cache:clear

INFO Application cache cleared successfully.

docker-compose exec backend-server php artisan config:cache

INFO Configuration cached successfully.

=== Running backward compatibility scripts === docker-compose exec backend-server php artisan prompt:fill

Illuminate\Database\QueryException

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'openchat.chatbots' doesn't exist (Connection: mysql, SQL: select * from chatbots where prompt_message is null)

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▕ }

i A table was not found: You might have forgotten to run your database migrations. https://laravel.com/docs/master/migrations#running-migrations

  +11 vendor frames

12 app/Console/Commands/FillInitialPromptCommand.php:32 Illuminate\Database\Eloquent\Builder::get() +12 vendor frames

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

make: *** [Makefile:28: install] Błąd 1

Thanks (also this project seems nice as well as the beta app)

ChrystianSchutz avatar Jun 25 '23 21:06 ChrystianSchutz

Hey, are you sure you are on the latest OpenChat main? I remember this was fixed in https://github.com/openchatai/OpenChat/issues/77

Try to do git pull and then make install one more time.

gharbat avatar Jun 26 '23 22:06 gharbat