相关疑难解决方法(0)

Gunicorn Nginx超时问题

我在gunicorn + nginx上运行django.我正面临文件上传的问题.实际上上传工作正常,但枪炮超时因此导致这在nginx:

2011/07/25 12:13:47 [error] 15169#0: *2317 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP-ADDRESS, server: SERVER, request: "GET /photos/events/event/25 HTTP/1.1", upstream: "http://127.0.0.1:29000/photos/events/event/25", host: "HOST", referrer: "REFERER_ADDRESS"
Run Code Online (Sandbox Code Playgroud)

如果我刷新页面,我可以看到所有照片都上传得很好.问题是它会导致超时,从而给人一种上传不起作用的印象.

这是我的枪炮:

bind = "127.0.0.1:29000"
logfile = "/path/to/logs/gunicorn.log"
workers = 3
Run Code Online (Sandbox Code Playgroud)

我尝试更改超时,但它没有用.

django nginx gunicorn

58
推荐指数
3
解决办法
4万
查看次数

哈德森:"是的:标准输出:破管"

我需要在hudson中运行一个shell脚本.该脚本需要用户的回答.为了给出自动答案,我执行了以下命令行:  

yes | ./MyScript.sh
Run Code Online (Sandbox Code Playgroud)

这在Ubuntu终端中运行良好.但是当我在Hudson作业中使用相同的命令时,脚本将自动化并完成所有必需的工作,但最后,我得到以下两行错误:

yes: standard output: Broken pipe
yes: write error
Run Code Online (Sandbox Code Playgroud)

这导致我的哈德森工作失败.

我应该如何更改命令行才能在Hudson中正常工作?

shell ubuntu hudson pipe jenkins

18
推荐指数
1
解决办法
1万
查看次数

标签 统计

django ×1

gunicorn ×1

hudson ×1

jenkins ×1

nginx ×1

pipe ×1

shell ×1

ubuntu ×1