pai icon indicating copy to clipboard operation
pai copied to clipboard

Webportal login not working on Azure VMs

Open iamzoumao opened this issue 8 years ago • 10 comments

Problem Statement

Hi guys, I have tried to deploy Open-PAI on Azure VM instances (tried both single-box deployment and deployment on a cluster of Azure GPU VMs). Unfortunately in both cases I encounter the same problem:

  • The webportal dashboard reports: "Unable to round-trip http request to upstream: dial tcp 10.0.13.5:3000: i/o timeout" image

  • I cannot login in to the webportal, after I input the default username (admin) and password (admin-password) and click "login", nothing happens

  • The rest-sever container reports "NotFoundError: API / is not found." 1 2

Open-PAI post-installation status

I use the single-box deployment as an example. All the descriptions apply for deployment on a cluster of Azure VMs.

  • Kubernetes and all the service containers work well: 3

  • HDFS work well.

  • drivers-one-shot container work well: can run nvidia-smi correctly

  • the end-to-end-test-deployment passed image

  • the cntk-test job is indeed running! from the drivers-one-shot container: K80 gpu is being utilized. image from the worker node: image

Pre-installation configuration

Basically I just follow the guides on github.

  • docker pull the dev-box image, git update to the latest openpai release version;

  • all the node(s) are standard Azure NC6 instances with 1 Tesla K80, no docker nor nvidia drivers pre-installed;

  • modify the ~/pai-config/cluster-configuration.yaml slightly to match my environment image

  • paictl.py report to have started up all ther services successfully.

iamzoumao avatar Sep 09 '18 13:09 iamzoumao

Hi @iamzoumao

It looks like an error message returned by proxy. Are you requesting the web portal behind a proxy or in a VPN?

Gerhut avatar Sep 10 '18 02:09 Gerhut

Hi @Gerhut , Since the master node is a remote Azure VM instance, I am accessing the web portal on my local computer by ssh port forwarding:

  • ssh -N -L localhost:9286:localhost:9286 username@master-node-dns-address
  • visit localhost:9286 in a local chrome browser

May this cause the problem? Thank you!

iamzoumao avatar Sep 10 '18 04:09 iamzoumao

You may try forward port 80 instead of 9286, hope it helps

Regards, Qixiang


收件人: Zou Mao [email protected] 发送时间: 星期一, 九月 10, 2018 12:49 下午 收件人: Microsoft/pai 抄送: Qixiang Cheng; Mention 主题: Re: [Microsoft/pai] Webportal login not working on Azure VMs (#1309)

Hi @Gerhuthttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FGerhut&data=02%7C01%7Cqixiang.cheng%40microsoft.com%7C9d67abe96a76476949c108d616d8c522%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636721517606941957&sdata=s5JMcpawtOXWhIIcyUzbuNWOvWd7scshGNUtdhVu4L4%3D&reserved=0 , Since the master node is a remote Azure VM instance, I am accessing the web portal on my local computer by ssh port forwarding:

  • ssh -N -L localhost:9286:localhost:9286 username@master-node-dns-address
  • visit localhost:9286 in a local chrome browser

May this cause the problem? Thank you!

― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fpai%2Fissues%2F1309%23issuecomment-419786337&data=02%7C01%7Cqixiang.cheng%40microsoft.com%7C9d67abe96a76476949c108d616d8c522%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636721517606951966&sdata=jJdDZJV%2F%2Bz8wy%2F%2F6ks2Hw9BaqlzaodypD0QrMVeQMX4%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACYml4v2rLbPoz4Xw5hOtETanx1lZM8jks5uZe9PgaJpZM4WgR39&data=02%7C01%7Cqixiang.cheng%40microsoft.com%7C9d67abe96a76476949c108d616d8c522%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636721517606951966&sdata=ar1pfCG26HnoMCYOqvQ9kaf1MPJBXEFkqsGMFjXD%2BIA%3D&reserved=0.

Gerhut avatar Sep 10 '18 04:09 Gerhut

@Gerhut Unfortunately forwarding port 80 didn't help. I tried another approach: instead of ssh port forwarding, I modified the VM's inbound security rule to explictly allow TCP connections to all ports. However, the webportal still does not function correctly.

The dashboard: image It says the connection to 10.0.13.5 (the private intranet IP of the VM) timeout

And the "jobs" page hangs here: image

Perhaps this is due to the webportal keeping connecting to the private intranet IP of the node?

iamzoumao avatar Sep 10 '18 12:09 iamzoumao

After some searches, I guess #1136 might be relevant, in which case the nginx configuration needs to be modified, and #1119 in v0.7.1 release should be included.

However, in my case, I am indeed using the latest v0.7.1 release, and Azure handles the port mapping for me, thus I'm not sure what I should do to fix the problem.

iamzoumao avatar Sep 10 '18 13:09 iamzoumao

May I confirm that you are forwarding port 80 of the remote machine outside?

#1136 is that case that proxy the inner port outside with modifying the HTTP host header. Port forwarding is not related to that.

And may I confirm that the http://localhost:80/ page is requesting data from http://localhost:80/grafana but not http://inner-host/grafana or http://inner-host:3000/ if you forward ports by ssh -N -L localhost:80:localhost:80 username@master-node-dns-address?

You could use Network tab of chrome inspect tools(F12 or commandoptioni) to validate that

Gerhut avatar Sep 10 '18 14:09 Gerhut

Hello, I have encountered some problems in the Azure VM deployment, can you add QQ(354020912(answer:罗增)) ?

NothingLZ avatar Nov 05 '18 09:11 NothingLZ

Hi @iamzoumao and @NothingLZ , please provide more information?

fanyangCS avatar Nov 21 '18 10:11 fanyangCS

@iamzoumao @NothingLZ - I had created a Gitter Chat Room for GitHub PAI Community Users' in time communication. Please join that one instead of using QQ, thanks.

https://gitter.im/Microsoft/pai

scarlett2018 avatar Jan 23 '19 05:01 scarlett2018

close the issue as not further response. feel free to reopen if needed.

fanyangCS avatar Feb 01 '19 03:02 fanyangCS