dashpay / platform

L2 solution for seriously fast decentralized applications for the Dash network
https://dashplatform.readme.io/docs/introduction-what-is-dash-platform
MIT License
67 stars 39 forks source link

bug(dashmate): dashmate reset --platform is broken #1414

Closed pshenmic closed 1 year ago

pshenmic commented 1 year ago

Expected Behavior

Dashmate should allow to reset platform node without stopping the whole stack (eg with platform stopped)

Current Behavior

Fails with Running services detected

Possible Solution

Steps to Reproduce (for bugs)

dashmate@hp-masternode-3:~$ dashmate reset --platform
❯ Reset testnet node
  ✖ Running services detected. Please ensure all services are stopped for this config before starting
  ◼ Remove platform services and associated data
  ◼ Reset dashmate's ephemeral data
dashmate@hp-masternode-3:~$ dashmate stop --platform
✔ Check node is running
✔ Stopping testnet node
dashmate@hp-masternode-3:~$ docker ps
CONTAINER ID   IMAGE                           COMMAND                  CREATED        STATUS          PORTS                                                                 NAMES
1aabdc3048fe   dashpay/dashd:20.0.0-alpha.10   "/docker-entrypoint.…"   47 hours ago   Up 56 minutes   9998-9999/tcp, 127.0.0.1:19998->19998/tcp, 0.0.0.0:19999->19999/tcp   dashmate_testnet-core-1
dashmate@hp-masternode-3:~$ dashmate reset --platform
❯ Reset testnet node
  ✖ Running services detected. Please ensure all services are stopped for this config before starting
  ◼ Remove platform services and associated data
  ◼ Reset dashmate's ephemeral data
dashmate@hp-masternode-3:~$ dashmate stop
✔ Check node is running
✔ Stopping testnet node
dashmate@hp-masternode-3:~$ dashmate reset --platform
✔ Reset testnet node
  ✔ Check services are not running
  ✔ Remove platform services and associated data
  ✔ Reset dashmate's ephemeral data
dashmate@hp-masternode-3:~$ dashmate start
✔ Start testnet node
  ✔ Check node is not started
  ✔ Start services

Context

Your Environment

pshenmic commented 1 year ago

https://github.com/dashpay/platform/pull/1415