title: Rails: Unable to access log file
body: <p>I get the following error when restarting my rails app. I've had this problem before, on another server with another app, but can't remember what the problem was, or how I solved it.</p>
  
  <pre><code>Rails Error: Unable to access log file. Please ensure that /apps/staging/releases/20090310162127/log/staging.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
  </code></pre>
  
  <p>I'm deploying to a mongrel cluster with capistrano on Ubuntu.</p>
  
  <p>When I do <code>ls -l /apps/staging/releases/20090310162127/log/staging.log</code></p>
  
  <p>the result is:</p>
  
  <pre><code>-rw-rw-rw- 1 me grp 51 Mar 10 16:07 /apps/staging/releases/20090310162127/log/staging.log
  </code></pre>
  
  <p>The log dir is a <code>link</code> to /apps/staging/shared/log. </p>
  
  <p>What's going on? </p>