Error while install indigo theme

i try to install indigo theme i get this error :

SyntaxError: invalid syntax
Error: Command failed with status 1: docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c 
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to 'docker'..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain=''docker'')
if not site.name:
    site.name = ''docker''
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

I am having the same issue already tried a bunch of things like restarting the tutor instance and rebuilding the image etc.
Thanks in advance

What exact command are you running? What is the full stacktrace? What is your version of Tutor? What is your OS?

I am also getting the exact same error and I tried many times

I am using Tutor v11.1.4 on Ubuntu 20.04 LTS.

Commands, in numbered order:

  1. git clone https://github.com/overhangio/indigo

  2. tutor config render --extra-config ./indigo/config.yml ./indigo/theme "$(tutor config printroot)/env/build/openedx/themes/indigo"

  3. tutor images build openedx

  4. tutor local start -d

  5. tutor local settheme indigo mydomain.com studio.mydomain.com $(tutor config printvalue LMS_HOST) $(tutor config printvalue CMS_HOST)

Full stcktrace:

⚠️  You are running Tutor as root. This is strongly not recommended. If you are doing this in order to access the Docker daemon, you should instead add your user to the 'docker' group. (see `https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user`)

docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to mydomain.com..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='mydomain.com')
if not site.name:
    site.name = 'mydomain.com'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to mydomain.com...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to studio.mydomain.com..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='studio.mydomain.com')
if not site.name:
    site.name = 'studio.mydomain.com'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to studio.mydomain.com...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to ⚠️..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='⚠️')
if not site.name:
    site.name = '⚠️'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to ⚠️...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to You..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='You')
if not site.name:
    site.name = 'You'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to You...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to are..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='are')
if not site.name:
    site.name = 'are'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to are...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to running..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='running')
if not site.name:
    site.name = 'running'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to running...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to Tutor..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='Tutor')
if not site.name:
    site.name = 'Tutor'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to Tutor...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to as..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='as')
if not site.name:
    site.name = 'as'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to as...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to root...."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='root.')
if not site.name:
    site.name = 'root.'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to root....
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to This..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='This')
if not site.name:
    site.name = 'This'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to This...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to is..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='is')
if not site.name:
    site.name = 'is'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to is...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to strongly..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='strongly')
if not site.name:
    site.name = 'strongly'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to strongly...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to not..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='not')
if not site.name:
    site.name = 'not'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to not...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to recommended...."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='recommended.')
if not site.name:
    site.name = 'recommended.'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to recommended....
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to If..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='If')
if not site.name:
    site.name = 'If'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to If...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to you..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='you')
if not site.name:
    site.name = 'you'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to you...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to are..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='are')
if not site.name:
    site.name = 'are'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to are...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to doing..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='doing')
if not site.name:
    site.name = 'doing'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to doing...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to this..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='this')
if not site.name:
    site.name = 'this'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to this...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to in..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='in')
if not site.name:
    site.name = 'in'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to in...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to order..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='order')
if not site.name:
    site.name = 'order'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to order...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to to..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='to')
if not site.name:
    site.name = 'to'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to to...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to access..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='access')
if not site.name:
    site.name = 'access'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to access...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to the..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='the')
if not site.name:
    site.name = 'the'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to the...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to Docker..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='Docker')
if not site.name:
    site.name = 'Docker'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to Docker...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to daemon,..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='daemon,')
if not site.name:
    site.name = 'daemon,'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to daemon,...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to you..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='you')
if not site.name:
    site.name = 'you'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to you...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to should..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='should')
if not site.name:
    site.name = 'should'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to should...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to instead..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='instead')
if not site.name:
    site.name = 'instead'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to instead...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to add..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='add')
if not site.name:
    site.name = 'add'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to add...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to your..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='your')
if not site.name:
    site.name = 'your'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to your...

docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to user..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='user')
if not site.name:
    site.name = 'user'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to user...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to to..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='to')
if not site.name:
    site.name = 'to'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to to...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to the..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain='the')
if not site.name:
    site.name = 'the'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to the...
docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to 'docker'..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain=''docker'')
if not site.name:
    site.name = ''docker''
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

Creating tutor_local_lms-job_run ... done
Loading settings lms.envs.tutor.production
Assigning theme indigo to 'docker'...
Traceback (most recent call last):
  File "./manage.py", line 123, in <module>
    execute_from_command_line([sys.argv[0]] + django_args)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/commands/shell.py", line 86, in handle
    exec(options['command'])
  File "<string>", line 3
    site, _ = Site.objects.get_or_create(domain=''docker'')
                                                  ^
SyntaxError: invalid syntax
Error: Command failed with status 1: docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /root/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

echo "Assigning theme indigo to 'docker'..."
./manage.py lms shell -c "
from django.contrib.sites.models import Site
site, _ = Site.objects.get_or_create(domain=''docker'')
if not site.name:
    site.name = ''docker''
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')"

It looks to me as if that warning above is being taken as input when running the command below. It then tries to create a site for each word in the warning above, but fails when it comes to ‘docker’, maybe because it cannot escape the quotes:

May you please assist.

@createinnovative I think your analysis is correct. To address this you could run as non-root (as suggested). Or you could replace $(tutor config printvalue LMS_HOST) and $(tutor config printvalue CMS_HOST) by their respective values in the command above.

EDIT: in the next release of Tutor, “You are running Tutor as root” warnings will be printed to stderr, which should resolve this issue.

How do you check which version of tutor is being used ?
tutor -v does not list anything

@Kalyan please don’t hijack other people’s topics to ask unrelated questions. Instead, you should create a new topic.

To obtain the tutor version, you should run tutor --version. This is also indicated by tutor --help.

@regis thank you for the quick response.

I tried replacing and it completes successfully without showing any errors. Going to https://mydomain.com/admin/theming/sitetheme/ shows that mydomain.com and studio.mydomain.com are set to the theme indigo. However, the theme is not applied when loading the site.

I ran:

  1. cd /root/.local/share/tutor/env/build/openedx/themes
  2. ls
    and I can see the folder indigo exists in that path

I ran: sudo reboot to restart my server, tried loading https://mydomain.com and still the theme is not loading.
I then ran again:

  1. cd /root/.local/share/tutor/env/build/openedx/themes
  2. ls

and the indigo directory seems to have disappeared. I tried this 3 times already (going through all the steps to reinstall the theme) and I’m getting this same result. My site still works fine and I’m not losing any data from the databases, only the theme is not working. May you please assist.

NB: In previous versions of tutor ( v10.4.0, back in October 2020 ) I successfully installed indigo theme without any errors and it worked.

I’m not sure what to tell you. Tutor does not delete any data from the themes folder. If your data disappeared, it must be due to some weird server issue.

Make a user account and use tutor
Don’t do as root user

  • git clone and download indigo
    then do the steps to install it

Follow the steps listed here

i have followed the steps mentioned on the github and changed the images with same name and build the openedx image but no changes were their