# Lighttpd exits, don't know why

**URL:** <https://www.ruby-forum.com/t/lighttpd-exits-dont-know-why/72542>\
**Category:** Rails\
**Created:** [October 17, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/lighttpd-exits-dont-know-why/72542 "2006-10-17T23:06:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![redears](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@redears](https://www.ruby-forum.com/u/redears)\
**Post date:** [October 17, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/lighttpd-exits-dont-know-why/72542/1 "2006-10-17T23:06:53Z")

</div>

Hi, I’m new to Rails and was trying out the tutorial that they give on  
the apple website

[http://developer.apple.com/tools/rubyonrails.html](http://developer.apple.com/tools/rubyonrails.html)

I installed everything including lighttpd, and I got up to the point  
where I want to create  
my first record. When I hit the ‘create’ button, lighttpd quits. If I  
have the server running  
as a foreground process I get this message and it then closes the  
server and returns  
to the command line. If I run the webrick server it doesn’t exit and  
acts as expected.  
I don’t understand. Does anyone know what could be going wrong? Any  
help is  
appreciated.

=\> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application started on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server (see config/lighttpd.conf for options)

Processing ExpensesController#new (for 127.0.0.1 at 2006-10-17  
02:20:50) [GET]  
Session ID: 1d6777b6d44d39e2f0a1c8138e54a0a3  
Parameters: {“action”=\>“new”, “controller”=\>“expenses”}  
Account Columns (0.005781) SHOW FIELDS FROM accounts  
Rendering within layouts/expenses  
Rendering expenses/new  
Rendered expenses/\_form (0.00393)  
Completed in 0.07239 (13 reqs/sec) | Rendering: 0.01446 (19%) | DB:  
0.00578 (7%) | 200 OK [[http://localhost/expenses/new](http://localhost/expenses/new)]  
Exiting

Thanks,  
Nikhil

---

<div class="post-metadata">

**Author:** ![redears](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@redears](https://www.ruby-forum.com/u/redears)\
**Post date:** [October 18, 2006, 12:10am UTC](https://www.ruby-forum.com/t/lighttpd-exits-dont-know-why/72542/2 "2006-10-18T00:10:57Z")

</div>

This is likely to be the cause of your problem:

[http://trac.lighttpd.net/trac/wiki/FrequentlyAskedQuestions#Lighttpdcrasheswhenusingserver.event-handlerpollinMacOSX](http://trac.lighttpd.net/trac/wiki/FrequentlyAskedQuestions#Lighttpdcrasheswhenusingserver.event-handlerpollinMacOSX)

You have to edit the lighttpd.conf file and add the following line:

server.event-handler = “freebsd-kqueue”

If that fails, you can always use Webrick instead of Lighttpd by  
invoking the server with:

script/server webrick

HIH,  
Aitor

---

<div class="post-metadata">

**Author:** ![redears](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@redears](https://www.ruby-forum.com/u/redears)\
**Post date:** [October 18, 2006, 2:33am UTC](https://www.ruby-forum.com/t/lighttpd-exits-dont-know-why/72542/3 "2006-10-18T02:33:08Z")

</div>

Aitor, thank you so much for replying. That was the problem.

Nikhil

---

<div class="post-metadata">

**Author:** ![redears](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@redears](https://www.ruby-forum.com/u/redears)\
**Post date:** [October 18, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/lighttpd-exits-dont-know-why/72542/4 "2006-10-18T15:32:18Z")

</div>

Hi Nikhil,

I just took the trouble to replace lighty with apache/mongrel on my  
development box. You might consider doing the same, since lighty’s  
development seems to be stalling.

Cheers  
Starr

---

<div class="post-metadata">

**Author:** ![redears](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@redears](https://www.ruby-forum.com/u/redears)\
**Post date:** [October 18, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/lighttpd-exits-dont-know-why/72542/5 "2006-10-18T21:29:03Z")

</div>

On 10/18/06, Starr [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I just took the trouble to replace lighty with apache/mongrel on my  
> development box. You might consider doing the same, since lighty’s  
> development seems to be stalling.

Lighty is under very active development. Perhaps it’s your interest in  
it  
that’s stalling?

jeremy

---

<div class="post-metadata">

**Author:** ![redears](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@redears](https://www.ruby-forum.com/u/redears)\
**Post date:** [October 19, 2006, 4:53pm UTC](https://www.ruby-forum.com/t/lighttpd-exits-dont-know-why/72542/6 "2006-10-19T16:53:57Z")

</div>

Well I stand corrected. 🙂 Actually, I would probably still be using  
it if it could handle upload progress.

Cheers  
Starr
