Issue with Configuring Canvas LMS on Ubuntu 20.04 VM

51 views
Skip to first unread message

lithin $$pk$$

unread,
Jun 28, 2024, 1:02:33 AM (6 days ago) Jun 28
to canvas-l...@googlegroups.com
Hi Team,

I am configuring Canvas LMS on an Ubuntu 20.04 VM using the steps provided in the Production Start guide on GitHub. I have followed the instructions and configured everything, but after starting Canvas and Apache2, the page is loading incorrectly (see attached screenshot).

I have attached the Apache error logs and Apache configuration files for your reference


image.png

--

Regards,

Lithin PK

Mob: +91 9995396804

canvas.conf-.jpg
canvas-apache error log.JPG

Anup Kumar Mondal

unread,
Jun 28, 2024, 1:07:02 AM (6 days ago) Jun 28
to canvas-l...@googlegroups.com
I am facing same error.

--

---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/canvas-lms-users/CAH-r%3DgLrihE6Ox-fKE1OkX68W98jg-KuAsdU6-De6igYvq15xQ%40mail.gmail.com.


--
Sincerely, 
Anup Kumar Mondal, MCA 


DevOps / SRE Engineer | Synergists 

Connect with me: 

Lucifer

unread,
Jun 28, 2024, 1:12:14 AM (6 days ago) Jun 28
to Canvas LMS Users
Kindly follow the installation steps provided in this link

lithin $$pk$$

unread,
Jun 28, 2024, 6:02:56 AM (5 days ago) Jun 28
to canvas-l...@googlegroups.com
Hi Team,

Any update on this issue?

Lucifer

unread,
Jun 28, 2024, 6:21:04 AM (5 days ago) Jun 28
to Canvas LMS Users
While following the link provided in my previous comment, everything is working fine so it will be easier to follow the steps and deploy canvas

While seeing the logs, it is clear that passenger installation is broken so try to reinstall passenger and confirm it with apache

lithin $$pk$$

unread,
Jun 28, 2024, 7:30:43 AM (5 days ago) Jun 28
to canvas-l...@googlegroups.com
Getting below error while running following command

 mv db/migrate/20210812210129_add_singleton_column.rb db/migrate/20111111214311_add_singleton_column.rb

image.png


Lucifer

unread,
Jun 28, 2024, 7:34:23 AM (5 days ago) Jun 28
to Canvas LMS Users
Actually it's not a problem continue with other steps further

Andrey Gangan

unread,
Jul 1, 2024, 12:56:16 AM (3 days ago) Jul 1
to Canvas LMS Users
I see problems with passenger installation in the first message.
Try to reinstall it.

пятница, 28 июня 2024 г. в 14:34:23 UTC+3, Lucifer:

lithin $$pk$$

unread,
Jul 1, 2024, 1:13:44 PM (2 days ago) Jul 1
to canvas-l...@googlegroups.com
Thanks, Lucifer. I have configured the Canvas LMS by following link  https://elearningevolve.com/blog/install-canvas-lms/ 

Lucifer

unread,
Jul 2, 2024, 11:53:42 PM (17 hours ago) Jul 2
to Canvas LMS Users
Is RCE works for you? When uploading images from the local, is the image uploaded to the canvas RCE?  Thanks in advance.

Andrey Gangan

unread,
2:34 AM (14 hours ago) 2:34 AM
to Canvas LMS Users
works

среда, 3 июля 2024 г. в 06:53:42 UTC+3, Lucifer:

Lucifer

unread,
7:20 AM (9 hours ago) 7:20 AM
to Canvas LMS Users
I need some help in configuring canvas-rce-api. Can you help me in providing some steps for configuring canvas rce api. Thanks in advance.

Josh M

unread,
12:53 PM (4 hours ago) 12:53 PM
to Canvas LMS Users
I am running canvas-rce-api thru apache passenger - you must configure the following
if you were previously running canvas-rce-api from npm / node / pm2 etc kill that daemon first
this method is better as you do not need to start a screen session to start npm every reboot - apache runs it at boot time

1. set up .env for port 3001
/var/canvas-rce-api/.env

PORT=3001

NODE_ENV=production

STATSD_HOST=127.0.0.1

STATSD_PORT=8125

STATS_PREFIX=rceapi

CIPHER_PASSWORD=yourkey

ECOSYSTEM_KEY=yourkey

ECOSYSTEM_SECRET=yourkey

FLICKR_API_KEY=yourkey

YOUTUBE_API_KEY=yourkey


2. apache: add new listen address & new virtualhost config that points passenger to canvas-rce-api - append to bottom of file

apache2/sites-enabled/canvas-ssl.conf

Listen 3001

<VirtualHost *:3001>

ServerName canvas.yourdomain.com

SSLEngine on

SSLCertificateFile /etc/letsencrypt/live/canvas.yourdomain.com/fullchain.pem

SSLCertificateKeyFile /etc/letsencrypt/live/canvas.yourdomain.com/privkey.pem

  PassengerAppRoot /var/canvas-rce-api

  PassengerAppType node

  PassengerStartupFile app.js

</VirtualHost>


3. edit apache module passenger.conf to hardcode location of node binary - just add the single line under PassengerDefaultRuby

use `which node` to find your node path, it may be different than mine

apache2/mods-enabled/passenger.conf

PassengerNodejs /home/canvas/.nvm/versions/node/v18.17.1/bin/node


4. edit config/dynamic_settings.yml and change rich-content-service / app-host to canvas.yourdomain.com:3001

5. restart canvas_init and apache2

sudo systemctl restart canvas_init & sudo systemctl restart apache2

Reply all
Reply to author
Forward
0 new messages