Local quickstart ends up with error messages after enabling plug-ins

Hi @regis

I’m very new to this platform and got a beginner-level technical knowledge only. I installed aws image, enabled notes plug-in and updated theme to indigo. But each time I enable figures/discovery/ecommerce plug in, the local quickstart command is not getting completed.

This is what happens when I run quickstart:

*=================================================*
*        Interactive platform configuration*
*==================================================*
*Your website domain name for students (LMS) [blend-ed.com] *
*Your website domain name for teachers (CMS) [studio.blend-ed.com] *
*Your platform name/title [Blend-Ed Classroom] *
*Your public contact email address [contact@blend-ed.com] *
*The default language code for the platform [en] *
*Activate SSL/TLS certificates for HTTPS access? Important note: this will NOT work in a development environment. [Y/n] *
*Configuration saved to /home/tutor/.local/share/tutor/config.yml*
*================================================*
*        Updating the current environment*
*================================================*
*Environment generated in /home/tutor/.local/share/tutor/env*
*==============================================*
*        Stopping any existing platform*
*==============================================*
*docker-compose -f /home/tutor/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local rm --stop --force*
*Stopping tutor_local_lms_worker_1      ... done*
*Stopping tutor_local_lms_worker_beat_1 ... done*
*Stopping tutor_local_nginx_1           ... done*
*Stopping tutor_local_cms_worker_1      ... done*
*Stopping tutor_local_lms_1             ... done*
*Stopping tutor_local_cms_1             ... done*
*Stopping tutor_local_notes_1           ... done*
*Stopping tutor_local_forum_1           ... done*
*Stopping tutor_local_elasticsearch_1   ... done*
*Stopping tutor_local_rabbitmq_1        ... done*
*Stopping tutor_local_memcached_1       ... done*
*Stopping tutor_local_smtp_1            ... done*
*Stopping tutor_local_mongodb_1         ... done*
*Stopping tutor_local_mysql_1           ... done*
*Going to remove tutor_local_lms_worker_1, tutor_local_lms_worker_beat_1, tutor_local_nginx_1, tutor_local_cms_worker_1, tutor_local_lms_1, tutor_local_cms_1, tutor_local_notes_1, tutor_local_forum_1, tutor_local_elasticsearch_1, tutor_local_openedx-assets_1, tutor_local_rabbitmq_1, tutor_local_memcached_1, tutor_local_smtp_1, tutor_local_mongodb_1, tutor_local_mysql_1*
*Removing tutor_local_lms_worker_1      ... done*
*Removing tutor_local_lms_worker_beat_1 ... done*
*Removing tutor_local_nginx_1           ... done*
*Removing tutor_local_cms_worker_1      ... done*
*Removing tutor_local_lms_1             ... done*
*Removing tutor_local_cms_1             ... done*
*Removing tutor_local_notes_1           ... done*
*Removing tutor_local_forum_1           ... done*
*Removing tutor_local_elasticsearch_1   ... done*
*Removing tutor_local_openedx-assets_1  ... done*
*Removing tutor_local_rabbitmq_1        ... done*
*Removing tutor_local_memcached_1       ... done*
*Removing tutor_local_smtp_1            ... done*
*Removing tutor_local_mongodb_1         ... done*
*Removing tutor_local_mysql_1           ... done*
*=============================================*
*        HTTPS certificates generation*
*=============================================*
*docker run --rm -it --volume /home/tutor/.local/share/tutor/data/letsencrypt:/etc/letsencrypt/ -p 80:80 --entrypoint=sh certbot/certbot:latest -e -c certbot certonly --standalone -n --agree-tos -m admin@blend-ed.com -d blend-ed.com -d studio.blend-ed.com -d preview.blend-ed.com*
*certbot certonly --standalone -n --agree-tos -m admin@blend-ed.com -d notes.blend-ed.com*
*Saving debug log to /var/log/letsencrypt/letsencrypt.log*
*Plugins selected: Authenticator standalone, Installer None*
*Cert not yet due for renewal*
*Keeping the existing certificate*

