instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.7k stars 2.51k forks source link

*** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not found #1408

Open celloip opened 5 years ago

celloip commented 5 years ago

Summary:

[Thu Jan 24 07:51:12.486927 2019] [mpm_event:notice] [pid 27101:tid 140229987772288] AH00491: caught SIGTERM, shutting down [Thu Jan 24 07:51:13.596170 2019] [passenger:error] [pid 27237:tid 140110372005760] Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not found (tried: /usr/buildout/support-binaries/PassengerAgent and /root/.passenger/support-binaries/5.0.27/PassengerAgent). There may be different causes for this:\n\n - Your 'PassengerRoot' setting is set to the wrong value. Please see https://www.phusionpassenger.com/library/config/apache/reference/#passengerroot to learn how to fix the value.\n - The PassengerAgent binary is not compiled. Please run this command to compile it: /usr/bin/passenger-config compile-agent\n - Your Passenger installation is broken or incomplete. Please reinstall Passenger. [Thu Jan 24 07:51:13.601846 2019] [so:warn] [pid 27237:tid 140110372005760] AH01574: module passenger_module is already loaded, skipping [Thu Jan 24 07:51:13.601894 2019] [so:warn] [pid 27237:tid 140110372005760] AH01574: module ssl_module is already loaded, skipping [Thu Jan 24 07:51:13.606727 2019] [passenger:error] [pid 27238:tid 140110372005760] Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not found (tried: /usr/buildout/support-binaries/PassengerAgent and /root/.passenger/support-binaries/5.0.27/PassengerAgent). There may be different causes for this:\n\n - Your 'PassengerRoot' setting is set to the wrong value. Please see https://www.phusionpassenger.com/library/config/apache/reference/#passengerroot to learn how to fix the value.\n - The PassengerAgent binary is not compiled. Please run this command to compile it: /usr/bin/passenger-config compile-agent\n - Your Passenger installation is broken or incomplete. Please reinstall Passenger. [Thu Jan 24 07:51:13.608731 2019] [mpm_event:notice] [pid 27238:tid 140110372005760] AH00489: Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.0.27 OpenSSL/1.0.2g configured -- resuming normal operations [Thu Jan 24 07:51:13.608826 2019] [core:notice] [pid 27238:tid 140110372005760] AH00094: Command line: '/usr/sbin/apache2'

Steps to reproduce:

  1. Restart Apache2

Expected behavior:

It should run and start the LMS.

Actual behavior:

Giving an error of *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not found .

Additional notes:

I have build canvas-lms as per production guideline. https://github.com/instructure/canvas-lms/wiki/Production-Start

I am getting above mentioned issue and also /etc/init.d/canvas_init restart not working. It is giving below error.

What could be the possible solution?

XinyuJiang commented 4 years ago

Similar problem. Have you solve it yet?