Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Unable to start server: unable to refresh backup file: unable to update multi backup: Access Denied #3591

Closed
marssystems opened this issue Jul 11, 2020 · 20 comments
Labels
needs feedback type: bug 🐛 Something isn't working

Comments

@marssystems
Copy link

Description

<Just!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug -->
Just upgraded to Ver 0.7.0-Beta
Got this error on startup:-
Lnd has unexpectedly quit!
Error code:
1
Error signal:
Unknown
Error message:
Unknown

Expected Behavior

Zap wallet to start normally.

Actual Behavior

Zap wallet failed to start.

Possible Fix

Steps to Reproduce

Context

Your Environment

  • Zap version: 0.7.0-Beta
  • Operating System and version: windows 10
@welcome
Copy link

welcome bot commented Jul 11, 2020

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@mrfelton
Copy link
Member

Hi, can you tell me what version of Zap you were upgrading from please? Thanks. Also, if you quit and restart the app do you get the same problem? Thanks

@marssystems
Copy link
Author

Hi!

Yes - Upgraded from the previous version 0.6.2-Beta and I still get the same message when I quit and restart the app.

@mrfelton
Copy link
Member

Interesting. Well, this error is coming directly from lnd (which was upgraded from 0.8 to 0.10 in this release). My first thought is that lnd's upgrade process didn't fully complete for some reason though I've not seen it happen before.

Can you try downloading 0.6.2 again and see if that still runs?

@marssystems
Copy link
Author

Going back to ver 0.6.2-Beta gives this error -

Lnd has unexpectedly quit!
Error code:
1
Error signal:
Unknown
Error message:
Unable to open channeldb: channel db cannot revert to prior version

@marssystems
Copy link
Author

Re-installed 0.7.0 and still getting the same fail message.

@mrfelton
Copy link
Member

Could you update to 0.7.0 again, start zap, and then review your lnd logs which you can find at %APPDATA%\Zap\lnd\bitcoin\mainnet\wallet-1\logs\bitcoin\mainnet\lnd.log (wallet-1 may vary depending on how many wallets you have created).

@marssystems
Copy link
Author

OK - This is the latest log entry -

2020-07-11 23:10:05.545 [INF] CNCT: ChannelArbitrator(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0): starting state=StateDefault, trigger=chainTrigger, triggerHeight=638831
2020-07-11 23:10:05.545 [DBG] CNCT: ChannelArbitrator(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0): new block (height=638831) examining active HTLC's
2020-07-11 23:10:05.545 [DBG] CNCT: ChannelArbitrator(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0): checking commit chain actions at height=638831, in_htlc_count=0, out_htlc_count=0
2020-07-11 23:10:05.545 [DBG] CNCT: Starting ChannelArbitrator(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0), htlc_set=(map[contractcourt.HtlcSetKey]contractcourt.htlcSet) (len=2) {
(contractcourt.HtlcSetKey) LocalHtlcSet: (contractcourt.htlcSet) {
incomingHTLCs: (map[uint64]channeldb.HTLC) {
},
outgoingHTLCs: (map[uint64]channeldb.HTLC) {
}
},
(contractcourt.HtlcSetKey) RemoteHtlcSet: (contractcourt.htlcSet) {
incomingHTLCs: (map[uint64]channeldb.HTLC) {
},
outgoingHTLCs: (map[uint64]channeldb.HTLC) {
}
}
}