*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*
*Certificate not yet due for renewal; no action taken.*
*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*
*Saving debug log to /var/log/letsencrypt/letsencrypt.log*
*Plugins selected: Authenticator standalone, Installer None*
*Cert not yet due for renewal*
*Keeping the existing certificate*

*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*
*Certificate not yet due for renewal; no action taken.*
*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*
*======================================================*
*        Starting the platform in detached mode*
*======================================================*
*docker-compose -f /home/tutor/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local up --remove-orphans -d*
*Creating tutor_local_mongodb_1        ... done*
*Creating tutor_local_mysql_1          ... done*
*Creating tutor_local_smtp_1           ... done*
*Creating tutor_local_rabbitmq_1       ... done*
*Creating tutor_local_openedx-assets_1 ... done*
*Creating tutor_local_memcached_1      ... done*
*Creating tutor_local_elasticsearch_1  ... done*
*Creating tutor_local_notes_1          ... done*
*Creating tutor_local_forum_1          ... done*
*Creating tutor_local_cms_1            ... done*
*Creating tutor_local_lms_1            ... done*
*Creating tutor_local_cms_worker_1      ... done*
*Creating tutor_local_lms_worker_beat_1 ... done*
*Creating tutor_local_nginx_1           ... done*
*Creating tutor_local_lms_worker_1      ... done*
*================================================*
*        Database creation and migrations*
*================================================*
*Initialising all services...*
*docker-compose -f /home/tutor/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local exec mysql sh -e -c echo "Initialising MySQL..."*
*mysql_connection_max_attempts=10*
*mysql_connection_attempt=0*
*until mysql -u root --password="MNku0Pgl" --host "mysql" --port 3306 -e 'exit'*
*do*
    *mysql_connection_attempt=$(expr $mysql_connection_attempt + 1)*
*    echo "    [$mysql_connection_attempt/$mysql_connection_max_attempts] Waiting for MySQL service (this may take a while)..."*
*    if [ $mysql_connection_attempt -eq $mysql_connection_max_attempts ]*
*    then*
*      echo "MySQL initialisation error" 1>&2*
*      exit 1*
*    fi*
*    sleep 10*
*done*
*echo "MySQL is up and running"*

*mysql -u root --password="MNku0Pgl" --host "mysql" --port 3306 -e 'CREATE DATABASE IF NOT EXISTS openedx;'*
*mysql -u root --password="MNku0Pgl" --host "mysql" --port 3306 -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "w8rA7wr6";'*
*Initialising MySQL...*
*Warning: Using a password on the command line interface can be insecure.*
*MySQL is up and running*
*Warning: Using a password on the command line interface can be insecure.*
*Warning: Using a password on the command line interface can be insecure.*
*Initialising lms...*
*docker-compose -f /home/tutor/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local exec lms sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s*

*export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS*
*echo "Loading settings $DJANGO_SETTINGS_MODULE"*

*./manage.py lms migrate*

*./manage.py lms create_oauth2_client \*
*    "http://androidapp.com" "http://androidapp.com/redirect" public \*
*    --client_id android --client_secret vbWBzqUAdUxKPgpIPFvtOEal \*
*    --trusted*
*    *
*# Fix incorrect uploaded file path*
*if [ -d /openedx/data/uploads/ ]; then*
*  if [ -n "$(ls -A /openedx/data/uploads/)" ]; then*
*    echo "Migrating LMS uploaded files to shared directory"*
*    mv /openedx/data/uploads/* /openedx/media/*
*    rm -rf /openedx/data/uploads/*
*  fi*
*fi*
*>*

Hi @nadheemabdulla! I don’t see an error here. Are you sure you pasted the entire command output?

1 Like

Oh sorry. The ending of the text was different from what I get usually with local quickstart. So I thought the error might have mentioned there. The problem is I am unable to load the website after enabling those plug-ins. “502 Bad Gateway nginx” is showing up on browser. When I disable the plug-in and do local quickstart, it again goes to the normal condition.

Did you remember to build the openedx image after installing the figures plugin?

No. I didn’t know I had to build openedx image after that…
Let me try.

I built docker images with

images build all

after enabling figures plug-in. It worked. Thank you @regis