openshift-labs / learn-katacoda

The OpenShift learning portal, powered by Katacoda
https://learn.openshift.com
159 stars 267 forks source link

Executing command "oc exec -it my-cluster-kafka-0 -- bash" fails #1300

Open ghost opened 2 years ago

ghost commented 2 years ago

In which scenario did this bug occur? Apache Kafka Basics -

Name the katacoda you were using

At what step of the scenario did this happen? Step 3 of 4. Accessing the running Kafka broker pod

... Support for remote container command execution is built into the oc CLI. Bash is one of the commands we can execute. To get an interactive terminal issue the following command:

oc exec -it my-cluster-kafka-0 -- bash (THIS STEP)

You are now running a terminal into the Kafka broker container. Here you can execute the scripts available in the /bin directory.

Executing command "oc exec -it my-cluster-kafka-0 -- bash" fails with "error: unable to upgrade connection: Unauthorized"

Logs or error messages

error: unable to upgrade connection: Unauthorized Paste in any error message you got

Screenshots

If applicable, add screenshots to help explain your problem

Additional context

Add any other context about the problem

karstengresch commented 2 years ago

Confirming this issue as of today, 2021-10-04.

karstengresch commented 2 years ago

TWIMC: This might help: https://access.redhat.com/solutions/5734741