Scrapyd Deploy没有成功

时间:2014-10-06 04:54:23

标签: python scrapy scrapyd

我的Scrapy.cfg文件是

[deploy:scra]
url = http://localhost:6800/
project = project2

[deploy:scrapyd2]
url = http://scrapyd.mydomain.com/api/scrapyd/
project = project1

如果我执行下面的命令意味着它会抛出一个错误,如下所示。

$ scrapy deploy -l
scra                 http://localhost:6800/
scrapyd2             http://scrapyd.mydomain.com/api/scrapyd/
$ scrapyd-deploy -l
scra                 http://localhost:6800/
scrapyd2             http://scrapyd.mydomain.com/api/scrapyd/

$ scrapy deploy scra
    Packing version 1412570503
    Deploying to project "project2" in http://localhost:6800/addversion.json
    Server response (200):
    {"status": "error", "message": "[Errno 13] Permission denied: 'eggs'"}

$ scrapyd-deploy scra -p project2
Packing version 1412571000
Deploying to project "project2" in http://localhost:6800/addversion.json
Server response (200):
{"status": "error", "message": "[Errno 13] Permission denied: 'eggs'"}

那么如何通过scrapyd部署我的scrapy项目。

1 个答案:

答案 0 :(得分:0)

我有同样的错误。对我来说sudo工作正常。尝试:

sudo scrapy deploy scra