Paul Mylchreest
2006-Aug-02 21:18 UTC
[Rails] 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 Mylchreest 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:in `transaction'' /usr/local/lib/ruby/1.8/pstore.rb:328:in `transaction'' /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close'' /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:in `process_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:in `process_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:in `process_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:in `process_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:in `dispatch'' /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:in `process!'' /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:in `each_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:in `process!'' /home/myapp/www/current/public/dispatch.fcgi:24
Paul Mylchreest
2006-Aug-02 21:21 UTC
[Rails] Disc quota exceeded when attempting to write session
I forgot to mention that I''m running Lighttpd 1.4.11 On 2-Aug-06, at 17:18 , Paul Mylchreest wrote:> 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 Mylchreest > > 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:in `transaction'' > /usr/local/lib/ruby/1.8/pstore.rb:328:in `transaction'' > /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' > /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close'' > /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:in `process_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:in > `process_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:in `process_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:in > `process_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:in `dispatch'' > /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:in `process!'' > /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:in `each_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:in `process!'' > /home/myapp/www/current/public/dispatch.fcgi:24 > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Tom Davies
2006-Aug-02 21:28 UTC
[Rails] Disc quota exceeded when attempting to write session
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 Mylchreest <paul.mylchreest@mac.com> wrote:> I forgot to mention that I''m running Lighttpd 1.4.11 > > On 2-Aug-06, at 17:18 , Paul Mylchreest wrote: > > > 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 Mylchreest > > > > 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:in `transaction'' > > /usr/local/lib/ruby/1.8/pstore.rb:328:in `transaction'' > > /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' > > /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' > > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close'' > > /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:in `process_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:in > > `process_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:in `process_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:in > > `process_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:in `dispatch'' > > /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:in `process!'' > > /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:in `each_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:in `process!'' > > /home/myapp/www/current/public/dispatch.fcgi:24 > > > > > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tom Davies http://atomgiant.com http://gifthat.com
Philip Hallstrom
2006-Aug-02 21:31 UTC
[Rails] 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.You might not have quotas enabled, but does the ''www'' user that things are being run as have it enabled? -philip> > I would much appreciate anyone pointing me in the right direction. > TIA > > Paul Mylchreest > > 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:in `transaction'' > /usr/local/lib/ruby/1.8/pstore.rb:328:in `transaction'' > /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' > /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close'' > /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:in > `process_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:in > `process_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:in > `process_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:in > `process_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:in > `dispatch'' > /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:in > `process!'' > /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:in `each_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:in > `process!'' > /home/myapp/www/current/public/dispatch.fcgi:24 > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Paul Mylchreest
2006-Aug-02 21:41 UTC
[Rails] Disc quota exceeded when attempting to write session
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. On 2-Aug-06, at 17:36 , Philip Hallstrom wrote:>> 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. > > You might not have quotas enabled, but does the ''www'' user that > things are being run as have it enabled? > > -philip > > >> >> I would much appreciate anyone pointing me in the right direction. >> TIA >> >> Paul Mylchreest >> >> 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:in `transaction'' >> /usr/local/lib/ruby/1.8/pstore.rb:328:in `transaction'' >> /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' >> /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' >> /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close'' >> /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:in `process_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:in >> `process_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:in `process_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:in >> `process_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:in `dispatch'' >> /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:in `process!'' >> /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:in `each_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:in `process!'' >> /home/myapp/www/current/public/dispatch.fcgi:24 >> >> >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails