Courses disappeared from Studio

Hello Team!

The courses got disappeared from the studio, when lms update_assets command is performed on the Juniper.master instance.

Command performed:
paver update_assets lms --settings=production

Log information:
Can’t find any error logs when accessing the studio.

Please help.

Thanks,
Mohan.

hey @mohan.krishna , I think you can get the soulution here. Solution

Hi @mohan.krishna!

Is your Open edX installation running on a single server or multiple ones? I’m asking because what you’re describing sounds similar to an issue that we ran into with multi-server setups.

It was fixed for master via this PR. There’s a corresponding PR for juniper.master, but it looks like the changes ultimately didn’t make it into Juniper.

Hey @Natnael !

Thanks for your help. I could able to get the courses after replacing the missing js files. Initially, I have found two js files are missing and are interlinked. Can you please give some idea regarding the below files?

    bundles/commons.2282a5c1d9092334125d.224843fc7059.js
    bundles/commons.2282a5c1d9092334125d.js

Further inspecting more, I had found that plenty of files got generated during LMS assets update and getting 404 errors for all such files on studio. Kept all the generated js files in the attachment. JS Files missing.txt (28.6 KB)

Thanks!

Thanks @itsjeyd for your help.

1 Like

Have you tried updating studio assets… You can do by running the following commands.
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=production

Hello @Natnael !

I have followed the below scenarios:
CASE 1:
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=production
paver update_assets lms --settings=production

CASE 2:
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=production

sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets lms --settings=production

In both the cases, the courses are getting disappeared and we can see the courses by placing the missing js files.

Thanks.

@Natnael ,

I would like to add further here. When I have only updated the CMS assets, I can see some js files are missing in LMS.

Commands to updates CMS assets:
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=production

Please help.

Thanks.

Hello @mohan.krishna , It’s right, Everytime you update your assets, You have to copy the missing files in order to see the courses. ( This is a thing I’ve not found a perferct solution yet).
But After copying the missing files I’ve not encountered a problem.

1 Like

Case 1 shoud be doing good, in order not to repeat the commands

1 Like