Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phussian Passenger 6.0.11 integrated with Nginx 1.20.1 not autodetecting ruby apps #113

Open
ManuGeorge96 opened this issue Oct 8, 2021 · 0 comments

Comments

@ManuGeorge96
Copy link

Installed passenger as a gem and integrated with Nginx,

Issue,

passenger-config restart-app
currently not serving any applications

bundle exec passenger-config restart-app
currently not serving any applicatipns

passenger-memory-stats
Version: 6.0.1
Date : 2021-10-08 13:02:56 +0100
------------- Apache processes -------------
*** WARNING: The Apache executable cannot be found.
Please set the APXS2 environment variable to your 'apxs2' executable's filename, or set the HTTPD environment variable to your 'httpd' or 'apache2' executable's filename.

---------- Nginx processes -----------
PID PPID VMSize Private Name

23108 1 61.4 MB 3.2 MB nginx: master process /usr/sbin/nginx
49015 23108 61.4 MB 3.2 MB nginx: worker process
49016 23108 61.4 MB 3.2 MB nginx: worker process
49017 23108 61.4 MB 3.2 MB nginx: worker process
49020 23108 61.4 MB 3.2 MB nginx: worker process
49021 23108 61.4 MB 3.3 MB nginx: worker process
49022 23108 61.4 MB 3.2 MB nginx: worker process
49023 23108 61.4 MB 3.3 MB nginx: worker process
49024 23108 61.4 MB 3.3 MB nginx: worker process

Processes: 9

Total private dirty RSS: 11.01 MB

------ Passenger processes ------
PID VMSize Private Name

48985 358.3 MB 5.2 MB Passenger watchdog
48988 4288.1 MB 20.7 MB Passenger core

Processes: 2

Total private dirty RSS: 22.33 MB

Here are my files,

passenger-config --root
/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-6.0.11

cat /etc/nginx/conf.d/passenger.conf
passenger_root /usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /usr/local/rvm/wrappers/default/ruby;
passenger_instance_registry_dir /var/run/passenger-instreg;

cat /usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini
[locations]
packaging_method=rpm
bin_dir=/usr/bin
support_binaries_dir=/usr/lib64/passenger/support-binaries
lib_dir=/usr/lib64/passenger
helper_scripts_dir=/usr/share/passenger/helper-scripts
resources_dir=/usr/share/passenger
include_dir=/usr/share/passenger/include
doc_dir=/usr/share/doc/passenger
ruby_libdir=/usr/share/ruby/vendor_ruby
node_libdir=/usr/share/passenger/node
apache2_module_path=/usr/lib64/httpd/modules/mod_passenger.so
ruby_extension_source_dir=/usr/share/passenger/ruby_extension_source
nginx_module_source_dir=/usr/share/passenger/ngx_http_passenger_module

cat /etc/nginx/nginx.conf
server {
listen 8080;

    server_name  ruby-test.com;
    root '/home/test/production-v2/current/public';
    #add_header Cache-Control "no-store"; 
    passenger_enabled on;
    passenger_app_root '/home/test/production-v2/current';
    passenger_app_env production;
    passenger_spawn_method smart;
    passenger_min_instances 24;
    passenger_friendly_error_pages off;

    location ~ "/api/v1/.*" {
            passenger_enabled on;
            passenger_app_root '/home/test/production/current';
            passenger_app_env production;
            passenger_spawn_method smart;
    }

}

Any idea why the passenger is not auto-detecting the ruby app from the app_root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant