# Permissions error when using Olson's deploy\_edge

**URL:** <https://www.ruby-forum.com/t/permissions-error-when-using-olsons-deploy-edge/112759>\
**Category:** Deployment\
**Created:** [August 22, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/permissions-error-when-using-olsons-deploy-edge/112759 "2007-08-22T23:34:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [August 22, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/permissions-error-when-using-olsons-deploy-edge/112759/1 "2007-08-22T23:34:37Z")

</div>

I’ve been trying to get my app running on Rails edge per the  
instructions on Mike C.'s blog  
([http://clarkware.com/cgi/blosxom/2007/01/18](http://clarkware.com/cgi/blosxom/2007/01/18)), specifically per the last  
section of that post.

I’ve got edge working fine on my local machine, and I’ve set svn to  
ignore vendor/rails so that it doesn’t get exported every time I  
redeploy to the production machine. I’m using Rick O.'s deploy\_edge  
rake task  
([http://svn.techno-weenie.net/projects/mephisto/trunk/lib/tasks/common.rake](http://svn.techno-weenie.net/projects/mephisto/trunk/lib/tasks/common.rake)),  
called from an after\_update\_code cap hook. The task gets called fine -  
but I run into the following error:

\*\* [out :: [site.com](http://site.com)] (in /var/www/apps/theapp/releases/20070822204440)  
\*\* [out :: [site.com](http://site.com)] setting up rails trunk  
\*\* [out :: [site.com](http://site.com)] mkdir -p …/…/shared/rails/trunk/railties  
\*\* [out :: [site.com](http://site.com)] rake aborted!  
\*\* [out :: [site.com](http://site.com)] Permission denied - …/…/shared/rails

I ssh’d in to check the permissions:  
deploy@server:/var/www/apps/theapp$ ls -l  
total 12  
lrwxrwxrwx 1 deploy users 44 Aug 21 17:32 current →   
/var/www/apps/theapp/releases/20070821173121  
drwxrwxr-x 75 deploy deploy 4096 Aug 22 20:46 releases  
-rw-rw-rw- 1 deploy users 3273 Aug 22 20:46 revisions.log  
drwxrwxr-x 6 root app\_theapp 4096 Jun 11 21:20 shared

I’ve run into permissions problems with other apps in the past, and  
whenever I try to fix them I end up royally screwing things up - so I  
was wondering if anyone has run into this problem before and could  
suggest a fix.

I’m also open to any suggestions on other ways to automatically deploy  
to edge without exporting the entire rails source on each deploy.

Thanks,

- Mark
