passenger

Not able to upload in a passenger app behing apache

徘徊边缘 提交于 2019-12-02 04:31:56
Am not able to upload a 8.4 MB file, in a passenger app behind apache. Transferring the same file via scp took 4.1 minutes. Error backtrace: [ pid=10222 file=ext/apache2/Hooks.cpp:727 time=2010-05-18 07:13:14.842 ]: Unexpected error in mod_passenger: An error occurred while receiving HTTP upload data: Connection reset by peer (104) Backtrace: in 'boost::shared_ptr Hooks::receiveRequestBody(request_rec*, const char*)' (Hooks.cpp: 1084) in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:459) NOTE:user had not cancelled or anything. He was on firefox :-) other errors seen in the logs are: [

Passenger install with conversion errors. Impact on nginx module?

穿精又带淫゛_ 提交于 2019-12-02 04:27:08
问题 Under OS X 10.6.8 installing passenger, first under rbenv, then after uninstalling rbenv, also under rvm Mini:~ user$ gem install passenger is generating conversion errors: unable to convert "\xE4" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGELOG, skipping unable to convert "\xC5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CONTRIBUTORS, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for debian

Nginx worker process cant access config.ru

£可爱£侵袭症+ 提交于 2019-12-02 04:26:26
I have set up my RoR app on DO Ubuntu x64. On Nginx port 8080 . My config: server { listen 8080; # server_name www.mydomain.com; passenger_enabled on; passenger_app_env development; root /home/edgars/Proj/public; } In Nginx log file error: Cannot stat '/home/edgars/Proj/config.ru; This error means that the Nginx worker process (PID 18065, running as UID 33) does not have permission to access this file. As my research from this question shows I need to ensure that Nginx user can access that path. sudo -u www-data cd /edgars got error : sudo: cd: command not found sudo gpasswd -a www-data edgars

VPS apache config - Invalid command 'PassengerDefaultRuby' after adding latest passenger gem

穿精又带淫゛_ 提交于 2019-12-02 03:52:05
used to have this list of rubies in my vps: ruby-1.9.2-p320 [ i686 ] =* ruby-1.9.3-p194 [ i686 ] ruby-1.9.3-p374 [ i686 ] ruby-1.9.3-p392 [ i686 ] today I installed a new app on this vps on ruby 2.0 , so I added 2.0 to rvm : ruby-1.9.2-p320 [ i686 ] ruby-1.9.3-p194 [ i686 ] ruby-1.9.3-p374 [ i686 ] ruby-1.9.3-p392 [ i686 ] =* ruby-2.0.0-p247 [ i686 ] installed passenger and passenger-apache-module , instructions says to add these lines: LoadModule passenger_module /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.19/buildout/apache2/mod_passenger.so PassengerRoot /usr/local/rvm/gems/ruby

rufus scheduler not running in production

一笑奈何 提交于 2019-12-02 03:01:08
I have a rails server running under nginx & passenger. My sheduler.rb looks like this require 'rufus-scheduler' my_awesome_job = Rufus::Scheduler.new my_awesome_job.cron '59 23 * * *' do #do something end Everything works fine if I set the job for the next 2-3 minutes (for test). But this one, as I need it in production, does not start at 23:59 every day. I don't know where is the problem. Thanks. Most likely, this problem is caused by the Rufus scheduler background thread being terminated after Phusion Passenger spawns a child process as part of the smart spawning method. Read Spawning

CentOS *** ERROR: Phusion Passenger doesn't seem to be running

拈花ヽ惹草 提交于 2019-12-01 22:14:20
问题 While i'm deploying my rails application through capistrano to my CentOS server all the time i have been receiving this error: *** ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be one of: You customized the instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument.

Rails JavaScript views not working in production

冷暖自知 提交于 2019-12-01 20:53:34
问题 I'm having an unexplainable issue with my Rails app. I'm using a lot of JavaScript in all parts of the app. In development everything is working just fine, but in production it seems that the code in my javascript views is not executed. This is particularly odd because all other JavaScript on the page works great. Custom tabs with JavaScript work. Even my custom made calendar works as expected. The only things that do not work are remote links which trigger views ending with .js.coffee. My

Rails JavaScript views not working in production

六眼飞鱼酱① 提交于 2019-12-01 19:07:32
I'm having an unexplainable issue with my Rails app. I'm using a lot of JavaScript in all parts of the app. In development everything is working just fine, but in production it seems that the code in my javascript views is not executed. This is particularly odd because all other JavaScript on the page works great. Custom tabs with JavaScript work. Even my custom made calendar works as expected. The only things that do not work are remote links which trigger views ending with .js.coffee. My webkit inspector returns this when clicking a remote link: http://cl.ly/Ihyf However, when looking at the

CentOS *** ERROR: Phusion Passenger doesn't seem to be running

南楼画角 提交于 2019-12-01 18:45:36
While i'm deploying my rails application through capistrano to my CentOS server all the time i have been receiving this error: *** ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be one of: You customized the instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument. If so, please set the environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory and run

Phusion Passenger Nginx module installer v3.0.17 issue on Debian 6.0.5 amd64 due to broken package

天涯浪子 提交于 2019-12-01 14:32:52
I tried default Passenger Nginx installation steps, but it couldn't succeed, I am newbie to linux and ruby on rails , so guys please help me if i am doing wrong or something is wrong, upto my knowledge some package is broken in debian 6.0.5 or passenger nginx module. I am using REE ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02 from http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise_1.8.7-2012.02_amd64_debian6.0.deb root@debian:~# passenger-install-nginx-module Welcome to the Phusion Passenger Nginx module