Error starting canvas and apache

713 views
Skip to first unread message

Benjamin Chatham

unread,
Oct 10, 2016, 10:11:04 AM10/10/16
to Canvas LMS Users
Dear Canvas Developers,

I am attempting to deploy a canvas single server instance, utilizing the following instructions: https://github.com/instructure/canvas-lms/wiki/Production-Start . Although I followed each step carefully, it appears that I missed something given the below error after attempting to start canvas (sudo /etc/init.d/canvas_init start) and apache (sudo /etc/init.d/apache2 restart). Has anyone encountered the below issue and has a fix? Thank you in advance for your assistance in this matter. 

Error details:

We're sorry, but something went wrong.

 

We've been notified about this issue and we'll take a look at it shortly.

 

Information for the administrator of this website

The Phusion Passenger application server encountered an error while starting your web application. Because you are running this web application in staging or production mode, the details of the error have been omitted from this web page for security reasons.

 

Please read the Passenger log file to find the details of the error.

 

Alternatively, you can turn on the "friendly error pages" feature (see below), which will make Phusion Passenger show many details about the error right in the browser.

 

To turn on friendly error pages:

 

Nginx integration mode

Apache integration mode

Standalone mode

 

As result of the above, I consulted the following: https://www.phusionpassenger.com/library/admin/apache/log_file/

 

The below output was produced with the following command: passenger-config --detect-apache2

 

canvas@na-dev-lms-01:/var/canvas/script$ passenger-config --detect-apache2

Looking for possible Apache installations...

--> Looking for /usr/local/sbin/apxs2: not found

--> Looking for /usr/local/bin/apxs2: not found

--> Looking for /usr/sbin/apxs2: not found

--> Looking for /usr/bin/apxs2: not found

--> Looking for /sbin/apxs2: not found

--> Looking for /bin/apxs2: not found

--> Looking for /usr/games/apxs2: not found

--> Looking for /usr/local/games/apxs2: not found

--> Looking for /usr/local/sbin/apxs: not found

--> Looking for /usr/local/bin/apxs: not found

--> Looking for /usr/sbin/apxs: not found

--> Looking for /usr/bin/apxs: not found

--> Looking for /sbin/apxs: not found

--> Looking for /bin/apxs: not found

--> Looking for /usr/games/apxs: not found

--> Looking for /usr/local/games/apxs: not found

--> Looking for : found

 

Analyzing ...

Detecting main Apache executable...

Detecting version...

--> 2.4.7

Detecting control command...

Cannot find a usable Apache installation using .

 

 

----------------------------

 

Permission problems

 

Sorry, this program doesn't have enough permissions to autodetect all your

Apache installations, because it's running as the canvas user.

Please re-run this program with root privileges:

 

  export ORIG_PATH="$PATH"

  sudo -s -E

  export PATH="$ORIG_PATH"

  /usr/bin/ruby2.2 /usr/bin/passenger-config --detect-apache2



Best Regards,


Ben

Graham Ballantyne

