Skip to content

"Could not access status of transaction" when using Liquibase migration #2

Description

@iXo

Hi,

This project is very interesting for me, as I am trying to find a simple way to have a postgresql cluster without a single master node and with 100% data replicated on each nodes.

I have an application that is using liquibase to manage schema migration, and I tried to use it on this project.

So far, I can't use it as just after creating the 2 liquibase tables (databasechangelog and databasechangeloglock) liquibase wants to insert a lock in it's table, and postgresql return an error :

2025-06-09 09:15:25.761 UTC [149] STATEMENT: UPDATE recorder.databasechangeloglock SET LOCKED = FALSE, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1
2025-06-09 09:15:25.761 UTC [149] ERROR: could not access status of transaction 32766
2025-06-09 09:15:25.761 UTC [149] DETAIL: Could not read from file "pg_subtrans/0000" at offset 122880: read too few bytes.
2025-06-09 09:15:25.761 UTC [149] CONTEXT: while inserting index tuple (2613603249,1) in relation "databasechangeloglock_pkey"

This is from the docker cli showing the postgresql logs. I am not an expert in postgresql, therefore I don't know how to deal with that.

Is it something you know is in the limitations of pgfdb ? Is there something I can do to workaround this issue ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions