scrapyd deploy gives Permission denied: 'logs

407 views
Skip to first unread message

Andreas Bloch

unread,
Dec 27, 2013, 7:46:57 AM12/27/13
to scrapy...@googlegroups.com
I'm trying to deploy my default project with scrapyd using the "scrapy deploy default" command.

I receive the following error:

Deploying to project "my_crawlers" in http://xx.xxx.xxx.xxx:6800/addversion.json
Server response (200):
{"status": "error", "message": "OSError: [Errno 13] Permission denied: 'logs'"}

I've tried running the "scrapy deploy default" both as root and user.
I've also tried changing both the write permissions and the user/group permissions the of the logs directory, which resides in same directory as the spiders directory

-rw-rw-r-- 1 ubuntu root        0 Dec 19 14:54 __init__.py
-rw-rw-r-- 1 ubuntu root      739 Dec 19 14:54 items.py
drwxr-xr-x 3 root   root     4096 Dec 27 13:15 logs/           <== tried changing both user and group for this dir
-rw-rw-r-- 1 ubuntu root    18232 Dec 19 14:54 pipelines.py
-rw-rw-r-- 1 ubuntu root     1812 Dec 27 13:19 settings.py
drwxrwxr-x 2 ubuntu root     4096 Dec 23 09:39 spiders/

Is there another logs directory or what could be wrong?


Pablo Hoffman

unread,
Dec 31, 2013, 10:20:44 AM12/31/13
to scrapy-users
Are you using the official scrapyd package for ubuntu with no modifications to scrapyd config?


--
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/groups/opt_out.

Andreas Bloch

unread,
Jan 6, 2014, 5:43:53 AM1/6/14
to scrapy...@googlegroups.com
Hi Pablo, 

thank you for trying to help out. 

I solved the problem by moving my custom "logs"-dir to /var/log/scrapyd/[my_custom_logs_dir] where scrapyd has write permissions instead of inside the scrapy project folder.


--
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/-7jYLX4HUV8/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