Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

`homolog` image cannot start: Prisma 7 migrations fail with "datasource.url property is required"

Offen
#2,690 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 5 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
postgresql, typescript
Bereich
backend, databases

Rechercherichtung

Start with the image's package.json, runWithProvider.js, and prisma/postgresql-schema.prisma, then reproduce the migration command shown in the report. Trace how the image is built and configured around the missing prisma.config.ts; done means the homolog container completes PostgreSQL migrations and starts serving without changing the existing database.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Summary

The evoapicloud/evolution-api:homolog image (Evolution 2.4.0, baileys
7.0.0-rc13) never finishes startup. It enters a crash loop during the migration
step, before serving anything. The same host, same database and same environment
run v2.3.7 normally — reverting the tag brings the service straight back.

Environment

Image evoapicloud/evolution-api:homolog (pushed 2026-07-14)
Evolution 2.4.0
Baileys 7.0.0-rc13
Prisma ^7.8.0 (from the image's package.json)
Database PostgreSQL, reachable, already provisioned by v2.3.7
Config DATABASE_PROVIDER=postgresql, DATABASE_CONNECTION_URI=<set>

What happens

The container restarts in a loop, logging:

Deploying migrations for postgresql
> node runWithProvider.js "rm -rf ./prisma/migrations && cp -r ./prisma/DATABASE_PROVIDER-migrations ./prisma/migrations && npx prisma migrate deploy --schema ./prisma/DATABASE_PROVIDER-schema.prisma"
Prisma schema loaded from prisma/postgresql-schema.prisma.
Error: The datasource.url property is required in your Prisma config file when using prisma migrate deploy.
Error executing command: rm -rf ./prisma/migrations && cp -r ./prisma/postgresql-migrations ./prisma/migrations && npx prisma migrate deploy --schema ./prisma/postgresql-schema.prisma
Migration failed

Cause, as far as we could inspect

Inside the image, the datasource block declares no url:

datasource db {
  provider = "postgresql"
}

Prisma 7 expects the connection URL to come from a prisma.config.ts, and that
file does not exist in the image:

$ docker run --rm --entrypoint sh evoapicloud/evolution-api:homolog \
    -c 'ls -la /evolution/prisma.config.* 2>/dev/null || echo "no prisma.config"'
no prisma.config

So there is no place for the URL to come from, and migrate deploy refuses to
run regardless of how the environment is configured. Setting
DATABASE_CONNECTION_URI (the 2.3.x variable) has no effect on this path.

Steps to reproduce

  1. Take any working v2.3.7 deployment with PostgreSQL.
  2. Change only the image tag to homolog.
  3. docker compose up -d <service>.

Result: crash loop with the error above, no HTTP listener.

Notes

  • Migrations fail before touching the database, so reverting the tag is
    clean. We confirmed our schema intact afterwards: 37 tables, row counts
    unchanged, instance reconnected as open.
  • The tags for the 2.4 line are published without the v prefix
    (2.4.0-rc1, 2.4.0-rc2, homolog), unlike the 2.3 line (v2.3.7). That is
    easy to miss when looking for v2.4*.
  • Worth noting for anyone testing 2.4.0-rc2 as an alternative: it ships the
    same baileys 7.0.0-rc.9 as v2.3.7, so it is not a way to pick up baileys
    fixes.
Vorherrschende Sprache
TypeScript
Sterne
9.9k
Forks
7.4k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus evolution-foundation/evolution-api

Alle Issues in evolution-foundation/evolution-api

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.