Scrapy部署停止工作(Scrapy deploy stopped working)

2019-10-18 07:00发布

我试图用scrapyd部署scrapy项目,但它给我的错误...

sudo scrapy deploy default -p eScraper
Building egg of eScraper-1371463750
'build/scripts-2.7' does not exist -- can't clean it
zip_safe flag not set; analyzing archive contents...
eScraperInterface.settings: module references __file__
eScraper.settings: module references __file__
Deploying eScraper-1371463750 to http://localhost:6800/addversion.json
Server response (200):
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/scrapyd/webservice.py", line 18, in render
    return JsonResource.render(self, txrequest)
  File "/usr/local/lib/python2.7/dist-packages/scrapy/utils/txweb.py", line 10, in render
    r = resource.Resource.render(self, txrequest)
  File "/usr/local/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/usr/local/lib/python2.7/dist-packages/scrapyd/webservice.py", line 66, in render_POST
    spiders = get_spider_list(project)
  File "/usr/local/lib/python2.7/dist-packages/scrapyd/utils.py", line 65, in get_spider_list
    raise RuntimeError(msg.splitlines()[-1])
RuntimeError: OSError: [Errno 20] Not a directory: '/tmp/eScraper-1371463750-Lm8HLh.egg/images'

早些时候,我能现在正常,但不能将项目部署.....但是,如果使用scrapy爬spiderName使用爬网蛛则是没有问题的......能有人帮我请....

Answer 1:

请尝试以下两点:1,可能是你已经部署了太多的版本,尝试在部署之前删除一些旧版本2,删除build文件夹和设置文件

并尽可能运行履带关注如果u运行其中U甚至没有部署任何任意名称的履带,该scrapyd将返回作业ID一起“OK”响应。



文章来源: Scrapy deploy stopped working