canopy
canopy copied to clipboard
[BUG] CLI commands do not work when using auto update software
Describe the bug
When trying to use a CLI command with the auto update software part, the command panics. Frontend and RPC work perfectly
Steps to reproduce
Steps to reproduce the behavior:
- Run the auto update software (either with auto update on or off)
- Try to run a cli command
- It throws the error 2025/06/27 19:19:23 Starting version: 0.0.0-alpha in /app/cli from pablocampogo... Jun 27 19:19:23.054 ERROR: Module: store Code: 1 Message: openDB() failed with err: Cannot acquire directory lock on "/root/.canopy/canopy". Another process is using this Badger database. error: resource temporarily unavailable 2025/06/27 19:19:23 Process exited: exit status 1
Expected behavior
CLI commands should work even when using the auto update software
Screenshots
Environment
- OS: [Linux]
- Software Version: Alpha
- Other relevant environment info: This happens with docker and raw run
Required Tags
- Priority: Medium
- Module: Multi-Module
Solved in the original auto update PR https://github.com/canopy-network/canopy/pull/196