Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid configuration regardless of config file used #11

Open
saidimu opened this issue Jan 24, 2014 · 2 comments
Open

Invalid configuration regardless of config file used #11

saidimu opened this issue Jan 24, 2014 · 2 comments

Comments

@saidimu
Copy link

saidimu commented Jan 24, 2014

The latest version of discover from npm always gives the following error even when using the example config file at https://github.com/totem/discover/blob/develop/config/defaults.json

Error: Invalid configuration, you must provide valid `host` and `etcd` configuration blocks

The config file I'm using is:

{
  "etcd": {
    "port": 4001,
    "host": "localhost",
    "prefix": "discover/"
  },
  "host": {
    "ip": "localhost",
    "realm": "testing"
  },
  "log": "~/.docker-discover/discover.log"
}
@gordlea
Copy link

gordlea commented Mar 5, 2014

Try adding in the host: -> id: config parameter.

@mmoulton
Copy link
Member

In general the host:id property will resolve to the value of os.hostname() if omitted from the config. If adding this property worked for you, can you give me some details on your setup so I can investigate why the default did not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants