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++.
480
questions
0
votes
0
answers
125
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 ...
0
votes
1
answer
617
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
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
956
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 ...
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
763
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 ...
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
464
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 ...
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, ...
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. ...
0
votes
1
answer
454
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
283
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
1
answer
609
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
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/...
0
votes
1
answer
549
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
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 ...
0
votes
1
answer
176
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 ...
0
votes
1
answer
403
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
2
answers
7k
views
Passenger + Nginx on ubuntu 18.04
I am trying to setup new server, but nginx is unable to load directive "passenger_enabled".
May 03 11:35:28 xxxx nginx[11181]: nginx: [emerg] unknown directive "passenger_enabled" in /etc/nginx/sites-...
2
votes
1
answer
16k
views
How to properly use ENV variables in Nginx config?
I want to pass the RAILS_ENV env variable to nginx and use it to set the value for the rails_env directive.
I can read the value of the variable from the environment with LUA module:
location @app {
...
0
votes
1
answer
216
views
nginx/Passenger: Serving up a cached file only if a parameter is not in request
For a given URL pattern (/scripts/.*\.meta\.js), I would like to have the following behaviour:
If the URL contains a specific parameter (version), give the request to Passenger to handle.
If the URL ...
1
vote
0
answers
90
views
How can I debug Ruby Process that keeps climbing?
A few days ago all 4 of my app servers started having issues. It came after I deployed some code, but all I did was update a local database file that stores some IP Addresses, so I didn't make any ...
6
votes
1
answer
9k
views
Apache Passenger Resolve Symlinks stopped working | Invalid command
I have a Ubuntu Server (16.04.3 LTS) with Apache 2.4.18 and redmine installed, following this installation guide.
Therefor I edited the ssl.conf in my apache2/sites-available and added those lines:
&...
1
vote
0
answers
289
views
ELB Instance Internal IP disclosure
There is a vulnerability detected by Nessus that involves Internal IP Disclosure in the Elastic Beanstalk servers with Nginx and Phusion Passenger at the response headers, in the Location header.
I ...
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
686
views
passenger friendly error page log file location
I am trying to troubleshoot a rails application running on apache2 and passenger. I tried looking into the global log file at /var/log/apache2/error.log however I don't see anything useful. What I did ...
3
votes
1
answer
1k
views
Set environment variables from header for Ruby/Rails app hosted in Nginx/Passenger
I installed a server for Redmine, running with Nginx/Passenger. The server also hosts Gitlab and it goes well.
I put some kind of SSO plugin for Redmine (which I found and installed) and it needs an ...
3
votes
0
answers
218
views
Multiple ruby on rails web apps running on one directory in Apache without modifying/adding <Directory> all the time
What I am trying to do is to create multiple ruby apps in one Apache directory and when I go to http://localhost/appname the ruby app resolves without problems. However, I want to do this dynamically ...
1
vote
1
answer
707
views
Solved: rails app on nginx + passenger behind apache2 mod_proxy, ajax upload fails with error 500
The situation is as follows: I made a migration of a rails app from an Ubuntu server with nginx + passenger to a debian server with apache2 + passenger.
All was fine until we tested some ajax ...
0
votes
1
answer
2k
views
Select specific Ruby version in Phusion Passenger Docker image
I am trying to deploy a Rails application in the Phusion-Passenger Docker image:
https://github.com/phusion/passenger-docker
The Gemfile for the application specifies Ruby version 2.3.1, but the ...
0
votes
0
answers
158
views
When I upload my file using Rails app on Phusion Passenger, it gets permission 600
I have the Rails server setup using Apache and Phusion Passenger. As per their documentation, I have created a user specific to that app. This user has root access.
When a file is uploaded via the ...
1
vote
0
answers
74
views
/home, /tmp, /var on a separated partition and PassengerWatchdog and PassengerHelperAgent are running as root
I recently had a security audit on a Ubuntu 16.04 server and have 2 issues that I'm struggling to address. This is a server that can only be accessed through command-line/ssh and is hosted on AWS.
1) ...
1
vote
0
answers
190
views
Passenger has modified NODE_PATH which my app uses during startup
I'm implementing Passenger, on an Apache server (a Digital Ocean droplet, running Ubuntu 16.04), with a Node.js app. Webpack successfully builds the static .js file, and Node successfully runs the ...
2
votes
1
answer
749
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 ...
0
votes
0
answers
71
views
Reduce Rails Passenger Thread Counts
My host account is limited to 300 processes. As I turn on my rail app, it ate up 100 process immidiately. Does anyone know how to reduce "Passenger Core" and Passenger process count?
This is my nginx ...
1
vote
1
answer
422
views
Trouble with Passenger/Apache2 - Error 403
I need to upgrade my Redmine installation. I'm on a Mac OS X Server 10.6.8 (unfortunately, this is a given - can't update the system to a new version right now).
In the process, I had issues with ...
0
votes
0
answers
182
views
with nginx change url being sent to passenger
We are currently using passenger and nginx to deploy multiple rails apps to a server.
Right now we are in a situation where we have one app that has a public URL, but we are working to standardize ...
1
vote
0
answers
580
views
Phusion Passenger undefined symbol ap_log_error and duplicate Apache version
I try to install Phusion Passenger on my CentOS 6.
After follow installation instruction from https://www.phusionpassenger.com/library/install/apache/install/oss/el6/
The last step is to restart ...
0
votes
1
answer
170
views
Rails app works in ElasticBeanstalk but not in Docker Passenger container
I have a Rails app that works fine in ElasticBeanstalk. I am now trying to run in in the Docker Phusion Passenger Container.
My Dockerfile is pretty simple:
FROM phusion/passenger-ruby21:0.9.13
# ...
0
votes
2
answers
921
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 ...
2
votes
1
answer
2k
views
Why is my request queueing time so high?
I am running a Rails application server. My setup is:
Apache 2, using mod_ssl for both https and ssl client certificates
Phusion Passenger 5
Rails 4
Ruby 2.1
I use NewRelic to monitor the running ...
0
votes
1
answer
435
views
Running Ruby on Rails and PHP apps side-by-side under the same (Apache) web directory structure
My company have several apps running alongside on an Apache2 web server which resides on an Ubuntu server.
Our setup includes:
A portal website is set at Apache's document root "/"
Another ...
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 ...
0
votes
1
answer
479
views
Let's encrypt allows only one vhost per file on ubuntu/apache
Currently I am trying to set up let's encrypt on my Ubuntu 16.04 server.
I am using Apache 2.4.18 as my webserver and also passenger.
I am using the following command to generate my certs and to ...
0
votes
1
answer
101
views
After commenting out virtualnameHost on passenger_vhosts.conf my apache2 is only resolving to one domain
I have to hosts (domains) that i have added on the passenger_vhosts.conf.
I had namevirtualhost*:80 on my conf file and i was able to resolve for two domain, after updating my apache2 the ...