# Ruby script/server ERROR

**URL:** <https://www.ruby-forum.com/t/ruby-script-server-error/158737>\
**Category:** Rails\
**Created:** [January 27, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/ruby-script-server-error/158737 "2009-01-27T13:25:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![basma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@basma](https://www.ruby-forum.com/u/basma)\
**Post date:** [January 27, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/ruby-script-server-error/158737/1 "2009-01-27T13: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?

---

<div class="post-metadata">

**Author:** ![basma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@basma](https://www.ruby-forum.com/u/basma)\
**Post date:** [January 27, 2009, 2:42pm UTC](https://www.ruby-forum.com/t/ruby-script-server-error/158737/2 "2009-01-27T14:42:40Z")

</div>

On 27 Jan 2009, at 12:25, Basma Basma wrote:

> I close it!

Sounds like a syntax error in database.yml.

Fred

---

<div class="post-metadata">

**Author:** ![basma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@basma](https://www.ruby-forum.com/u/basma)\
**Post date:** [January 27, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/ruby-script-server-error/158737/3 "2009-01-27T15:48:42Z")

</div>

Frederick C. wrote:

> On 27 Jan 2009, at 12:25, Basma Basma 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

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

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

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

---

<div class="post-metadata">

**Author:** ![basma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@basma](https://www.ruby-forum.com/u/basma)\
**Post date:** [January 27, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/ruby-script-server-error/158737/4 "2009-01-27T15:59:07Z")

</div>

On 27 Jan 2009, at 14:48, Basma Basma 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

---

<div class="post-metadata">

**Author:** ![basma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@basma](https://www.ruby-forum.com/u/basma)\
**Post date:** [January 27, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/ruby-script-server-error/158737/5 "2009-01-27T16:10:43Z")

</div>

Frederick C. wrote:

> On 27 Jan 2009, at 14:48, Basma Basma 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?

thanks…

---

<div class="post-metadata">

**Author:** ![basma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@basma](https://www.ruby-forum.com/u/basma)\
**Post date:** [January 27, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/ruby-script-server-error/158737/6 "2009-01-27T16:42:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![basma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@basma](https://www.ruby-forum.com/u/basma)\
**Post date:** [January 27, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/ruby-script-server-error/158737/7 "2009-01-27T16:17:35Z")

</div>

On 27 Jan 2009, at 15:10, Basma Basma wrote:

> > it  
> > 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:  
adapter: mysql  
database: web  
host: localhost  
username: root  
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
