Questions tagged [phusion-passenger]

Phusion Passenger (originally called mod_rails or mod_rack) is a Rails application server designed for easy deployment and low maintenance hosting of Rack apps, including Rails, Sinatra, Camping, and other ruby-based web development micro-frameworks. Passenger supports both Apache and NGinx webservers and is written in C++.

Filter by
Sorted by
Tagged with
2 votes
1 answer
4k views

Rails program is not being run on apache + passenger - only directory listing

I have successfully installed Phusion passenger + Apache 2 + Rails 3.1 program + git on a linux Debian 6. I ran passenger-install-apache2-module and followed the configuration instructions. I followed ...
0 votes
0 answers
127 views

out of memory leads to passenger shutdown and ensuing 502 error on nginx

The following snippet from the nginx error logs 2023/04/21 06:48:21 [info] 120787#120787: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63 2023/04/21 06:48:23 [notice] 120791#...
0 votes
0 answers
62 views

Deploying multiple versions of the same app to distinct users on same server: passenger config

Context: Creating multiple users on a single server, each of which will have its copy of an application and own database. To be server by nginx configuration /etc/nginx/conf.d/mod-http-passenger.conf ...
4 votes
1 answer
2k views

Nginx + Passenger : stop file uploads timing out after 30 seconds

I have a ruby app which runs under passenger and nginx. If i try to upload a largish file (eg 15+ meg), when it gets to 30s in, the upload restarts (according to chrome) and at the end of the next 30 ...
2 votes
1 answer
2k views

keep double slashes when working with passenger

I've urls on my site that have nested urls encoded by encodeURI function. www.site.com/http%3A%2F%2Fwww.site.com%2F My site is running using nginx 0.8.53 The problem is that when nginx gets such url ...
0 votes
1 answer
2k views

Host multiple Rack apps on one server with multiple ports (using Apache and Passenger)

I've search online and been reading documentation for Apache, Passenger, Rack, etc, but have yet to find a solution to my problem. I have several Rack (ruby)-based apps, located in /home/web/sites/...
2 votes
1 answer
4k views

Passenger could not spawn process for application. Rails, ubuntu, passenger and apache

