In a last attempt to solve this rails issue, i keep hitting this error in whatever i do on the server. It seems to be a locking issue. The server was working like a charm before ... server specs are: debian (almost virgin) + ruby on rails 0.13 + lighttpd + fastcgi. After searching google, I can''t find anything helpful that relates to the errors I am getting. I can''t find any reports from others about Ruby (or filelocking) problems either. All obvious thinks like restarting server etc. is done without result :-( Any indication on what may be causing this is greatly appreciated. Thank you, Tiele <snip from production.log> Processing InscriptionController#new (for 84.194.118.193 at Sat Jul 09 16:24:16 UTC 2005) Parameters: {"action"=>"new", "controller"=>"inscription"} Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/action_controller /templates/scaffolds/layout.rhtml (200 OK) Completed in 40.27437 (0 reqs/sec) | Rendering: 2.17903 (5%) | DB: 3.97764 (9%) [mail.jerke.be/inscription/new] Processing Base#new (for 84.194.118.193 at Sat Jul 09 16:24:57 UTC 2005) Parameters: {"action"=>"new", "controller"=>"inscription"} Errno::ENOLCK (No locks available - /tmp/ruby_sess.f3af57c120a3fa42): /usr/lib/ruby/1.8/pstore.rb:103:in `flock'' /usr/lib/ruby/1.8/pstore.rb:103:in `transaction'' /usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' /usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' /usr/lib/ruby/1.8/cgi/session.rb:330:in `close'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/action_controller/ base.rb:803:in `close_session'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/action_controller/ base.rb:349:in `process'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/dispatcher.rb:32:in `dispatch'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:144:in `process_request'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:64:in `process!'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:55:in `each_cgi'' /usr/local/lib/site_ruby/1.8/fcgi.rb:597:in `each'' /usr/local/lib/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:55:in `process!'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:21:in `process!'' /home/tieledefr/testrails/public/dispatch.fcgi:24 </snip>
Hi, Try clearing out all the ruby_sess* files in /tmp : rm -f /tmp/ruby_sess* Ben On 7/13/05, tiele <mijnhotmeelbox-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > In a last attempt to solve this rails issue, i keep hitting this error in > whatever i do on the server. It seems to be a locking issue. The server was > working like a charm before ... > > server specs are: debian (almost virgin) + ruby on rails 0.13 + lighttpd + > fastcgi. > > After searching google, I can''t find anything helpful that relates to the errors > I am getting. I can''t find any reports from others about Ruby (or filelocking) > problems either. > > All obvious thinks like restarting server etc. is done without result :-( > > Any indication on what may be causing this is greatly appreciated. > Thank you, > Tiele > > > <snip from production.log> > Processing InscriptionController#new (for 84.194.118.193 at > Sat Jul 09 16:24:16 UTC 2005) > > Parameters: {"action"=>"new", "controller"=>"inscription"} > > Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/action_controller > /templates/scaffolds/layout.rhtml (200 OK) > Completed in 40.27437 (0 reqs/sec) | Rendering: 2.17903 (5%) | DB: 3.97764 (9%) > [mail.jerke.be/inscription/new] > > > Processing Base#new (for 84.194.118.193 at Sat Jul 09 16:24:57 UTC 2005) > Parameters: {"action"=>"new", "controller"=>"inscription"} > > > Errno::ENOLCK (No locks available - /tmp/ruby_sess.f3af57c120a3fa42): > /usr/lib/ruby/1.8/pstore.rb:103:in `flock'' > /usr/lib/ruby/1.8/pstore.rb:103:in `transaction'' > /usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' > /usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' > /usr/lib/ruby/1.8/cgi/session.rb:330:in `close'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/action_controller/ > base.rb:803:in > > `close_session'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/action_controller/ > base.rb:349:in `process'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/dispatcher.rb:32:in `dispatch'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:144:in > `process_request'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:64:in > `process!'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:55:in > `each_cgi'' > /usr/local/lib/site_ruby/1.8/fcgi.rb:597:in `each'' > /usr/local/lib/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:55:in > `process!'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/fcgi_handler.rb:21:in > `process!'' > /home/tieledefr/testrails/public/dispatch.fcgi:24 > > </snip> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > lists.rubyonrails.org/mailman/listinfo/rails >
Ben Myles <ben.myles@...> writes:> > Hi, > > Try clearing out all the ruby_sess* files in /tmp : > > rm -f /tmp/ruby_sess* > > Ben > >Thank you for your suggestion, but I tried this already. No change though.
What kind of filesystem is your /tmp stored on ? jean On 7/13/05, tiele <mijnhotmeelbox-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > Ben Myles <ben.myles@...> writes: > > > > > Hi, > > > > Try clearing out all the ruby_sess* files in /tmp : > > > > rm -f /tmp/ruby_sess* > > > > Ben > > > > > > Thank you for your suggestion, but I tried this already. > > No change though. > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > lists.rubyonrails.org/mailman/listinfo/rails >
Jean Helou <jean.helou@...> writes:> > What kind of filesystem is your /tmp stored on ? > > jeanthat will be: ext3 thx, Tiele
next on my checklist would be unix perms for the user that runs lighttpd on the tmp dir .. I have known debian or debian like installers that would create a root write only /tmp directory for example ... have you checked these ? jean On 7/13/05, tiele <mijnhotmeelbox-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> Jean Helou <jean.helou@...> writes: > > > > > What kind of filesystem is your /tmp stored on ? > > > > jean > > that will be: ext3 > > thx, > Tiele > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > lists.rubyonrails.org/mailman/listinfo/rails >