unread,
Oct 10, 2016, 12:54:11 PM10/10/16
to canvas-l...@googlegroups.com
Look in your Canvas logfiles ($CANVASINSTALLPATH/log/production.log or $CANVASINSTALLPATH/log/development.log, depending on what RAILS_ENV you're running as), and your Apache error logs (probably /var/log/apache2/error_log on Ubuntu).

The passenger-config command is failing because you don't apxs2 installed. It isn't necessary for Canvas to function, but some of the passenger utilities require it. Install the apache2-dev package to get it (apt-get install apache2-dev).


--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Graham Ballantyne
IT Services
Simon Fraser University

Benjamin Chatham

unread,
Oct 10, 2016, 2:46:19 PM10/10/16
to canvas-l...@googlegroups.com
Hi Graham,

Thank you for taking a look at this issue. I have installed apache2-dev using sudo apt-get install apache2-dev. Is there any further steps? I started sudo /etc/init.d/canvas_init start and sudo /etc/init.d/apache2 restart. I am not receiving the below error. 

 passenger-config --detect-apache2
Looking for possible Apache installations...
 --> Looking for /usr/local/sbin/apxs2: not found
 --> Looking for /usr/local/bin/apxs2: not found
 --> Looking for /usr/sbin/apxs2: not found
 --> Looking for /usr/bin/apxs2: found
 --> Looking for /sbin/apxs2: not found
 --> Looking for /bin/apxs2: not found
 --> Looking for /usr/games/apxs2: not found
 --> Looking for /usr/local/games/apxs2: not found
 --> Looking for /usr/local/sbin/apxs: not found
 --> Looking for /usr/local/bin/apxs: not found
 --> Looking for /usr/sbin/apxs: not found
 --> Looking for /usr/bin/apxs: found
 --> Looking for /sbin/apxs: not found
 --> Looking for /bin/apxs: not found
 --> Looking for /usr/games/apxs: not found
 --> Looking for /usr/local/games/apxs: not found
1 symlink duplicate(s) detected; ignoring them.

Analyzing /usr/bin/apxs...
Detecting main Apache executable...
 --> Looking for /usr/bin/apache2: not found
 --> Looking for /usr/sbin/apache2: found
Detecting version...
 --> 2.4.7
Detecting control command...
 --> Looking for /usr/bin/apache2ctl: not found
 --> Looking for /usr/bin/apachectl2: not found
 --> Looking for /usr/bin/apachectl: not found
 --> Looking for /usr/sbin/apache2ctl: found
Detecting configuration file location...
 --> Looking for /usr/bin/apache2ctl: not found
 --> Looking for /usr/bin/apachectl2: not found
 --> Looking for /usr/bin/apachectl: not found
 --> Looking for /usr/sbin/apache2ctl: found
 --> Cannot detect default config file location!
Detecting error log file...
 --> Looking for /usr/bin/apache2ctl: not found
 --> Looking for /usr/bin/apachectl2: not found
 --> Looking for /usr/bin/apachectl: not found
 --> Looking for /usr/sbin/apache2ctl: found
 --> Cannot detect error log file!
Detecting a2enmod and a2dismod...
 --> Looking for /usr/bin/a2enmod: not found
 --> Looking for /usr/sbin/a2enmod: found
 --> Looking for /usr/bin/a2dismod: not found
 --> Looking for /usr/sbin/a2dismod: found
 --> Looking for /usr/bin/apache2ctl: not found
 --> Looking for /usr/bin/apachectl2: not found
 --> Looking for /usr/bin/apachectl: not found
 --> Looking for /usr/sbin/apache2ctl: found
Found a usable Apache installation using /usr/bin/apxs.

Final autodetection results
 * Found Apache 2.4.7!
   Information:
      apxs2          : /usr/bin/apxs
      Main executable: /usr/sbin/apache2
      Control command: /usr/sbin/apache2ctl
      Config file    : unknown
      Error log file : unknown

   WARNING:
      The configuration file seems to be broken! Please double-check it by running:
      /usr/sbin/apache2ctl -t

   To install Phusion Passenger against this specific Apache version:
      /usr/bin/ruby2.2 /usr/bin/passenger-install-apache2-module --apxs2-path='/usr/bin/apxs'

   To start, stop or restart this specific Apache version:
      /usr/sbin/apache2ctl start
      /usr/sbin/apache2ctl stop
      /usr/sbin/apache2ctl restart
 

To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/RPg8qyiEdPk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-users+unsubscribe@googlegroups.com.

Benjamin Chatham

unread,
Oct 10, 2016, 2:59:49 PM10/10/16
to canvas-l...@googlegroups.com
Hi Graham,

Let me restate my last email to avoid any confusion.

Thank you for taking a look at this issue. I have installed apache2-dev using sudo apt-get install apache2-dev. Is there any further steps? I started sudo /etc/init.d/canvas_init start and sudo /etc/init.d/apache2 restart. I am now receiving the below error. 

Benjamin Chatham

unread,
Oct 10, 2016, 3:03:01 PM10/10/16
to Canvas LMS Users
Hi Graham,

Let me restate my last email to avoid any confusion.

Thank you for taking a look at this issue. I have installed apache2-dev using sudo apt-get install apache2-dev. Is there any further steps? I started sudo /etc/init.d/canvas_init start and sudo /etc/init.d/apache2 restart. I am now receiving the below error. 

 passenger-config --detect-apache2
Looking for possible Apache installations...
 --> Looking for /usr/local/sbin/apxs2: not found
 --> Looking for /usr/local/bin/apxs2: not found
 --> Looking for /usr/sbin/apxs2: not found
 --> Looking for /usr/bin/apxs2: found
 --> Looking for /sbin/apxs2: not found
 --> Looking for /bin/apxs2: not found
 --> Looking for /usr/games/apxs2: not found
 --> Looking for /usr/local/games/apxs2: not found
 --> Looking for /usr/local/sbin/apxs: not found
 --> Looking for /usr/local/bin/apxs: not found
 --> Looking for /usr/sbin/apxs: not found
 --> Looking for /usr/bin/apxs: found
 --> Looking for /sbin/apxs: not found
 --> Looking for /bin/apxs: not found
 --> Looking for /usr/games/apxs: not found
 --> Looking for /usr/local/games/apxs: not found
1 symlink duplicate(s) detected; ignoring them.

Analyzing /usr/bin/apxs...
Detecting main Apache executable...
 --> Looking for /usr/bin/apache2: not found
 --> Looking for /usr/sbin/apache2: found
Detecting version...
 --> 2.4.7
Detecting control command...
 passenger-config --detect-apache2
Looking for possible Apache installations...
 --> Looking for /usr/local/sbin/apxs2: not found
 --> Looking for /usr/local/bin/apxs2: not found
 --> Looking for /usr/sbin/apxs2: not found
 --> Looking for /usr/bin/apxs2: found
 --> Looking for /sbin/apxs2: not found
 --> Looking for /bin/apxs2: not found
 --> Looking for /usr/games/apxs2: not found
 --> Looking for /usr/local/games/apxs2: not found
 --> Looking for /usr/local/sbin/apxs: not found
 --> Looking for /usr/local/bin/apxs: not found
 --> Looking for /usr/sbin/apxs: not found
 --> Looking for /usr/bin/apxs: found
 --> Looking for /sbin/apxs: not found
 --> Looking for /bin/apxs: not found
 --> Looking for /usr/games/apxs: not found
 --> Looking for /usr/local/games/apxs: not found
1 symlink duplicate(s) detected; ignoring them.

Analyzing /usr/bin/apxs...
Detecting main Apache executable...
 --> Looking for /usr/bin/apache2: not found
 --> Looking for /usr/sbin/apache2: found
Detecting version...
 --> 2.4.7
Detecting control command...
Reply all
Reply to author
Forward
0 new messages