Problem with rsync and fredistrano

14 views
Skip to first unread message

santanu

unread,
Sep 12, 2009, 11:36:52 AM9/12/09
to fredistrano-discuss
Hi,

I am getting permission denied in Fredistrano's synchronization step:

Copied from the console window:
[command] rsync -rtvO --delete --exclude-from=/home/admin/deploy/
fredistrano/files/tmp/previewSite/exclude_file.txt /home/admin/deploy/
fredistrano/files/tmp/previewSite/tmpDir/ /home/admin/preview/ 2>&1
[result] building file list ... done
rsync: delete_file: rmdir "/home/admin/preview/fredistrano/files"
failed: Permission denied (13)

Can somebody help on how to configure the rsync permission for
Fredistrano? I am on a linux box. I tried to run the command from a
ssh terminal and that runs fine. When the command is executed from
Fredistrano, it doesn't work.

I really like Fredistrano and want to use it, but I am stuck at this
step.

Thanks a lot for your help,

Santanu

zemi

unread,
Sep 12, 2009, 11:54:39 AM9/12/09
to fredistra...@googlegroups.com
Hi,
you have to check under which user your apache deamon is running. This
is usually www-data in Ubuntu. (Try "ps -Af | grep apache2" to find out
- first column is the user name). Then you have to set up filesystem
permissions correctly.
When you log in via SSH you're using different user account - that's why
you can do it via SSH and not via Fredistrano.

Matus

Santanu Bose

unread,
Sep 12, 2009, 12:05:44 PM9/12/09
to fredistra...@googlegroups.com
Hi,

Thanks for your help. I tried your command and got root as the user for apache2. When I login via SSH, I am using the root account as well. I am on CentOs.

Thanks,

Santanu

zemi

unread,
Sep 12, 2009, 12:14:54 PM9/12/09
to fredistra...@googlegroups.com
Is Apache running under one process only? E.g. I've got 11 processes
while 1 is root (kind of start-up process I presume) and others are
www-data.
Can you provide permission set on /home/admin/preview/fredistrano/
directory? Try to set them to 777.

Santanu Bose

unread,
Sep 12, 2009, 12:54:48 PM9/12/09
to fredistra...@googlegroups.com
I think I got it working!

I tried ps -Af | grep apache (without the 2 at the end) then I found the other instances where the user is apache. I also saw preview directory was owned by a different account. So I chowned the preview direcotry to apache. I also deleted everything from there to have a clean start. Then I cleaned my Fredistrano project temp files and started deploying again. This time everything worked.

Fredistrano rocks! Thanks a lot for your help. You had some great pointers that helped me a lot.

Take care,

Santanu
Reply all
Reply to author
Forward
0 new messages