# Server stopping after awhile

**URL:** <https://www.ruby-forum.com/t/server-stopping-after-awhile/90386>\
**Category:** Rails\
**Created:** [March 28, 2007, 10:42am UTC](https://www.ruby-forum.com/t/server-stopping-after-awhile/90386 "2007-03-28T10:42:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [March 28, 2007, 10:42am UTC](https://www.ruby-forum.com/t/server-stopping-after-awhile/90386/1 "2007-03-28T10:42:55Z")

</div>

i am running a new site on mongrel, and i have made added:

ActiveRecord::Base.verification\_timeout = 14400

to the config, but it is still pooping out after some time…

the error i am getting is a little different than the normal timeout…  
it looks like:

Permission denied - /tmp/ruby\_sess.d7288b34ea60ebda  
/usr/local/lib/ruby/1.8/pstore.rb:289:in `initialize' /usr/local/lib/ruby/1.8/pstore.rb:289:in`transaction’  
/usr/local/lib/ruby/1.8/cgi/session/pstore.rb:71:in `initialize' /usr/local/lib/ruby/1.8/cgi/session.rb:273:in`initialize’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/cgi\_pr

and the error on the screen looks like:

tatus: 500 Internal Server Error Content-Type: text/html  
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

anyone have any ideas?

thanks!

---

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [March 30, 2007, 10:53am UTC](https://www.ruby-forum.com/t/server-stopping-after-awhile/90386/2 "2007-03-30T10:53:39Z")

</div>

On 3/28/07, Sergio R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i am running a new site on mongrel, and i have made added:  
> ActiveRecord::Base.verification\_timeout = 14400  
> to the config, but it is still pooping out after some time…

> the error i am getting is a little different than the normal timeout…  
> it looks like:
> 
> Permission denied - /tmp/ruby\_sess.d7288b34ea60ebda  
> /usr/local/lib/ruby/1.8/pstore.rb:289:in `initialize' /usr/local/lib/ruby/1.8/pstore.rb:289:in `transaction’  
> /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:71:in `initialize' /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize’  
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/cgi\_pr

See the Mongrel FAQ and search in the page for pstore, as shown in  
your errors above.

[http://mongrel.rubyforge.org/faq.html](http://mongrel.rubyforge.org/faq.html)

HTH,

J.

---

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [March 30, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/server-stopping-after-awhile/90386/3 "2007-03-30T14:33:34Z")

</div>

> See the Mongrel FAQ and search in the page for pstore, as shown in  
> your errors above.
> 
> [http://mongrel.rubyforge.org/faq.html](http://mongrel.rubyforge.org/faq.html)

found it!

thanks!

i ended up setting up the sessions in the database yesterday to fix this  
problem…

thanks!
