Skip to content

"Refusing the destructive short id repair" on starting tuwunel #586

Description

@dogarrowtype

Tuwunel version

1.9.0

Installation method

Static binary from a release

Platform and OS

Debian 13 x86_64 and also Alma Linux 10 x86_64

Database origin

Created by Tuwunel

What happened?

I get a persistent warning in the log that tells me to report this upstream. This seems to be related to the 1.9.0 database migration update.
The server this database goes to is pretty active. It has been the same database since installing tuwunel fresh in 02-2026.

Steps to reproduce

No response

Expected behavior

No response

Relevant log output or configuration

2026-09-10T04:52:58.546806Z  INFO main:start:open: tuwunel_database::engine::open: Opened database. columns=133 sequence=133606143 time=212.490279ms
2026-09-10T04:52:58.581156Z  INFO main:start: tuwunel_service::migrations::injectivity::scan: Scanning ShortID columns for duplicate values...
2026-09-10T04:52:59.394059Z  INFO main:start: tuwunel_service::migrations::injectivity::scan: Finished scanning column pair. forward=eventid_shorteventid reverse=shorteventid_eventid rows=276417 losers=0 dangling=0 promotable=0 contended=0 unresolved=0 malformed=0
2026-09-10T04:52:59.396138Z  INFO main:start: tuwunel_service::migrations::injectivity::scan: Finished scanning column pair. forward=statekey_shortstatekey reverse=shortstatekey_statekey rows=109 losers=1 dangling=0 promotable=0 contended=0 unresolved=0 malformed=0
2026-09-10T04:52:59.682879Z  WARN main:start: tuwunel_service::migrations::injectivity::scan: Swept the deeper short id indexes. dirty=0 entries=0 infected=6 ghosts=6 removed_ghosts=0 orphans=0 missing_parents=0 infected_parents=9 malformed_diffs=0 moves=0 relations=0
2026-09-10T04:52:59.683458Z  WARN main:start: tuwunel_service::migrations::injectivity::repair: Refusing the destructive short id repair; the nonzero counts name shapes it does not handle. Please report this line upstream, since the scan repeats each boot until a release handles them. dangling_events=0 dangling_statekeys=0 promotable_events=0 promotable_statekeys=0 contended_events=0 contended_statekeys=0 unresolved_events=0 unresolved_statekeys=0 malformed_event_keys=0 malformed_statekey_keys=0 orphan_entries=0 missing_parents=0 infected_parents=9 malformed_diffs=0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't right.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions