WindmillWWindmill
Powered by
RBlhazeR
Windmill•2y ago•
18 replies
RBlhaze

Database migration error

Hi all,
my self-hosted Windmill stopped working and shows this error before failing.

INFO Binary is in 'server' mode | timestamp=2024-04-12T14:04:18.792315Z target=windmill 
INFO Connecting to database... | timestamp=2024-04-12T14:04:18.792375Z target=windmill 
INFO Database connected | timestamp=2024-04-12T14:04:19.018736Z target=windmill 
INFO PostgreSQL version: PostgreSQL 16.1 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-6), 64-bit (windmill require PG >= 14) | timestamp=2024-04-12T14:04:19.037634Z target=windmill 
INFO Acquiring global PG lock for potential migration with pid: Some(8859) | timestamp=2024-04-12T14:04:19.040425Z target=windmill_api::db 
INFO Acquired global PG lock | timestamp=2024-04-12T14:04:19.043802Z target=windmill_api::db 
INFO Started applying migration 20240209103543: update app new | timestamp=2024-04-12T14:04:19.050553Z target=windmill_api::db 
INFO Finished applying migration 20240209103543 | timestamp=2024-04-12T14:04:19.054929Z target=windmill_api::db 
Error: Migrating database: while executing migrations: error returned from database: more than one row returned by a subquery used as an expression
Caused by:
    0: while executing migrations: error returned from database: more than one row returned by a subquery used as an expression
    1: error returned from database: more than one row returned by a subquery used as an expression
    2: more than one row returned by a subquery used as an expression
INFO Binary is in 'server' mode | timestamp=2024-04-12T14:04:18.792315Z target=windmill 
INFO Connecting to database... | timestamp=2024-04-12T14:04:18.792375Z target=windmill 
INFO Database connected | timestamp=2024-04-12T14:04:19.018736Z target=windmill 
INFO PostgreSQL version: PostgreSQL 16.1 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-6), 64-bit (windmill require PG >= 14) | timestamp=2024-04-12T14:04:19.037634Z target=windmill 
INFO Acquiring global PG lock for potential migration with pid: Some(8859) | timestamp=2024-04-12T14:04:19.040425Z target=windmill_api::db 
INFO Acquired global PG lock | timestamp=2024-04-12T14:04:19.043802Z target=windmill_api::db 
INFO Started applying migration 20240209103543: update app new | timestamp=2024-04-12T14:04:19.050553Z target=windmill_api::db 
INFO Finished applying migration 20240209103543 | timestamp=2024-04-12T14:04:19.054929Z target=windmill_api::db 
Error: Migrating database: while executing migrations: error returned from database: more than one row returned by a subquery used as an expression
Caused by:
    0: while executing migrations: error returned from database: more than one row returned by a subquery used as an expression
    1: error returned from database: more than one row returned by a subquery used as an expression
    2: more than one row returned by a subquery used as an expression


Di you have any suggestion on how tò solve this?
Many thanks for your support.
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Database migration error during upgrade
sigcoreSsigcore / help
2y ago
Error when running a migration and connecting to external database
AnyaAAnya / help
11mo ago
Database Manager JSONB Error
fooosieeeFfooosieee / help
2w ago
Database Studio Table - Error
cali (brazil)Ccali (brazil) / help
2y ago