docker 群覆盖网络后端的 504 网关超时
504 Gateway Time-out for backend on docker swarm overlay network
我在 openstack 上有一个 3 节点群 运行ning。有 2 个 docker 服务 运行ning 使用相同的覆盖网络。一个是 Nexus 3 私有存储库,另一个是 nginx 反向代理。只有 nginx 有暴露的端口。此设置工作正常但间歇性地(可能在数小时未被访问后)我得到一个 504。
当我上了nginx容器...
nslookup:
root@7c7f5b09302f:/# nslookup nexus
Server: 127.0.0.11
Address: 127.0.0.11#53
Non-authoritative answer:
Name: nexus
Address: 10.0.0.6
wget:
root@7c7f5b09302f:/# wget -O- nexus:8081
--2017-05-09 23:23:18-- http://nexus:8081/
Resolving nexus (nexus)... 10.0.0.6
Connecting to nexus (nexus)|10.0.0.6|:8081... failed: Connection timed out.
Retrying.
--2017-05-09 23:25:26-- (try: 2) http://nexus:8081/
Connecting to nexus (nexus)|10.0.0.6|:8081... ^C
root@7c7f5b09302f:/#
平:
root@7c7f5b09302f:/# ping nexus
PING nexus (10.0.0.6): 56 data bytes
64 bytes from 10.0.0.6: icmp_seq=0 ttl=64 time=0.077 ms
64 bytes from 10.0.0.6: icmp_seq=1 ttl=64 time=0.098 ms
64 bytes from 10.0.0.6: icmp_seq=2 ttl=64 time=0.054 ms
64 bytes from 10.0.0.6: icmp_seq=3 ttl=64 time=0.071 ms
^C--- nexus ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.054/0.075/0.098/0.000 ms
root@7c7f5b09302f:/#
所以它可以找到nexus容器地址。我可以ping通,但无法连接到端口8081。
在 nexus 容器本身(在 swarm 的不同节点上)上,存储库 URL 是可访问的,但从其他任何地方,我收到 504 错误:
bash-4.2$ curl -v http://nexus:8081/
* About to connect() to nexus port 8081 (#0)
* Trying 10.0.0.6...
* Connected to nexus (10.0.0.6) port 8081 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: nexus:8081
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 09 May 2017 23:23:03 GMT
< Server: Nexus/3.1.0-04 (OSS)
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Content-Type: text/html
< Last-Modified: Tue, 09 May 2017 23:23:03 GMT
< Pragma: no-cache
< Cache-Control: post-check=0, pre-check=0
< Expires: 0
< Content-Length: 4659
<
<!DOCTYPE html>
<html>
<head>
<title>Nexus Repository Manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="Nexus Repository Manager"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<!--[if lt IE 9]>
<script>(new Image).src="http://nexus:8081/static/rapture/resources/favicon.ico?_v=3.1.0-04"</script>
<![endif]-->
<link rel="icon" type="image/png" href="http://nexus:8081/static/rapture/resources/favicon-32x32.png?_v=3.1.0-04" sizes="32x32">
<link rel="mask-icon" href="http://nexus:8081/static/rapture/resources/safari-pinned-tab.svg?_v=3.1.0-04" color="#5bbad5">
<link rel="icon" type="image/png" href="http://nexus:8081/static/rapture/resources/favicon-16x16.png?_v=3.1.0-04" sizes="16x16">
<link rel="shortcut icon" href="http://nexus:8081/static/rapture/resources/favicon.ico?_v=3.1.0-04">
<meta name="msapplication-TileImage" content="http://nexus:8081/static/rapture/resources/mstile-144x144.png?_v=3.1.0-04">
<meta name="msapplication-TileColor" content="#00a300">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/loading-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/baseapp-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/nexus-rapture-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/nexus-proximanova-plugin-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/nexus-coreui-plugin-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/nexus-proui-plugin-prod.css?_v=3.1.0-04">
<script type="text/javascript">
function progressMessage(msg) {
if (console && console.log) {
console.log(msg);
}
document.getElementById('loading-msg').innerHTML=msg;
}
</script>
</head>
<body class="x-border-box">
<div id="loading-mask"></div>
<div id="loading">
<div id="loading-background">
<img id="loading-logo" src="http://nexus:8081/static/rapture/resources/images/loading-logo.png?_v=3.1.0-04"/>
<img id="loading-product" src="http://nexus:8081/static/rapture/resources/images/loading-product.png?_v=3.1.0-04"/>
<div class="loading-indicator">
<img id="loading-spinner" src="http://nexus:8081/static/rapture/resources/images/loading-spinner.gif?_v=3.1.0-04"/>
<span id="loading-msg">Loading ...</span>
</div>
</div>
<div id="code-load" class="x-hide-display">
<script type="text/javascript">progressMessage('Loading baseapp-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/baseapp-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading extdirect-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/extdirect-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading bootstrap.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/bootstrap.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-rapture-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/nexus-rapture-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-coreui-plugin-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/nexus-coreui-plugin-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-proui-plugin-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/nexus-proui-plugin-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading app.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/app.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Initializing ...');</script>
</div>
</div>
<form id="history-form" class="x-hide-display">
<input type="hidden" id="x-history-field"/>
<iframe id="x-history-frame"></iframe>
</form>
</body>
</html>
* Connection #0 to host nexus left intact
bash-4.2$
在这里,我可以ping通nginx容器:
bash-4.2$ ping nginx_nexus
PING nginx_nexus (10.0.0.8) 56(84) bytes of data.
64 bytes from 10.0.0.8 (10.0.0.8): icmp_seq=1 ttl=64 time=0.089 ms
64 bytes from 10.0.0.8 (10.0.0.8): icmp_seq=2 ttl=64 time=0.066 ms
64 bytes from 10.0.0.8 (10.0.0.8): icmp_seq=3 ttl=64 time=0.047 ms
64 bytes from 10.0.0.8 (10.0.0.8): icmp_seq=4 ttl=64 time=0.076 ms
^C
--- nginx_nexus ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.047/0.069/0.089/0.017 ms
bash-4.2$
注意:到目前为止,当我尝试从任何外部点通过 nginx 反向代理访问 nexus 时,我收到“504 网关超时”。但是,当我 运行 在 nexus 容器上执行以下命令时,错误消失了。
bash-4.2$ curl -v nginx_nexus
* About to connect() to nginx_nexus port 80 (#0)
* Trying 10.0.0.8...
* Connected to nginx_nexus (10.0.0.8) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: nginx_nexus
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.13.0
< Date: Tue, 09 May 2017 23:33:44 GMT
< Content-Type: text/html
< Content-Length: 4681
< Connection: keep-alive
< Keep-Alive: timeout=5
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Last-Modified: Tue, 09 May 2017 23:33:44 GMT
< Pragma: no-cache
< Cache-Control: post-check=0, pre-check=0
< Expires: 0
<
<!DOCTYPE html>
<html>
<head>
<title>Nexus Repository Manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="Nexus Repository Manager"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<!--[if lt IE 9]>
<script>(new Image).src="http://nginx_nexus/static/rapture/resources/favicon.ico?_v=3.1.0-04"</script>
<![endif]-->
<link rel="icon" type="image/png" href="http://nginx_nexus/static/rapture/resources/favicon-32x32.png?_v=3.1.0-04" sizes="32x32">
<link rel="mask-icon" href="http://nginx_nexus/static/rapture/resources/safari-pinned-tab.svg?_v=3.1.0-04" color="#5bbad5">
<link rel="icon" type="image/png" href="http://nginx_nexus/static/rapture/resources/favicon-16x16.png?_v=3.1.0-04" sizes="16x16">
<link rel="shortcut icon" href="http://nginx_nexus/static/rapture/resources/favicon.ico?_v=3.1.0-04">
<meta name="msapplication-TileImage" content="http://nginx_nexus/static/rapture/resources/mstile-144x144.png?_v=3.1.0-04">
<meta name="msapplication-TileColor" content="#00a300">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/loading-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/baseapp-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/nexus-rapture-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/nexus-proximanova-plugin-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/nexus-coreui-plugin-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/nexus-proui-plugin-prod.css?_v=3.1.0-04">
<script type="text/javascript">
function progressMessage(msg) {
if (console && console.log) {
console.log(msg);
}
document.getElementById('loading-msg').innerHTML=msg;
}
</script>
</head>
<body class="x-border-box">
<div id="loading-mask"></div>
<div id="loading">
<div id="loading-background">
<img id="loading-logo" src="http://nginx_nexus/static/rapture/resources/images/loading-logo.png?_v=3.1.0-04"/>
<img id="loading-product" src="http://nginx_nexus/static/rapture/resources/images/loading-product.png?_v=3.1.0-04"/>
<div class="loading-indicator">
<img id="loading-spinner" src="http://nginx_nexus/static/rapture/resources/images/loading-spinner.gif?_v=3.1.0-04"/>
<span id="loading-msg">Loading ...</span>
</div>
</div>
<div id="code-load" class="x-hide-display">
<script type="text/javascript">progressMessage('Loading baseapp-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/baseapp-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading extdirect-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/extdirect-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading bootstrap.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/bootstrap.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-rapture-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/nexus-rapture-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-coreui-plugin-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/nexus-coreui-plugin-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-proui-plugin-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/nexus-proui-plugin-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading app.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/app.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Initializing ...');</script>
</div>
</div>
<form id="history-form" class="x-hide-display">
<input type="hidden" id="x-history-field"/>
<iframe id="x-history-frame"></iframe>
</form>
</body>
</html>
* Connection #0 to host nginx_nexus left intact
bash-4.2$
这会间歇性地发生。几个小时后,当存储库未被使用时,我会再次发现“504 网关超时”,必须再次登录到 swarm 节点和 nexus 容器并 运行 curl 才能解决它。请帮我找出解决 504 错误的方法。如果容器 运行 在同一主机上并且不使用覆盖网络,则不存在此问题。
升级openstack后问题消失。我不再拥有可用的版本详细信息或设置,因此我无法提供更多相关信息。
我在 openstack 上有一个 3 节点群 运行ning。有 2 个 docker 服务 运行ning 使用相同的覆盖网络。一个是 Nexus 3 私有存储库,另一个是 nginx 反向代理。只有 nginx 有暴露的端口。此设置工作正常但间歇性地(可能在数小时未被访问后)我得到一个 504。 当我上了nginx容器...
nslookup:
root@7c7f5b09302f:/# nslookup nexus
Server: 127.0.0.11
Address: 127.0.0.11#53
Non-authoritative answer:
Name: nexus
Address: 10.0.0.6
wget:
root@7c7f5b09302f:/# wget -O- nexus:8081
--2017-05-09 23:23:18-- http://nexus:8081/
Resolving nexus (nexus)... 10.0.0.6
Connecting to nexus (nexus)|10.0.0.6|:8081... failed: Connection timed out.
Retrying.
--2017-05-09 23:25:26-- (try: 2) http://nexus:8081/
Connecting to nexus (nexus)|10.0.0.6|:8081... ^C
root@7c7f5b09302f:/#
平:
root@7c7f5b09302f:/# ping nexus
PING nexus (10.0.0.6): 56 data bytes
64 bytes from 10.0.0.6: icmp_seq=0 ttl=64 time=0.077 ms
64 bytes from 10.0.0.6: icmp_seq=1 ttl=64 time=0.098 ms
64 bytes from 10.0.0.6: icmp_seq=2 ttl=64 time=0.054 ms
64 bytes from 10.0.0.6: icmp_seq=3 ttl=64 time=0.071 ms
^C--- nexus ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.054/0.075/0.098/0.000 ms
root@7c7f5b09302f:/#
所以它可以找到nexus容器地址。我可以ping通,但无法连接到端口8081。
在 nexus 容器本身(在 swarm 的不同节点上)上,存储库 URL 是可访问的,但从其他任何地方,我收到 504 错误:
bash-4.2$ curl -v http://nexus:8081/
* About to connect() to nexus port 8081 (#0)
* Trying 10.0.0.6...
* Connected to nexus (10.0.0.6) port 8081 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: nexus:8081
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 09 May 2017 23:23:03 GMT
< Server: Nexus/3.1.0-04 (OSS)
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Content-Type: text/html
< Last-Modified: Tue, 09 May 2017 23:23:03 GMT
< Pragma: no-cache
< Cache-Control: post-check=0, pre-check=0
< Expires: 0
< Content-Length: 4659
<
<!DOCTYPE html>
<html>
<head>
<title>Nexus Repository Manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="Nexus Repository Manager"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<!--[if lt IE 9]>
<script>(new Image).src="http://nexus:8081/static/rapture/resources/favicon.ico?_v=3.1.0-04"</script>
<![endif]-->
<link rel="icon" type="image/png" href="http://nexus:8081/static/rapture/resources/favicon-32x32.png?_v=3.1.0-04" sizes="32x32">
<link rel="mask-icon" href="http://nexus:8081/static/rapture/resources/safari-pinned-tab.svg?_v=3.1.0-04" color="#5bbad5">
<link rel="icon" type="image/png" href="http://nexus:8081/static/rapture/resources/favicon-16x16.png?_v=3.1.0-04" sizes="16x16">
<link rel="shortcut icon" href="http://nexus:8081/static/rapture/resources/favicon.ico?_v=3.1.0-04">
<meta name="msapplication-TileImage" content="http://nexus:8081/static/rapture/resources/mstile-144x144.png?_v=3.1.0-04">
<meta name="msapplication-TileColor" content="#00a300">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/loading-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/baseapp-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/nexus-rapture-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/nexus-proximanova-plugin-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/nexus-coreui-plugin-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nexus:8081/static/rapture/resources/nexus-proui-plugin-prod.css?_v=3.1.0-04">
<script type="text/javascript">
function progressMessage(msg) {
if (console && console.log) {
console.log(msg);
}
document.getElementById('loading-msg').innerHTML=msg;
}
</script>
</head>
<body class="x-border-box">
<div id="loading-mask"></div>
<div id="loading">
<div id="loading-background">
<img id="loading-logo" src="http://nexus:8081/static/rapture/resources/images/loading-logo.png?_v=3.1.0-04"/>
<img id="loading-product" src="http://nexus:8081/static/rapture/resources/images/loading-product.png?_v=3.1.0-04"/>
<div class="loading-indicator">
<img id="loading-spinner" src="http://nexus:8081/static/rapture/resources/images/loading-spinner.gif?_v=3.1.0-04"/>
<span id="loading-msg">Loading ...</span>
</div>
</div>
<div id="code-load" class="x-hide-display">
<script type="text/javascript">progressMessage('Loading baseapp-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/baseapp-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading extdirect-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/extdirect-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading bootstrap.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/bootstrap.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-rapture-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/nexus-rapture-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-coreui-plugin-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/nexus-coreui-plugin-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-proui-plugin-prod.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/nexus-proui-plugin-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading app.js');</script>
<script type="text/javascript" src="http://nexus:8081/static/rapture/app.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Initializing ...');</script>
</div>
</div>
<form id="history-form" class="x-hide-display">
<input type="hidden" id="x-history-field"/>
<iframe id="x-history-frame"></iframe>
</form>
</body>
</html>
* Connection #0 to host nexus left intact
bash-4.2$
在这里,我可以ping通nginx容器:
bash-4.2$ ping nginx_nexus
PING nginx_nexus (10.0.0.8) 56(84) bytes of data.
64 bytes from 10.0.0.8 (10.0.0.8): icmp_seq=1 ttl=64 time=0.089 ms
64 bytes from 10.0.0.8 (10.0.0.8): icmp_seq=2 ttl=64 time=0.066 ms
64 bytes from 10.0.0.8 (10.0.0.8): icmp_seq=3 ttl=64 time=0.047 ms
64 bytes from 10.0.0.8 (10.0.0.8): icmp_seq=4 ttl=64 time=0.076 ms
^C
--- nginx_nexus ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.047/0.069/0.089/0.017 ms
bash-4.2$
注意:到目前为止,当我尝试从任何外部点通过 nginx 反向代理访问 nexus 时,我收到“504 网关超时”。但是,当我 运行 在 nexus 容器上执行以下命令时,错误消失了。
bash-4.2$ curl -v nginx_nexus
* About to connect() to nginx_nexus port 80 (#0)
* Trying 10.0.0.8...
* Connected to nginx_nexus (10.0.0.8) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: nginx_nexus
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.13.0
< Date: Tue, 09 May 2017 23:33:44 GMT
< Content-Type: text/html
< Content-Length: 4681
< Connection: keep-alive
< Keep-Alive: timeout=5
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Last-Modified: Tue, 09 May 2017 23:33:44 GMT
< Pragma: no-cache
< Cache-Control: post-check=0, pre-check=0
< Expires: 0
<
<!DOCTYPE html>
<html>
<head>
<title>Nexus Repository Manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="Nexus Repository Manager"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<!--[if lt IE 9]>
<script>(new Image).src="http://nginx_nexus/static/rapture/resources/favicon.ico?_v=3.1.0-04"</script>
<![endif]-->
<link rel="icon" type="image/png" href="http://nginx_nexus/static/rapture/resources/favicon-32x32.png?_v=3.1.0-04" sizes="32x32">
<link rel="mask-icon" href="http://nginx_nexus/static/rapture/resources/safari-pinned-tab.svg?_v=3.1.0-04" color="#5bbad5">
<link rel="icon" type="image/png" href="http://nginx_nexus/static/rapture/resources/favicon-16x16.png?_v=3.1.0-04" sizes="16x16">
<link rel="shortcut icon" href="http://nginx_nexus/static/rapture/resources/favicon.ico?_v=3.1.0-04">
<meta name="msapplication-TileImage" content="http://nginx_nexus/static/rapture/resources/mstile-144x144.png?_v=3.1.0-04">
<meta name="msapplication-TileColor" content="#00a300">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/loading-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/baseapp-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/nexus-rapture-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/nexus-proximanova-plugin-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/nexus-coreui-plugin-prod.css?_v=3.1.0-04">
<link rel="stylesheet" type="text/css" href="http://nginx_nexus/static/rapture/resources/nexus-proui-plugin-prod.css?_v=3.1.0-04">
<script type="text/javascript">
function progressMessage(msg) {
if (console && console.log) {
console.log(msg);
}
document.getElementById('loading-msg').innerHTML=msg;
}
</script>
</head>
<body class="x-border-box">
<div id="loading-mask"></div>
<div id="loading">
<div id="loading-background">
<img id="loading-logo" src="http://nginx_nexus/static/rapture/resources/images/loading-logo.png?_v=3.1.0-04"/>
<img id="loading-product" src="http://nginx_nexus/static/rapture/resources/images/loading-product.png?_v=3.1.0-04"/>
<div class="loading-indicator">
<img id="loading-spinner" src="http://nginx_nexus/static/rapture/resources/images/loading-spinner.gif?_v=3.1.0-04"/>
<span id="loading-msg">Loading ...</span>
</div>
</div>
<div id="code-load" class="x-hide-display">
<script type="text/javascript">progressMessage('Loading baseapp-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/baseapp-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading extdirect-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/extdirect-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading bootstrap.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/bootstrap.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-rapture-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/nexus-rapture-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-coreui-plugin-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/nexus-coreui-plugin-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading nexus-proui-plugin-prod.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/nexus-proui-plugin-prod.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Loading app.js');</script>
<script type="text/javascript" src="http://nginx_nexus/static/rapture/app.js?_v=3.1.0-04"></script>
<script type="text/javascript">progressMessage('Initializing ...');</script>
</div>
</div>
<form id="history-form" class="x-hide-display">
<input type="hidden" id="x-history-field"/>
<iframe id="x-history-frame"></iframe>
</form>
</body>
</html>
* Connection #0 to host nginx_nexus left intact
bash-4.2$
这会间歇性地发生。几个小时后,当存储库未被使用时,我会再次发现“504 网关超时”,必须再次登录到 swarm 节点和 nexus 容器并 运行 curl 才能解决它。请帮我找出解决 504 错误的方法。如果容器 运行 在同一主机上并且不使用覆盖网络,则不存在此问题。
升级openstack后问题消失。我不再拥有可用的版本详细信息或设置,因此我无法提供更多相关信息。