# Logging in Production on Network Solutions

**URL:** <https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459>\
**Category:** Rails\
**Created:** [April 23, 2010, 2:50pm UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459 "2010-04-23T14:50:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jrq](https://www.ruby-forum.com/u/jrq)\
**Post date:** [April 23, 2010, 2:50pm UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459/1 "2010-04-23T14:50:18Z")

</div>

Network Solutions is really beginning to try my patience. Can anyone  
help me with get logs to work in a Production environment hosted on  
Network Solutions?

I’ve edited envionment.rb to include “config.log\_level = :debug”,  
restarted the app. but I still get nothing in the log directory.

---

<div class="post-metadata">

**Author:** ![jrq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jrq](https://www.ruby-forum.com/u/jrq)\
**Post date:** [April 23, 2010, 6:38pm UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459/2 "2010-04-23T18:38:38Z")

</div>

On 23 April 2010 13:48, jrq [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Network Solutions is really beginning to try my patience. Can anyone  
> help me with get logs to work in a Production environment hosted on  
> Network Solutions?
> 
> I’ve edited envionment.rb to include “config.log\_level = :debug”,  
> restarted the app. but I still get nothing in the log directory.

Have you checked it is not being overridden in  
environments/production.rb?

Colin

---

<div class="post-metadata">

**Author:** ![jrq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jrq](https://www.ruby-forum.com/u/jrq)\
**Post date:** [April 23, 2010, 9:45pm UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459/3 "2010-04-23T21:45:56Z")

</div>

Yes. There’s nothing in the environments/production.rb that should  
affect it:

# Settings specified here will take precedence over those in config/

environment.rb

# The production environment is meant for finished, “live” apps.

# Code is not reloaded between requests

config.cache\_classes = true

# Use a different logger for distributed setups

# config.logger = SyslogLogger.new

# Full error reports are disabled and caching is turned on

config.action\_controller.consider\_all\_requests\_local = false  
config.action\_controller.perform\_caching = true  
config.action\_view.cache\_template\_loading = true

# Use a different cache store in production

# config.cache\_store = :mem\_cache\_store

# Enable serving of images, stylesheets, and javascripts from an asset

server

# config.action\_controller.asset\_host = "http://

[assets.example.com](http://assets.example.com)"

# Disable delivery errors, bad email addresses will be ignored

# config.action\_mailer.raise\_delivery\_errors = false

---

<div class="post-metadata">

**Author:** ![jrq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jrq](https://www.ruby-forum.com/u/jrq)\
**Post date:** [April 23, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459/4 "2010-04-23T22:01:09Z")

</div>

Apache/2.2.8 (Unix) / Phusion\_Passenger/2.0.6

On Apr 23, 3:51 pm, “Charles A. Lopez” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jrq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jrq](https://www.ruby-forum.com/u/jrq)\
**Post date:** [April 23, 2010, 10:03pm UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459/5 "2010-04-23T22:03:30Z")

</div>

Apache/2.2.8 (Unix) / Phusion\_Passenger/2.0.6

On Apr 23, 3:51 pm, “Charles A. Lopez” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jrq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jrq](https://www.ruby-forum.com/u/jrq)\
**Post date:** [April 23, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459/6 "2010-04-23T21:53:33Z")

</div>

may i ask what web server you’re using?

On 23 April 2010 08:48, jrq [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> To post to this group, send email to removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to  
> removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Charles A. Lopez  
removed\_email\_address@domain.invalid

What’s your vision for your organization?  
What’s your biggest challenge?

Let’s talk.  
(IBM Partner)

---

<div class="post-metadata">

**Author:** ![jrq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jrq](https://www.ruby-forum.com/u/jrq)\
**Post date:** [April 26, 2010, 4:09pm UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459/7 "2010-04-26T16:09:23Z")

</div>

I’ve managed to get some output to the production.log file. By  
default Network Solutions creates the log files with 644, I think it  
needs 666. It’s hard to tell since there seems to be a buffer that  
has to fill before the write is actually executed. At least I can see  
why the app’s crashing. It’s claiming that the view is missing (it’s  
not). I wish I could get a response from these clowns to find out  
what they changed in the file system (or otherwise) that is causing  
this app to fail (it was working perfectly for weeks).

---

<div class="post-metadata">

**Author:** ![jrq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jrq](https://www.ruby-forum.com/u/jrq)\
**Post date:** [April 27, 2010, 12:42am UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459/8 "2010-04-27T00:42:53Z")

</div>

Here’s what I think happened:  
Network Solutions went into a complete tailspin over this recent hack  
of their file servers, and ran around altering permissions on  
directories and files left, right, and centre. All of this resulted  
in some very confused, and messed up applications. There’s a peculiar  
setting in their “FTP and Content Publishing” section called “Reset  
File Permissions”. Now, to my eye there was nothing wrong with the  
permissions, but maybe it was an Owner/Group thing? Who knows since  
they still haven’t got back to me. With some hesitation I clicked the  
option, expecting it to break all manner of existing site, apps, etc,  
etc. Well, it seems to have fixed the Rails app, and the others look  
OK.
