confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 704 forks source link

Connection Refused after changing schema-registry port #736

Closed ketanhdoshi closed 5 years ago

ketanhdoshi commented 5 years ago

I am running the Confluent Quick Start with Community Edition using Docker on Windows. I changed the schema-registry port number (from 8081 to 8090) by modifying all occurrences of 8081 in the docker-compose.yml. However all clients accessing schema-registry get a Connection Refused error.

From the schema-registry container itself, it is able to access the schema registry REST API on localhost:8090 so the schema registry is running and reachable. But it gets Connection Refused when accessing schema-registry:8090. Similarly, from any of the other containers (connect, ksql-cli etc) accessing the schema registry REST API on schema-registry:8090 gives a Connection Refused.

Schema Registry config file continues to use the deprecated 'port' on 8081, but setting that via an environment variable in the docker-compose.yml doesn't work as the schema-registry container shuts down after startup.

The attached file contains details of all the troubleshooting steps including excerpts of logs from the 'connect' and 'schema-registry' containers.

sr port.txt

ketanhdoshi commented 5 years ago

This has been resolved - in the Docker Compose file, the schema registry listener should be set to http://0.0.0.0:8090 instead of http://localhost:8090