Disc quota exceeded when attempting to write session

Hi All,

When trying to write sessions file, I’m getting disc quota errors.
Looking into the sessions folder, I see:

-rw------- 1 www www 188 Aug 2 21:03 ruby_sess.d39a2c77b4750b72
-rw-r–r-- 1 www www 0 Aug 2 21:03 ruby_sess.d39a2c77b4750b72.tmp

I’m guessing the the tmp should not be there, as it does not show on
my dev setup.

I’m using rails (1.1.1) on FreeBSD, without quotas enabled (I checked
with Verio tech support) and ample disk space.

I would much appreciate anyone pointing me in the right direction.
TIA

Paul M.

Here is my log extract:

Errno::EDQUOT (Disc quota exceeded - /home/myapp/www/current/
public/…/config/…/tmp/sessions//ruby_sess.844b49d7e51abfab.tmp):
/usr/local/lib/ruby/1.8/pstore.rb:330:in write' /usr/local/lib/ruby/1.8/pstore.rb:330:intransaction’
/usr/local/lib/ruby/1.8/pstore.rb:328:in transaction' /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:90:inupdate’
/usr/local/lib/ruby/1.8/cgi/session/pstore.rb:97:in close' /usr/local/lib/ruby/1.8/cgi/session.rb:330:inclose’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/
action_controller/base.rb:984:in close_session' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/ action_controller/base.rb:1026:inprocess_cleanup_without_flash’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/
action_controller/flash.rb:147:in process_cleanup_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/ action_controller/filters.rb:439:inprocess_cleanup_without_session_management_support’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/
action_controller/session_management.rb:126:in
process_cleanup_without_components' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/ action_controller/components.rb:182:inprocess_cleanup’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/
action_controller/base.rb:385:in process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/ action_controller/filters.rb:377:inprocess_without_session_management_support’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/
action_controller/session_management.rb:117:in process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/dispatcher.rb: 38:indispatch’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/
fcgi_handler.rb:150:in process_request' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/ fcgi_handler.rb:54:inprocess!’
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:600:in each_cgi' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:ineach_cgi’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/
fcgi_handler.rb:53:in process!' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/ fcgi_handler.rb:23:inprocess!’
/home/myapp/www/current/public/dispatch.fcgi:24

I forgot to mention that I’m running Lighttpd 1.4.11

This is not an answer to your problem, but have you considered
switching to using the database as your session store?

Instructions are here:
http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore

It should perform better and it may just cause your problem to go away.

Tom

On 8/2/06, Paul M. [email protected] wrote:

-rw-r–r-- 1 www www 0 Aug 2 21:03

/usr/local/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/

action_controller/session_management.rb:117:in `process’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Tom D.

http://atomgiant.com
http://gifthat.com

You are right, I was not checking the correct user:

Quotas for user www:
/: kbytes in use: 25599, limits (soft = 25600, hard = 25600)
inodes in use: 294, limits (soft = 0, hard = 0)

Thanks a lot Tom and Philip. I’ll consider switching to a postgres
session store when time permits.

I’m using rails (1.1.1) on FreeBSD, without quotas enabled (I checked with
Verio tech support) and ample disk space.

You might not have quotas enabled, but does the ‘www’ user that things
are
being run as have it enabled?

-philip

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs