Scrapyd not running using service

175 views
Skip to first unread message

Ali Bozorgkhan

unread,
Mar 17, 2014, 2:19:59 PM3/17/14
to scrapy...@googlegroups.com
Hi,

I tried to stop my running scrapyd service by `service scrapyd stop` but it didn't work. So I killed the process manually. Now that I'm trying to start scrapyd again, I get this error in `scrapyd.err` file:


Unhandled Error
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 642, in run
    runApp(config)
  File "/usr/local/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, in runApp
    _SomeApplicationRunner(config).run()
  File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 376, in run
    self.application = self.createOrGetApplication()
  File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 441, in createOrGetApplication
    application = getApplication(self.config, passphrase)
--- <exception caught here> ---
  File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 452, in getApplication
    application = service.loadApplication(filename, style, passphrase)
  File "/usr/local/lib/python2.7/dist-packages/twisted/application/service.py", line 405, in loadApplication
    application = sob.loadValueFromFile(filename, 'application', passphrase)
  File "/usr/local/lib/python2.7/dist-packages/twisted/persisted/sob.py", line 203, in loadValueFromFile
    fileObj = open(filename, mode)
exceptions.IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/scrapyd/txapp.py'

Failed to load application: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/scrapyd/txapp.py'


I can run the scrapyd by simply calling `scrapyd` but I wanna run it using service. I appreciate a help with this. Thanks.

Pablo Hoffman

unread,
Apr 17, 2014, 6:48:48 PM4/17/14
to scrapy-users
The ubuntu package may have ended up in an inconsistent state, maybe due to an interrupted installation. Try running: apt-get install -f


--
You received this message because you are subscribed to the Google Groups "scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scrapy-users...@googlegroups.com.
To post to this group, send email to scrapy...@googlegroups.com.
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.

Ali Bozorgkhan

unread,
Apr 17, 2014, 6:51:16 PM4/17/14
to scrapy...@googlegroups.com
Thanks for the reply Pablo, but still no luck. Same thing happens.


--
You received this message because you are subscribed to a topic in the Google Groups "scrapy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scrapy-users/tIyRStnTaDQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scrapy-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages