2022 Developer Survey is open! Take survey.

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
0 votes
0 answers
44 views

Restart Nginx with Ruby on Rails

I made a website that does some complex processes with selenium. For this reason, I feel that the server is very slow after processing. Because when I restart Nginx, the slowness problem disappears. ...
user avatar
0 votes
1 answer
498 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 ...
user avatar
0 votes
1 answer
236 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 ...
user avatar
  • 101
0 votes
1 answer
453 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 ...
user avatar
0 votes
0 answers
60 views

Cannot access gitlab web UI after upgrading omnibus to 14.12

I have gitlab omnibus install on a linux debian server. Yesterday, the installation was upgraded to 14.12 (from 14.11) - and now I'm unable to access the web UI. On investigation, it seems that the ...
user avatar
  • 721
0 votes
0 answers
60 views

Is there a solution that does with Phusion Passenger does, but for multiple Docker websites?

Let's assume I have a server running multiple Dockerized websites - I realise that I can configure a reverse proxy (such as Nginx or Apache) to examine the headers of incoming HTTP requests, and send ...
user avatar
  • 253
1 vote
1 answer
545 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 ...
user avatar
  • 159
2 votes
1 answer
634 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 ...
user avatar
  • 175
1 vote
0 answers
22 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 ...
user avatar
  • 191
0 votes
1 answer
98 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 ...
user avatar
  • 191
2 votes
0 answers
222 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 ...
user avatar
0 votes
1 answer
236 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 ...
user avatar
0 votes
1 answer
463 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....
user avatar
  • 126
1 vote
0 answers
503 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, ...
user avatar
  • 111
0 votes
1 answer
976 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. ...
user avatar
0 votes
1 answer
167 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 ...
user avatar
0 votes
1 answer
121 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: ...
user avatar
  • 101
0 votes
1 answer
407 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 ...
user avatar
  • 101
0 votes
0 answers
361 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/...
user avatar
  • 145
0 votes
1 answer
415 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 ...
user avatar
  • 53
0 votes
1 answer
46 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 ...
user avatar
  • 103
0 votes
1 answer
120 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 ...
user avatar
  • 111
0 votes
1 answer
180 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 ...
user avatar
0 votes
2 answers
5k 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-...
user avatar
2 votes
1 answer
12k 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 { ...
user avatar
  • 5,127
0 votes
1 answer
141 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 ...
user avatar
  • 151
1 vote
0 answers
78 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 ...
user avatar
  • 111
4 votes
1 answer
7k 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: &...
user avatar
1 vote
0 answers
211 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 ...
user avatar
1 vote
2 answers
1k 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 ...
user avatar
0 votes
1 answer
544 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 ...
user avatar
3 votes
1 answer
761 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 ...
user avatar
3 votes
0 answers
148 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 ...
user avatar
1 vote
1 answer
494 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 ...
user avatar
  • 31
0 votes
1 answer
1k 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 ...
user avatar
0 votes
0 answers
128 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 ...
user avatar
1 vote
0 answers
70 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) ...
user avatar
  • 11
1 vote
0 answers
116 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 ...
user avatar
2 votes
1 answer
575 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 ...
user avatar
  • 21
0 votes
0 answers
53 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 ...
user avatar
  • 101
1 vote
1 answer
388 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 ...
user avatar
0 votes
0 answers
139 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 ...
user avatar
1 vote
0 answers
487 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 ...
user avatar
  • 111
0 votes
1 answer
145 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 # ...
user avatar
0 votes
2 answers
716 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 ...
user avatar
  • 3,434
2 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
373 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
456 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 ...
user avatar
0 votes
1 answer
90 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 ...
user avatar

1
2 3 4 5
10