Azure云应用ERR_CONNECTION_TIMED_OUT [英] Azure Cloud App ERR_CONNECTION_TIMED_OUT

查看:103
本文介绍了Azure云应用ERR_CONNECTION_TIMED_OUT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在azure容器服务中部署基于容器的应用程序,并按照本教程进行操作.

注意:我在实验室中进行了测试,如果没有这样做,nginx服务将在其他端口上进行监听.我SSH到代理虚拟机.

  root @ dcos-agent-public-65818314000001:〜#docker ps容器ID图像命令创建的状态端口名称7e8091548413 nginx"nginx -g'daemon off" 14分钟前向上14分钟0.0.0.0:4912->80/tcp mesos-d7be0314-6be2-467b-8376-433a05033b17-S1.42edeac0-2aa3-4ecd-acaa-17d5f2f4ac19 

该服务正在侦听端口4912而不是80.

如果执行此步骤,建议您也可以将SSH SSH到代理VM(具有相同的用户名和私钥)并执行 docker ps .

I would like to deploy a container based app in azure container service, and followed this tutorial.

https://docs.microsoft.com/en-us/azure/container-service/dcos-swarm/container-service-mesos-marathon-ui

Everything went well except that the public url is showing ERR_CONNECTION_TIMED_OUT in browser.

When pinging the url, able to get the IP address but pings are showing as timed out.

I have verified agents LB with port 80 as allowed in the rules list.

How to access the application through public web ?

解决方案

When pinging the url, able to get the IP address but pings are showing as timed out.

Azure disable ICMP package, so you could not ping Azure public IP address. You could use telnet or tcping to check whether your service is listening.


Do you bind port 80 of the container to port 80 of the DC/OS agent? If I don't do this, I get same error log with you. Please refer to this link.

Note: I test in my lab, if I did not do this, nginx service will listen on other port. I ssh to the agent VM.

root@dcos-agent-public-65818314000001:~# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                  NAMES
7e8091548413        nginx               "nginx -g 'daemon off"   14 minutes ago      Up 14 minutes       0.0.0.0:4912->80/tcp   mesos-d7be0314-6be2-467b-8376-433a05033b17-S1.42edeac0-2aa3-4ecd-acaa-17d5f2f4ac19

The service is listening on port 4912 not 80.

If you do this step, I suggest you also could ssh to agent VM(same user name and private key) and execute docker ps .

这篇关于Azure云应用ERR_CONNECTION_TIMED_OUT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