2020-07-11 23:10:05.545 [DBG] CNCT: ChannelArbitrator(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0): new block (height=638831) examining active HTLC's
2020-07-11 23:10:05.545 [DBG] CNCT: ChannelArbitrator(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0): checking commit chain actions at height=638831, in_htlc_count=0, out_htlc_count=0
2020-07-11 23:10:05.545 [DBG] BTCN: Sending getdata (witness block 0000000000000000000f446237471c4dae978f1a50bd95604f0078d78dfb838a) to 167.71.142.183:8333 (outbound)
2020-07-11 23:10:05.545 [INF] CNCT: ChannelArbitrator(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0): starting state=StateDefault, trigger=chainTrigger, triggerHeight=638831
2020-07-11 23:10:05.545 [DBG] CNCT: ChannelArbitrator(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0): new block (height=638831) examining active HTLC's
2020-07-11 23:10:05.545 [DBG] CNCT: ChannelArbitrator(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0): checking commit chain actions at height=638831, in_htlc_count=0, out_htlc_count=0
2020-07-11 23:10:05.545 [INF] DISC: Authenticated Gossiper is starting
2020-07-11 23:10:05.545 [INF] BRAR: Starting contract observer, watching for breaches.
2020-07-11 23:10:05.545 [DBG] DISC: Requesting online notification for peer=023692c62d1da4bcb34a5b611520101f7047e0376124556dd72c16fd3d7870c0b2
2020-07-11 23:10:05.545 [INF] NTFN: New block epoch subscription
2020-07-11 23:10:05.545 [INF] CRTR: Examining channel graph for zombie channels
2020-07-11 23:10:05.545 [DBG] CNCT: ChannelArbitrator(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0): new block (height=638831) examining active HTLC's
2020-07-11 23:10:05.545 [DBG] CNCT: ChannelArbitrator(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0): checking commit chain actions at height=638831, in_htlc_count=0, out_htlc_count=0
2020-07-11 23:10:05.545 [DBG] DISC: Skipping retransmission of channel without AuthProof: 689818202125434880
2020-07-11 23:10:05.599 [DBG] RPCS: [ListPayments]
2020-07-11 23:10:05.600 [DBG] RPCS: [listpeers] yielded [] peers
2020-07-11 23:10:05.697 [DBG] RPCS: [ListPayments]
2020-07-11 23:10:05.697 [DBG] RPCS: [ListPayments]
2020-07-11 23:10:05.697 [DBG] RPCS: [pendingchannels]
2020-07-11 23:10:05.697 [DBG] RPCS: [ListPayments]
2020-07-11 23:10:05.698 [DBG] RPCS: [walletbalance] Total balance=0.00021323 BTC (confirmed=0.00021323 BTC, unconfirmed=0 BTC)
2020-07-11 23:10:05.698 [DBG] RPCS: [channelbalance] balance=0.00007849 BTC pending-open=0 BTC
2020-07-11 23:10:05.699 [DBG] RPCS: [listchannels] fetched 2 channels from DB
2020-07-11 23:10:05.795 [DBG] CHDB: ChanUpdatesInHorizon hit percentage: 0.000000 (0/11366)
2020-07-11 23:10:05.797 [DBG] CRTR: ChannelID(636264289390034945) is a zombie, collecting to prune
2020-07-11 23:10:05.798 [DBG] CRTR: ChannelID(697133253116166145) is a zombie, collecting to prune
2020-07-11 23:10:05.798 [DBG] CRTR: ChannelID(697159641292865536) is a zombie, collecting to prune
2020-07-11 23:10:05.798 [DBG] CRTR: ChannelID(679111158015787009) is a zombie, collecting to prune
2020-07-11 23:10:05.799 [INF] CRTR: Pruning 4 zombie channels
2020-07-11 23:10:05.820 [DBG] INVC: Adding 0 pending invoices to the expiry watcher
2020-07-11 23:10:05.820 [INF] INVC: New invoice subscription client: id=0
2020-07-11 23:10:05.821 [DBG] LNWL: ChannelPoint(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0): starting local commitment: (*lnwallet.commitment)(0xc0037b6000)({
height: (uint64) 140,
isOurs: (bool) true,
ourMessageIndex: (uint64) 20,
theirMessageIndex: (uint64) 120,
ourHtlcIndex: (uint64) 0,
theirHtlcIndex: (uint64) 20,
txn: (*wire.MsgTx)(0xc002426680)({
Version: (int32) 2,
TxIn: ([]*wire.TxIn) (len=1 cap=1) {
(*wire.TxIn)(0xc002a2c720)({
PreviousOutPoint: (wire.OutPoint) d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0,
SignatureScript: ([]uint8) {
},
Witness: (wire.TxWitness) ,
Sequence: (uint32) 2159676538
})
},
TxOut: ([]*wire.TxOut) (len=1 cap=1) {
(*wire.TxOut)(0xc00244edc0)({
Value: (int64) 18469,
PkScript: ([]uint8) (len=22 cap=22) {
00000000 00 14 58 b8 56 b9 86 e7 84 3f ba 52 49 53 fc 97 |..X.V....?.RIS..|
00000010 79 76 d2 1e 97 3b |yv...;|
}
})
},
LockTime: (uint32) 538404438
}),
sig: ([]uint8) (len=71 cap=71) {
00000000 30 45 02 21 00 a7 bc 6a 2e 84 37 82 a9 64 14 d8 |0E.!...j..7..d..|
00000010 da d4 6f 86 61 55 2c 12 86 00 57 7a bc e1 4d c0 |..o.aU,...Wz..M.|
00000020 4f fd d1 eb df 02 20 71 71 3c 29 a8 7b c8 a3 ca |O..... qq<).{...|
00000030 77 90 53 53 ae 17 b0 61 01 13 62 1e 6d 40 3b af |w.SS...a..b.m@;.|
00000040 d4 43 00 a2 cf c4 60 |.C....`|
},
ourBalance: (lnwire.MilliSatoshi) 0 mSAT,
theirBalance: (lnwire.MilliSatoshi) 18469000 mSAT,
fee: (btcutil.Amount) 0.00006531 BTC,
feePerKw: (chainfee.SatPerKWeight) 9021 sat/kw,
dustLimit: (btcutil.Amount) 0.00000573 BTC,
outgoingHTLCs: ([]lnwallet.PaymentDescriptor) ,
incomingHTLCs: ([]lnwallet.PaymentDescriptor) ,
outgoingHTLCIndex: (map[int32]*lnwallet.PaymentDescriptor) ,
incomingHTLCIndex: (map[int32]*lnwallet.PaymentDescriptor)
})

2020-07-11 23:10:05.821 [DBG] LNWL: ChannelPoint(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0): starting local commitment: (*lnwallet.commitment)(0xc0039c0000)({
height: (uint64) 15,
isOurs: (bool) true,
ourMessageIndex: (uint64) 8,
theirMessageIndex: (uint64) 7,
ourHtlcIndex: (uint64) 4,
theirHtlcIndex: (uint64) 3,
txn: (*wire.MsgTx)(0xc0024267c0)({
Version: (int32) 2,
TxIn: ([]*wire.TxIn) (len=1 cap=1) {
(*wire.TxIn)(0xc002a2c840)({
PreviousOutPoint: (wire.OutPoint) d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0,
SignatureScript: ([]uint8) {
},
Witness: (wire.TxWitness) ,
Sequence: (uint32) 2150772770
})
},
TxOut: ([]*wire.TxOut) (len=2 cap=2) {
(*wire.TxOut)(0xc002426800)({
Value: (int64) 4803,
PkScript: ([]uint8) (len=22 cap=22) {
00000000 00 14 1e b6 bb a7 ec 30 04 77 2e ca bf 0b 94 97 |.......0.w......|
00000010 8b 1f ec b4 16 e2 |......|
}
}),
(*wire.TxOut)(0xc002426820)({
Value: (int64) 7849,
PkScript: ([]uint8) (len=34 cap=34) {
00000000 00 20 2a bc 69 db cc 2c b2 d2 70 52 b0 c9 d8 89 |. *.i..,..pR....|
00000010 4d dd 03 1b 05 6d 8a 12 9f cd 82 fd ef 7d 84 36 |M....m.......}.6|
00000020 69 92 |i.|
}
})
},
LockTime: (uint32) 538077644
}),
sig: ([]uint8) (len=71 cap=71) {
00000000 30 45 02 21 00 c5 46 ac 02 5b 63 30 27 11 8e d9 |0E.!..F..[c0'...|
00000010 5d 4b ac 64 3a 0c 2f 26 d9 40 05 14 35 2d 7a 8f |]K.d:./&.@..5-z.|
00000020 8f 8b c4 a4 eb 02 20 23 21 2e 8e d0 c5 d0 3b c1 |...... #!.....;.|
00000030 12 47 de 6a 4b 43 8f 15 71 6f f7 82 96 97 b2 93 |.G.jKC..qo......|
00000040 3e 44 24 59 d5 87 f9 |>D$Y...|
},
ourBalance: (lnwire.MilliSatoshi) 7849995 mSAT,
theirBalance: (lnwire.MilliSatoshi) 4803005 mSAT,
fee: (btcutil.Amount) 0.00007347 BTC,
feePerKw: (chainfee.SatPerKWeight) 10149 sat/kw,
dustLimit: (btcutil.Amount) 0.00000573 BTC,
outgoingHTLCs: ([]lnwallet.PaymentDescriptor) ,
incomingHTLCs: ([]lnwallet.PaymentDescriptor) ,
outgoingHTLCIndex: (map[int32]*lnwallet.PaymentDescriptor) ,
incomingHTLCIndex: (map[int32]*lnwallet.PaymentDescriptor)
})

2020-07-11 23:10:05.822 [INF] CHFT: Adding 2 channels to event store
2020-07-11 23:10:05.822 [INF] CHBU: Starting chanbackup.SubSwapper
2020-07-11 23:10:05.823 [DBG] LNWL: ChannelPoint(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0): starting remote commitment: (*lnwallet.commitment)(0xc0039c00c0)({
height: (uint64) 140,
isOurs: (bool) false,
ourMessageIndex: (uint64) 20,
theirMessageIndex: (uint64) 120,
ourHtlcIndex: (uint64) 0,
theirHtlcIndex: (uint64) 20,
txn: (*wire.MsgTx)(0xc0024266c0)({
Version: (int32) 2,
TxIn: ([]*wire.TxIn) (len=1 cap=1) {
(*wire.TxIn)(0xc002a2c780)({
PreviousOutPoint: (wire.OutPoint) d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0,
SignatureScript: ([]uint8) {
},
Witness: (wire.TxWitness) ,
Sequence: (uint32) 2159676538
})
},
TxOut: ([]*wire.TxOut) (len=1 cap=1) {
(*wire.TxOut)(0xc00244ee00)({
Value: (int64) 18469,
PkScript: ([]uint8) (len=34 cap=34) {
00000000 00 20 fc 67 28 12 49 43 2b 25 3f b5 19 fe 85 a2 |. .g(.IC+%?.....|
00000010 cf 2f f2 4a 55 64 b1 e1 89 ed c6 4e 82 04 63 4e |./.JUd.....N..cN|
00000020 20 19 | .|
}
})
},
LockTime: (uint32) 538404438
}),
sig: ([]uint8) {
},
ourBalance: (lnwire.MilliSatoshi) 0 mSAT,
theirBalance: (lnwire.MilliSatoshi) 18469000 mSAT,
fee: (btcutil.Amount) 0.00006531 BTC,
feePerKw: (chainfee.SatPerKWeight) 9021 sat/kw,
dustLimit: (btcutil.Amount) 0.00000573 BTC,
outgoingHTLCs: ([]lnwallet.PaymentDescriptor) ,
incomingHTLCs: ([]lnwallet.PaymentDescriptor) ,
outgoingHTLCIndex: (map[int32]*lnwallet.PaymentDescriptor) ,
incomingHTLCIndex: (map[int32]*lnwallet.PaymentDescriptor)
})

2020-07-11 23:10:05.823 [DBG] LNWL: ChannelPoint(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0): Restoring 0 dangling remote updates
2020-07-11 23:10:05.823 [DBG] LNWL: ChannelPoint(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0): starting remote commitment: (*lnwallet.commitment)(0xc001e96a80)({
height: (uint64) 15,
isOurs: (bool) false,
ourMessageIndex: (uint64) 8,
theirMessageIndex: (uint64) 7,
ourHtlcIndex: (uint64) 4,
theirHtlcIndex: (uint64) 3,
txn: (*wire.MsgTx)(0xc002426840)({
Version: (int32) 2,
TxIn: ([]*wire.TxIn) (len=1 cap=1) {
(*wire.TxIn)(0xc002a2c8a0)({
PreviousOutPoint: (wire.OutPoint) d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0,
SignatureScript: ([]uint8) {
},
Witness: (wire.TxWitness) ,
Sequence: (uint32) 2150772770
})
},
TxOut: ([]*wire.TxOut) (len=2 cap=2) {
(*wire.TxOut)(0xc002426880)({
Value: (int64) 4803,
PkScript: ([]uint8) (len=34 cap=34) {
00000000 00 20 33 76 be 66 60 e6 5c d3 a1 6a e0 0d 06 b5 |. 3v.f`...j....|
00000010 cb 02 46 57 d9 d1 d4 7c 47 8d 34 6b bc e7 9e 6e |..FW...|G.4k...n|
00000020 5f 0c |_.|
}
}),
(*wire.TxOut)(0xc0024268a0)({
Value: (int64) 7849,
PkScript: ([]uint8) (len=22 cap=22) {
00000000 00 14 f8 37 9f b9 d7 8e 66 75 13 c4 81 c2 ba b7 |...7....fu......|
00000010 e3 11 aa 91 21 6f |....!o|
}
})
},
LockTime: (uint32) 538077644
}),
sig: ([]uint8) {
},
ourBalance: (lnwire.MilliSatoshi) 7849995 mSAT,
theirBalance: (lnwire.MilliSatoshi) 4803005 mSAT,
fee: (btcutil.Amount) 0.00007347 BTC,
feePerKw: (chainfee.SatPerKWeight) 10149 sat/kw,
dustLimit: (btcutil.Amount) 0.00000573 BTC,
outgoingHTLCs: ([]lnwallet.PaymentDescriptor) ,
incomingHTLCs: ([]lnwallet.PaymentDescriptor) ,
outgoingHTLCIndex: (map[int32]*lnwallet.PaymentDescriptor) ,
incomingHTLCIndex: (map[int32]*lnwallet.PaymentDescriptor)
})

