error in deploying a project using scrapyd

心不动则不痛 提交于 2019-12-05 04:49:46

From scrapyd service documentation: (http://scrapy.readthedocs.org/en/latest/topics/scrapyd.html?highlight=scrapyd)

You can define targets by adding them to your project’s scrapy.cfg file... Here’s an example of defining a new target scrapyd2 with restricted access through HTTP basic authentication:

[deploy:scrapyd2]
url = http://scrapyd.mydomain.com/api/scrapyd/
username = john
password = secret

Essentially what your error means is that your "target" name is not correct. If I remember correctly, the scrapy.cfg file sets the initial target name as "default". What you should be typing is something like:

scrapy deploy default -p project_name

Just type scrapy deploy if you have no named targets and left settings at default!

This is the scrapyd proc have no permission! You need kill the proc,then use root user,Just type:

scrapy server

then the new scrapyd will run.then you can do as scrapyd documention says.

I got this error when I try to deploy my project without the scrapyd running, so simple run

scrapyd

on another terminal fixed the error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!