Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't start schemaregistry

See original GitHub issue

I am trying to start the schema registry docker image with the following configs:

    image: confluentinc/cp-schema-registry:5.1.3
    network_mode: "host"
      SCHEMA_REGISTRY_LISTENERS: "http://localhost:8081"
      - kafka
      - "8081:8081"

Although I am facing the following error:

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: io.confluent.common.config.ConfigException: Invalid value linuxkit-025000000001: linuxkit-025000000001: Name or service not known for configuration Unknown local hostname

Any ideias?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

OneCricketeercommented, Feb 20, 2020

As I’ve pointed out already localhost/ is almost never the correct address when working with Docker services


Understand what the advertised listeners are

For Nomad, use the Zookeeper Consul DNS name, not localhost. Use the correct ports, not 9181 (unless you changed it for some reason)

For Schema Registry, I would suggest not using Zookeeper and use the Kafka-based election mode (refer to the documentation)

Victoremepuntocommented, Jul 13, 2020

I was running into issues until I set the hostname parameter to localhost, or I guess the same value as the SCHEMA_REGISTRY_HOST_NAME variable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to start Confluent Schema Registry - Stack Overflow
i have checked the logs of schema registry and found out the below log. ERROR Error starting the schema registry (io.confluent.kafka.
Read more >
Error: Schema Registry failed to start · Issue #1708 - GitHub
Stand Alone Schema Registry can not start after maintenance restart, otherwise Cluster where 2+ nodes works properly.
Read more >
Getting error in schema-registry start command - Edureka
I am getting error with below command:- "bin/schema-registry-start config/" getting error: "could not find or load ...
Read more >
error starting schema registry - Google Groups
i cant start the schema registry with the following error. ERROR Error starting the schema registry (
Read more >
Confluent Platform Quick Start
Start Confluent ZooKeeper, Kafka, and Schema Registry services using the Command Line Interface. Tip. If not already in your PATH, add ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found