Skip to content

Sync appears successful, but Send/Receive failed #2057

@myieye

Description

@myieye

Describe the bug
(trace)

Sync result:

Image

fw-headless logs:

info: SendReceive[0]
Finished splitting up projec
t file: fw.fwdata
info: SendReceive[0]
Sending changes to LexBox
info: SendReceive[0]
Could not send to http://lf-merge:********@lexbox:5158/hg/
abort: HTTP Error 500: Internal Server Error

  hg command was
  push --new-branch  "http://lf-merge:********@lexbox:5158/hg/<project-code>" 
  hg version is Mercurial Distributed SCM (version 6.5.1)
  (see https://mercurial-scm.org for more information)

info: SendReceive[0]
Done
info: FwHeadless.Services.SyncWorker[0]
Send/Receive result after CRDT sync: Sync success: No changes from others
New long SHA: cd2ac81cf841231386527f7d340d87a9a395b988

Database logs (signal 9: Killed):
(see #2058)

2025-10-20 05:54:32.545 UTC [3075301] WARNING: collation "case_insensitive" has version mismatch
2025-10-20 05:54:32.545 UTC [3075301] DETAIL: The collation in the database was created using version 153.120, but the operating system provides version 153.121.
2025-10-20 05:54:32.545 UTC [3075301] HINT: Rebuild all objects affected by this collation and run ALTER COLLATION public.case_insensitive REFRESH VERSION, or build PostgreSQL with the right library version.
2025-10-20 05:54:53.441 UTC [1] LOG: server process (PID 3075485) was terminated by signal 9: Killed
2025-10-20 05:54:53.441 UTC [1] DETAIL: Failed process was running: autovacuum: ANALYZE public.CrdtCommits
2025-10-20 05:54:53.442 UTC [1] LOG: terminating any other active server processes
2025-10-20 05:54:53.450 UTC [1] LOG: all server processes terminated; reinitializing
2025-10-20 05:54:53.535 UTC [3075493] LOG: database system was interrupted; last known up at 2025-10-20 05:54:23 UTC
2025-10-20 05:54:53.538 UTC [3075496] FATAL: the database system is in recovery mode
2025-10-20 05:54:53.600 UTC [3075493] LOG: database system was not properly shut down; automatic recovery in progress
2025-10-20 05:54:53.615 UTC [3075493] LOG: redo starts at 1/91FB3938
2025-10-20 05:54:53.768 UTC [3075493] LOG: invalid record length at 1/9280B050: wanted 24, got 0
2025-10-20 05:54:53.768 UTC [3075493] LOG: redo done at 1/9280B018 system usage: CPU: user: 0.03 s, system: 0.03 s, elapsed: 0.15 s
2025-10-20 05:54:53.800 UTC [3075494] LOG: checkpoint starting: end-of-recovery immediate wait
2025-10-20 05:54:54.028 UTC [3075494] LOG: checkpoint complete: wrote 1139 buffers (7.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.170 s, sync=0.024 s, total=0.238 s; sync files=59, longest=0.014 s, average=0.001 s; distance=8541 kB, estimate=8541 kB
2025-10-20 05:54:54.042 UTC [1] LOG: database system is ready to accept connections
2025-10-20 06:04:02.470 UTC [3075955] WARNING: collation "case_insensitive" has version mismatch
2025-10-20 06:04:02.470 UTC [3075955] DETAIL: The collation in the database was created using version 153.120, but the operating system provides version 153.121.
2025-10-20 06:04:02.470 UTC [3075955] HINT: Rebuild all objects affected by this collation and run ALTER COLLATION public.case_insensitive REFRESH VERSION, or build PostgreSQL with the right library version.

Expected behavior
The Sync should have explicitly failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions