Hello!
I'm having trouble running my Python application due to an issue with Phusion Passenger.
Here's some context:
EasyApache 4 was recently updated, and my Python applications now have an issue:

The logs they generate are the following:
App 1409437 output: Warning: cannot open /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/envdump/user_info for writing
App 1409437 output: Warning: cannot open /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/envdump/envvars for writing
App 1409437 output: Warning: cannot open /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/envdump/user_info for writing
App 1409437 output: Warning: cannot open /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/envdump/envvars for writing
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/execute_through_os_shell: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_spawn_env_setupper_before_shell/state: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_spawn_env_setupper_before_shell/begin_time_monotonic: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_spawn_env_setupper_before_shell/end_time_monotonic: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_os_shell/state: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_os_shell/begin_time_monotonic: No such file or directory (errno=2)
App 1409437 output: SpawnEnvSetupperShell: line 1: /usr/libexec/passenger/PassengerAgent: No such file or directory
What I've tried:
After these commands I commented out the lines in the /etc/cagefs/cagefs.mp file but I still get the same logs and the same error in my Python application.
I don't know what it could be.
Does anyone have experience with this error?
I would greatly appreciate your help.
I'm having trouble running my Python application due to an issue with Phusion Passenger.
Here's some context:
EasyApache 4 was recently updated, and my Python applications now have an issue:

The logs they generate are the following:
App 1409437 output: Warning: cannot open /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/envdump/user_info for writing
App 1409437 output: Warning: cannot open /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/envdump/envvars for writing
App 1409437 output: Warning: cannot open /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/envdump/user_info for writing
App 1409437 output: Warning: cannot open /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/envdump/envvars for writing
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/execute_through_os_shell: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_spawn_env_setupper_before_shell/state: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_spawn_env_setupper_before_shell/begin_time_monotonic: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_spawn_env_setupper_before_shell/end_time_monotonic: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_os_shell/state: No such file or directory (errno=2)
App 1409437 output: Warning: Cannot create file /var/run/ea-passenger-runtime/passenger.spawn.XXXXQ49SQi/response/steps/subprocess_os_shell/begin_time_monotonic: No such file or directory (errno=2)
App 1409437 output: SpawnEnvSetupperShell: line 1: /usr/libexec/passenger/PassengerAgent: No such file or directory
What I've tried:
- Reinstalling mod_passenger
- Reinstalling my Python application:
After reinstalling my Python application, when I tried to run pip install run, I got the following error:
An error occured during installation of modules. The operation was performed, but check availability of application has failed. Web application responds, but its return code "500 Internal Server Error" or content type before operation "text/html; charset=UTF-8" doesn't equal to contet type after operation "text/html; charset=UTF-8". - root@sistemasvps.ugc.mx [~]# cagefsctl --force-update
Updating users ...
Updating statuses of users ... - root@sistemasvps.ugc.mx [~]# cagefsctl -M
Error: /etc/cagefs/cagefs.mp file contains incorrect path - /var/passenger is NOT a directory or does NOT exist
Error: /etc/cagefs/cagefs.mp file contains incorrect path - /var/run/imunify360_user is NOT a directory or does NOT exist
After these commands I commented out the lines in the /etc/cagefs/cagefs.mp file but I still get the same logs and the same error in my Python application.
I don't know what it could be.
Does anyone have experience with this error?
I would greatly appreciate your help.