-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to start no LNBackendType specified -- login screen #929
Comments
Failed to start no LNBackendType specified does appear to be a bug though. |
@hufforguk the above reply is spam. I have reported them. What backend did you start with? just the standard setup? What commands did you use to get started with docker? This is strange because before starting the node, the backend type is saved to the config (stored locally in sqlite). |
Hi @rolznz . |
@hufforguk can you check the data location you set that there is a ldk directory inside it? and you can also use |
Thanks |
@hufforguk this is really strange. We cannot just set this environment variable because you are missing other essential keys (UnlockPasswordCheck, NodeLastStartTime) etc which are required for Alby Hub to run correctly. If you have any extra info about anything you did let me know. I'll try to reproduce this locally. I don't see why some of the keys would have been saved and some not, especially if you successfully migrated funds, which happens way after initial setup. |
Hi @rolznz, Is there anyway of recovering the lighting wallet? Thanks |
@hufforguk can you confirm the only change you made was to these lines:
you probably need to run another temporary alby hub using a different directory but choosing same unlock password, and then copy some entries from this temporary nwc.db to your main nwc.db. (LNBackendType, UnlockPasswordCheck, NodeLastStartTime etc. BUT NOT THE MNEMONIC). This way, you should be able to unlock and start your hub. Please be very careful here and back up your whole alby hub data directory before proceeding. |
If possible could you put your whole docker-compose file here so I can check it? if there is anything sensitive in filenames, please just change that part of the path to ommitted |
@rolznz This is my compose file
(Edited by rolznz to fix indentation) |
@rolznz
|
Further info: these are the logs I pulled from Portainer.
|
@hufforguk are you sure you used the same unlock password as you did when you originally setup alby hub? |
Could you also check the logs in the |
@rolznz I did double check this - I put in a junk password (basically just mashed the keyboard) and it gave a wrong password error.
In my gist here https://gist.github.com/hufforguk/a72267d6f3b2347839dd14538384120f |
Is there any other file? this one looks fine - the node was started.
I mean, did you put the same password when you created the new hub as you did the original one? (because if you copied an |
Aha, yes. I spun up a fresh docker container with a new directory, logged in and used the same password. I then shut it down. copied all the entries from the |
@rolznz Further to my last |
@hufforguk hmm, it looks like a different pubkey was generated than expected, which means it's using a different seed phrase than what generated the data in the ldk folder. Did you make sure to stop the "temporary" alby hub and start the "original" hub again? |
@rolznz Yes, completely shut down, and then restarted with the original hub. Is there anyway of manually decrypting the Mnemonic stored in the db with my original password? |
@hufforguk yes, but it would require being able to run Go. You could write a small go script that uses the AesGcmDecryptWithPassword function from https://github.com/getAlby/hub/blob/master/config/aesgcm.go#L41 to decrypt the encrypted mnemonic using the password and ensure you have a valid mnemonic returned. But it seems like the mnemonic saved is possibly overwritten, since LDK-node generated a different node pubkey with it. But I could be wrong about the exact issue, so trying to decrypt your mnemonic above could still be a good thing to try. |
Fresh docker install (ghcr.io/getalby/hub:latest) on Ubuntu LTS
I connected to the server to run through the setup wizard, including linking to the old shared wallet in order to transfer funds to the hub.
The browser screen then went black. Refreshing browser window did nothing so I restarted the docker container.
It now shows the login screen (white/black with the running man silhouette). But it does not let me login with the password, it just shows the error in a red box on the bottom right "Failed to start no LNBackendType specified"
I didn't get round to taking down the 12 words. That was going to be my next task (literally was opening a pad of paper when this happened). I haven't transferred a huge amount in but would still feel a bit sore if it is gone.
The text was updated successfully, but these errors were encountered: