# Application Error only in Detached Mode

**URL:** <https://www.ruby-forum.com/t/application-error-only-in-detached-mode/177398>\
**Category:** Rails\
**Created:** [October 16, 2009, 9:59am UTC](https://www.ruby-forum.com/t/application-error-only-in-detached-mode/177398 "2009-10-16T09:59:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scotdb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8491ac/32.png) [@scotdb](https://www.ruby-forum.com/u/scotdb)\
**Post date:** [October 16, 2009, 9:59am UTC](https://www.ruby-forum.com/t/application-error-only-in-detached-mode/177398/1 "2009-10-16T09:59:02Z")

</div>

Very strange one …

If I start my Radiant CMS with simply -

script/server -e production

## it works without problem. However if I start it in detached mode with

script/server -e production -d

then I get -

Application error

Change this error message for exceptions thrown outside of an action  
(like in Dispatcher setups or broken Ruby code) in public/500.html

There isn’t anything in the production.log to show a problem.

Any clues what gives ?

TIA

---

<div class="post-metadata">

**Author:** ![scotdb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8491ac/32.png) [@scotdb](https://www.ruby-forum.com/u/scotdb)\
**Post date:** [October 17, 2009, 4:11am UTC](https://www.ruby-forum.com/t/application-error-only-in-detached-mode/177398/2 "2009-10-17T04:11:58Z")

</div>

On Fri, Oct 16, 2009 at 12:57 AM, scotdb [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If I start my Radiant CMS with simply -  
> script/server -e production  
> it works without problem. However if I start it in detached mode with  
> script/server -e production -d

erm, that’s “daemon” mode, but regardless…

> then I get -  
> Application error
> 
> Change this error message for exceptions thrown outside of an action  
> (like in Dispatcher setups or broken Ruby code) in public/500.html
> 
> There isn’t anything in the production.log to show a problem.  
> Any clues what gives ?

It would probably help you get better answers if you provided the  
platform you’re on, the version of Ruby, the server (webrick, ?) etc.

Have you tried starting with the -u debugging flag?

Conversely, have you looked for where that error message is being  
generated?

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan
