`homolog` image cannot start: Prisma 7 migrations fail with "datasource.url property is required"
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
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
- Take any working
v2.3.7deployment with PostgreSQL. - Change only the image tag to
homolog. 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 asopen. - The tags for the 2.4 line are published without the
vprefix
(2.4.0-rc1,2.4.0-rc2,homolog), unlike the 2.3 line (v2.3.7). That is
easy to miss when looking forv2.4*. - Worth noting for anyone testing
2.4.0-rc2as an alternative: it ships the
same baileys7.0.0-rc.9asv2.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
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus evolution-foundation/evolution-api
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
evolution-foundation/evolution-api#2723 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
evolution-foundation/evolution-api#2704 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
evolution-foundation/evolution-api#2702 · 2 Kommentare · 3 Reaktionen ·
Maintainer antworten meist innerhalb von 5 Tagen
-
[BUG] Cloud API: a single unknown wamid in a `statuses` batch silently drops the whole batch (`return` instead of `continue`)Evtl. vergeben @vin1i hat das vor 59 Tagen übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
evolution-foundation/evolution-api#2700 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 5 Tagen
-
[BUG] Chatwoot integration duplicates messages when a device re-delivers the same key.id — getExistingSourceIds exists but is never called on the live pathEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
evolution-foundation/evolution-api#2675 ·
Maintainer antworten meist innerhalb von 5 Tagen
Alle Issues in evolution-foundation/evolution-api
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
galaxyproject/loom#616 ·
Maintainer antworten meist innerhalb von 1 Tag
-
e2e-failure ready-to-code
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
redhat-developer/rhdh-plugin-export-overlays#4580 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 84/100
eknowledger/toolbench#266 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
devdotfast/whiteboard#1415 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag