passenger

Passenger keeps throwing connection error

孤街浪徒 提交于 2019-12-13 04:02:12
问题 When my website got high traffic, I saw drops periodically via Google Analytics and this kind of error in nginx error logs: App 17888 stderr: [ 2014-02-22 17:02:23.5307 19258/0x0000000609a820(Worker 1) utils.rb:68 ]: *** Exception Errno::ECONNRESET in Rack body object #each method (Connection reset by peer) (process 19258, thread 0x0000000609a820(Worker 1)): App 17888 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/unseekable_socket.rb:114:in `write' App 17888 stderr: from /usr

Invalid command 'PassengerAppRoot'

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:45:13
问题 I am getting the error Invalid command 'PassengerAppRoot', perhaps misspelled or defined by a module not included in the server configuration while setting up the passenger for Node js project on AWS server. sudo /usr/bin/passenger-config validate-install What would you like to validate? Use <space> to select. If the menu doesn't display correctly, press '!' ‣ ⬢ Passenger itself ⬡ Apache ------------------------------------------------------------------------- * Checking whether this

Deployment of MeteorJS and React app on Azure

安稳与你 提交于 2019-12-13 03:31:01
问题 I've just deployed my app on Azure Ubuntu server following this tutorial https://www.phusionpassenger.com/library/walkthroughs/deploy/meteor/aws/apache/oss/xenial/deploy_app.html Localhost: node v6.9.4, Meteor 1.6.0.1 Server: v6.12.2, Meteor 1.6.0.1 I've pushed absolutely the same files to heroku and it works. I've pushed a different project to Azure following the same steps and it also works. Therefore, there is something particular in this project that Azure does not like :( On my local

staging server with rbenv passenger and rails

风格不统一 提交于 2019-12-13 02:18:36
问题 I have a staging server and I'd like to make it run both ruby1.8.7/Rails2 and ruby1.9.3/Rails3 application. The server was successfully set up with nginix rbenv ruby 1.8.7 passenger and rails 2. Now I want to add the rails3 application along with ruby1.9.3 but I wonder if I really can do that as I had to tell nginix which particular passenger to use in its nginx.conf. This setting passenger_root /home/rails_user/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.24; passenger

Problems with Rails 4 app into Bluehost

↘锁芯ラ 提交于 2019-12-13 02:09:08
问题 I'm facing some problems launching my rails app hosted on bluehost. I think that the problem is the passenger version interacting with the rails 4 app but I'm not sure. When I launch my app I get this trace: Ruby (Rack) application could not be started These are the possible causes: There may be a syntax error in the application's code. Please check for such errors and fix them. A required library may not installed. Please install all libraries that this application requires. The application

Django 1.11 on passenger_wsgi not routing POST request

梦想与她 提交于 2019-12-13 00:33:44
问题 I'm trying to setup python on A2 shared hosting via passenger_wsgi. The app is working fine when I run it via 'runserver'. I tested this both in my local PC, and via SSH tunnel. However, when I try to set this up on passenger_wsgi, it can't seem to be able to route POST request. 1 import os 2 import sys 3 4 sys.path.insert(0, "/home/<username>/app") 5 6 import APP_CORE 7 8 # where is the python interpreter 9 INTERP = "/home/<username>/app/.virtualenv/bin/python" 10 if sys.executable != INTERP

Deploying a Rails app to a sub-URI with Passenger and Nginx?

若如初见. 提交于 2019-12-12 15:31:13
问题 I am already deployed my Rails app with Passenger and Nginx and it's working fine. Below is my servier configuration: server { listen 80; server_name localhost; location / { root /var/www/demo/public; passenger_enabled on; rails_env production; } Now I want to deploy a second app to a sub URI. Here the documentation is a little unclear. Could anyone please suggest me what will be the next configuration? Below is the configuration I am using for my second (Sinatra) application: location /log {

sudo: rvm: command not found - RVM MultiUser install on Ubuntu 12.04 server

一笑奈何 提交于 2019-12-12 13:33:54
问题 I'm setting up a server, it's an Ubuntu 12.04 first I installed RVM multi-user: me@ubuntu$ \curl -L https://get.rvm.io | sudo bash -s stable then after RVM installed, as the installation suggests I added myself to RVM group usermod -a -G me rvm installed ruby rvm insall 1.9.3 --default then I tried to install system wide gem passenger and I get this: me@ubuntu:~$ rvmsudo gem install passenger sudo: gem: command not found In fact any command run with rvmsudo just says sudo : {command}: not

after deploying rails app with apache and passenger, showing the page does not exist

て烟熏妆下的殇ゞ 提交于 2019-12-12 13:23:17
问题 i have deployed my rails app with apache2 and passenger. everything was going smoothly but after deploying it says the page you were looking for doesn't exist. my app name is opengrok my apache cofiguration is in /etc/apache2/sites-avaibleable/opengrok <VirtualHost *:80> ServerName localhost # !!! Be sure to point DocumentRoot to 'public'! DocumentRoot /var/www/opengrok/public <Directory /var/www/opengrok/public> # This relaxes Apache security settings. AllowOverride all # MultiViews must be

Cannot spawn application

社会主义新天地 提交于 2019-12-12 10:38:51
问题 I have rvm, passenger, ruby 1.9.3, nginx but I now get this error Cannot spawn application '/path/to/my/app': Could not read from the spawn server: Connection reset by peer (104) I have passenger_root set to the output of passenger-config --root and ruby-1.9.3-p125 for passenger_ruby I did have to do rvmsudo passenger-install-nginx-module because passenger kept trying to install with 1.8.7 support rather than 1.9.3 i've even set spawn mode to conservative. Is there anything I'm missing out?