How do I fix this Marathon misconfiguration error?

If you receive this DCOS CLI error:

Error: Marathon likely misconfigured. Please check your marathon port and host settings. URL has an invalid label.

 

Check that the core.dcos_url parameter is correctly set in your marathon.json file.

  1. Run the dcos config show command and verify that your core.dcos_url value is set to the hostname of your DCOS install instance.
    $ dcos config show
    core.dcos_url=http://dcos-ElasticLoadBa--1955437011.us-west-2.elb.amazonaws.com
    core.email=email@yourcompany.com
    core.reporting=True
    core.token=ce39ba1e471334f2da06a0f079b8653d8bdb8d20zdaae6016deb698bc139e5e2
    package.cache=/Users/dandcoperator/.dcos/cache
    package.sources=['https://github.com/mesosphere/universe/archive/version-1.x.zip']
  2. If core.dcos_url is not set to the master hostname of your DCOS install instance, run the dcos config set command. For example:
    Important:
    When specifying the core.dcos_url parameter, you must prefix your hostname with “http://”.
    $ dcos config set core.dcos_url http://dcosmaster-elasticload-characters-numbers.us-west-2.elb.amazonaws.com
    

Make sure that core.mesos_master_url and marathon.url are not set in your config if you are using the CLI with a DCOS cluster. You can unset these using the dcos config unset command.

 

Have more questions? Submit a request

Comments

Powered by Zendesk