-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Docker image fails to start citing deprecated PORT but I am using LISTENERS in env #689
Comments
Hi, I have the same error. Anyone can fix this ? Thank you so much Best Regards, |
I ran into this same thing. It was due to kubernetes generating the SCHEMA_REGISTRY_PORT env var based on the name of the pod. I was able to resolve this by naming my pod/service to something other than 'schema-registry'. |
I did change the service name, but still see the same error. It has issue with I got another similar issue with can we have a fix together by confluentinc? Seems the error comes from
|
Looks like the kubenetes will automatically set the env name APPNAME_PORT, i.e. KAFKA_PORT in this case, the workaround is to change your app name to something else other than kafka. |
I'm seeing this same issue trying to deploy 5.0.0 of the schema-registry. I don't have a service or pod name with schema-registry of kafka-rest Config
Container Dump
Neither the pod or the service have a name of that would generate |
@jimhub , How can we pass the master.eligibility=false should it be passed as an environment variable in helm chart. I tried passing but the schema-registry still has an environment variable in my helm chart but the logs still show it as master.eligibility set to true,
|
I got the hint for the solution here: confluentinc/cp-docker-images#286 I had a service called "schema-registry" with a port named "schema-registry-port". |
I renamed the service from |
Hello; |
The content of
Hopefully for anyone arriving here, this will give you a bit of extra mileage |
If changing the name doesn't work, check if the old services with the name |
I have renamed the Container name inside the deployment manifest and that seems to fix the issue
|
For anyone facing into the same issue - there's much simpler solution. Starting from Kubernetes v1.13 (much time ago :) ), there's an |
@vitalikaz Many thanks! That did it! And it looks pretty nice! 🥇 |
Thanks, this saved my day ! |
@ozbillwang kudos for pointing to the exact file. I could not connect the dots without this. |
Same issue with cp-kafka (0.6.1), I used to change |
…ted" * Instead of renaming service, use "enableServiceLinks: false" ** See confluentinc/schema-registry#689 (comment)
You saved my day |
Version
4.0.0
Issue
Applying: https://docs.confluent.io/current/installation/docker/docs/quickstart.html#schema-registry
Startup fails citing:
PORT is deprecated. Please use SCHEMA_REGISTRY_LISTENERS instead.
Expected
No errors and successful startup
Recreate
Kubernetes deployment to Google cloud. Already have ZK and Kafka running fine in stateful set in their own node pool.
Full container log dump
The text was updated successfully, but these errors were encountered: