easegress icon indicating copy to clipboard operation
easegress copied to clipboard

run easegress-server -c command is error

Open martinou opened this issue 4 years ago • 2 comments

Describe the bug Print the configuration.but yet start server

To Reproduce Steps to reproduce the behavior:

  1. Execute 'run easegress-server -c'
  2. Send a request to 'no send request'
  3. See error 1640251062(1)

Expected behavior print config

Version 1.4.0

Configuration

  • Easegress Configuration
  • HTTP server configuration
  • Pipeline Configuration

Logs

Easegress logs, if applicable.

OS and Hardware

  • OS: [e.g. Ubuntu 20.04]
  • CPU:[e.g. Intel(R) Core(TM) i5-8265U]
  • Memory: [e.g. 16GB]

Additional context Add any other context about the problem here.

martinou avatar Dec 23 '21 09:12 martinou

1640251118(1)

martinou avatar Dec 23 '21 09:12 martinou

Currently easegress-server flag -c or --print-config prints the configuration AND starts the server. However when running easegress-server --help, --print-config has following description: Print the configuration. The description could also mention that the command will also start the server.

This is a minor documentation improvement and you are very welcome to make PR to fix it.

On the other hand, if you already have the server running and you intent is to print the config, you can use the egctl CLI tool: run egctl object list to see all configured objects, which together form the configuration.

samutamm avatar Dec 31 '21 03:12 samutamm