Skip to content

database.mk migrate fails #258

@christoph-maurer

Description

@christoph-maurer
cloud@test01-metabase:/app/production$ ./database.mk migrate
make --file="database.mk" sql SCRIPT="./backend/src/Migrations/migrate.sql"
make[1]: Entering directory '/home/cloud/production'
docker compose up \
	--no-build \
	--no-deps \
	--no-recreate \
	--wait \
	database
[+] up 3/3
 ✔ Image postgres:13.23-trixie              Pulled                                                                                                  16.1s
 ✔ Network metabase_production_default      Created                                                                                                 0.0s
 ✔ Container metabase_production-database-1 Healthy                                                                                                 5.7s
cat "./backend/src/Migrations/migrate.sql" \
| docker compose exec \
	--no-tty \
	database \
	psql \
		--echo-all \
		--no-psqlrc \
		--set=ON_ERROR_STOP=on \
		--file=- \
		--username="postgres" \
		--dbname="xbase"
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL:  database "xbase" does not exist
make[1]: *** [database.mk:73: sql] Error 2
make[1]: Leaving directory '/home/cloud/production'
make: *** [database.mk:93: migrate] Error 2

Metadata

Metadata

Labels

2601Issues for the end of project EQWIN-PISEFraunhofer Institute for Solar Energy Systems ISEtriageReview issue to make sure it is relevant, actionable, and has all the necessary information

Type

No type
No fields configured for issues without a type.

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions