Questions tagged [passenger-nginx]

31 questions
0
votes
0 answers

403 Forbidden error with Ruby on Rails app, Nginx and Passenger

I have a server where I run a Decidim application built in Ruby on Rails. I aim to use Nginx and Passenger to deploy it, but I'm receiving a 403 Forbidden error. The nginx.conf content is below: worker_processes 1; events { worker_connections …
0
votes
1 answer

"We're sorry, but something went wrong" in Rails app related to file upload. How do I debug?

I have a Rails 5 app that contains a lot of basic scaffold-like code. A bunch of models with associated controllers and views for basic CRUD operations. It runs under passenger and with nginx as a front end. I have this app running on a production…
Kotodharma
  • 51
  • 6
0
votes
0 answers

Passenger 6 requests secret_key_base for production, even though is already defined

Currently trying to deploy rails 7 app, using Passenger 6, Rbenv and Rails 7. Passenger is requesting Missing secret_key_base for 'production' environment, set this string with bin/rails credentials:edit (ArgumentError) And is already defined on…
Haguilar91
  • 111
  • 3
0
votes
0 answers

CPU context switch between rails before_action and action code

While looking at traces of slow response time (3.1s) of a generally fast API(50ms average, 200ms at 99%ile), I found this weird behaviour where there is no execution for almost 2.9s after the before_action callback. Any idea why this would be…
0
votes
1 answer

Phusion Passenger opens random ports

I'm experiencing same problem as described here Strange public listening ports in Passenger. Phusion Passenger is randomly opening ports and I have no idea how to further investigate it. Passenger Version : 6.0.14 ruby-2.4.1 nginx version:…
0
votes
1 answer

Nginx two server blocks listen on 80 and 81 not working

Inside /etc/nginx/sites-available I have these two three files: default server { listen 80 default_server; listen [::]:80 ipv6only=on default_server; root /var/www/html; index index.html index.htm index.nginx-debian.html; …
Hemant Patil
  • 331
  • 2
  • 18
0
votes
1 answer

passenger-config not set ruby version from rvm default

I have upgraded ruby version from 2.3.1 to 3.0.2 and also done related changes. On server, after deployment, nginx server cant start and giving error for old version. I have checked ruby version with login user in ubuntu and rvm list , new 3.0.2…
0
votes
1 answer

Rails + Passenger + Nginx: "404 Not Found" for second app

I'm trying to deploy a second app to Digital Ocean. I successfully deployed the first app with this tutorial: https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/digital_ocean/integration_mode.html I added a second app to the same…
Metaphysiker
  • 983
  • 2
  • 18
  • 35
0
votes
1 answer

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 memory consumption is ok, but the app not. I'm running a…
Diego Somar
  • 941
  • 1
  • 11
  • 28
0
votes
0 answers

no password provided rails 6 with RAILS_ENV=production

i try to put my rails api into digital oceans server with nginx and passenger, so far i got it working but when i try to send a request with postman to my server i have a 500 internal error after checking log/production.log, the 500 internal error…
bwanlin
  • 1
  • 1
0
votes
0 answers

Passenger Full Queue

Whenever we get large traffic spikes on our Rails 4 app, it seems passenger can't handle the load and starts showing the dreaded This website is under heavy load (queue full) error page. I'm trying to optimize things as much as i can on the app…
Julien
  • 2,217
  • 2
  • 28
  • 49
0
votes
1 answer

Rails6 : Multiple applications with NGINX passenger not serving POST requests from sub-URIs

I want to run two Rails6 applications on the same server at two sub-URIs using NGINX and Passenger. The root is a static index.html. The index page loads correctly from the root. So do the root views of the Rails applications when the sub-URIs are…
user1575148
  • 561
  • 6
  • 28
0
votes
0 answers

Rails / Passenger / Nginx: "Missing encryption key to decrypt file with"

I have a Rails 6 app served by Passenger/Nginx. I just rebooted a (working) server and now get the error: Missing encryption key to decrypt file with. Ask your team for your master key and write it to…
TomDogg
  • 3,803
  • 5
  • 33
  • 60
0
votes
1 answer

Failed to upgrade to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: , HTTP_UPGRADE: )

I've a Rails Application with nginx & passenger and i've followed the instructions here but keep getting Failed to upgrade to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: , HTTP_UPGRADE: ) I've added the block below as docs suggest location…
Ahmed Ali
  • 2,574
  • 2
  • 23
  • 38
0
votes
1 answer

Passenger stalls with helper process on application start

The following error is being returned after a system restart (there was a lack of memory issue) before the restart. The Phusion Passenger application server tried to start the web application by communicating with a helper process that we call a…
Jerome
  • 5,583
  • 3
  • 33
  • 76