LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > production.log not written - any hint ?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-13-2009, 05:57 AM
thbar thbar is offline
Member
 
Join Date: Sep 2006
Posts: 33
Default production.log not written - any hint ?

My app runs perfectly fine, except I cannot get any input in log/production.log.

My app (and dispatch.lsapi) are owned by a given user:group, and the log folder (+ production.log) are writable to this user.

If that matters, the log folder is a symlink, as I'm using Capistrano.

Any idea where I could have done wrong ?

I pretty much expect it's a permission issue - I just cannot spot it.

-- Thibaut
Reply With Quote
  #2  
Old 11-14-2009, 07:33 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
How about parent directories?
You can try command like

sudo -u <user_name> echo "test" > log/production.log

see if you can do that.
Reply With Quote
  #3  
Old 01-29-2010, 09:37 AM
thbar thbar is offline
Member
 
Join Date: Sep 2006
Posts: 33
Getting back to this server after a while, I still met this issue.

I found out though (thanks to this article) this:

"make sure you check lsws/logs/stderr.log, where the more obscure errors are reported."

And indeed, there is an error in there!

Is there some way to redirect STDERR to the rails log instead, to keep all the app logs in one place ?

thank you
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:21 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.