Questions tagged [passenger-apache]

18 questions
7
votes
2 answers

Resolving this issue with Passenger

http://nodejs-resume.example.me/ When the site loads, /usr/local/dh/passenger/helper-scripts/node-loader.js:37 GLOBAL.PhusionPassenger = exports.PhusionPassenger = new EventEmitter(); ^ ReferenceError: GLOBAL is not defined at…
software is fun
  • 7,286
  • 18
  • 71
  • 129
1
vote
1 answer

Flask and passenger setup?

Looking for best practices advice on deploying a Flask app. My hosting provider has passenger available. I have a basic structure of: ~/home/me/dev.domain.com └── public └── cgi-bin └── ... The hosting company tells me that I need a…
7 Reeds
  • 2,419
  • 3
  • 32
  • 64
1
vote
1 answer

Rails - passenger RubyApps disappeared on a previously working Ubuntu/apache system

Passenger apps have stopped and will not restart. I am no longer able to restart my Rails apps via capistrano or passenger-config. The server was previously set up and working fine. I think the problem was introduced after an apt update and…
tgreiser
  • 393
  • 3
  • 13
1
vote
0 answers

AWS EC2 becomes unreachable (Rails, Phusion_Passenger)

My Rails app production is running on AWS EC2 instance, on Apache through Phusion Passenger. And I am facing different problems with it. Sometimes this instance becomes unreachable via ssh and my rails application cannot be accessed via browser.…
1
vote
0 answers

Apache/Passenger error: cannot load such file -- rails_extensions (LoadError)

I receive the following error when attempting to run a rails application with Apache, Passenger, and rbenv. I'm able to run it just fine with rails s -b 0.0.0.0 -p 3000 -e production, but when running under Passenger I get the following…
Tornado
  • 11
  • 1
1
vote
0 answers

Puppeteer can't start chromium when run by phussion passenger

I have a Node.js application which is generating dynamic PDFs using puppeteer, while executing in a normal Node context everything works fine, but when the app is executed by phussion passenger on my server chromium can't be started. Error: Failed…
0
votes
0 answers

Passenger isn't running but no errors in the logs

I am trying to get Passenger set up to work with Apache. Passenger starts, but then stops without reporting an error in the apache.log. Here's my config: # The ServerName directive sets the request scheme, hostname and port…
0
votes
0 answers

How to pass header X-Request-Start to Rails app under Apache + Passenger

I need to pass header X-Request-Start to my Rails application. I add the header to the request using following directive in Apache configuration file: ... RequestHeader add X-Request-Start "%t" CustomLog…
0
votes
1 answer

Premature end of script headers: users on Passenger Phusion with Devise

I have a very difficult to debug error after upgrading to Rails 7 from 6.1. It would appear the pages that are not controlled by devise authentication are behaving just fine. When the user is redirected or visits the auth page directly, this error…
Romuloux
  • 1,027
  • 1
  • 8
  • 24
0
votes
0 answers

Python Passanger error while deploying via cPanel

I created an app using Django, and using this instruction wanted to deploy it, but the following error shown when loading the page. Stdout and stderr output Error: enterLve() failed: Failed to enter namespace for user *** UID 1001 errno 22 cause…
0
votes
0 answers

Apache + Passenger Rails app failing with a 403 error

I currently have a rails app that works locally but at the moment of deploying the app i'm having an error configuring the server. I followed the steps here, and i'm stuck on step 6. Instead of seeing the rails webpage i got Inside…
Maxi
  • 79
  • 1
  • 6
0
votes
0 answers

Passenger processes stuck maxing CPU after hitting 100%

The Setup: * Ubuntu 18.04 LTS * Apache 2.4.29 * Passenger 6.0.16 * Ruby 2.3.8 * Rails 4.2.x I have both staging and prod servers with the same setup on AWS EC2; they are both running the same kernel/build. I upgraded the Ruby/Rails version of my…
risa_risa
  • 727
  • 1
  • 8
  • 20
0
votes
1 answer

Could not load dbcapi library in Rails 6.0.6 production mode

I'm working on a web project, which connects to a SQLAnywhere version 17 database. I'm using Ruby version 2.6.2 and Rails 6.0.6 to run the app. I've already set the SQLAnywhere environment variables, hosted in the following script: .…
Mandres
  • 63
  • 7
0
votes
0 answers

Passenger (+Apache) is not auto-detecting Rails application

We are setting up Rails applications on Ubuntu 22.04 and when I visit the application URL I get a listing of files from within the app's public directory. Does anyone have any thoughts as to why Phusion Passenger is not auto-detecting the Rails…
Chris
  • 380
  • 5
  • 10
0
votes
2 answers

How to set a custom Ruby version with cPanel and EasyApache 4

I'm on a shared server with cPanel, EasyApache4 and Phusion Passenger. My app was running fine with ruby 2.1.6 (in a shared directory) and rails 4.2.6. I had a .htaccess file: PassengerEnabled on PassengerLoadShellEnvVars On PassengerAppRoot…
dirktay
  • 55
  • 4
1
2