Skip to content

Stuck on migration step: Migrating database to properly prune edge update index #1913

@rytido

Description

@rytido

Background

In upgrading 0.42 to 0.5 lnd gets stuck on Migrating database to properly prune edge update index.

Your environment

  • lnd 0.42 -> 0.5
  • Linux bits 4.15.0-34-generic Light-152 multihop routing #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • bitcoind 0.16.2

Steps to reproduce

~/gocode/bin/lnd
Attempting automatic RPC configuration to bitcoind
Automatically obtained bitcoind's RPC credentials
2018-09-15 00:06:56.258 [INF] LTND: Version 0.5.0-beta commit=3b2c807288b1b7f 40d609533c1e96a510ac5fa6d
2018-09-15 00:06:56.258 [INF] LTND: Active chain: Bitcoin (network=mainnet)
2018-09-15 00:06:56.266 [INF] CHDB: Checking for schema update: latest_versio n=6, db_version=1
2018-09-15 00:06:56.266 [INF] CHDB: Performing database schema migration
2018-09-15 00:06:56.266 [INF] CHDB: Applying migration #2
2018-09-15 00:06:56.266 [INF] CHDB: Migrating invoice database to new time se ries format
2018-09-15 00:06:56.266 [INF] CHDB: Migration to invoice time series index co mplete!
2018-09-15 00:06:56.266 [INF] CHDB: Applying migration #3
2018-09-15 00:06:56.266 [INF] CHDB: Migrating invoice database to new outgoin g payment format
2018-09-15 00:06:56.267 [INF] CHDB: Migration to outgoing payment invoices co mplete!
2018-09-15 00:06:56.267 [INF] CHDB: Applying migration #4
2018-09-15 00:06:57.072 [INF] CHDB: Migration of edge policies complete!
2018-09-15 00:06:57.072 [INF] CHDB: Applying migration #5
2018-09-15 00:06:57.072 [INF] CHDB: Migrating database to support payment sta tuses
2018-09-15 00:06:57.072 [INF] CHDB: Marking all known circuits with status In Flight
2018-09-15 00:06:57.092 [INF] CHDB: Marking all existing payments with status Completed
2018-09-15 00:06:57.092 [INF] CHDB: Migration of payment statuses complete!
2018-09-15 00:06:57.092 [INF] CHDB: Applying migration #6
2018-09-15 00:06:57.092 [INF] CHDB: Migrating database to properly prune edge update index

Expected behaviour

Based on migration example, the noted step should proceed rather quickly.

Actual behaviour

lnd hangs on noted step for 40 min (and counting) at 100% cpu usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions