canopy icon indicating copy to clipboard operation
canopy copied to clipboard

[BUG] CLI commands do not work when using auto update software

Open pablocampogo opened this issue 1 year ago • 1 comments

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:

  1. Run the auto update software (either with auto update on or off)
  2. Try to run a cli command
  3. 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

Image

Environment

  • OS: [Linux]
  • Software Version: Alpha
  • Other relevant environment info: This happens with docker and raw run

Required Tags

  • Priority: Medium
  • Module: Multi-Module

pablocampogo avatar Jun 27 '25 19:06 pablocampogo

Solved in the original auto update PR https://github.com/canopy-network/canopy/pull/196

pablocampogo avatar Jul 16 '25 16:07 pablocampogo