Skip to Content
2

SAP HANA express edition - OVA installed - test XS, Web IDE

Oct 24, 2016 at 10:14 AM

1.8k

avatar image

Hi,

I'm going through the guide http://go.sap.com/developer/tutorials/hxe-ua-getting-started-vm.html
I am at chapter "Test XSC, XSA and Web IDE" (little side note: for the IPv4 address I had to change VM Player to use NAT and now the ip address is 192.168.182.xxx).
In this chapter, the first step says exactly following: 1. Check that the XSEngine is running. From your VM desktop, open a browser and enter: http://<ip address of VM>:8000
I'm already confused when it says"From your VM desktop": what does that mean? My laptop's normal Windows where the VM player is installed which is connected to my express HANA server? Or is there a way to get to a desktop inside the VM player? Very unclear stated and I'm afraid I'm new to installations and client server things.

Secondly, I cannot run the URL given, if I run it just on a browser on my laptop (does it matter which browser?). I tried Google Chrome and IE. I get "Site cannot be reached".

On my laptop, I changed to host file to contain following line:
192.168.182.xxx hxehost
(xxx of course being the correct numbers)

On my laptop, if I ping hxehost in the command prompt it does not work.

So I don't know how to continue with this step and any help is appreciated.

Some info: yes I did download & install Server plus applications.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

17 Answers

Craig Cmehil
Oct 25, 2016 at 06:06 AM
1

Provided your VM and your laptop are on the same network, you should be able to put into your browser (Chrome is preferred but in this case it does not matter which browser) the http://<IP address of your running VM>:8000 and you will get the result back

If you are not getting that response back the most likely problem is one of 2 things.

1) Your server is not actually fully started (type HDB info on the VM command prompt) if you don't see all that then type HDB start

2) You have a firewall blocking it, you can fix that in the firewall or try the following command in the command prompt on your VM which tells the VM to take any traffic on port 80 and redirect it to port 8000

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000


Share
10 |10000 characters needed characters left characters exceeded
Denys van Kempen
Nov 02, 2016 at 03:05 PM
1

Hi Melanie,

You mention:

On my laptop, if I ping hxehost in the command prompt it does not work.

We need to fix this first.

As mentioned in the documentation, with command (sudo) ifconfig you can request the IP of the VM.

Can you ping this IP?

Does the web server responds when you enter http://<IP>:8000 ?

FYI : On the SAP HANA Academy YouTube channel we have created a playlist with HXE videos: bit.ly/2dZS2Fv

There are a couple of videos about networking, for example, how to connect Terminal (or PuTTY) to the VM, or how to configure a static IP:https://www.youtube.com/watch?v=EiilRNudJ8E

Whether the VM is configured for Bridged (default), NAT of host-only, the IP is provided by a (virtual) DHCP service. As a result, the IP will change if the IP of the host computer changes, for example when you change networks (home, office). Maybe the IP defined in the hosts file no longer corresponds to the IP of the VM.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you for this tip!

0
Melanie Lauber Nov 03, 2016 at 08:27 AM
1

I managed to login now to XSA by using a tip in openSAP course (using --skip-ssl-validation command). When I run command xs apps as stated in the guide, I do get the apps and the web ide is one of them and everything seems good.

I believe this means my installation is correct, however I still cannot connect to any of the URL via my browser. Is there anything I need to check with my support regarding firewall blocks etc (I cannot change my Windows Firewall myself)?

BR,

Melanie


xs-apps.png (32.4 kB)
Share
10 |10000 characters needed characters left characters exceeded
Melanie Lauber Nov 16, 2016 at 01:57 PM
1

Hi again,

I couldn't do it with your commands but I used sudo bash and sudo vim instead. See screenshot:


host-file.png (10.3 kB)
Share
10 |10000 characters needed characters left characters exceeded
Melanie Lauber Oct 25, 2016 at 07:55 AM
0

Hi Craig,

Thanks for your answer. HDB info command is a step in the guide so I already checked this and to me it looks as it should, see attached.

If I do your suggested command regarding firewall, I get following:

I assume this means it did not work? I'm scared to run the same command but with "/usr/sbin/iptables" instead of just "iptables" at the start but maybe that's what's required? Please advice.

Best regards,

Melanie


hdb-info.png (21.0 kB)
iptables.png (3.4 kB)
Share
10 |10000 characters needed characters left characters exceeded
Melanie Lauber Oct 25, 2016 at 08:03 AM
0

As I can only do 2 pictures per answer, here just quickly the ip & google chrome try screenshot:

Also, if I continue in the guide (step 2, Change the passwords of all XSA users...) I can do that.
I can do step 3, Log in to XSA services
Step 4 says, "check for a series of entries beginning with "https://...". I don't see any entries after i use to xs login, see the picture:

So something seems kinda off. I hope you can help me!

Best regards,
Melanie


vm-ip.png (117.9 kB)
Share
10 |10000 characters needed characters left characters exceeded
Emmanuel Dacosta Oct 26, 2016 at 04:44 AM
0

Hello Melanie

After xs login, enter https://hexhost:30030 as followed

API_URL> https://hexhost:30030

and press enter.

Regards

Emmanuel

Share
10 |10000 characters needed characters left characters exceeded
Melanie Lauber Oct 27, 2016 at 08:52 AM
0

Hi Emmanuel and thanks.

I tried what you said (why doesn't it say this in the guide - how could i possibly know??) but I get an error:

So does that mean my firewall blocks something? How can I continue?

Best regards,

Melanie


xs-login.png (4.3 kB)
Share
10 |10000 characters needed characters left characters exceeded
Melanie Lauber Nov 02, 2016 at 01:40 PM
0

So I cannot use my HANA express at all... Can anyone help me on?

Share
10 |10000 characters needed characters left characters exceeded
Melanie Lauber Nov 03, 2016 at 08:06 AM
0

Hi Denys and thanks,

Thanks for the tips about the IPs changing. So far I only tried to use the VM when I'm at work in my office (same office) and I do keep checking the ifconfig command, just to get the IP and every time so far, I got the same IP, as in my screenshots in my above posts.

To your questions: Can you ping this IP? - No I cannot; I cannot ping hxehost or the ip directly.

Does the web server responds when you enter http://<IP>:8000 ? - No it does not, please refer to my above screenshot at "Oct 25 at 08:03 AM"

I retried one of the commands I was suggested in an earlier post and got an error - does this help, to help me?


ping-to-ip.png (48.1 kB)
iptables.png (5.8 kB)
Share
10 |10000 characters needed characters left characters exceeded