DCAS Open EdX Documentation

DCAS Open EdX Documentation

  • Docs

›Trouble-Shooting

Creating a Course

  • Create a New Online Course
  • Set Course Schedule & Details
  • Add Sections, Subsections & Units
  • Managing Unit and Component
  • Adding Videos
  • Adding HTML
  • Adding Discussions
  • Adding Problems

    • Adding Problems
    • Problem Types
    • Drag and Drop
    • Pointing on a picture
  • Adding Images and Figures
  • Uploading Static Content
  • Course Visibility
  • Creating pages
  • Grading
  • Commonly Used Advanced Settings

Running a Course

  • Managing Certificates
  • Common Instructor Dashboard Tasks
  • Managing Course Discussions

Advanced Management

  • Importing / Exporting Courses
  • Change a user’s password
  • Inactivate / Activate a User
  • Understanding User Roles
  • Set a user to staff or superuser
  • Server Tasks

    • SSH into Server
    • Set or Change a Password

Migration

  • Migrate EdX (Single-Server)
  • Migrate the Theme

Migrate MySQL

  • Migrating MySQL Database off of Single-Server

Migrate Mongo

  • Migrating Mongo Database off of Single-Server

Configuration

  • Enable and Update Additional Languages
  • Enable Downloads from Instructor tab in LMS
  • Configure and Enable Certificate
  • Configure Open Response Assessment

Configure Ecommerce

  • Basic Ecommerce Setup
  • Setup JWT Keys
  • Getting Course Details on Checkout Page
  • Troubleshoot Ecommerce

Discovery Setup

  • Configure Discovery

Comprehensive theming

  • Setup Comprehensive Theming

Microsites

  • Setup Microsites
  • Common Microsite Configurations

API

  • Setup API
  • Common APIs Demonstration
  • Customizing an API
  • DCAS API Handoff for LMS

Xblock

  • Xblock introduction
  • Xblock installation and uninstallation
  • Xblock Development

Scaling the architecture

  • Scaling Mongo
  • Scaling MySQL
  • Dedicated Storage Configuration Outline
  • Azure Storage Configuration

    • Azure Storage Configuration
    • Basic Configuration
    • Private Blob Configuration

SCORM

  • SCORM Azure Storage

Trouble-Shooting

  • Forgot admin username or password
  • Server error
  • Can't reach your site
  • Problems with RabbitMQ
  • Can't login to LMS or CMS
  • Locate the error
  • Jobs are stucking
  • Mongodb not working
  • Forums Breaking Issue
  • Check open edx services status
  • Problem with mysql
  • Can't receive email
  • CSRF token error

Locate the error

Introduction

In open edx it is very difficult to identify the error sometimes. Different types of error could occur these could be syntax error, logical or runtime error, So for a developer it is difficult to locate and identify the error. To locate and discover the error in a server we use loggers and logs and how they work is defined as below.

Using Logs

In edx we use logs to provides a detailed, typically time-based record that serves both as verification that a set of commands were executed, and provides information relating to the success of those commands. Logs also provides details for the errors, exceptions and other type of things that interrupts execution of a command.

In Open edx we use the below command to check the logs.

sudo tail -f /edx/var/log/{lms,cms,edx,supervisor,nginx}/*log

The above command will show you the logs related to lms,cms,edx,supervisor and nginx as well.

Using Loggers

When something goes wrong inside an open edx, it becomes easier to debug if we know the source of the error. When an exception is raised, we can log the required information to track down the issue. Python provides a simple and powerful logging library.

Lets see how we can use loggers.

import logging

def function(request):
    if(name in request.POST):
        logging.info("name exist")
        #do something
    else:
        logging.info("name doesnot exit")
        #do something else

Now when you will check the logs either one of the above condition will be executed and due to the use of logging.info you will know which of the above condition was executed.

← Can't login to LMS or CMSJobs are stucking →
  • Introduction
  • Using Logs
  • Using Loggers
DCAS Open EdX Documentation
Docs
Create an Online Course
More
Curricu.me Website
Copyright © 2022 DCAS