2020-07-11 23:10:05.823 [DBG] FNDG: ChannelPoint(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0) with chan_id=aeaff2ae6b6fcfc20e57df9ef2ef67f39939ad6ac5b7a83af3f8d1823137e3d2 not found in opening database, assuming already announced to the network
2020-07-11 23:10:05.823 [DBG] LNWL: ChannelPoint(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0): Restoring 0 dangling remote updates
2020-07-11 23:10:05.824 [DBG] FNDG: ChannelPoint(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0) with chan_id=cc05c273a6586925d67c199709cf1fca1a8fcdd08a7bc774024325ec01573dd1 not found in opening database, assuming already announced to the network
2020-07-11 23:10:05.826 [WRN] CHBU: Replacing disk backup for ChannelPoint(d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0) w/ newer version
2020-07-11 23:10:05.826 [WRN] CHBU: Replacing disk backup for ChannelPoint(d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0) w/ newer version
2020-07-11 23:10:05.828 [INF] CHBU: Updating backup file at C:\Users\mariu\AppData\Roaming\Zap\lnd\bitcoin\mainnet\wallet-1\data\chain\bitcoin\mainnet\channel.backup
2020-07-11 23:10:05.830 [INF] CHBU: Swapping old multi backup file from C:\Users\mariu\AppData\Roaming\Zap\lnd\bitcoin\mainnet\wallet-1\data\chain\bitcoin\mainnet\temp-dont-use.backup to C:\Users\mariu\AppData\Roaming\Zap\lnd\bitcoin\mainnet\wallet-1\data\chain\bitcoin\mainnet\channel.backup
2020-07-11 23:10:05.831 [ERR] LTND: Unable to start server: unable to refresh backup file: unable to update multi backup: rename C:\Users\mariu\AppData\Roaming\Zap\lnd\bitcoin\mainnet\wallet-1\data\chain\bitcoin\mainnet\temp-dont-use.backup C:\Users\mariu\AppData\Roaming\Zap\lnd\bitcoin\mainnet\wallet-1\data\chain\bitcoin\mainnet\channel.backup: Access is denied.
2020-07-11 23:10:05.831 [INF] RPCS: Stopping RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping ChainRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping VersionRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping WatchtowerClientRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping SignRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping AutopilotRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping WalletKitRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping WatchtowerRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping RouterRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] RPCS: Stopping InvoicesRPC Sub-RPC Server
2020-07-11 23:10:05.831 [INF] INVC: Cancelling invoice subscription for client=0
2020-07-11 23:10:05.832 [DBG] BTCN: Received block (hash 0000000000000000000f446237471c4dae978f1a50bd95604f0078d78dfb838a, ver 545259520, 2632 tx, 2020-07-11 21:52:11 +0100 BST) from 167.71.142.183:8333 (outbound)
2020-07-11 23:10:05.832 [INF] BTCN: Canceling block subscription: id=1
2020-07-11 23:10:05.832 [DBG] BTCN: Error finding spends for d13d5701ec25430274c77b8ad0cd8f1aca1fcf0997197cd6256958a673c205cc:0: neutrino shutting down
2020-07-11 23:10:05.832 [ERR] NTFN: Failed getting UTXO: neutrino shutting down
2020-07-11 23:10:05.832 [DBG] BTCN: Error finding spends for d2e3373182d1f8f33aa8b7c56aad3999f367eff29edf570ec2cf6f6baef2afae:0: neutrino shutting down
2020-07-11 23:10:05.832 [ERR] NTFN: Failed getting UTXO: neutrino shutting down
2020-07-11 23:10:05.866 [ERR] BTCN: utxo scan failed: neutrino shutting down
2020-07-11 23:10:05.883 [DBG] BTCN: Stopping block notifications subscription manager
2020-07-11 23:10:05.883 [ERR] LNWL: Neutrino rescan ended with error: rescan block subscription was canceled
2020-07-11 23:10:05.883 [INF] BTCN: Block manager shutting down
2020-07-11 23:10:05.934 [INF] BTCN: Address manager shutting down
2020-07-11 23:10:06.258 [INF] LTND: Shutdown complete

