Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 8 Materials and Homework.

Follow us on Eventbrite to get notified when new workshops are scheduled!


question

narayana.jayanthi_191238 avatar image
narayana.jayanthi_191238 asked ·

Why can't I access the Astra UI and backend UI in the week 6 exercise?

Hi,

After executing step4 as part of week6 workshop, I tried executing the commands in the web browser. I have replaced the hostname with the cloud instance name..

http://wksh283158.cws-week6.datastaxtraining.com:9090

http://wksh283158.cws-week6.datastaxtraining.com:3000

both are failing...

i am unable to proceed

Thanks

Narayana

workshop
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

bettina.swynnerton avatar image
bettina.swynnerton answered ·

Hi @narayana.jayanthi_191238,

I see that you are getting an invalid host header exception when accessing port 3000 on your cloud instance.

This indicates that you are still working with the code base of the UI and backend code before we made some necessary changes to make this work on the cloud instances. One of those changes would have fixed the issue with the invalid host header.

In case we didn't make it clear enough: You will need to update your code on the cloud instance before building the docker images and loading them into kind.

To fix this: Do a git pull on the cloud instance. If you made any changes to files, for example the changes to 05-configMap.yaml, make a backup copy of the file first, then to proceed git stash, git pull and reinstate your modified 05-configMap.yaml

Note: you do not need to delete your kubernetes cluster, and if you have already set up your Cassandra cluster, you can keep it all running. But you will need to rebuild both your backend and ui docker images, load them both into the kind cluster again, delete your backend and ui pods and recreate them with the new images.

Then do a port forward again, and I am confident that this will resolve the issue that you are seeing.

Here is more information about the changes that we made:

https://community.datastax.com/questions/7478/port-5000-blocked-on-cloud-instance-cannot-run-exe.html

I hope this gets you on the right track, let us know if you get stuck.

Thanks!


1 comment Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

[Follow up question posted as #7569]

0 Likes 0 · ·