Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Activity (RSS)

Wednesday, February 13 2008
44 Reloading Rails Dynamically was updated
  • Alex MacCaw
    Alex MacCaw commented at 6:50 PM

    Well, here's the patch. I've also added reload support to the runner, so you can do:

    thin reload --servers 3 -e production

    and it'll go through all of them g...

  • macournoyer
    • Milestone set to Future
    • State changed from new to hold
    by macournoyer at 12:55 PM

    Mongrel does it w/ the HUP signal but it's not working very well.

    As it's written when Mongrel boots:

    Rails signals registered.  HUP => reload (without resta...
  • Alex MacCaw
    Alex MacCaw created the ticket at 3:32 AM

    I'm not sure if this is a good idea (or possible) and I'm not sure if this is the right forum for it.

    However, wouldn't it be nice to deploy without having to...

40 Support running thin under daemontools/runit was updated
  • macournoyer
    • Milestone set to Ruby 1.9
    • State changed from new to open
    by macournoyer at 2:26 PM

    I'll try to prototype that this weekend.

    Want concerns me is the extra memory required to run a master process. An empty Ruby VM can use 80 MB on some system....

Tuesday, February 12 2008
41 not an AF_UNIX sockaddr was updated
  • macournoyer
    • State changed from new to invalid
    by macournoyer at 11:36 PM
  • macournoyer
    macournoyer created the ticket at 9:42 PM
    >> Writing PID to tmp/pids/thin.0.pid
    >> Thin web server (v0.6.3 codename Ninja Cookie)
    >> Listening on /tmp/thin.0.sock, CTRL+C to stop
    Unexpected error whi...
42 error on thin shutdown was updated
  • macournoyer
    • State changed from open to resolved
    by macournoyer at 11:14 PM
  • macournoyer
    • Milestone set to 0.6.4
    • State changed from new to open
    by macournoyer at 10:10 PM
  • Stephen Heuer
    Stephen Heuer created the ticket at 10:08 PM

    thin -s20 -eproduction --socket /tmp/thin.sock -V stop

    thin.0.log:

    /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.11.0/lib/eventmachine.rb:512:in `stop_tcp...

43 sockets not working was updated
  • macournoyer
    • Milestone set to 0.6.4
    • State changed from new to resolved
    by macournoyer at 11:09 PM

    Should be fixed in http://github.com/macournoyer/th...

    You can install the beta gem:

    sudo gem install thin --source http://code.macournoyer.com
    

    Let me know...

  • Stephen Heuer
    Stephen Heuer created the ticket at 9:58 PM

    thin -s20 -eproduction --socket /tmp/thin.sock -V start

    thin.0.log:

    >> Writing PID to tmp/pids/thin.0.pid

    >> Thin web server (v0.6.3 codename Ninja Cookie)

    ...

0.6.4 was created by unknown at 9:44 PM
 
0 of 2 tickets remain in this milestone
40 Support running thin under daemontools/runit was updated
  • Jos Backus
    Jos Backus created the ticket at 4:51 PM

    It would be great to be able to run thin under a service manager such a daemontools/runit/launchd/AIX's SRC. The advantages of such an approach are:

    • Unified ...
39 Problem when restarting cluster was updated
  • DAddYE
    DAddYE commented at 12:05 PM

    I run thin through config file:

    pid: /var/run/thin_cluster/myapp.pid
    log: log/thin.log
    timeout: 60
    port: 4660
    chdir: /var/www/apps/myapp/current
    environm...
  • macournoyer
    • Milestone set to 0.7.0
    • State changed from new to open
    by macournoyer at 12:03 PM

    Can you tell me exactly what commands you ran

  • DAddYE
    DAddYE created the ticket at 11:33 AM

    Sometimes when I restarted my cluster I have this error that I can't fix.

    >> Writing PID to /var/www/apps/italyabroad/current/tmp/pids/thin.4360.pid
    >> Thin ...
Monday, February 11 2008
38 unable to delete epoll event: Bad file descriptor was updated
  • macournoyer
    • State changed from new to open
    by macournoyer at 11:14 PM
  • macournoyer
    macournoyer created the ticket at 11:09 PM

    3 thin servers crashed and the following error was in the log files:

    terminate called after throwing an instance of 'std::runtime_error'
      what():  unable to...
36 ArgumentError with thin -D was updated
Sunday, February 10 2008
26 Failures while starting a cluster server are ignored was updated
  • Matt Todd
    Matt Todd commented at 12:22 PM

    Well, the spawned clusters talk to the Runner via a socket and tell it if it was successful or not, passing along error information if not... so the Runner can...

Saturday, February 09 2008
26 Failures while starting a cluster server are ignored was updated
  • macournoyer
    macournoyer commented at 10:07 PM

    You mean pinging the host until is response? Not sure I understand your solution.

    Or maybe having the child process output the log on error.

  • Matt Todd
    Matt Todd commented at 8:13 PM

    Not necessarily the best idea, but if you had the spawner open up x number of ports (x being the number of children to spawn) where each child connects to the ...

37 -s directive not saved on `thin config` was updated
  • Matt Todd
    Matt Todd commented at 8:01 PM

    (Sorry for the double post... apparently had network problems when I posted it so didn't realize it went through the first time.)

  • Matt Todd
    Matt Todd commented at 7:48 PM

    Seems good to me, considering it's a bit more forward-thinking so if you have other options you need to exclude later on, it's easy to update.

    Nice and simple...

  • macournoyer
    • State changed from open to resolved
    by macournoyer at 4:07 PM

    Fixed in http://github.com/macournoyer/th...

    I removed the code deleting the options and just removed them before sending it as a command to individual server...

  • Matt Todd
    Matt Todd commented at 3:38 PM

    The problem is that Controllers::Cluster#initialize deletes the :servers key from @options and stores it in @size.

    One potential solution would be to not dele...

  • Matt Todd
    Matt Todd commented at 3:57 PM

    The problem is that Controllers::Cluster#initialize deletes the :servers key from @options and stores it in @size.

    One potential solution would be to not dele...

28 Swiftiply support for Thin was updated
  • Matt Todd
    Matt Todd commented at 3:10 PM

    /me applauds excitedly!

  • macournoyer
    • State changed from open to resolved
    by macournoyer at 2:16 AM
  • macournoyer
    macournoyer commented at 2:14 AM

    applied w/ some modifications, now on git master

    thx a lot for the contribution Alex!

Friday, February 08 2008
37 -s directive not saved on `thin config` was updated
  • macournoyer
    • Milestone set to 0.7.0
    • State changed from new to open
    by macournoyer at 11:48 PM

    nice catch James, seems to be the only option not saved to the config file. I'll fix that.

  • James McKinney
    James McKinney created the ticket at 10:30 PM

    I'm running thin 0.6.3 on Ubuntu.

    When I run `thin config --server 3 -C /etc/thin/myapp.yml`, I get:

    ---

    pid: tmp/pids/thin.pid

    log: log/thin.log

    timeout:...

Thursday, February 07 2008
0.7.0 was updated by unknown at 10:04 PM
 
0 of 10 tickets remain in this milestone
36 ArgumentError with thin -D was updated
  • macournoyer
    • Milestone set to 0.7.0
    • State changed from new to open
    by macournoyer at 10:02 PM

    This is 'cause -D set $DEBUG=true which make Ruby more verbose and less tolerable.

    I'll review this option to be more useful and maybe merge w/ -V option.

    th...

  • Ivan
    Ivan created the ticket at 4:54 PM

    On a blank rails 2.0.2 app, I create a single controller and an index view for it.

    In this view I put :

    <%= javascript_include_tag 'application' %>
    

    and whe...

Wednesday, February 06 2008
35 Restarting w/ one server doesn't start if not already running was updated
  • macournoyer
    • State changed from new to resolved
    by macournoyer at 10:53 PM

    fixed on git

  • macournoyer
    macournoyer created the ticket at 6:34 PM
    thin restart --servers 1
    

    -s1 should be considered as a cluster.

    Reported by cnantais on irc channel

26 Failures while starting a cluster server are ignored was updated
  • macournoyer
    • Milestone changed from 0.6.3 to Future
    by macournoyer at 10:38 PM

    This is the same behaviour as mongrel_cluster so I'm moving to 'Future'.

    It would require waiting for a couple sec and checking it the process is still runnin...

30 Using Thin with a framework other than Rails. was updated
  • macournoyer
    • State changed from open to resolved
    • Milestone changed from 0.7.0 to 0.6.3
    by macournoyer at 12:47 AM

    it's on git now:

    Add the --rackup option to load a Rack config file instead of the Rails adapter.

    So you can use any framework with the thin script and start...

29 Load config from a path was updated
33 Check directory was updated
  • macournoyer
    • State changed from open to resolved
    by macournoyer at 12:23 AM

    fixed on git

    thx for the suggestion Daddye, feels more intuitive now!

9 monitoring with God was updated
  • macournoyer
    macournoyer commented at 12:17 AM

    I updated the example/thin.god file w/ this one on git.

    thx Gump!

Tuesday, February 05 2008
9 monitoring with God was updated
  • macournoyer
    macournoyer commented at 10:11 PM

    You're right, I'll include it in the example dir for now.

  • macournoyer
    macournoyer commented at 9:53 PM

    Wow, this is freaking awesome Gump!

    I'd really love to integrate this into thin. What's your idea about this, do you think we should replace runlevel service ...

34 prefork servers was updated
  • macournoyer
    • State changed from new to open
    by macournoyer at 4:09 PM

    to be tested and benchmarked

  • macournoyer
    macournoyer created the ticket at 3:49 PM

    A recent fix to Ruby 1.9 GC might save 1/3 of mem usage when using fork to start thin servers.

    http://izumi.plan99.net/blog/ind...

    Example script to prefork ...

Ruby 1.9 was created by unknown at 3:45 PM
&nbsp;
1 of 2 tickets remain in this milestone
33 Check directory was updated
  • DAddYE
    DAddYE commented at 12:32 PM

    Is not a problem at the moment manually do this change but if not necessary check the directory when thin make the config you help my hands

    hehe

    Super thanks...

  • macournoyer
    • State changed from new to open
    • Milestone set to 0.6.3
    by macournoyer at 12:29 PM

    -c change the current directory so that all other paths can be relative to it.

    Not sure this make sense when generating the config file.

    But you could:

    thin...
  • DAddYE
    DAddYE created the ticket at 12:01 PM

    When I do:

    thin config -c /my/app/path/*current* -C /my/config/dir/app.conf
    

    thin check if /my/app/path/current exist... why?

    I ask to remove the check of a...