【问题标题】:Scrapyd getting 504 Deploy failed after cloning server克隆服务器后,Scrapyd 得到 504 部署失败
【发布时间】:2021-03-28 14:22:30
【问题描述】:

我有一个正在运行的 Scrapyd 实例。此实例已被克隆,现在已在另一个服务器 IP 下启动并运行。克隆的服务器工作正常,只是我无法再部署到新 IP。

我得到了

  retry_on_eintr(check_call, [sys.executable, 'setup.py', 'clean', '-a', 'bdist_egg', '-d', d],
Deploying to project "test" in http://myip:6843/addversion.json
Deploy failed (504):
<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.14.0 (Ubuntu)</center>
</body>
</html>

Nginx 配置看起来不错(本地主机)。 UFW 也一样。 ips 是正确的。 Web 界面是可访问的,等等。只是部署失败。

Nginx 错误日志:

[error] 1180#1180: *62 upstream timed out (110: Connection timed out) while reading response header from upstream, client: myip, server: , request: "POST /addversion.json HTTP/1.1", upstream: "http://127.0.0.1:6800/addversion.json", host: "myip:6843"

我错过了什么?

【问题讨论】:

  • 发现问题。 Scrapy 试图访问一个远程 MySQL 服务器,该服务器已被此 IP 阻止。

标签: nginx scrapy scrapyd


【解决方案1】:

发现问题。 Scrapy 试图访问远程 MySQL 服务器,但该 IP 已被阻止。

【讨论】:

    猜你喜欢
    • 2016-09-23
    • 1970-01-01
    • 1970-01-01
    • 2019-12-24
    • 2020-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-18
    相关资源
    最近更新 更多