My application is crashing again and again. I am using the hosting services of digital ocean the status of the server are also displayed in the image (It start working when I restart the server but ...
2 votes
1 answer
2k views

Nginx gives 404 error for rails app except the root

I have an Ubuntu 12.04 LTS VPS server that serves a static website with Nginx. I would like to set up a rails application that is accesible from the subfolder 'foo'. I use Passenger for serving the ...
2 votes
1 answer
3k views

No data received - Passenger, (52) Empty reply from server

I had setup Elastic Beanstalk for my rails application last month (Passenger). All was good.. but all of a sudden, my servers are not responding well. My application access gives 'No data received - ...
0 votes
2 answers
2k views

Apache Passenger displaying my Rails application contents?

I have installed mod_rails (phusion passenger) for Apache on Ubuntu 11.10. Ruby and Rails are running fine, and so does mod_rails. I have setup a site on dev.localhost, which is my ruby app. The app ...
5 votes
2 answers
2k views

How to setup Proxy Cache with Nginx and Passenger

I use Nginx and Passenger for my rails application. I want to use proxy cache to cache my pages. However, every request go direct to my rails application. I don't know what wrong with my configuration....
0 votes
1 answer
2k views

Rails 3 passenger nginx application spawner server error on Synology NAS

Question updated, please read UPD2. I'm trying to deploy app through passenger nginx module on DS710+ (ruby 1.9.2p0 installed). There is syntax error relative to has_and_belongs_to_many_association....
7 votes
3 answers
5k views

Proper Passenger + Apache Permissions to fix error "No such file or directory - config/environment.rb"

I am having a problem with Passenger not being able to start due to an apparently common issue in which Passenger claims: No such file or directory - config/environment.rb. I have searched the web ...
0 votes
1 answer
626 views

migrate, upgrade (redmine, passenger, os, ruby) from (4.1.1, 5.3, 18.04, 2.6.6) to (5.0.1, 6.0.14, 20.04, 3.0.4)

I need to upgrade a number of things: os (ubuntu) 18.04 => 20.04 ruby: 2.6.6 => 3.0.4 passenger: 5.3 => 6.0.14 redmine: 4.1.1 => 5.0.1 The one thing I can keep constant, ...
0 votes
2 answers
2k views

nginx permission issue serving static file - RedHat 7 SELinux issue

This is a new installation which I followed the passenger+nginx guide. This will eventually be a rails site, but for now I am trying to get static files to serve, and am unable to figure out the ...
0 votes
2 answers
3k views

500 error with deploying rails application via apache2+passenger

I finally completed my own app, so the only work left is deploying the app. I'm using Ubuntu 10.04 and apache2(installed by apt-get), so I'm trying to deploy through passenger. I installed passenger ...
1 vote
1 answer
2k views

Deploying multiple apps on a single server with Phusion Passenger

I am currently running a simple Meteor.js application on a server using Phusion Passenger + Nginx. What I would like to do is to configure it so that I have one main app on www.example.com and ...
0 votes
1 answer
404 views

Nginx Phusion Passenger Ruby: Don't send app log to nginx log

I'm running Nginx and Passenger to host a Ruby on Rails app. By default, the app logs quite a bit, and it goes to the dedicated app log. However, with Passenger and Nginx, all of the app's log are ...
0 votes
1 answer
2k views

Passenger Apache - Forbidden You don't have permission to access this resource

I'm stuck with Apache with Passenger configuration. I spent a few days looking for a solution. I follow this instructions. I'm getting this message in the browser: Forbidden You don't have permission ...
0 votes
1 answer
964 views

Trying to run passenger-status on a working rails apache-passenger server

I have an apache/passenger server that run rails apps, and this error is displayed when I try to run passenger-status : passenger-status ERROR: Phusion Passenger(R) doesn't seem to be running. If you ...
0 votes
1 answer
2k views

Passenger not running (Ruby on Rails + Nginx)

My AWS instance was working fine with my app. But, today, the server was down without memory ram. Then I run: sync; echo 1 > /proc/sys/vm/drop_caches sudo service nginx start After that, ram ...
0 votes
2 answers
925 views

Unable to update Phusion Passenger on Ubuntu 14.04: gnutls_handshake() failed:

I installed Phusion Passenger on Ubunut 14.04 a number of months back using the HOWTO here: https://www.phusionpassenger.com/library/install/apache/install/oss/trusty/ Recently, while updating system ...
0 votes
1 answer
3k views

ubuntu 18.04, passenger ERROR: Phusion Passenger doesn't seem to be running

We just installed a new box with Ubuntu 18.04 with passenger and everything run fines, the site is up, but when we do passenger-status we get ERROR: Phusion Passenger doesn't seem to be running. ...
2 votes
1 answer
1k views

Rails application proxy'ed by Apache not serving CSS, Javascript and Images

We deployed a Rails application on a backend server, served via Passenger. This application is served at port 9000, and is configured to use sub_uri. Originally the URL is http://ip.address:9000/, and ...
2 votes
3 answers
786 views

Phusion Passenger + Apache: LoadError -- No such file or directory

I run Apache2 with Phusion Passenger (installed from gem) with Ruby 1.8 on Debian 6. It gives me the following LoadError: libMagickCore.so.4: cannot open shared object file: No such file or directory ...
1 vote
0 answers
2k views

Getting 403 Forbidden w. Referer on Nginx+Passenger

We're using Nginx 1.6.2 + Passenger 5.0.6 and have a vhost defined with PHP-FPM which serves a MODx installation. Only one location /sinatraapp serves a Sinatra App using Ruby 2.1.1. The setup is ...
1 vote
1 answer
1k views

How to install nginx 1.18 with passenger 6 on AWS ubuntu 18.04

I'm trying to upgrade nginx from 1.14 to 1.18. Currently we use the passenger 6.0.5 with nginx 1.14. What I'm doing is starting new Ubuntu 18.04 instances. For some reason, the lastest nginx version ...
2 votes
1 answer
764 views

deny rule is not filtering entirely

The following block location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ { return 404; } is not processing en/blog/wp-includes/wlwmanifest.xml appropriately. The intent ...
1 vote
0 answers
26 views

Shouldn't UFW configured Iptables deny access before the request reaches our Unbutu 16.04 hosted Nginx server?

We are using ufw to configure iptables. We have numerous rules denying access from ip addresses that use bots. Here is one example: sudo ufw deny from 0.1.0.0/0.1.255.255 These bots are attempting to ...
0 votes
1 answer
127 views

Get rid of content ripping bots in a Rails 4 app served by Nginx using Passenger on Ubuntu 16.04

Our rails app is being inundated with requests from bots that are trolling using IP addresses. Every request results in an exception notification error message. Our original Nginx server block: server ...
0 votes
1 answer
465 views

Apache to serve multiple ruby on rails applications from the same domain

I want to serve multiple different ruby on rails applications using Apache and Passenger via a single domain. The applications all should use the same certificate and I want to deliver the apps using ...
2 votes
0 answers
454 views

passenger-memory-stats works, but passenger-status does not (Passenger + Apache)

I have an application running on Passenger+Apache. (It's running fine.) When I run passenger-status, though, it gives ERROR: Phusion Passenger doesn't seem to be running. I've checked the Apache ...
0 votes
1 answer
1k views

How do you set PassengerFriendlyErrorPages in .htaccess? [closed]

I have a working server setup with Apache running with Phusion Passenger. Because the friendly error page turned off by default (good for production apps), it's hard to spot the error when it's happen....
1 vote
0 answers
1k views

Error when starting redmine on Ubuntu

I've a Ubuntu server with redmine installed. I don't know the details because another guy installed everything and he doesn't work with us anymore. We performed a reboot of the server for maintenance, ...
4 votes
1 answer
2k views

Cannot install passenger with Nginx

I have a rack application that I want to migrate from Ruby 1.8.7 + Apache + passenger to Ruby 1.9.1 + Nginx + passenger. I have made up the following script for a quick install all in one, and it ...
1 vote
1 answer
2k views

Centos+Apache+Phusion+REE=FAIL

I have been trying to get Phusion Passenger running on 5.6 for the last couple of days with no luck. Initially, I started with Ruby 1.9.2 under RVM since the default Ruby on RHEL-based distros is ...
0 votes
1 answer
1k views

Django returns 502 error when user apps are added

I've configured a Debian 6 server with nginx, Passenger, and MySQL to run Django, and was running through the Django tutorial with everything going swimmingly until I tried to turn on the admin ...
0 votes
1 answer
612 views

403 Forbidden with apache and passenger

I am getting sporadic 403 responses from a server running Passenger within Apache. The problem starts on seemingly random occasions, and ends randomly as well. From the log, it seems that Apache is ...
0 votes
1 answer
458 views

any way to run passenger-status --show=requests without being root?

Periodically in production we get these ruby processes that hang up. I just discovered passenger-status --show=requests Which gives me exactly what I want. I want to write some code to build out ...
0 votes
1 answer
284 views

Nginx + Passenger suburi location

Phusion Passenger has a sample configuration for deploying a Ruby app under a suburi here: https://www.phusionpassenger.com/library/deploy/nginx/deploy/ruby/ The config so you don't have to click: ...
0 votes
0 answers
421 views

how install libnginx-mod-http-passenger on xenial 16.04 : has no installation candidate

What I tried to install my nginx + passenger for rails app : (works fine for debian stretch on my other server) sudo nano /etc/apt/sources.list.d/nginx.list => deb http://nginx.org/packages/...
2 votes
1 answer
751 views

NGINX redirect HTTPS partially works

I try to reddirect all my traffic on https. I use AWS, passenger + NGINX . So far with my smartphone ( android ) , chrome last version : http://server_name.com redirect to https... at home on my ...
6 votes
2 answers
2k views

Elastic Beanstalk Rails - Modify passenger config passenger_max_pool_size

I need to increase the passenger_max_pool_size for my Rails application running on passenger. I have used Elastic beanstalk for deployment. Any idea, how to go about this? Is there an optionsetting or ...
2 votes
4 answers
3k views

Customer Passenger Error Pages

How do you replace the Passenger Application failed to load error messages. They are lovely, but I'd rather not display them when we move our application to production. It'd be better to just show ...
0 votes
1 answer
552 views

Nginx + Passenger: Cache 404 urls

Context I have a Rails app with a nginx server and Passenger. The app is dynamically generating pages based from the request url: if the url exists in the database the app renders the corresponding ...
0 votes
0 answers
3k views

NginX configuration to prevent "Slow HTTP Denial of Service"

I'm trying to configure NginX (in combination with Passenger and Rails) to prevent "Slow HTTP Denial of Service". What I'm trying to do to prevent it, is limiting the amount of requests per ...
0 votes
1 answer
2k views

How to start passenger nginx, error : Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)

Application is broken in production mode and getting below error while restarting passenger and nginx. [ agents/LoggingAgent/Main.cpp:338 ]: Signal received. Gracefully shutting down... (send signal ...
0 votes
1 answer
48 views

Limiting number of server methods in NGINX config file

I am trying to force a redirect for all non-www and non-https request to the https://www.example.com version of the site. It is a new site so there's no SEO implications of the redirects. I am trying ...
1 vote
2 answers
2k views

nginx passenger - restart app periodically or when it reaches too high memory

I have a memory leak on one of my apps being served with nginx + passenger and a min/max_instances 2 setting. Memory keeps growing up as time passes by, and this can be a problem on a machine with ...
0 votes
1 answer
177 views

Passenger 6 failing to launch - Cannot connect to TCP socket

I'm trying to use the new Generic Language Support in Passenger 6. On development, I can spawn my demo Go app as follows: passenger start --app-start-command 'env PORT=$PORT ./main' Everything ...

1
2 3 4 5
10