microsoft / oxa-tools

Open edX on Azure Tools
MIT License
36 stars 103 forks source link

After import a course, I got an "Unauthorized access. Error Code: 1001, 1003" error. #347

Closed egonid closed 6 years ago

egonid commented 6 years ago

Hello

I am successfully deployed a lms site with oxa/master.fic. The lms site was opend successfully with no error. But When I import course, the import progress is staying in uploading. (Why does the Course Import Status is in uploading?) But, I closed the browser which is uploading course window, the course is shown in lms site.

and then, I click the imported course in lms site, I got 500 error.

How can I fix it?

Maybe this log file helps you for investigate the issue.

cms-edx-log.txt

manikarthikk commented 6 years ago

I got the similar issue when i ran out of space in the machine. can you check that ?

egonid commented 6 years ago

Hello manikarthikk

I had checked the usage of disk. The Maximum percent of usage is under 20%.

The status of disk space is good.

Is this issue possibly related to custom theme?

Thanks in advance.

egonid commented 6 years ago

Hello

we had referenced https://partner.microsoft.com/en-us/marketing/assets/detail/open-edX-theming-guidance-mp4.

and then we had applied custom theme with our git repository. (https://github.com/egonid/sync-theme : best-theme3)

after deploy, the site was opened successfully. but after create and import a course, 500 error has occurred when click it.

When oxa-tools deploying, we had modified below things in parameter.json file.

"edxThemeGithubAccountName": { "value": "egonid" }, "edxThemeGithubProjectName": { "value": "sync-theme" }, "edxThemeGithubBranch": { "value": "master"

"enableComprehensiveTheming": { "value": true }, "comprehensiveThemingDirectory": { "value": "/edx/app/edxapp/themes" }, "comprehensiveThemingName": { "value": "best-theme3"

But after deploy, there were no files or directories under /edx/app/edxapp/themes in jbVM. only themes directory was existed at that path.

Is this right?

How can I resolve this issue?

egonid commented 6 years ago

Hello

We had several tests on our deployment.

The test steps are like below.

We had forked "https://github.com/Microsoft/edx-theme" repository to our GitHub account. and then, modify the directory name ("comprehensive") to "ms-theme". and modified server files and values which are including "/static/comprehensive/….png" to "/static/ms-theme/….png".

after that, we modified parameter.json file reference with https://partner.microsoft.com/en-us/marketing/assets/detail/open-edX-theming-guidance-mp4.

We deployed successfully and the site was come up.

And then, we create and import a course (ex, Querying with Transact-SQL).

The courses are successfully browsing in main site. but we click the about page or info page of a course, we got an error like "Unauthorized access. Error Code: 1001" or Unauthorized access. Error Code: 1003".

How can I resolve this?

Thanks in advance.

manikarthikk commented 6 years ago

we don't suggest partners using our theme repo as it has many of our own customizations.

In your case, go to the path ms-theme/lms/templates/courseware and remove the HTML files in that folder. "sudo rm *.html"