# Strange error when starting webrick/mongrel server

**URL:** <https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069>\
**Category:** Rails\
**Created:** [August 28, 2008, 9:36am UTC](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069 "2008-08-28T09:36:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [August 28, 2008, 9:36am UTC](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069/1 "2008-08-28T09:36:55Z")

</div>

hi all,

my application crashed so tried starting the server for it again but  
i’m getting a strange error when i start server with ruby script/server  
-v 4000 or ruby script/server webrick -v 4000 as -  
“=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
server: version unknown”

it’s not starting the server. whereas if i start the server with  
“mongrel\_rails -v 4000”, it starts… thrs no change in the appl folder  
though. it was working fine previously with ruby script/server. can  
anybody tell wt could be the problem pls?

following is the log before my application crashed-

Permission denied -  
/var/www/kw\_merge/tmp/sessions//ruby\_sess.270064565bfad96b  
/usr/local/lib/ruby/1.8/pstore.rb:295:in `initialize' /usr/local/lib/ruby/1.8/pstore.rb:295:in`open’  
/usr/local/lib/ruby/1.8/pstore.rb:295:in `transaction' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/cgi_ext/pstore_performance_fix.rb:26:in`initialize’  
/usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' /usr/local/lib/ruby/1.8/cgi/session.rb:273:in`initialize’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action\_controller/cgi\_process.rb:132:in  
`new' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/cgi_process.rb:132:in`session’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action\_controller/cgi\_process.rb:164:in  
`stale_session_check!' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/cgi_process.rb:116:in`session’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action\_controller/base.rb:1058:in  
`assign_shortcuts_without_flash' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/flash.rb:140:in`assign\_shortcuts’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action\_controller/base.rb:429:in  
`process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/filters.rb:684:in`process\_without\_session\_management\_support’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action\_controller/session\_management.rb:114:in  
`process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/base.rb:334:in`process’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:41:in  
`dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/rails.rb:76:in`process’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel/rails.rb:74:in  
`synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/rails.rb:74:in`process’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:155:in  
`process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:154:in`each’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:154:in  
`process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:281:in`run’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:281:in  
`initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:281:in`new’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:281:in  
`run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:264:in`initialize’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:264:in  
`new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel.rb:264:in`run’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel/configurator.rb:282:in  
`run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel/configurator.rb:281:in`each’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel/configurator.rb:281:in  
`run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/mongrel_rails:128:in`run’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib/mongrel/command.rb:212:in  
`run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/mongrel_rails:281 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in`load’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:488:in  
`load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in`new\_constants\_in’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:488:in  
`load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:60 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in`require’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in`require’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
script/server:3

-DP

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [August 28, 2008, 9:39am UTC](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069/2 "2008-08-28T09:39:41Z")

</div>

On Aug 28, 8:36 am, Dhaval P. \<rails-mailing-l…@andreas-  
[s.net](http://s.net)\> wrote:

> though. it was working fine previously with ruby script/server. can  
> anybody tell wt could be the problem pls?
> 
> following is the log before my application crashed-

Do you have write access to /var/www/kw\_merge/tmp/sessions/ ?

Fred

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [August 28, 2008, 9:44am UTC](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069/3 "2008-08-28T09:44:50Z")

</div>

Frederick C. wrote:

> On Aug 28, 8:36ï¿½am, Dhaval P. \<rails-mailing-l…@andreas-  
> [s.net](http://s.net)\> wrote:
> 
> > though. it was working fine previously with ruby script/server. can  
> > anybody tell wt could be the problem pls?
> > 
> > ï¿½ ï¿½following is the log before my application crashed-
> 
> Do you have write access to /var/www/kw\_merge/tmp/sessions/ ?
> 
> Fred

yes. my application is started now but it doesn’t take the cmd “ruby  
script/server” to start the server. instead it starts with  
“mongrel\_rails start”

-DP

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [August 28, 2008, 11:06am UTC](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069/4 "2008-08-28T11:06:34Z")

</div>

Dhaval P. wrote:

> Frederick C. wrote:
> 
> > On Aug 28, 8:36ï¿½am, Dhaval P. \<rails-mailing-l…@andreas-  
> > [s.net](http://s.net)\> wrote:
> > 
> > > though. it was working fine previously with ruby script/server. can  
> > > anybody tell wt could be the problem pls?
> > > 
> > > ï¿½ ï¿½following is the log before my application crashed-
> > 
> > Do you have write access to /var/www/kw\_merge/tmp/sessions/ ?
> > 
> > Fred
> 
> yes. my application is started now but it doesn’t take the cmd “ruby  
> script/server” to start the server. instead it starts with  
> “mongrel\_rails start”
> 
> -DP

i mean i have access to /var/www/kw\_merge/tmp/sessions/. but don’t  
understand why “ruby script/server” doesn’t work and “mongrel\_rails  
start” starts the server. is thr any chance of any ruby file got  
currepted or something? can somebody explain it pls?

-DP

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [August 28, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069/5 "2008-08-28T15:06:09Z")

</div>

hi you are using ruby script/server -v 4000, so -v is for version.

So, you better to use ruby script/server -p 4000, means u r mentioning  
the port number as 4000.

Hope this works fine.

Thanks,  
Muni.

On Aug 28, 12:36 pm, Dhaval P. \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [August 28, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069/6 "2008-08-28T15:32:48Z")

</div>

Munendra Ch wrote:

> hi you are using ruby script/server -v 4000, so -v is for version.
> 
> So, you better to use ruby script/server -p 4000, means u r mentioning  
> the port number as 4000.
> 
> Hope this works fine.
> 
> Thanks,  
> Muni.
> 
> On Aug 28, 12:36ï¿½pm, Dhaval P. \<rails-mailing-l…@andreas-

@Munendra,  
hahaha…ohhh, i was completely lost. u r right. i was giving the  
wrong command. i’m sorry guys… that was a silly mistake 😃

anyway, thanks for ur time and help 🙂

-DP
