Fresh installation fails

563 views
Skip to first unread message

srdurai

unread,
Feb 21, 2022, 3:04:14 PM2/21/22
to Canvas LMS Users
Hi,

While doing "RAILS_ENV=production bundle exec rake canvas:compile_assets"  on Ubuntu 20.04 getting the following error:

--> Finished: 'js:webpack_production' in 322.74s

rake aborted!

Parallel::UndumpableException: ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "public.brand_configs" does not exist

LINE 1: DELETE FROM "public"."brand_configs" WHERE (NOT EXISTS (SELE...


git describe --tags

release/2022-03-02.01-21335-g9187b37765


Thought this could be of rich-content-editor and while trying to disable it from cli:

irb(main):001:0> Setting.set('rich_content_service_enabled', 'false')

Traceback (most recent call last):

/var/canvas/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:65:in `exec': ERROR:  relation "public.settings" does not exist (PG::UndefinedTable)

LINE 8:  WHERE a.attrelid = '"public"."settings"'::regclass


Guess I misconfigured something obvious. Please let me know if you need any further logs or version infos. Appreciate any help. Thanks.


BR,

Raj.

Andrey Gangan

unread,
Feb 22, 2022, 7:06:23 AM2/22/22
to Canvas LMS Users
same to me

I used older tag to setup  release/2022-01-19.01

remember to run  -bundle with key: -without pulsar

понедельник, 21 февраля 2022 г. в 22:04:14 UTC+2, srdurai:

srdurai

unread,
Feb 24, 2022, 1:01:06 PM2/24/22
to Canvas LMS Users
Thanks Andrey. --without pulsar didn't help though. Found the following logs in production.log file. 

[- -] Reading app-canvas/data/secrets from vault

[- -] Unable to read setting: PG::UndefinedTable: ERROR:  relation "public.settings" does not exist

LINE 8:  WHERE a.attrelid = '"public"."settings"'::regclass

Could anyone still help me out. Thanks already.


BR,

Raj.


srdurai

unread,
Feb 24, 2022, 1:56:17 PM2/24/22
to Canvas LMS Users
Apologies Andrew. Your suggestion fixed the error. I checkout the wrong tag initially, and while matching with the one you said, compile went on to completion. You saved my week. Thanks.

BR,
Raj.

Andrey Gangan

unread,
Mar 4, 2022, 5:41:03 AM3/4/22
to Canvas LMS Users
Latest stable version still has this problem
I do now in a liitle different way

1. RAILS_ENV=production bundle exec rake canvas:compile_assets - it ends with error
2. RAILS_ENV=production bundle exec rake db:initial_setup - it ends with error too
3.  RAILS_ENV=production bundle exec rake canvas:compile_assets  - yes again, and no error as the DB are initialized now.
4 .  RAILS_ENV=production bundle exec rake db:initial_setup - again to be sure all tables are created

continue setup as usual


четверг, 24 февраля 2022 г. в 20:56:17 UTC+2, srdurai:

Andrey Gangan

unread,
Mar 29, 2022, 11:19:59 AM3/29/22
to Canvas LMS Users
offered a pull request to fix it:

BigBlueButton Hosting, Linux support  
пятница, 4 марта 2022 г. в 12:41:03 UTC+2, Andrey Gangan:

Neptronix

unread,
Jul 15, 2022, 4:52:16 PM7/15/22
to Canvas LMS Users
Hey, this trick ( running the bundle commands in your sequence ) worked for me on the 07-2022 version. Thanks so much!

Andrey Gangan

unread,
Jul 18, 2022, 8:56:43 AM7/18/22
to Canvas LMS Users
better way is to run with:
COMPILE_ASSETS_BRAND_CONFIGS=0 variable

it will look like

RAILS_ENV=production COMPILE_ASSETS_BRAND_CONFIGS=0 bundle exec rake canvas:compile_assets


пятница, 15 июля 2022 г. в 23:52:16 UTC+3, Neptronix:
Reply all
Reply to author
Forward
0 new messages