Hi Folks, When I have tried this cookbook example from onLamp tutorial, I got some error like this, output of development.log is ---------- Permission denied - /var/www/html/cookbook/public/../config/../tmp/sessions//rub y_sess.d51d8997edf6be91 only the first line of output is this, output truncated. --------- what it will be ? How to solve this ? In my browser, I am getting Applicaiton error, from 500.html file. More over, when i have tried to call some testing file like public/test.fcgi I am getting the following error output from development.log ---------- Recognition failed for "/test.fcgi" /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1 /lib/action_controller/routin g.rb:488:in `recognition_failed'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1 /lib/action_controller/routin g.rb:478:in `recognize!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:in `proces s_request'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in `process !'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in `process !'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in `process !'' ---------- What should I do to solve this problem. Please help me in this regard. -- with regds, Nahalingam N. Kanakavel. (http://www.nahalingam.bravehost.com/PlanetN/) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060616/a1980666/attachment.html
On Fri, 2006-06-16 at 08:45 +0530, Nahalingam N. Kanakavel wrote:> Hi Folks, > > When I have tried this cookbook example from onLamp tutorial, > I got some error like this, > > output of development.log is > ---------- > Permission denied > - /var/www/html/cookbook/public/../config/../tmp/sessions//rub > y_sess.d51d8997edf6be91 > > only the first line of output is this, > output truncated. > --------- > > what it will be ? > How to solve this ? > > In my browser, I am getting Applicaiton error, from 500.html file. > > More over, when i have tried to call some testing file like > public/test.fcgi > I am getting the following error > > > output from development.log > ---------- > Recognition failed for "/test.fcgi" > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routin > g.rb:488:in `recognition_failed'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routin > g.rb:478:in `recognize!'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in > `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:in `proces > s_request'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in `process > !'' > /usr/local/lib/ruby/gems/1.8/gems/fcgi-MailScanner warning: numerical > links are often malicious:0.8.6.1/./fcgi.rb:600:in `each_cgi'' > /usr/local/lib/ruby/gems/1.8/gems/fcgi-MailScanner warning: numerical > links are often malicious:0.8.6.1/./fcgi.rb:597:in `each_cgi'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in `process > !'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in `process > !'' > ---------- > > What should I do to solve this problem. Please help me in this regard.---- you are getting permissions errors because whatever user you are running as doesn''t have write permissions to the directories to write temporary files such as session. also, what are you attempting to accomplish with test.fcgi? most people would start out not using apache but rather the built-in web server called webrick where you can get started quickly and not have to deal with all of the details of getting apache/fcgi going. Craig
Hi, Thanks for your reply. See, I am working as a super user only. Then, why this permission error is happening, I don''t know, also, addition to that, the directories called tmp and tmp/sessions/ are having 755 permission. Then, what could be the problem. What I am doing with this test.fcgi is that, i am trying to call that file, directly to avoid routing and all other stuffs, which is happening behind the request to the server. If there is a file, which is present in public/ directory, it should return that file, Isn''t it. But here, it throw an error, unrecognized, like that. What could be the problem. Please help me with some suggestions. ---- I accepted that, we have to go step by step, to reach the target. Even through I can walk so slow in this path, I can reach the goal so soon, instead of wasting the time to learn apache configuration seperately, after some time. Here i can learn both the things parallely. ---- On 6/16/06, Craig White <craigwhite@azapple.com> wrote:> > On Fri, 2006-06-16 at 08:45 +0530, Nahalingam N. Kanakavel wrote: > > Hi Folks, > > > > When I have tried this cookbook example from onLamp tutorial, > > I got some error like this, > > > > output of development.log is > > ---------- > > Permission denied > > - /var/www/html/cookbook/public/../config/../tmp/sessions//rub > > y_sess.d51d8997edf6be91 > > > > only the first line of output is this, > > output truncated. > > --------- > > > > what it will be ? > > How to solve this ? > > > > In my browser, I am getting Applicaiton error, from 500.html file. > > > > More over, when i have tried to call some testing file like > > public/test.fcgi > > I am getting the following error > > > > > > output from development.log > > ---------- > > Recognition failed for "/test.fcgi" > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1 > /lib/action_controller/routin > > g.rb:488:in `recognition_failed'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1 > /lib/action_controller/routin > > g.rb:478:in `recognize!'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in > > `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:in > `proces > > s_request'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in > `process > > !'' > > /usr/local/lib/ruby/gems/1.8/gems/fcgi-MailScanner warning: numerical > > links are often malicious:0.8.6.1/./fcgi.rb:600:in `each_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/fcgi-MailScanner warning: numerical > > links are often malicious:0.8.6.1/./fcgi.rb:597:in `each_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in > `process > > !'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in > `process > > !'' > > ---------- > > > > What should I do to solve this problem. Please help me in this regard. > ---- > you are getting permissions errors because whatever user you are running > as doesn''t have write permissions to the directories to write temporary > files such as session. > > also, what are you attempting to accomplish with test.fcgi? > > most people would start out not using apache but rather the built-in web > server called webrick where you can get started quickly and not have to > deal with all of the details of getting apache/fcgi going. > > Craig > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- with regds, Nahalingam N. Kanakavel. (http://www.nahalingam.bravehost.com/PlanetN/) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060616/178d5d32/attachment.html
Hi, I have an application up and running with several scaffold controllers that work fine. Today I added a new scaffold called press_articles. Now when I try to view this application I get the error in my browser: Application error (Rails) Looking in the log files there is nothing in the development.log file, in fastcgi.crash.log I get the following list each time i try to call the list method: [19/Jun/2006:23:54:57 :: 8406] starting [19/Jun/2006:23:59:51 :: 8406] asked to terminate immediately [19/Jun/2006:23:59:51 :: 8406] terminated by explicit exit All of the other controllers within the application work fine, I can''t see any difference with any of the other controllers. I can''t find the problem as there are no descriptive error messages I can look at. Thanks for any help. Jamie
Jamie, I think somehow you have this app running in production mode. You need to run it in development mode to get anything descriptive. The easiest way to do that is to run the app through Webrick on your local machine. That should dump a bunch of diagnostic info into your browser and into the dev log. HTH, Jeff On 6/19/06, Jamie D <jam5t3r.lists@gmail.com> wrote:> > Hi, > > I have an application up and running with several scaffold controllers > that work fine. Today I added a new scaffold called press_articles. > Now when I try to view this application I get the error in my browser: > > Application error (Rails) > > Looking in the log files there is nothing in the development.log file, > in fastcgi.crash.log I get the following list each time i try to call > the list method: > > [19/Jun/2006:23:54:57 :: 8406] starting > [19/Jun/2006:23:59:51 :: 8406] asked to terminate immediately > [19/Jun/2006:23:59:51 :: 8406] terminated by explicit exit > > All of the other controllers within the application work fine, I can''t > see any difference with any of the other controllers. I can''t find the > problem as there are no descriptive error messages I can look at. > > Thanks for any help. > Jamie > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060620/ae5775ed/attachment.html
Hi Jeff, You were right, I set it to run in production mode and totally forgot about it. Sorted it out now thanx. On 20/06/06, Jeff Everett <jaever@gmail.com> wrote:> Jamie, > > I think somehow you have this app running in production mode. You need to > run it in development mode to get anything descriptive. The easiest way to > do that is to run the app through Webrick on your local machine. That should > dump a bunch of diagnostic info into your browser and into the dev log. > > HTH, > Jeff > > > On 6/19/06, Jamie D <jam5t3r.lists@gmail.com> wrote: > > > Hi, > > I have an application up and running with several scaffold controllers > that work fine. Today I added a new scaffold called press_articles. > Now when I try to view this application I get the error in my browser: > > Application error (Rails) > > Looking in the log files there is nothing in the development.log file, > in fastcgi.crash.log I get the following list each time i try to call > the list method: > > [19/Jun/2006:23:54:57 :: 8406] starting > [19/Jun/2006:23:59:51 :: 8406] asked to terminate immediately > [19/Jun/2006:23:59:51 :: 8406] terminated by explicit exit > > All of the other controllers within the application work fine, I can''t > see any difference with any of the other controllers. I can''t find the > problem as there are no descriptive error messages I can look at. > > Thanks for any help. > Jamie > _______________________________________________ > 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 > > >