openark / orchestrator

MySQL replication topology management and HA
Apache License 2.0
5.64k stars 933 forks source link

FATAL Failed to parse gcfg data from file: /etc/orchestrator.conf.json:1:1: illegal character U+007B '{' #638

Open supersujj opened 6 years ago

supersujj commented 6 years ago

This is the place to report a bug, ask a question, or suggest an enhancement. question This is also the place to make a discussion before creating a PR.

If this is a bug report, please provide a test case (e.g., your table definition and gh-ost command) and the error output.

Please use markdown to format code or SQL: https://guides.github.com/features/mastering-markdown/

And please understand if this issue is not addressed immediately or in a timeframe you were expecting. when use ./orchestrator -c discover -i hostname:3306,it issues this question Thank you!

shlomi-noach commented 6 years ago

Can you please paste the *.cnf file that is causing this problem?

shlomi-noach commented 6 years ago

Friendly ping

EagleEyeJohn commented 5 years ago
2019-04-17 17:17:26 FATAL Failed to parse gcfg data from file: /etc/orchestrator-topology.cnf.json:1:1: illegal character U+007B '{'
~$ cat /etc/orchestrator-topology.cnf.json
{
  "MySQLTopologyUser": "orchestrator",
  "MySQLTopologyPassword": "orc_topology_password",
}

taken verbatim from the documentation configuration-discovery-basic.md

If it's a config file, why is the example in json?

shlomi-noach commented 5 years ago

The snippet you pasted follows the text "You may choose to use plaintext credentials:", which shows this as an alternative to using cfg files.