Displaying 20 results from an estimated 10000 matches similar to: "Log rotation"
2006 Sep 25
8
mongrel.pid disappearing
Hi to everybody,
This my first post on the list.
I''m a newby of mongrel & rails, I''ve deployed my first project and
everything seems to work fine, the only problem I have is the following:
After about 1 or 2 days of the mongrel_rails daemon running the
mongrel.pid in the log directory disappears, the mongrel process is
still there running
but doesn''t respond
2006 Feb 08
4
Fixture question...
Ok, I''m pretty sure I''ve seen this done before. I have a fixture that
isn''t named the same as the table I want to insert the stuff into.
Whats the right way to go about this?!
Google has failed me! :(
-Nick
2006 Jul 12
3
Rotating mongrel.log?
Hi all -
I searched, but didn''t see anything on this so....
Best way to rotate the mongrel.log file? Should I just restart the
mongrel cluster? Or is there a better way?
Thanks!
-philip
2007 Apr 20
1
Mongrel cluster log rotation best practices
OK, maybe not even best practices, but at least, tested practices.
>From my reading thus far, it is evident I shouldn''t use Rails to
handle mongrel log rotation. Fine, I''m sold on that. The advice I''m
seeing says that that one should use an external script to do this.
So my question is, what are people using? What''s working well?
Simple bash scripts or
2005 Dec 29
6
How do I open and read/write to a file?
I need to process some text files quickly. I''ve not been able to find the
answer in the archive. The Ruby Standard Library site times out. Can
someone tell me where to find info on how to:
1. Get a list of filenames in a directory.
2. How to open a file.
3. How to read it a line at a time.
--
Thanks in advance for the help,
-Larry
"Work, work, work...there is no satisfactory
2006 Dec 05
7
mongrel and long lived connections
Hi,
I found this article
http://cyll.org/blog/tech/2006-08-09-themongrelcomet.html on mongrel
and COMET very interesting.
I ran the code, and it worked just as Christopher explained. The one
thing I don''t understand is why mongrel can only handle 1 connection
at a time. I thought that mongrel used a thread per connection.
It appears that each registered handler can only handle 1
2006 Jan 16
4
Question about self and private
Hi!
There''s something I don''t understand yet about static/private methods. I
hope someone can explain...
E.g.:
class SayHello
def hello(who)
puts "Hello, " + who + "!"
end
def self.say(words)
puts words
end
end
hello = SayHello.new
hello.hello "World" : Hello World!
hello.say "hi" : Error
SayHello.say
2006 Dec 15
8
Early morning strange error saying: Status: 500 Internal Server Error
So I have updated to the latest mongrel and fastthread and my
environment is as follows:
Debian 3.1
Rails 1.1.6
Ruby 1.8.5
Mongrel 0.3.18
Fastthread 0.4
Mongrel Cluster 0.2.1
Apache 2.2.3
I again woke up this morning to my disappointment of seeing the
strange Status: 500 Internal Server error. It happens the same every
morning, I have three mongrels running, two give the error, one
2008 Jan 02
20
fastthread no longer needed?
I''m confused. Wasn''t threading fixed in 1.8.6, negating the need for
fastthread? Why is fastthread still a requirement of Mongrel? Just
curious. :)
2007 Oct 02
23
Mongrel using way more memory on production than staging. Any ideas why?
I''ve been trying to track down the culprit of erratic behaviour and
crashes on my production server (which is split into a number of Xen
instances), so set up a staging server so that I could really try to get
to the bottom of it.
The staging server (also split with Xen) is set up pretty much
identically as far as the mongrel_cluster server is concerned (the
production box has two
2005 May 03
2
How to put a form for one controller in another controlers view
Hello,
If anyone could help me out with this problem I''d appreciate it...
I''m making a database of event bookings, I have an events table and a
clients table. I''d like to include a form to create a new client in the
form for creating a new event.
This would update the parent form with the new client_id using AJAX
methods (see previous e-mail) so you''d
2009 Nov 09
3
Sort logfiles at rotation time
Hi,
I want to be certain that my apache and varnish logfiles are in strict
date order when rotated. I'd like to run a sort command against them
before they're compressed.
I've had a look at the logrotate man page, and it looks like I can use
a postrotate/endscript to do this. However, I can see any reference
in the documentation for how to operate on the file. All the examples
2005 May 06
7
Rails hosting per user
I''m trying to set up shared rails websites, so every user has its own
public_html for rails scripts.
I''m not really satisfied with the fastcgi approach (cgi scripts can
sometimes be nasty security problems) so I''d like to try the another
approach. (If someone knows a good tutorial on installing rails on FreeBSD
including the fastcgi configuration that would be nice).
2006 Mar 27
5
Accessing Session Object from a model
i realise that this goes against the basic idea of the MVC architecture,
but i''ve found myself in a situation where i need to get information
about the current user in a model & i''m not sure how to do it.
Basically, we have a product where each customer has their own profile
with data stored in a separate database. There are some tables in a
common
2007 May 05
3
Tell me why my Shoutcase handler sucks!
So, I want to build the greatest online radio ever! (for my, currently
crappy, faderwave.net radio station. Right now, I''m running Icecast
straight up. The only problem is that managing different DJs and
keeping them off the air when they aren''t supposed to be there is a
pain. There also is not one single management package that does
everything. My current system is a hacked
2013 May 21
4
Asterisk Log rotate not working
Hi,
Last year, I installed Asterisk 10.4.2 and enabled logrotate on daily basis
which was working perfect. Now in couple of months back, the logrotate
feature is not working at all but simply appending the logs in 'messages'
file. Listing down down the configuration for logrotate below;
/var/log/asterisk/messages {
missingok
rotate 5
daily
postrotate
/usr/sbin/asterisk -rx 'logger
2006 Feb 08
10
Sharing sessions between subdomains?
Hello,
I know how to share sessions between subdomains in PHP. Can anyone please guide me as to how I can share sessions using Ruby? Where can I set the value of domain for which the cookie is set?
I would like for a user to login on the home page and then go to blog.home.com and not have to login again.
Any guidance/pointers are appreciated.
Thanks''
2006 Nov 09
8
Distroy to experiment with Xen?
Hello,
I would like to experiment with Xen some to see how I could integrate
it in my various web application environments and hopefully make my
life easier. I am currently using FreeBSD 6 but it seems that it
doesn''t fully support Xen. I did some searching around and also notice
some posts on mailing lists mentioning some trouble with the CentOS 4
distribution (something about the
2007 Mar 26
4
Monit + Mongrel woes
Hello all,
So, I''ve been using monit with mongrel for a while now, since the
0.3.x days (I think it was). It used to work fine, but now I seem to
be having some trouble. I''m currently using mongrel 1.0.1 and I am
using the same monit configuration I''ve always been using, yet
everytime monit should restart mongrel, I get "Execution failed".
For the start
2007 Jan 02
10
problems with apache 2.2 proxying to mongrel cluster
Hi all,
I''ve been having problems with the apache 2.2-mod_proxy_balancer-
mongrel setup.
My setup is:
CentOS 4.3
apache 2.2.3 (compiled from source) with mod_proxy_balancer
mysql 4.1
ruby 1.8.4
mongrel 0.3.14 (I know I need to update but I think this problem is
independent of the mongrel version)
mongrel_cluster 0.2.0
rails_machine 0.1.1
I have apache setup as per Coda''s