Rich Content Editor - 401 Unauthorized - self-hosted standalone server

544 views
Skip to first unread message

nagaedadm

unread,
Jan 26, 2021, 9:40:01 AM1/26/21
to Canvas LMS Users
Hi,

I've followed the canvas-rce-api readme and stood up a seperate instance with the following:
nginx reverse proxy with ssl termination.
pm2 handling the RCE node app and env constants.
certbot is providing a certificate and my dns is pointing to a subdomain where I can curl and receive the message: 
Hello, from RCE Service

 My canvas instance is running and follows the production start guide. All appears to be working except for the following error in console:
rce_error.jpg

my dynamic_settings.yml 
encryption-secret and signing-secret appear to match that stored in the canvas-rce-api server.
and the app-host points to the url shown in the screenshot above.

ports 80 and 443 are open.

I'm stuck. what is causing the message:
E_TOKEN_PARSE_ERROR: Authentication token invalid

thank you.

Vips

Message has been deleted
Message has been deleted
Message has been deleted

nicol...@gmail.com

unread,
Jan 27, 2021, 12:49:50 PM1/27/21
to Canvas LMS Users
I don't know why my message is being deleted, I was posting the configuration that worked for me. You can check it here: https://canvasdevelopers.slack.com/archives/C012TTB0AD8/p1603142291094000

In addition, I can remember one of the secrets had to be exactly 32 characters long, maybe you can check that as well.

nagaedadm

unread,
Feb 5, 2022, 9:43:32 PM2/5/22
to Canvas LMS Users
Nico and others,

I'm afraid I am back with this issue.
RCE was working for a bit and suddenly i am getting either 401 unauthorized.
In browser DEV tools i can see the following: "E_TOKEN_BEFORE_NBF: Authentication token not valid yet"
 
S3 has been fully opened and this issue still it persists.

I restarted the APP (LMS) server, cassandra, rce (running on PM2) and even Redis. No luck.
I checked the RCE endpoint and receive "Hello, from RCE Service" 

So it's just puzzling why this is the case.

I am not a web expert so can you please advise?

happy weekend!

Antonio Miguel Cobos Fernández

unread,
Jun 13, 2023, 7:38:16 AM6/13/23
to Canvas LMS Users
same issue

Andrey Gangan

unread,
Jun 13, 2023, 11:36:46 AM6/13/23
to Canvas LMS Users
check here https://groups.google.com/g/canvas-lms-users/c/ydvfmtw2CLE

вторник, 13 июня 2023 г. в 14:38:16 UTC+3, Antonio Miguel Cobos Fernández:

Antonio Miguel Cobos Fernández

unread,
Jun 16, 2023, 2:56:30 AM6/16/23
to Canvas LMS Users
work, thank you so much
Reply all
Reply to author
Forward
0 new messages