@githorray
Copy link

Hmm, I thought that Windows file locking problem was fixed in lnd.

C:\Users\mariu\AppData\Roaming\Zap\lnd\bitcoin\mainnet\wallet-1\data\chain\bitcoin\mainnet\channel.backup: Access is denied.

@mrfelton
Copy link
Member

What Windows file locking problem are you referring to? I've not heard of this before. I'm not so familiar with Windows but from the logs it looks like a file permissions issue. Can you check the permissions on that file and ensure that it is readable by lnd?

It sounds related to this recent lnd change lightningnetwork/lnd#4379

@mrfelton mrfelton changed the title Upgrade to 0.7.0-Beta Unable to start server: unable to refresh backup file: unable to update multi backup: Access Denied Jul 12, 2020
@githorray
Copy link

I seem to remember Lightning Labs Lightning App having a similar issue.

https://github.com/lightninglabs/lightning-app

@marssystems
Copy link
Author

Any fix or workaround for this issue yet?

@mrfelton
Copy link
Member

mrfelton commented Jul 13, 2020

To me this sounds like either a file permissions issue on your machine, or a bug in lnd.

Did you check the file permissions?

You could try moving that channel.backup file out of the way and restarting the app. I think that will cause lnd to recreate the channel backup file though I'm not certain about that. You might want to ask in the lnd slack.

