# ruby script/server ERROR

**URL:** <https://discuss.rubyonrails.org/t/ruby-script-server-error/38734>\
**Category:** rubyonrails-talk\
**Created:** [January 27, 2009, 12:25pm UTC](https://discuss.rubyonrails.org/t/ruby-script-server-error/38734 "2009-01-27T12:25:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [January 27, 2009, 12:25pm UTC](https://discuss.rubyonrails.org/t/ruby-script-server-error/38734/1 "2009-01-27T12:25:00Z")

</div>

Hi I have a problem when I use the command ruby script/server in some of applications , the server dose not working end exiting before I close it!

to know what I mean please see the attachment!

How I deal with a server to see my pages?

Attachments: [http://www.ruby-forum.com/attachment/3211/problem\_with\_server.gif](http://www.ruby-forum.com/attachment/3211/problem_with_server.gif)

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [January 27, 2009, 1:41pm UTC](https://discuss.rubyonrails.org/t/ruby-script-server-error/38734/2 "2009-01-27T13:41:55Z")

</div>

> Hi I have a problem when I use the command ruby script/server in some of applications , the server dose not working end exiting  
> before I close it!

Sounds like a syntax error in database.yml.

Fred

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [January 27, 2009, 2:57pm UTC](https://discuss.rubyonrails.org/t/ruby-script-server-error/38734/3 "2009-01-27T14:57:56Z")

</div>

> Frederick Cheung wrote:
> 
> > > I close it!
> > 
> > Sounds like a syntax error in database.yml.
> > 
> > Fred
> 
> thanks Fred for replying. but what kind of errors? I wrote in database.yml

According to the error message there's a line with timeout: 5000 on it Also indentation in yaml is significant.

Fred

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [January 27, 2009, 3:13pm UTC](https://discuss.rubyonrails.org/t/ruby-script-server-error/38734/4 "2009-01-27T15:13:19Z")

</div>

> Frederick Cheung wrote:
> 
> > > thanks Fred for replying. but what kind of errors? I wrote in database.yml
> > 
> > According to the error message there's a line with timeout: 5000 on  
> > it Also indentation in yaml is significant.
> > 
> > Fred
> 
> yes there was a line with timeout: 5000 then I remove it , to see if the error from it or not! and still same error!
> 
> but what do you mean about "Also indentation in yaml is significant"? should be without indentation?

That means that what you pasted:

development: adapter: mysql database: web host: localhost username: root password:

is very different from

development: &nbsp;&nbsp;&nbsp;adapter: mysql &nbsp;&nbsp;&nbsp;database: web &nbsp;&nbsp;&nbsp;host: localhost &nbsp;&nbsp;&nbsp;username: root &nbsp;&nbsp;&nbsp;password:

Also have all three environments set to use the same database is a  
very bad thing (unless you want all of them to get wiped everytime you  
run the unit tests).

Fred

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [January 27, 2009, 3:42pm UTC](https://discuss.rubyonrails.org/t/ruby-script-server-error/38734/5 "2009-01-27T15:42:20Z")

</div>

many thanks to you Fred 🙂it's working now.
