passenger

Web application could not be started Passenger Error (Apache2) - Referencing Non-Existing Ruby Patch

孤人 提交于 2019-12-23 04:43:38
问题 I have been having problems after updating from p247 to the latest patch for Ruby 2.0.0 (P353) using the latest version of RVM. Here is the link to my original question where I was experiencing a missing RVN environment file for the old patch which was no longer in my system. RVM was corrected and that problem disappeared. ERROR: Missing RVM environment file After Doing rvm upgrade command - Passenger 4.0.23 I went ahead and installed the latest version of Passenger 4.0.29 using the gem file

Getting Rails 3 and Passenger to work on CentOS 5.4 - Apache Error

别等时光非礼了梦想. 提交于 2019-12-23 02:33:18
问题 Using Ruby 1.8.7 on CentOS 5.4. Trying to get Rails 3 app up on Passenger. I have gone through all the steps but get this error in my Apache log file Passenger ERROR (ext/common/ApplicationPool/../SpawnManager.h:220): Could not start the spawn server: /usr/lib/ruby/: Permission denied (13) [ pid=18207 thr=3086812880 file=ext/apache2/HelperAgent.cpp:354 time=2011-02-09 09:27:18.541 ]: Could not start the spawn server: write() failed: Broken pipe (32) in 'Passenger::SpawnManager::SpawnManager

SELinux permission denied to Phusion Passenger for redmine

*爱你&永不变心* 提交于 2019-12-23 02:01:53
问题 I am trying to install Redmine on CentOS 6.3 but I continue to get this error in the log file Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog (/usr/lib/ruby/gems/1.8/gems/passenger-4.0.20/buildout /agents/PassengerWatchdog): Permission denied (errno=13) I have been looking online and cannot find this error anywhere or any way to fix it. I have tried changing permissions to the folder to 777 and apache:apache but neither work. The only

RVM + Nginx + Passenger in Chef

老子叫甜甜 提交于 2019-12-23 01:34:53
问题 I'm trying to setup Nginx with Passenger on RVM in Chef using community cookbook for nginx and fnichol's for RVM. Everything on ubuntu. Now, my problem is that if I bootstrap the machine using knife ec2 and try to install everything in one go, it fails. For the most part it works well, picking up RVM and Passenger nicely, until the point when it realizes Passenger is not compiled, tries to do it using rake from default ruby 1.9.1 and fails. If I then connect to the machine and run sudo chef

Rufus scheduler not logging in production

天大地大妈咪最大 提交于 2019-12-22 11:24:43
问题 My rails app kicks off a process with rufus-scheduler in an initializer. Here's a stripped-down version of the initializer's code: # config.logger isn't available here, so we have to grab it from the Rails object logger = RAILS_DEFAULT_LOGGER logger.warn(Time.now.to_s + ": Starting Rufus Scheduler") # run every Wednesday at 10 AM cron_string = '0 10 * * 3' scheduler = Rufus::Scheduler.start_new scheduler.cron cron_string do logger.warn(Time.now.to_s + ": Starting Background Process") (do work

Mongrel::DirHandler equivalent for Passenger

一个人想着一个人 提交于 2019-12-22 10:33:34
问题 I'm using Mongrel::DirHandler to control response headers for static files - this works great on my dev machine. My production machine uses Passenger so my headers aren't getting set. How do I control headers for static files when using Passenger? snippet from my environment.rb: if defined? Mongrel::DirHandler module Mongrel class DirHandler def send_file_with_expires(req_path, request, response, header_only=false) if req_path =~ /((\/images)|javascripts|stylesheets)/ response.header['Cache

SQLite3:CantOpenException (unable to open database file)

扶醉桌前 提交于 2019-12-22 08:16:03
问题 I have FreeBSD setup with Apache 2 and passenger. To test things out I created a test app using the standard Rails new test_app. When I try to access the site through Apache I get the error listed in the title above in the production.log, if I run the Rails server from the test_app directory it works fine. I only have one controller and view in the app right now just a home controller and index view, I am not even accessing a database. 回答1: In apache, it's running in production mode vs.

How do I create a resque worker automatically at bootup?

谁说我不能喝 提交于 2019-12-22 08:09:00
问题 Ok, I'm making my first ruby app. Who know moving everything over to 'production' is so fugging complicated. So far I've struggled my way through configuring passenger, getting it to run on startup, then getting redis to run on startup. My last task is on startup to add 1 worker. Right now, I have to ssh in and run my rake command rake workers:start . Obviously this is no good when I want to close ssh.. so I just dont really know how or what the next step is. I tried copying resque default

Could not find i18n-0.6.0 in any of the sources

天涯浪子 提交于 2019-12-22 05:01:23
问题 I just upgraded from Rails 3.0.3 to 3.2.1. The upgrade went smoothly on my Mac but I'm having trouble getting a 3.2.1 instance of my app running on my Ubuntu production server. The error I'm getting is this: Could not find i18n-0.6.0 in any of the sources (Bundler::GemNotFound) Obviously, other people have had this same problem before. Unfortunately, the solution here doesn't fix it for me. Doing sudo bundle install doesn't seem to make a difference. I also found this post but I don't

Nginx with Let's encrypt “Welcome to Nginx” instead of rails app

时间秒杀一切 提交于 2019-12-22 04:39:11
问题 I have recently deployed my Ruby on Rails application to a plain Ubuntu 16.04 DigitalOcean droplet with Nginx, passenger & Let's encrypt. The rails app worked fine with just passenger and Nginx but after I installed Let's Encrypt, it points to the "Welcome to Nginx" page instead of my rails app. I am able to make changes to see the "Welcome to Nginx!" page and see the results in the browser. When I change the root location in my sites-enabled configs to my application path instead of /html I