• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue After upgrade to Onyx Phusion Passenger not working

Andrii

New Pleskian
Before update at plesk 12.5 Passenger was serving python application without any problems. I have 3 VPS and after upgrade to Onyx any of them are not serving python applications.
OS: CentOS 7.3
Plesk Onyx Version 17.0.17 Update #12
Steps to reproduce - just update to Plesk Onyx from Plesk 12.5
Important information - modules are installed and loaded, configurations are correct. Placing passenger_wsgi.py at top domain directory not initializing app startup. Also any other ways like adding directives to apache or ngnix are not helping
PassengerAppType python
PassengerStartupFile passenger_wsgi.py
or passenger_enabled on;
Reinstalliation of ngnix or passenger not helping, manual updates or downgrades too.
It just not loading app and ignoring /var/www/vhosts/domain.com/passenger_wsgi.py
As I wrote same configuration at Plesk 12.5 was working great.

nginx version: nginx/1.11.4
built with OpenSSL 1.0.2j 26 Sep 2016
TLS SNI support enabled
configure arguments: --prefix=/usr/share --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --modules-path=/usr/share/nginx/modules --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --user=nginx --group=nginx --with-ipv6 --with-file-aio --with-http_v2_module --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_dav_module --with-http_gzip_static_module --with-http_stub_status_module --with-openssl=/home/builder/buildbot/nginx-1.11.4-bcos7x64/build/nginx/work/openssl-1.0.2j --with-openssl-opt='enable-tlsext zlib no-idea no-mdc2 no-rc5 no-ssl2 no-shared -fpic' --add-dynamic-module=/usr/share/passenger/ngx_http_passenger_module

passenger-memory-stats
Version: 5.1.1
Date : 2017-01-16 09:12:31 +0000

---------- Apache processes -----------
PID PPID VMSize Private Name
---------------------------------------
13318 29908 422.7 MB 1.1 MB /usr/sbin/httpd -DFOREGROUND
29908 1 417.3 MB 0.1 MB /usr/sbin/httpd -DFOREGROUND
29910 29908 417.2 MB 0.0 MB /usr/sbin/httpd -DFOREGROUND
29912 29908 1137.2 MB 10.0 MB /usr/sbin/httpd -DFOREGROUND
29913 29908 1073.2 MB 11.1 MB /usr/sbin/httpd -DFOREGROUND
29914 29908 422.8 MB 1.1 MB /usr/sbin/httpd -DFOREGROUND
29915 29908 422.8 MB 1.1 MB /usr/sbin/httpd -DFOREGROUND
29916 29908 422.5 MB 1.0 MB /usr/sbin/httpd -DFOREGROUND
29917 29908 422.6 MB 1.0 MB /usr/sbin/httpd -DFOREGROUND
29918 29908 422.6 MB 1.1 MB /usr/sbin/httpd -DFOREGROUND
30095 29908 422.8 MB 1.2 MB /usr/sbin/httpd -DFOREGROUND
30114 29908 422.8 MB 1.1 MB /usr/sbin/httpd -DFOREGROUND
31855 29908 422.8 MB 1.1 MB /usr/sbin/httpd -DFOREGROUND
32693 29908 422.9 MB 1.0 MB /usr/sbin/httpd -DFOREGROUND
### Processes: 14
### Total private dirty RSS: 32.15 MB


---------- Nginx processes ----------
PID PPID VMSize Private Name
-------------------------------------
28750 1 23.6 MB 0.0 MB nginx: master process /usr/sbin/nginx
30072 28750 25.8 MB 2.2 MB nginx: worker process
### Processes: 2
### Total private dirty RSS: 2.21 MB


--- Passenger processes ---

### Processes: 0
### Total private dirty RSS: 0.00 MB
 
Try to find more details on the reason why it does not work in the global Apache log file (/var/log/httpd or /var/log/apache2). Passenger is logging its events to the global Apache error_log.
 
That was first thing I've checked.
here is logs - it looks like everything is fine and loaded but apps are not running

[ 2017-01-20 10:10:14.8186 28100/7f3765b80880 age/Wat/WatchdogMain.cpp:1281 ]: Starting Passenger watchdog...
[ 2017-01-20 10:10:14.8269 28103/7f406ab64880 age/Cor/CoreMain.cpp:1070 ]: Starting Passenger core...
[ 2017-01-20 10:10:14.8270 28103/7f406ab64880 age/Cor/CoreMain.cpp:245 ]: Passenger core running in multi-application mode.
[ 2017-01-20 10:10:14.8290 28103/7f406ab64880 age/Cor/CoreMain.cpp:820 ]: Passenger core online, PID 28103
[ 2017-01-20 10:10:14.8359 28111/7fcce4ee3880 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2017-01-20 10:10:14.8366 28111/7fcce4ee3880 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 28111
[Fri Jan 20 10:10:14.871016 2017] [mpm_prefork:notice] [pid 28067] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips Phusion_Passenger/5.1.1 PHP/5.4.16 mod_fcgid/2.3.9 mod_wsgi/4.4.22 Python/3.4.3 configured -- resuming normal operations
 
I cannot solve this issue, because I do not understand/have no information on the startup procedure, e.g. whether it is a website script, a command line script or whatever the whole thing is about. However my first guess is that the file might not be in the correct path. Is /var/www/vhosts/domain.com/passenger_wsgi.py the right place for the .py file to go? Unfortunately I have not yet heard about an "auto-start" of .py files located in a subscription directory. If this is about a website project, would a configuration file not need to go into the website directory instead? So many questions ... think I'll need to learn more about Python.
 
I cannot solve this issue, because I do not understand/have no information on the startup procedure, e.g. whether it is a website script, a command line script or whatever the whole thing is about. However my first guess is that the file might not be in the correct path. Is /var/www/vhosts/domain.com/passenger_wsgi.py the right place for the .py file to go? Unfortunately I have not yet heard about an "auto-start" of .py files located in a subscription directory. If this is about a website project, would a configuration file not need to go into the website directory instead? So many questions ... think I'll need to learn more about Python.
It seems like not much people here tried to use Passenger for python/django apps. BUT as I mentioned - applications was working fine without any issues before plesk update. So all path are correct(domain.com used for example). https://www.phusionpassenger.com/library/walkthroughs/start/python.html it locates passenger_wsgi.py and running app . In plesk 12.5 it was working and running application but in plesk onyx something is not working and I cannot findout what (all possible logs was examined - even turned on maximum log level). Maybe some security changes was made in plesk onyx?
 
I wrote support ticket and will write solution in case support will help to solve that issue. Thanks for your help.
 
I wrote support ticket and will write solution in case support will help to solve that issue. Thanks for your help.
any response here?
have the same problem. trying to install python on
Plesk Obsidian
Version 18.0.52
with Rocky Linux 8.8 (Green Obsidian)
Have to run Django and Python.

I am using this manual: https://support.plesk.com/hc/en-us/...-How-to-install-Django-applications-in-Plesk-

Problem is that in Tools & Settings -> Apache Web Server -> There is no passenger module ( RHEL = mod_passenger).
 
Back
Top