Issue running chantools for LND

I’m experiencing issues with opening LND, and the log error suggests the problem lies with LND itself, not StartOS. The error message is: “LTND: unable to open graph DB: ReadVarBytes; sig is larger than the max allowed size [count 179, max 80]”.

After reaching out to the Lightning Labs team, they recommended using chantools_compactdb. I installed chantools and attempted to run the command:

chantools compactdb \
        --sourcedb ~/embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/channel.db \
        --destdb ./embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/compacted.db

However, this resulted in an error: “Error: error opening source DB: open /root/embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/channel.db: no such file or directory”.

To troubleshoot, I used the command sudo find / -name channel.db (from the default SSH location, not root), which returned the path /embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/channel.db. This suggests that channel.db is indeed located in the expected location.

I’m unsure where I’m going wrong. Should I not be executing chantools from the root user? Any assistance would be appreciated.

~/embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/ won’t exist.

/embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/ does exist.

./embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/ might sometimes exist.

I modified the --sourcedb to read:

        --sourcedb /embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/channel.db \

However, I still encountered an error:

Error: error opening source DB: open /embassy-data/package-data/volumes/lnd/data/main/data/graph/mainnet/channel.db: no such file or directory

./embassy-data/… did not work either