I found that my problem is very similar to scrapyd deploy shows 0 spiders. I also tried the accepted answer several times, but it doesn't work for me, so I come for some help.
The project directory is timediff_crawler, and tree view of the directory is:
timediff_crawler/
├── scrapy.cfg
├── scrapyd-deploy
├── timediff_crawler
│ ├── __init__.py
│ ├── items.py
│ ├── pipelines.py
│ ├── settings.py
│ ├── spiders
│ │ ├── __init__.py
│ │ ├── prod
│ │ │ ├── __init__.py
│ │ │ ├── job
│ │ │ │ ├── __init__.py
│ │ │ │ ├── zhuopin.py
│ │ │ ├── rent
│ │ │ │ ├── australia_rent.py
│ │ │ │ ├── canada_rent.py
│ │ │ │ ├── germany_rent.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── korea_rent.py
│ │ │ │ ├── singapore_rent.py
...
1.1 start scrapyd, it's ok
(crawl_env)web@ha-2:/opt/crawler$ scrapyd
2015-11-11 15:00:37+0800 [-] Log opened.
2015-11-11 15:00:37+0800 [-] twistd 15.4.0 (/opt/crawler/crawl_env/bin/python 2.7.6) starting up.
2015-11-11 15:00:37+0800 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2015-11-11 15:00:37+0800 [-] Site starting on 6800
...
1.2 edit scrapy.cfg
[settings]
default = timediff_crawler.settings
[deploy:ha2-crawl]
url = http://localhost:6800/
project = timediff_crawler
1.3 deploy the project
(crawl_env)web@ha-2:/opt/crawler/timediff_crawler$ ./scrapyd-deploy -l
ha2-crawl http://localhost:6800/
(crawl_env)web@ha-2:/opt/crawler/timediff_crawler$ ./scrapyd-deploy ha2-crawl -p timediff_crawler
Packing version 1447229952
Deploying to project "timediff_crawler" in http://localhost:6800/addversion.json
Server response (200):
{"status": "ok", "project": "timediff_crawler", "version": "1447229952", "spiders": 0, "node_name": "ha-2"}
1.4 the problem
The response shows that the number of spiders is 0, actually I have about 10 spiders.
I followed the advice in this post scrapyd deploy shows 0 spiders, delete all projects, versions, directories(include build/ eggs/ project.egg-info setup.py) and try to deploy again, but it doesn't work, the number of spiders is always 0.
I validate the egg file, the output shows it seems ok:
(crawl_env)web@ha-2:/opt/crawler/timediff_crawler/eggs/timediff_crawler$ unzip -t 1447229952.egg
Archive: 1447229952.egg
testing: timediff_crawler/pipelines.py OK
testing: timediff_crawler/__init__.py OK
testing: timediff_crawler/items.py OK
testing: timediff_crawler/spiders/prod/job/zhuopin.py OK
testing: timediff_crawler/spiders/prod/rent/singapore_rent.py OK
testing: timediff_crawler/spiders/prod/rent/australia_rent.py OK
...
So I don't know what's going wrong, please help and thanks in advance!