Questions tagged [passenger]

Passenger is an application server for Rack, Node.js, and WSGI applications that can be run standalone or as an Apache or Nginx module.

Phusion Passenger is an application server for Rack, Node.js, and WSGI applications that can be run standalone or as an Apache or Nginx module.

3603 questions
14
votes
1 answer

Phusion Passenger is throwing errors after upgrading Ruby and Rails using rvm

I recently upgraded my Rails setup to 3.1.3 and I'm having issues with Phusion Passenger loading an older app on this server. I got everything running on a testapp but I'm still having issues with this one app. When I run the Webrick server on port…
Zachary Abresch
  • 756
  • 3
  • 8
  • 20
14
votes
4 answers

Rails 3.1, nginx, Passenger directory index forbidden

I'm getting the following error in nginx (with a 403) when I visit .com: [error] 5384#0: *1 directory index of "/u/apps//current/public/" is forbidden I'm on Ubuntu 10.04 and I can't for the life of me get nginx, Passenger, Rails 3.1, and…
alexlod
  • 1,363
  • 2
  • 10
  • 18
14
votes
2 answers

How to start passenger in production environment?

I'm starting the Rails 3 application with the following command: passenger start -a 0.0.0.0 -p 3000 -d but how do I tell passenger to start the application in production environment?
Mr_Nizzle
  • 6,644
  • 12
  • 55
  • 85
14
votes
4 answers

Rails on Passenger not recognizing RVM

I have shifted to ree using rvm by: rvm use ree@mygemset and installed kaminari gem through Gemfile and bundle install. But Phusion passenger seems to still look for the gem in system default directory. It says: Error message: Could not find…
lkahtz
  • 4,706
  • 8
  • 46
  • 72
13
votes
2 answers

Rails app randomly crashes with error "Premature end of script headers"

I am hosting a Ruby on Rails 2.0.2 application on DreamHost. It is on an Apache 2 server, running on top of Phusion Passenger. The application often returns a 500 error "Rails application failed to start properly", but at random times. It appears…
Schrockwell
  • 838
  • 1
  • 8
  • 25
13
votes
1 answer

Rails 3, apache & passenger, send_file sends zero byte files

I'm struggling with send_file with rails 3.0.9 running ruby 1.9, passenger 3.0.8 on apache on ubuntu lucid The xsendfile module is installed and loaded into apache root~# a2enmod xsendfile Module xsendfile already enabled Its symlinked correctly in…
Rob
  • 7,039
  • 4
  • 44
  • 75
13
votes
1 answer

implementing websocket server by nodejs on shared cpanel host

I have acquired a shared host with a cpanel which supports nodejs. I can define a node.js app through "Setup Node.js App". I want to make a websocket. They have opened 2088 Port for me. This is my websocket server code: const http =…
saeid ezzati
  • 855
  • 11
  • 29
13
votes
2 answers

How can i forcefully redirect http request to https in passenger standalone with aws elastic load balancer?

I used passenger standalone for my app. currently my app is running on both http and https . i want to redirect all http request to https. I used load balancer in my application. I read this articles…
13
votes
1 answer

How to use Dockerfile in Gitlab CI

Using gitlab-ci for my node/react app, I'm trying to use phusion/passenger-nodejs as the base docker image I can specify this easily in .gitlab-ci.yml: image: phusion/passenger-nodejs:latest variables: HOME: /root cache: paths: -…
MattPark
  • 377
  • 1
  • 2
  • 13
13
votes
2 answers

Phusion Passenger is currently not serving any applications

I got error like Phusion Passenger is currently not serving any applications. while trying to restart passenger with passenger-config restart-app command. I googled but most of the answers were only related with deployment. I want to restart…
Raaz
  • 1,669
  • 2
  • 24
  • 48
13
votes
2 answers

Running migration on server when deploying with capistrano

I'm trying to deploy my rails application with capistrano, but I'm having some trouble running my migrations. In my development environment I just use sqlite as my database, but on my production server I use MySQL. The problem is that I want the…
Pandafox
  • 564
  • 1
  • 5
  • 18
13
votes
2 answers

nginx: [emerg] a duplicate default server

When I try restart nginx and write in console this command nginx -t I have an error: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default.save:20 nginx: configuration file /etc/nginx/nginx.conf test…
Croaton
  • 1,812
  • 3
  • 18
  • 28
13
votes
4 answers

cannot load such file -- bundler/setup (LoadError) || deploy on Ubuntu 12.04 x32

I try to deploy my rails app with Nginx, passenger on Ubuntu 12.04 x32. after all things is done, I visit my rails app, but it tell me 'We're sorry, but something went wrong.'. then I cat /var/log/nginx/error.log, I find this lines: Message from…
luotao
  • 395
  • 2
  • 3
  • 11
13
votes
5 answers

Gitlab in a subdirectory with apache and passenger

I'm attempting to set up gitlab so that it is accessible through a subdirectory of an existing apache server, example.com/gitlab, for example. I am trying to use passenger, as this seems to be the easiest to set up, but other solutions would also be…
josteinb
  • 1,892
  • 2
  • 18
  • 32
13
votes
2 answers

Passenger Error: The application spawner server exited unexpectedly: Unexpected end-of-file detected

This was working just the other day, but I just updated my code to the review server which runs Passenger 2.2.4 and my 2.3.4 rails app now can't boot on that box. Passenger reports: Passenger encountered the following error: The application spawner…
Trey Bean
  • 905
  • 3
  • 8
  • 19