passenger

Error in starting Rails Passenger App

老子叫甜甜 提交于 2021-02-11 01:28:55
问题 I changed ruby version to 2.1.5 with RVM, configured 4 rails App with Apache, but I can't start them with Passenger. So I got this error everytime. App 8612 stderr: Cannot execute "/root/.rvm/gems/ruby-2.1.5/gems/passenger-5.0.8/buildout/support-binaries/PassengerAgent": Permission denied (errno=13) [ 2015-06-01 20:11:43.2847 8422/7f244835b700 App/Implementation.cpp:287 ]: Could not spawn process for application /var/www/example: An error occured while starting up the preloader. Error ID:

“stack level too deep” Rails 5 in “define_generate_prefix”

两盒软妹~` 提交于 2021-02-08 08:48:17
问题 I get random crashes (Rails will no longer run), log as follows: I, [2020-09-14T21:50:30.398707 #9732] INFO -- : [e8eb6ebb-46eb-4d0e-93e2-e5d4fe6a8512] Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.8ms) F, [2020-09-14T21:50:30.406874 #9732] FATAL -- : [e8eb6ebb-46eb-4d0e-93e2-e5d4fe6a8512] F, [2020-09-14T21:50:30.406988 #9732] FATAL -- : [e8eb6ebb-46eb-4d0e-93e2-e5d4fe6a8512] SystemStackError (stack level too deep): F, [2020-09-14T21:50:30.407014 #9732] FATAL -- : [e8eb6ebb

Rails - logging server errors to DB

我怕爱的太早我们不能终老 提交于 2021-02-07 10:19:09
问题 If I get 500 errors in my server logs, I would prefer to store them to the DB in a table like server_errors (id, user_id, created_at, build_version, error_code, error_output). My initial idea is to just run a script that constantly greps log/production.log for errors and stores them to the DB as they come in, but this seems like an ugly solution and gets unwieldy when you consider things like log rotation etc. This seems like a common enough feature that there should be a gem for it, or some

Rails - logging server errors to DB

女生的网名这么多〃 提交于 2021-02-07 10:18:16
问题 If I get 500 errors in my server logs, I would prefer to store them to the DB in a table like server_errors (id, user_id, created_at, build_version, error_code, error_output). My initial idea is to just run a script that constantly greps log/production.log for errors and stores them to the DB as they come in, but this seems like an ugly solution and gets unwieldy when you consider things like log rotation etc. This seems like a common enough feature that there should be a gem for it, or some

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

左心房为你撑大大i 提交于 2021-02-07 03:08:46
问题 How do I update the Ruby Version used by Passenger whenever I update Ruby and its Gemlist using RVM and Capistrano? What is the best way to check if my app is using the right ruby version and gemset? I have a Rails app running on a Linode server (Ubuntu), with NGinx and Passenger. Before it was running without any problem. Previously my app was running Ruby on Rails 3.2.16 with the Ruby 1.9.3-p194 I use RVM to manage ruby versions both locally and on the server. After I installed Ruby-2.1.2

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

时光怂恿深爱的人放手 提交于 2021-02-07 03:06:06
问题 How do I update the Ruby Version used by Passenger whenever I update Ruby and its Gemlist using RVM and Capistrano? What is the best way to check if my app is using the right ruby version and gemset? I have a Rails app running on a Linode server (Ubuntu), with NGinx and Passenger. Before it was running without any problem. Previously my app was running Ruby on Rails 3.2.16 with the Ruby 1.9.3-p194 I use RVM to manage ruby versions both locally and on the server. After I installed Ruby-2.1.2

Redirect subfolder request to Passenger

前提是你 提交于 2021-01-28 10:51:01
问题 I want to redirect all requests like mysite.com/subfolder/... to Django application over Passenger and all other requests to the website running under some php cms. File structure: .htaccess subfolder/ .htaccess some cms files Content of root .htaccess : RewriteEngine on ... RewriteConds and RewriteRules generated by php cms Content of subfolder/.htaccess : PassengerAppRoot "/home/username/djangoapplication" PassengerPython "/home/username/virtualenv/webapp/2.7/bin/python2.7" The problem is

Passenger Core Shutdown With No Known Cause

♀尐吖头ヾ 提交于 2021-01-27 20:31:49
问题 I have an instance of Passenger (Apache/Linux) that shutdown in a way I have never observed before and I can't find anything similar online. I'm including the log entries immediately before and after the event below. Basically the Passenger Core shut down without any error or even evidence of a SIGTERM. I'm unable to replicate this behavior and that worries me as I can't ensure it won't happen again if I can't reproduce it or determine the cause. I have seen many reports of "Signal received.

Installing Gems with Bundler == Big problem

泄露秘密 提交于 2021-01-27 03:39:26
问题 If I run bundle install , everything passes. I reboot nginx, and when I visit the site I see the passenger error with this : git://github.com/spree/spree.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) My gemfile : source 'http://rubygems.org' gem 'rails', '3.0.3' gem 'spree', :git => 'git://github.com/spree/spree.git' gem 'haml' gem 'ruby-debug' gem 'sqlite3', :require => 'sqlite3' gem 'ckeditor', '3.4.2.pre' gem "aged_revolt", :require => "aged_revolt",

Installing Gems with Bundler == Big problem

六眼飞鱼酱① 提交于 2021-01-27 03:37:47
问题 If I run bundle install , everything passes. I reboot nginx, and when I visit the site I see the passenger error with this : git://github.com/spree/spree.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) My gemfile : source 'http://rubygems.org' gem 'rails', '3.0.3' gem 'spree', :git => 'git://github.com/spree/spree.git' gem 'haml' gem 'ruby-debug' gem 'sqlite3', :require => 'sqlite3' gem 'ckeditor', '3.4.2.pre' gem "aged_revolt", :require => "aged_revolt",