itsneski / lightning-jet

Lightning Jet is a fully automated rebalancer for Lightning nodes. Jet optimizes channel liquidity allocation based on routing volume, missed routing opportunities (htlcs), and other variables.
MIT License
44 stars 11 forks source link

Jet not finding file channel.db #49

Open ghost opened 2 years ago

ghost commented 2 years ago

zombie@zombie:~$ uname -a Linux zombie 5.11.0-41-generic #45-Ubuntu SMP Fri Nov 5 11:37:01 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

zombie:~$ jet channeldb channel.db is located at /home/zombie/.lnd/data/graph/mainnet/channel.db /home/zombie/.lnd/data/graph/signet/channel.db checkChannelDb: Error: ENOENT: no such file or directory, stat '/home/zombie/.lnd/data/graph/mainnet/channel.db /home/zombie/.lnd/data/graph/signet/channel.db' /home/zombie/lightning-jet/api/channeldb.js:30 if (res.priority === priority.urgent) {

itsneski commented 2 years ago

This issue occurred on a bare metal install of jet. Wrote an independent test code that calls statSync on the path, /home/zombie/.lnd/data/graph/mainnet/channel.db. The test code worked. User is the same in jet channeldb and the test code, printed via require('os').userInfo().

Root cause is unclear atm.