apotdevin / thunderhub

ThunderHub LND Lightning Node Manager in your Browser
https://www.thunderhub.io/
MIT License
415 stars 87 forks source link

Issue setting up server accounts #279

Open G8XSU opened 3 years ago

G8XSU commented 3 years ago

After npm start, none of the methods for server account setup is working for me.

Thunderhub version tried: Both v0.12.19 and v0.12.13, same results. I could be doing something wrong but here it is.

Logs:

info  - Loaded env from /home/username/thunderhub/.env.local
info  - Loaded env from /home/username/thunderhub/.env
2021-06-17 02:32:14 verbose [THUB]: No cookie path provided
2021-06-17 02:32:14 error [THUB]: No admin.macaroon file found at path: '/home/username/.lnd/data/chain/bitcoin/mainnet/admin.macaroon';/admin.macaroon
2021-06-17 02:32:14 error [THUB]: No file found at path: '/home/username/.lnd/tls.cert';
2021-06-17 02:32:14 error [THUB]: No file found at path: '/home/username/.thunderhub/thubconfig.yaml';
2021-06-17 02:32:14 info [THUB]: No account config file found at path '/home/username/.thunderhub/thubconfig.yaml';
2021-06-17 02:32:14 warn [THUB]: No SSO account available

Whereas those files do exist in those absolute paths and process should have proper permissions for it to access it.

.env.local

ACCOUNT_CONFIG_PATH = '/home/username/.thunderhub/thubconfig.yaml';
LOG_LEVEL = 'debug'
SSO_SERVER_URL = '127.0.0.1:10009';
SSO_CERT_PATH = '/home/username/.lnd/tls.cert';
SSO_MACAROON_PATH = '/home/username/.lnd/data/chain/bitcoin/mainnet/admin.macaroon';
DANGEROUS_NO_SSO_AUTH = 'true'

/home/username/.thunderhub/thubconfig.yaml:

masterPassword: 'somepasswd'
accounts:
  - name: '[AccountA]'
    serverUrl: '127.0.0.1:10009'
    macaroonPath: '/home/username/.lnd/data/chain/bitcoin/mainnet/admin.macaroon'
    certificatePath: '/home/username/.lnd/tls.cert'

URL Access tried on: http://192.168.1.9:3000/sso?token=1 and http://192.168.1.9:3000/login

There are several other types of server account, i tried with account config file, it has similar issue.

Cookie method doesn't mention what the contents of cookie should be like.

I have setup almost all tools of umbrel manually on ubuntu LTS on raspberry pi. Till now thunderhub giving me the most difficulty. My main issue is that logs don't contain any detail at all to help me debug the issue.

G8XSU commented 3 years ago

Resolved the issue for file not found , it turns out there was semi-colon missing after LOG_LEVEL = 'debug'

But the server account setup is still not working, removed all SSO config, just with ACCOUNT_CONFIG_PATH