# Log access denied

**URL:** <https://www.ruby-forum.com/t/log-access-denied/183390>\
**Category:** Rails\
**Created:** [February 12, 2010, 10:48pm UTC](https://www.ruby-forum.com/t/log-access-denied/183390 "2010-02-12T22:48:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [February 12, 2010, 10:48pm UTC](https://www.ruby-forum.com/t/log-access-denied/183390/1 "2010-02-12T22:48:17Z")

</div>

Problem: Mongrel cannot start because access to log is denied. I just  
switched to a new development laptop (Snow Leopard). I think I  
installed everything I needed. I git clone the application I am  
developing from the repository. Everything went fine. Now when I run  
script/server, this is what I get:

=\> Booting Mongrel  
=\> Rails 2.3.5 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/  
1.8/logger.rb:518:in `initialize’: Permission denied - /Users/chief/  
Documents/my\_app/log/acts\_as\_ferret.log (Errno::EACCES)

Please help. Thanks.

---

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [February 12, 2010, 11:01pm UTC](https://www.ruby-forum.com/t/log-access-denied/183390/2 "2010-02-12T23:01:45Z")

</div>

On Fri, Feb 12, 2010 at 1:46 PM, Vincent P [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Documents/my\_app/log/acts\_as\_ferret.log (Errno::EACCES)
> 
> Please help. Thanks.

So, what are the owner/permissions on that file, and what user  
are you trying to start the app as?

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [February 12, 2010, 11:19pm UTC](https://www.ruby-forum.com/t/log-access-denied/183390/3 "2010-02-12T23:19:54Z")

</div>

Thanks Hassan for your prompt response. I am trying to start mongrel  
when logged in as a regular user. The log file somehow is owned by  
root. I suspect that is because I am having apache and passenger  
running at the same time trying to serve the same app. I’ll try to  
disable apache.

After I run chown on the log files to take over ownership of the log  
files, it works now. THanks.

On Feb 12, 1:59 pm, Hassan S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
