Hi, I am trying to run the tutor on my M1 Mac, ARM64 system and I am following steps here Running Tutor on ARM-based systems — Tutor documentation. Everything works fine, but when I try to run the final command ‘tutor local do init’, it fails at running migrations stage with this error:
django.db.utils.OperationalError: (1050, "Table 'integrated_channel_learnerdatatransmissionaudit' already exists")
ERROR: 1
Error: Command failed with status 1: docker-compose -f ./Library/Application Support/tutor/env/local/docker-compose.yml -f ./Library/Application Support/tutor/env/local/docker-compose.prod.yml -f ./Library/Application Support/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local -f ./Library/Application Support/tutor/env/local/docker-compose.jobs.yml -f ./Library/Application Support/tutor/env/local/docker-compose.jobs.tmp.yml run --rm lms-job sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
dockerize -wait tcp://mongodb:27017 -timeout 20s
echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py lms migrate
# Create oauth2 apps for CMS SSO
# https://github.com/openedx/edx-platform/blob/master/docs/guides/studio_oauth.rst
./manage.py lms manage_user cms cms@openedx --unusable-password
./manage.py lms create_dot_application \
--grant-type authorization-code \
--redirect-uris "https://studio.www.myopenedx.com/complete/edx-oauth2/" \
--client-id cms-sso \
--client-secret cInZSWOMn0tGkvvTuSvy4F2h \
--scopes user_id \
--skip-authorization \
--update cms-sso cms
./manage.py lms create_dot_application \
--grant-type authorization-code \
--redirect-uris "http://studio.www.myopenedx.com:8001/complete/edx-oauth2/" \
--client-id cms-sso-dev \
--client-secret cInZSWOMn0tGkvvTuSvy4F2h \
--scopes user_id \
--skip-authorization \
--update cms-sso-dev cms
# 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
# Create waffle switches to enable some features, if they have not been explicitly defined before
# Completion tracking: add green ticks to every completed unit
(./manage.py lms waffle_switch --list | grep completion.enable_completion_tracking) || ./manage.py lms waffle_switch --create completion.enable_completion_tracking on