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

Could not restore the channel.backup file from iCloud Drive #240

Open
xAdamPos opened this issue Aug 28, 2019 · 18 comments
Open

Could not restore the channel.backup file from iCloud Drive #240

xAdamPos opened this issue Aug 28, 2019 · 18 comments

Comments

@xAdamPos
Copy link

xAdamPos commented Aug 28, 2019

I tried to recover the LN wallet with my seed - the history of on-chain funds is not visible but I suppose that is another issue. Anyway, I did not have any on-chain funds, just funded LN channels which are not visible at the moment.

Thought that the channel.backup file is actually backed up both on my phone / iCloud Drive because when I went to Channel Backup before both backups had green dot. By mistake, I have not backed up the channel.backup file anywhere else.

So back to restoring - I input the seed and click the button to select the channel.backup file but it was not anywhere (folder Zap was not either on phone drive nor on iCloud Drive). I suppose the app is not able to access the hidden folder because when I go to Settings -> iCloud -> Manage Storage -> mainnet (it's how the app appears on this list) -> Documents -> there are many channel.backup files (I suppose the original one is actually there but it is not possible to move it to another folder).

Is there a way to recover these LN funds?

Thanks a lot!

  • Device: iPhone XS
  • OS: iOS 12.4
@xAdamPos xAdamPos changed the title Could not restore the channel.backup file from iCloud Drive/Google Drive Could not restore the channel.backup file from iCloud Drive Aug 29, 2019
@xAdamPos
Copy link
Author

Update: I have generated a completely new wallet nad it seems the channel.backup file is not created in a visible folder on iCloud Drive. It is created on the device though.

(unfortunately, the previous wallet did not create channel.backup on the device either so these LN funds are probably lost for me - unless it is possible to access the data in Settings -> iCloud -> Manage Storage -> mainnet -> Documents)

@JimmyMow
Copy link
Member

Hey @xAdamPos.

Zap should write the channel backup file on the device and to your iCloud Drive. If you navigate to your Settings -> Channel Backup you can see the status of your SCB file.

There seems to be a bug in the restore process for our recent mainnet release (#230). We're working to fix it.

@ottosuess
Copy link
Member

ottosuess commented Sep 2, 2019

can you see the backup file in the phone's Files app?
there should also be an iCloud folder

@xAdamPos
Copy link
Author

xAdamPos commented Sep 2, 2019 via email

@Sjors
Copy link

Sjors commented Sep 2, 2019

There seems to be a bug in the restore process for our recent mainnet release

I'm pretty sure these are separate bugs. Mainnet funds are recovered again since the latest release, but there is something wrong with how the channel backup files are stored.

I also see a "mainnet" folder in my iCloud Store settings on my phone. It contains a folder with the same digits as the Zap/... folder on the device. It contains a 0.1 KB channel.backup file, which I can't open or otherwise inspect.

@JimmyMow
Copy link
Member

JimmyMow commented Sep 3, 2019

Hey, @xAdamPos @Sjors.

I'm a little confused about the issue (or don't totally understand). If the app is deleted, the local backup will also be deleted. Not much we can do there. Users can periodically email themselves (or text, etc etc) the backup if they'd like. Maybe we don't put a green checkmark next to it in the settings? Was that misleading from a UX point of view?

In regards to the backup stored in iCloud, what is the issue here? The idea is that if your device does get damaged/stolen or you do delete the app, you have your seed and the iCloud backup to restore. Is there something wrong with this idea?

@xAdamPos
Copy link
Author

xAdamPos commented Sep 3, 2019 via email

@ottosuess
Copy link
Member

where exactly in the settings do you see the file?

@Sjors
Copy link

Sjors commented Sep 3, 2019

Maybe we don't put a green checkmark next to it in the settings?

Yes, maybe don't even show it. It's not really a backup if it's tied so strongly to the app. When I delete Instagram it doesn't delete my camera roll, so it's not obvious to users. Instead, encourage users to copy the backup somewhere save. Maybe have a green dot if you know they've saved the backup elsewhere and make it red again when there's a new channel.

the iCloud backup has not been created (or it is not in the on iCloud Drive at least

That indeed appears to be the main issue.

@xAdamPos
Copy link
Author

xAdamPos commented Sep 3, 2019 via email

@JimmyMow
Copy link
Member

Hey, @xAdamPos @Sjors I've had a difficult time reproducing this. What iPhone and iOS version are you running? Attempts at recovering my wallets have been successful. Are you still facing this issue?

@Sjors
Copy link

Sjors commented Sep 26, 2019

I haven't tried reproducing, but those backup files are definitely not on my iCloud. My best guess is that it didn't make an (iCloud) backup because I closed the app right after broadcasting the opening transaction, and deleted it before the app could find out the channel was confirmed.

I still need to try if I can recover the funds without a backup using desktop Lnd: https://bitcoin.stackexchange.com/questions/90196/how-to-recover-funds-from-a-force-closed-lnd-lightning-channel

@xAdamPos
Copy link
Author

The same situation on my side. I have not tried reproducing but the iCloud backup file has not been created on my iCloud therefore I am not able to restore the channel funds. I didn’t close the app right after broadcasting the opening tx - the channels were successfully opened for a while.

I am still curious if the iCloud backup file couldn’t be hidden in Settings -> iCloud -> Manage Storage -> mainnet -> Documents because I see many backup files there (screenshot). I believe that the first channel.backup (size 3.4 kb) is actually the one I have been looking for and was not created in the iCloud Drive. I still believe the file exists and this is the one :) Unfortunately, these files are not accessible.

Snímek obrazovky 2019-09-27 v 10 10 19

I can show the situation to you at LN conf in Berlin :)

@lobsterpub
Copy link

So i just ran into this issue today. I think there is some confusion between "icloud backup" and "icloud drive". I think the confusion comes from that they use the same storage, but are separated.

Zap uses the icloud Backup which is something you would use if you want to restore files for an iphone that has been corrupted. Or that were on a old iphone (lost/stolen/bricked) and you have a new iphone. You CAN NOT manually download these files, they are not accessible in the icloud Drive app. The issue is that you will have to RESET the device and then select "Restore from iCloud Backup".

https://support.apple.com/kb/ph12521?locale=en_US

Zap does NOT backup the files to the icloud Drive, which afaict you would have to manually add files to the icloud drive, and then they would be accessible across devices using the icloud drive app or website.

If it is possible to automatically backup the files to the icloud Drive that would be ideal.

Short story is that icloud is a confusing hot mess.

@ottosuess ottosuess added this to the 0.5.0 milestone Oct 10, 2019
@ottosuess ottosuess removed this from the 0.5.0 milestone Nov 5, 2019
@xAdamPos
Copy link
Author

Is there any progress regarding the channel backups in iOS? Is it possible for the channel.backup file to be automatically saved to iCloud Drive (not iCloud Backup as mentioned above) / Google Drive so the user can restore the app without restoring iPhone? Right now I have to manually save the file after each channel update. Thanks for any follow up!

@CoinJoinDay
Copy link

i have this problem too, i have a channel Backup on my google drive, and i'm trying to restore on ZAP mobile (ios), but unsuccessful. i have now put on icloud drive but still not recovered

@lobsterpub
Copy link

There hasn't been any commits in nearly 6 months.

@lobsterpub
Copy link

I'd like an update on this as well. Still no sign of the backup file on the latest version of zap.

I would not recommend this app until this issue is resolved, user funds are at risk.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants