Comments (12)
it sounds like the gems might have been installed with root accidentally, can you check the owner of the files under /home/user3/.rbenv/
? Another possibility is the SELinux policy not being correctly applied, which you can investigate using tools described here: https://serverfault.com/questions/521078/how-can-i-query-for-all-selinux-rules-default-file-contexts-etc-affecting-a-type
from passenger.
[Wed Aug 30 18:42:22 user3@server_f ~] gem info sinatra
*** LOCAL GEMS ***
sinatra (3.1.0, 3.0.6)
Authors: Blake Mizerany, Ryan Tomayko, Simon Rozet, Konstantin Haase
Homepage: http://sinatrarb.com/
License: MIT
Installed at (3.1.0): /home/user3/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0
(3.0.6): /home/user3/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0
Classy web-development dressed in a DSL
All those gems are rich:rich
(user3). Here is another try:
App 35378 output: /bin/sh: line 1: /home/user3/.rbenv/shims/ruby: Permission denied
App 35378 output: /bin/sh: line 1: exec: /home/user3/.rbenv/shims/ruby: cannot execute: Permission denied
[ E 2023-08-30 18:49:36.9253 35017/T15 age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /srv/www/example: The application process exited prematurely.
Error ID: f56fe7e8
Error details saved to: /tmp/passenger-error-30izCL.html
[ E 2023-08-30 18:49:36.9280 35017/T8 age/Cor/Con/CheckoutSession.cpp:281 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is f56fe7e8. Please see earlier logs for details about the error.
App 35445 output: /bin/sh: line 1: /home/user3/.rbenv/shims/ruby: Permission denied
App 35445 output: /bin/sh: line 1: exec: /home/user3/.rbenv/shims/ruby: cannot execute: Permission denied
[ E 2023-08-30 18:49:37.1952 35017/T1c age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /srv/www/example: The application process exited prematurely.
Error ID: 059b42a4
Error details saved to: /tmp/passenger-error-nsziVx.html
[ E 2023-08-30 18:49:37.1984 35017/Ta age/Cor/Con/CheckoutSession.cpp:281 ]: [Client 2-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 059b42a4. Please see earlier logs for details about the error.
$ [Wed Aug 30 18:49:39 rich@fuf /srv/www] cat /tmp/passenger-error-nsziVx.html
cat: /tmp/passenger-error-nsziVx.html: No such file or directory
As for SELinux
, it's disabled.
from passenger.
I guess I should add that this app is owned by user4:user4
and user3
is a member of that group.
from passenger.
So you as user3
can run /home/user3/.rbenv/shims/ruby
manually?
from passenger.
Yes. That's how I've always set these up. I've changed user4
for nginx
log access, etc.
from passenger.
Then I guess the next step is to provide a Dockerfile that reproduces the issue for me to look at.
from passenger.
Well, I'm going to start again. I haven't done any Dockerfiles nor will it guarantee any replication. I'm going to move the www
directory back to its default and start there.
from passenger.
My admin user is the one that creates the Gemfile and installs gems. Should I be using another user?
from passenger.
It is most likely to work if the user that runs the application installs the gems.
from passenger.
If I change the ownership of that www
directory, do you think that would work? Isn't Passenger
running the app?
from passenger.
By default Passenger creates a new process running as the user who owns the startup file for the app, and then has that process start the app as that user.
from passenger.
OK thanks for that. I'm going to play around. Permissions over the years has had me look for alternative directories for www
.
from passenger.
Related Issues (20)
- Uninitialized constant Rackup::Handler::Rack (NameError) [Rack 3] HOT 4
- Error loading libssl.so.1.1 when starting Phusion Passenger Standalone HOT 1
- Bad Signing Key for Debian Bullseye HOT 3
- Restarting doesn't remove deleted environment variables in rbenv-vars HOT 1
- Hooks not being registered HOT 4
- String conversion while handling native Ruby support lib LoadErrors can cause errors HOT 1
- Feature request: Ability to configure path to error renderer template
- Deprecation warning with ActiveRecord 7.1.2
- passenger-install-nginx-module is running after installation as a dynamic module HOT 8
- Security update without published advisory HOT 2
- Memory leak HOT 3
- Crash when starting Ruby 3.3.0 Rails 7 application HOT 3
- Disable secure headers option for GLS HOT 1
- HTTP3/QUIC breaks passenger Python apps ( Nginx + HTTP3 + Passenger ) HOT 2
- Cannot build passenger nginx dynamic module HOT 2
- Out of memory leads to passenger shutdown and ensuing 502 error on nginx HOT 3
- Out of memory leads to passenger shutdown and ensuing 502 error on nginx HOT 1
- Cannot upgrade to 1.24.0-1: unmet dependencies HOT 2
- Cannot find nginx module on Amazon Linux 2023 HOT 1
- Cannot install passenger-6.0.20-1.el9.x86_64.rpm on CentOS 9 Stream with Ruby 3.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passenger.