@mrfelton mrfelton added needs feedback type: bug 🐛 Something isn't working labels Jul 13, 2020
@marssystems
Copy link
Author

I was running ver 0.6.2 with no problem. I didn't change any permissions on my system (why would I?). I just upgraded to ver 0.7.0 and I got this error.
What file permissions do I need to check and where do I find the channel backup file so I can move it?

@mrfelton
Copy link
Member

The path to the file that lnd is having trouble reading is detailed in your error message:

C:\Users\mariu\AppData\Roaming\Zap\lnd\bitcoin\mainnet\wallet-1\data\chain\bitcoin\mainnet\channel.backup

@marssystems
Copy link
Author

OK - found it and moved it.
My zap wallet started up fine.
Do I need to put the backup file back to the original location?
Will I need to do this every time I upgrade to a new version?

@mrfelton
Copy link
Member

Great!

Do I need to put the backup file back to the original location?

After moving the file and starting up lnd again I expect lnd will have recreated the file for you. Can you check if the file has been recreated at its original location?

Will I need to do this every time I upgrade to a new version?

It's unlikely. I've actually never seen a case of this needing to be done. I think it relates to the change in lnd that I referenced earlier in this thread.

@marssystems
Copy link
Author

Yes - the backup file has been recreated.
OK - no worries - but if I get the same problem on a future update, I will know what to do.

Thanks for your help.

@mrfelton
Copy link
Member

Good stuff. Thanks for confirming.

@githorray
Copy link

Fix in LND merged.

lightningnetwork/lnd#4456

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs feedback type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants