meshery: [mesheryctl] Unhandled error in `system logs` when Meshery is not running

Description

With Meshery not running and the current context of meshconfig set to “platform: docker”, mesheryctl system logs does not gracefully handle this situation (see logs).

Expected Behavior

  • Docker platform: Prompt user with a question to start Docker.
  • Kubernetes platform: Prompt user with a question to deploy Docker.

Screenshots/Logs

➜  ~ mesheryctl system logs
Starting Meshery logging...
Error: exit status 255
Usage:
  mesheryctl system logs [flags]

Flags:
  -h, --help   help for logs

Global Flags:
      --config string    config file (default location is: /Users/lee/.meshery/config.yaml)
  -c, --context string   (optional) temporarily change the current context.
  -v, --verbose          verbose output
  -y, --yes              (optional) assume yes for user interactive prompts.

Environment:

  • Meshery Version: v0.5.11
  • Context platform: docker

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 25 (22 by maintainers)

Most upvoted comments

Nice, that’s also a part of the issue that you need to fix now!

I’ll try & reproduce this issue! Would reach out if stuck anywhere! 🙂