So I'm finally delving into LNBits on my node but i cant install any extensions. It says i need an admin account. I've got mynode running and when I load up LNBits I don't see anywhere that mentions the admin account? Any help here would be appreciated!

Reply to this note

Please Login to reply.

Discussion

The Admin account is the very first one you created. Also, if you're using the AdminUI instead of the text based config file, the Super User account should show in the log file.

Ahh ok. I've no idea what was the first one.... do you think if I Uninstaller and reinstall it'll reset it?

Any idea how to get to the adminUI?

Env variable, LNBITS_ADMIN_USERS, set to your first wallet and restart and you'll have access.

Thanks! I'll see if I can get in and edit the env file. I have no idea what I'm doing. Gonna hold my nose, jump in and hope for the best

Bitkarrot may have a more direct answer for ya.

I havent setup LNBits yet, but cursory glance at github repo implies an environment variable can be set to define LNBITS_ADMIN_USERS as a comma separated list of userids.

MyNode github repo defines env without any values in LNBITS_ADMIN_USERS.

It may be possible to modify the env file directly and restart the lnbits service. On mynode, the file is at /mnt/hdd/mynode/lnbits/.env

Thanks vic! I'll look into it... I saw this but was hoping to avoid dealing with command line and the file system. Was hoping there was just like a "make acct admin" button I was missing lol.

I'm not so good with Linux so I'll see if I can stumble my way thru. I'm on the mynode vmbox instance (Debian fwiw) so..... hopefully that doesn't make things too much more complicated.

OK likely a dumb question but... how do I access a file editor on debian?

with CLI i usually use nano or vim

Ahh thank you! I got in and was able to update!

I'm sure it's a super simple 2 second task for supercoders as yourselves but man oh man, I feel like I just conquered the matrix 🤣🤣🤣🤣🤣 all I did was save a string of values into an existing text file. Sigh.

This is how we learn!

For mine I had to look at the you'll log file for LNbits to get the superuser password. I got mine, changed some settings and then LNbits blew up and I couldn't log in to the admin account anymore.... so I gave up. Now that it has user accounts I may play around again.

For any of the noobs like me, here's step by step what i did to fix it:

Background:

I'm on the debian mynode build but probably a similar way to get it done regardless what linux build you're on...

First open the terminal. Mynode is running on the browser so just minimize it and right click the desktop and open terminal emulator. Or you can ssh in.

Next type in:

sudo nano /mnt/hdd/mynode/lnbits/.env

Then at the top after it says LNBITS_ADMIN_USERS="" I typed in my account ID between the " marks. Be sure to use the usr user ID which is a long string of numbers and letters, not your username/email you created.

Hit ctrl O to save. And then hit Y to confirm. Just follow the prompts.

Finally go into your node software amd restart the lnbits service. Once that's done you should be able to login and it'll show as admin!

nostr:nevent1qqsrghtysckdw6syya8nk0u7ltfc2z45vxkpsm2364mffs2mytuyeugprfmhxue69uhkvun0vashg6r0dchxummnw3erztnrdaksygywyllmtjdm3nwszvddumh6f82k6sqm2sjdnl0e5clqwn2j0vr3tspsgqqqqqqs5l3zu9