ValueError: Theme 'branded not found in any of the following theme dirs

Please find the following output below. Everything ran well. The last one, though, did not like --non-interactive (which I see means no interactive prompting). Should I run tutor local quickstart without it?
Error: no such option: --non-interactive

dbilleter@HP-Z200-BC03:~$ tutor --version
**tutor, version 3.2.2**
dbilleter@HP-Z200-BC03:~$ tutor plugins list
Usage: tutor [OPTIONS] COMMAND [ARGS]...
Try "tutor -h" for help.

Error: No such command "plugins".
dbilleter@HP-Z200-BC03:~$ sudo tutor plugins list
[sudo] password for dbilleter: 
Usage: tutor [OPTIONS] COMMAND [ARGS]...
Try "tutor -h" for help.

Error: No such command "plugins".

**dbilleter@HP-Z200-BC03:~$ docker ps**
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS              PORTS                                      NAMES
0074cce38e7f        nginx:1.13                     "nginx -g 'daemon of…"   8 days ago          Up 2 days           0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   tutor_local_nginx_1
cf1cc9a979fa        regis/openedx:ironwood         "docker-entrypoint.s…"   8 days ago          Up 2 days           8000/tcp                                   tutor_local_cms_worker_1
89a6e1801278        regis/openedx:ironwood         "docker-entrypoint.s…"   8 days ago          Up 2 days           8000/tcp                                   tutor_local_lms_worker_1
9585d3cdc14d        regis/openedx:ironwood         "docker-entrypoint.s…"   8 days ago          Up 2 days           8000/tcp                                   tutor_local_cms_1
8f0bdb1aea36        regis/openedx:ironwood         "docker-entrypoint.s…"   8 days ago          Up 2 days           8000/tcp                                   tutor_local_lms_1
a666cd2d7e61        regis/openedx-forum:ironwood   "/bin/sh -c './bin/u…"   8 days ago          Up 2 days           4567/tcp                                   tutor_local_forum_1
c2bccee50541        rabbitmq:3.6.10                "docker-entrypoint.s…"   8 days ago          Up 2 days           4369/tcp, 5671-5672/tcp, 25672/tcp         tutor_local_rabbitmq_1
f5a390721012        mysql:5.6.36                   "docker-entrypoint.s…"   8 days ago          Up 2 days           3306/tcp                                   tutor_local_mysql_1
98e97806fbfc        memcached:1.4.38               "docker-entrypoint.s…"   8 days ago          Up 2 days           11211/tcp                                  tutor_local_memcached_1
52b5a5cb961f        namshi/smtp:latest             "/bin/entrypoint.sh …"   8 days ago          Up 2 days           25/tcp                                     tutor_local_smtp_1
15b78a79bc91        elasticsearch:1.5.2            "/docker-entrypoint.…"   8 days ago          Up 2 days           9200/tcp, 9300/tcp                         tutor_local_elasticsearch_1
dbe602bf0a6b        mongo:3.2.16                   "docker-entrypoint.s…"   8 days ago          Up 2 days           27017/tcp                                  tutor_local_mongodb_1
f57d2642bc11        nginx                          "nginx -g 'daemon of…"   3 months ago        Up 2 days           0.0.0.0:9080->80/tcp                       edx-videohost
28c916fe1392        portainer/portainer            "/portainer"             7 months ago        Up 7 days           0.0.0.0:9000->9000/tcp                     portainer

**dbilleter@HP-Z200-BC03:~$ tutor local stop**
docker-compose -f /home/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local rm --stop --force
Stopping tutor_local_nginx_1         ... done
Stopping tutor_local_cms_worker_1    ... done
Stopping tutor_local_lms_worker_1    ... done
Stopping tutor_local_cms_1           ... done
Stopping tutor_local_lms_1           ... done
Stopping tutor_local_forum_1         ... done
Stopping tutor_local_rabbitmq_1      ... done
Stopping tutor_local_mysql_1         ... done
Stopping tutor_local_memcached_1     ... done
Stopping tutor_local_smtp_1          ... done
Stopping tutor_local_elasticsearch_1 ... done
Stopping tutor_local_mongodb_1       ... done
Going to remove tutor_local_nginx_1, tutor_local_cms_worker_1, tutor_local_lms_worker_1, tutor_local_cms_1, tutor_local_lms_1, tutor_local_openedx-assets_1, tutor_local_forum_1, tutor_local_rabbitmq_1, tutor_local_mysql_1, tutor_local_memcached_1, tutor_local_smtp_1, tutor_local_elasticsearch_1, tutor_local_mongodb_1
Removing tutor_local_nginx_1          ... done
Removing tutor_local_cms_worker_1     ... done
Removing tutor_local_lms_worker_1     ... done
Removing tutor_local_cms_1            ... done
Removing tutor_local_lms_1            ... done
Removing tutor_local_openedx-assets_1 ... done
Removing tutor_local_forum_1          ... done
Removing tutor_local_rabbitmq_1       ... done
Removing tutor_local_mysql_1          ... done
Removing tutor_local_memcached_1      ... done
Removing tutor_local_smtp_1           ... done
Removing tutor_local_elasticsearch_1  ... done
Removing tutor_local_mongodb_1        ... done

**dbilleter@HP-Z200-BC03:~$  tutor images pull openedx**
Pulling image regis/openedx:ironwood
docker pull regis/openedx:ironwood
ironwood: Pulling from regis/openedx
Digest: sha256:c08bd9d22f8eca0daa0c4cfb1d2276b39b874d18918c99b74af76f850cf5625a
Status: Image is up to date for regis/openedx:ironwood
Pulling image regis/openedx:ironwood
docker pull regis/openedx:ironwood
ironwood: Pulling from regis/openedx
Digest: sha256:c08bd9d22f8eca0daa0c4cfb1d2276b39b874d18918c99b74af76f850cf5625a
Status: Image is up to date for regis/openedx:ironwood

**dbilleter@HP-Z200-BC03:~$ tutor local quickstart --non-interactive**
Usage: tutor local quickstart [OPTIONS]
Try "tutor local quickstart -h" for help.

Error: no such option: --non-interactive
dbilleter@HP-Z200-BC03:~$ tutor local quickstart --non-interactive
Usage: tutor local quickstart [OPTIONS]
Try "tutor local quickstart -h" for help.

Error: no such option: --non-interactive
dbilleter@HP-Z200-BC03:~$ sudo tutor local quickstart --non-interactive
Usage: tutor local quickstart [OPTIONS]
Try "tutor local quickstart -h" for help.

Error: no such option: --non-interactive

@dickbilleter It seems you upgraded to v3.2.2. Could you please upgrade to the latest version, which is v3.7.4? Then try tutor local quickstart --non-interactive again.

Ah yes, thanks for that Regis.

So one permission error afterward?

dbilleter@HP-Z200-BC03:~$ **sudo curl -L "https://github.com/overhangio/tutor/releases/download/v3.7.4/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor**
[sudo] password for dbilleter: 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   608    0   608    0     0   1352      0 --:--:-- --:--:-- --:--:--  1351
100 12.6M  100 12.6M    0     0  9210k      0  0:00:01  0:00:01 --:--:-- 31.8M
dbilleter@HP-Z200-BC03:~**$ sudo chmod 0755 /usr/local/bin/tutor**
dbilleter@HP-Z200-BC03:~$ **tutor local quickstart --non-interactive**
==================================================
        Interactive platform configuration
==================================================
Configuration saved to /home/dbilleter/.local/share/tutor/config.yml
================================================
        Updating the current environment
================================================
Traceback (most recent call last):
  File "main.py", line 16, in <module>
  File "tutor/commands/cli.py", line 23, in main
  File "site-packages/Click-7.0-py3.6.egg/click/core.py", line 764, in __call__
  File "site-packages/Click-7.0-py3.6.egg/click/core.py", line 717, in main
  File "site-packages/Click-7.0-py3.6.egg/click/core.py", line 1137, in invoke
  File "site-packages/Click-7.0-py3.6.egg/click/core.py", line 1137, in invoke
  File "site-packages/Click-7.0-py3.6.egg/click/core.py", line 956, in invoke
  File "site-packages/Click-7.0-py3.6.egg/click/core.py", line 555, in invoke
  File "tutor/commands/local.py", line 32, in quickstart
  File "tutor/env.py", line 103, in save
  File "tutor/env.py", line 112, in render_full
  File "tutor/env.py", line 138, in save_subdir
  File "tutor/env.py", line 147, in save_file
  File "tutor/env.py", line 152, in write_to
**PermissionError: [Errno 13] Permission denied: '/home/dbilleter/.local/share/tutor/env/build/openedx/themes/README'**
**[12386] Failed to execute script main**
dbilleter@HP-Z200-BC03:~$

You have a permission problem. That’s almost certainly because you ran tutor with sudo before, and you should never do that. Indeed, I see that in one of your earlier commands you ran sudo tutor plugins list.

To fix the permission problem, run:

sudo chown -R dbilleter:dbilleter /home/dbilleter/.local/share/tutor/env

Got it - thank you. That fixed the install (results below). Attached is the portainer dashboard showing all containers running and reflecting the new version of 3.7.4:
The LMS and CMS both reflect the same errors as earlier. The home page still has 500 in the catalog spot - lets me sign in to and get dashboard, but logout 500. When I click on catalog from dashboard, no courses are available when I click on them.
Sorry, such a tough case here.
Note: I do slight updates only to lms.env.json and cms.env.json:

  1. they correctly reflect the lms base, and urls, but I update to our CMS: learnstudio.logistics.corp (from the IP). Afterward learnstudio.logistics.corp works just fine with login appearing and dashboard (though no courses work in the dashboard still).
  2. I add this and remove the other line, based on doc recommendations: “ENABLE_COMPREHENSIVE_THEME_DIRS”: true,
    When I add it, it will reflect, say, an old theme I can still change in the admin…

dbilleter@HP-Z200-BC03:~$ tutor local quickstart --non-interactive
==================================================
        Interactive platform configuration
==================================================
Configuration saved to /home/dbilleter/.local/share/tutor/config.yml
================================================
        Updating the current environment
================================================
Environment generated in /home/dbilleter/.local/share/tutor/env
==============================================
        Stopping any existing platform
==============================================
docker-compose -f /home/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local rm --stop --force
No stopped containers
=============================================
        HTTPS certificates generation
=============================================
HTTPS is not activated: certificate generation skipped
======================================================
        Starting the platform in detached mode
======================================================
docker-compose -f /home/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local up --remove-orphans -d
Pulling openedx-assets (overhangio/openedx:3.7.4)...
3.7.4: Pulling from overhangio/openedx
34667c7e4631: Already exists
d18d76a881a4: Already exists
119c7358fbfc: Already exists
2aaf13f3eff0: Already exists
d329e124f64b: Pull complete
7729a48bbf9f: Pull complete
2d24f4de1748: Pull complete
fe5cde32d17e: Pull complete
7f1a6fb44baa: Pull complete
f3261e5dfd13: Pull complete
4b60957fc45d: Pull complete
446a93dbe3b0: Pull complete
24f2b1fa74dc: Pull complete
a9a7eb5a5ba0: Pull complete
484f625c7396: Pull complete
a3d9278b2719: Pull complete
816e71479399: Pull complete
7f17b93b062e: Pull complete
094a20868b93: Pull complete
54689449025b: Pull complete
686c3cb8b784: Pull complete
7b4050c475e4: Pull complete
3810c07ceeea: Pull complete
fdb4d6bc0b17: Pull complete
a5f040d395d5: Pull complete
2edcd9138b11: Pull complete
d1204f2200c3: Pull complete
2eafc3cff32c: Pull complete
909ed2f4114b: Pull complete
a091752d8401: Pull complete
Pulling forum (overhangio/openedx-forum:3.7.4)...
3.7.4: Pulling from overhangio/openedx-forum
5b7339215d1d: Pull complete
14ca88e9f672: Pull complete
a31c3b1caad4: Pull complete
b054a26005b7: Pull complete
79e09b31fd76: Pull complete
9465a1b15b6a: Pull complete
9c81b898f3ed: Pull complete
3f3c07af003c: Pull complete
8723e264a357: Pull complete
96089f08ad2e: Pull complete
bf69fbc4c60a: Pull complete
42eef9ddfa90: Pull complete
cfc2a4700a02: Pull complete
f3f1b454562b: Pull complete
b309687aae8c: Pull complete
b332409d89ed: Pull complete
ec667bdbad3a: Pull complete
Creating tutor_local_rabbitmq_1       ... done
Creating tutor_local_mongodb_1        ... done
Creating tutor_local_elasticsearch_1  ... done
Creating tutor_local_mysql_1          ... done
Creating tutor_local_openedx-assets_1 ... done
Creating tutor_local_memcached_1      ... done
Creating tutor_local_smtp_1           ... done
Creating tutor_local_forum_1          ... done
Creating tutor_local_lms_1            ... done
Creating tutor_local_cms_1            ... done
Creating tutor_local_lms_worker_1     ... done
Creating tutor_local_nginx_1          ... done
Creating tutor_local_cms_worker_1     ... done
================================================
        Database creation and migrations
================================================
Initialising all services...
docker-compose -f /home/dbilleter/.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="9QIz3tEW" --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="9QIz3tEW" --host "mysql" --port 3306 -e 'CREATE DATABASE IF NOT EXISTS openedx;'
mysql -u root --password="9QIz3tEW" --host "mysql" --port 3306 -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "9QIz3tEW";'
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/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local exec lms sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
./manage.py lms --settings=tutor.production migrate

./manage.py lms --settings=tutor.production create_oauth2_client \
    "http://androidapp.com" "http://androidapp.com/redirect" public \
    --client_id android --client_secret CuxCgrd8NO95FFkCwTzYKoqS \
    --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
2019/11/13 14:35:28 Waiting for: tcp://mysql:3306
2019/11/13 14:35:28 Connected to tcp://mysql:3306
WARNING:py.warnings:/openedx/edx-platform/lms/djangoapps/courseware/__init__.py:5: DeprecationWarning: Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported
  warnings.warn("Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported", DeprecationWarning)

2019-11-13 14:35:35,309 WARNING 164 [enterprise.utils] utils.py:50 - Could not import Registry from third_party_auth.provider
2019-11-13 14:35:35,310 WARNING 164 [enterprise.utils] utils.py:51 - cannot import name _LTI_BACKENDS
Operations to perform:
  Apply all migrations: admin, api_admin, assessment, auth, badges, block_structure, bookmarks, branding, bulk_email, catalog, celery_utils, certificates, commerce, completion, consent, content_type_gating, contentserver, contenttypes, cors_csrf, course_action_state, course_duration_limits, course_goals, course_groups, course_modes, course_overviews, courseware, crawlers, credentials, credit, dark_lang, database_fixups, degreed, django_comment_common, django_notify, django_openid_auth, djcelery, edx_oauth2_provider, edx_proctoring, edxval, email_marketing, embargo, enterprise, entitlements, experiments, external_auth, grades, instructor_task, integrated_channel, lms_xblock, microsite_configuration, milestones, mobile_api, notes, oauth2, oauth2_provider, oauth_dispatch, oauth_provider, organizations, programs, redirects, rss_proxy, sap_success_factors, schedules, self_paced, sessions, shoppingcart, site_configuration, sites, social_django, splash, static_replace, status, student, submissions, survey, teams, theming, third_party_auth, track, user_api, user_authn, util, verified_track_content, verify_student, video_config, video_pipeline, waffle, waffle_utils, wiki, workflow, xapi, xblock_django
Running migrations:
  No migrations to apply.
WARNING:py.warnings:/openedx/edx-platform/lms/djangoapps/courseware/__init__.py:5: DeprecationWarning: Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported
  warnings.warn("Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported", DeprecationWarning)

2019-11-13 14:35:43,997 WARNING 365 [enterprise.utils] utils.py:50 - Could not import Registry from third_party_auth.provider
2019-11-13 14:35:43,997 WARNING 365 [enterprise.utils] utils.py:51 - cannot import name _LTI_BACKENDS
{
    "name": "", 
    "url": "http://androidapp.com", 
    "logout_uri": null, 
    "redirect_uri": "http://androidapp.com/redirect", 
    "client_id": "android", 
    "user": null, 
    "client_type": 1, 
    "client_secret": "CuxCgrd8NO95FFkCwTzYKoqS"
}
Migrating LMS uploaded files to shared directory
Initialising cms...
docker-compose -f /home/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local exec cms sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s && ./manage.py cms migrate

# Fix incorrect uploaded file path
if [ -d /openedx/data/uploads/ ]; then
  if [ -n "$(ls -A /openedx/data/uploads/)" ]; then
    echo "Migrating CMS uploaded files to shared directory"
    mv /openedx/data/uploads/* /openedx/media/
    rm -rf /openedx/data/uploads/
  fi
fi
2019/11/13 14:35:46 Waiting for: tcp://mysql:3306
2019/11/13 14:35:46 Connected to tcp://mysql:3306
WARNING:py.warnings:/openedx/edx-platform/lms/djangoapps/courseware/__init__.py:5: DeprecationWarning: Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported
  warnings.warn("Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported", DeprecationWarning)

2019-11-13 14:35:49,632 WARNING 250 [enterprise.utils] utils.py:50 - Could not import Registry from third_party_auth.provider
2019-11-13 14:35:49,633 WARNING 250 [enterprise.utils] utils.py:51 - cannot import name EnterpriseCustomerUser
Operations to perform:
  Apply all migrations: admin, api_admin, assessment, auth, block_structure, bookmarks, catalog, celery_utils, completion, consent, content_type_gating, contentserver, contentstore, contenttypes, course_action_state, course_creators, course_duration_limits, course_groups, course_modes, course_overviews, courseware, crawlers, credit, dark_lang, database_fixups, degreed, django_comment_common, django_notify, django_openid_auth, djcelery, edx_oauth2_provider, edx_proctoring, edxval, embargo, enterprise, entitlements, experiments, external_auth, integrated_channel, microsite_configuration, milestones, oauth2, oauth2_provider, oauth_dispatch, oauth_provider, organizations, redirects, sap_success_factors, schedules, self_paced, sessions, site_configuration, sites, static_replace, student, submissions, survey, tagging, theming, track, user_api, user_authn, user_tasks, verified_track_content, verify_student, video_config, video_pipeline, waffle, waffle_utils, wiki, workflow, xapi, xblock_config, xblock_django
Running migrations:
  No migrations to apply.
Migrating CMS uploaded files to shared directory
Initialising forum...
docker-compose -f /home/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local exec forum sh -e -c bundle exec rake search:initialize
bundle exec rake search:rebuild_index
/openedx/cs_comments_service/lib/tasks/deep_search.rake:7: warning: already initialized constant ROOT
/openedx/cs_comments_service/lib/tasks/kpis.rake:7: warning: previous definition of ROOT was here
/openedx/cs_comments_service/lib/tasks/flags.rake:6: warning: already initialized constant ROOT
/openedx/cs_comments_service/lib/tasks/deep_search.rake:7: warning: previous definition of ROOT was here
/openedx/cs_comments_service/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/openedx/cs_comments_service/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated
/openedx/cs_comments_service/models/constants.rb:2: warning: already initialized constant COURSE_ID
/openedx/cs_comments_service/lib/tasks/db.rake:28: warning: previous definition of COURSE_ID was here
W, [2019-11-13T14:35:56.314851 #40]  WARN -- : Overwriting existing field _id in class User.
W, [2019-11-13T14:35:56.349168 #40]  WARN -- : MONGODB | Unsupported client option 'max_retries'. It will be ignored.
W, [2019-11-13T14:35:56.349229 #40]  WARN -- : MONGODB | Unsupported client option 'retry_interval'. It will be ignored.
W, [2019-11-13T14:35:56.349858 #40]  WARN -- : MONGODB | Unsupported client option 'timeout'. It will be ignored.
I, [2019-11-13T14:35:56.365978 #40]  INFO -- : Skipping initialization. The 'content' alias already exists. If 'rake search:validate_index' indicates a problem with the mappings, you could either use 'rake search:rebuild_index' to reload from the db or 'rake search:initialize[true]' to force initialization with an empty index.
/openedx/cs_comments_service/lib/tasks/deep_search.rake:7: warning: already initialized constant ROOT
/openedx/cs_comments_service/lib/tasks/kpis.rake:7: warning: previous definition of ROOT was here
/openedx/cs_comments_service/lib/tasks/flags.rake:6: warning: already initialized constant ROOT
/openedx/cs_comments_service/lib/tasks/deep_search.rake:7: warning: previous definition of ROOT was here
/openedx/cs_comments_service/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/openedx/cs_comments_service/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated
/openedx/cs_comments_service/models/constants.rb:2: warning: already initialized constant COURSE_ID
/openedx/cs_comments_service/lib/tasks/db.rake:28: warning: previous definition of COURSE_ID was here
W, [2019-11-13T14:35:58.016227 #47]  WARN -- : Overwriting existing field _id in class User.
W, [2019-11-13T14:35:58.062280 #47]  WARN -- : MONGODB | Unsupported client option 'max_retries'. It will be ignored.
W, [2019-11-13T14:35:58.062343 #47]  WARN -- : MONGODB | Unsupported client option 'retry_interval'. It will be ignored.
W, [2019-11-13T14:35:58.062374 #47]  WARN -- : MONGODB | Unsupported client option 'timeout'. It will be ignored.
I, [2019-11-13T14:35:58.303766 #47]  INFO -- : Added mappings to index: content_20191113143558066.
I, [2019-11-13T14:35:58.303852 #47]  INFO -- : Created new index: content_20191113143558066.
I, [2019-11-13T14:35:58.321940 #47]  INFO -- : Catch up from 2019-11-13 14:30:58 UTC complete.
I, [2019-11-13T14:35:58.366357 #47]  INFO -- : Alias [content] now points to index [content_20191113143558066].
I, [2019-11-13T14:35:58.377561 #47]  INFO -- : Catch up from 2019-11-13 14:30:58 UTC complete.
I, [2019-11-13T14:35:58.377606 #47]  INFO -- : Rebuild index complete.
All services initialised.
The Open edX platform is now running in detached mode
Your Open edX platform is ready and can be accessed at the following urls:

    http://localhost
    http://studio.localhost
    http://learn.logistics.corp
    http://10.3.24.241

Can you paste again the error log coming from the LMS? Is it the same as before?

Sure. Well, the Error 13 is theme related but looks new?

lms_1 | 2019-11-13 18:37:59,407 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme ‘branded’ not found in any of the following themes dirs,
dbilleter@HP-Z200-BC03:~$ tutor local logs --tail=100 lms
docker-compose -f /home/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local logs --tail 100 lms
Attaching to tutor_local_lms_1
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,407 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,408 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,408 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,409 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,409 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,410 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,410 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,411 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
lms_1             | 2019-11-13 18:37:59,411 ERROR 13 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]]
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 220, in get_current_theme
lms_1             |     themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 261, in get_theme_base_dir
lms_1             |     dir=get_theme_base_dirs(),
lms_1             | ValueError: Theme 'branded' not found in any of the following themes dirs, 
lms_1             | Theme dirs: 
lms_1             | [Path(u'/openedx/edx-platform/themes')]
dbilleter@HP-Z200-BC03:~$ 

This error almost certainly means that you did not build the openedx image (see docs). To build the image, and then restart your platform, run:

tutor images build openedx
tutor local quickstart --non-interactive

Hi Regis - just real quickly wanted to post the results from tutor images build openedx:
First error is:

Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease**
Temporary failure resolving 'archive.ubuntu.com'

I’ve done git clones from GitHub with no issues before.
Maybe do a curl command?

dbilleter@HP-Z200-BC03:~$ tutor images build openedx

Building image overhangio/openedx:3.7.4

docker build -t overhangio/openedx:3.7.4 /home/dbilleter/.local/share/tutor/env/build/openedx

Sending build context to Docker daemon 258kB

Step 1/44 : FROM ubuntu:16.04

---> b9409899fe86

Step 2/44 : MAINTAINER Overhang.io <[contact@overhang.io](mailto:contact@overhang.io)>

---> Running in d9f16af47acd

Removing intermediate container d9f16af47acd

---> 913136ec792c

Step 3/44 : RUN apt update && apt install -y language-pack-en git python-virtualenv build-essential software-properties-common curl git-core libxml2-dev libxslt1-dev python-virtualenv libmysqlclient-dev python-apt python-dev libxmlsec1-dev libfreetype6-dev swig gcc g++ gettext gfortran graphviz graphviz-dev libffi-dev libfreetype6-dev libgeos-dev libjpeg8-dev liblapack-dev libpng12-dev libsqlite3-dev libxml2-dev libxmlsec1-dev libxslt1-dev lynx nodejs npm ntp pkg-config && rm -rf /var/lib/apt/lists/*

---> Running in dd124b1b6a53

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

**Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease**

Temporary failure resolving 'archive.ubuntu.com'

Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease

Temporary failure resolving 'security.ubuntu.com'

Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease

Temporary failure resolving 'archive.ubuntu.com'

Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease

Temporary failure resolving 'archive.ubuntu.com'

Reading package lists...

Building dependency tree...

Reading state information...

All packages are up to date.

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...

Building dependency tree...

Reading state information...

Package python-apt is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Unable to locate package language-pack-en

E: Unable to locate package git

E: Unable to locate package python-virtualenv

E: Unable to locate package build-essential

E: Unable to locate package software-properties-common

E: Unable to locate package curl

E: Unable to locate package git-core

E: Unable to locate package libxml2-dev

E: Unable to locate package libxslt1-dev

E: Unable to locate package python-virtualenv

E: Unable to locate package libmysqlclient-dev

E: Package 'python-apt' has no installation candidate

E: Unable to locate package python-dev

E: Unable to locate package libxmlsec1-dev

E: Unable to locate package libfreetype6-dev

E: Unable to locate package swig

E: Unable to locate package gcc

E: Unable to locate package gettext

E: Unable to locate package gfortran

E: Unable to locate package graphviz

E: Unable to locate package graphviz-dev

E: Unable to locate package libffi-dev

E: Unable to locate package libfreetype6-dev

E: Unable to locate package libgeos-dev

E: Unable to locate package libjpeg8-dev

E: Unable to locate package liblapack-dev

E: Unable to locate package libpng12-dev

E: Unable to locate package libsqlite3-dev

E: Unable to locate package libxml2-dev

E: Unable to locate package libxmlsec1-dev

E: Unable to locate package libxslt1-dev

E: Unable to locate package lynx

E: Unable to locate package nodejs

E: Unable to locate package npm

E: Unable to locate package ntp

E: Unable to locate package pkg-config

The command '/bin/sh -c apt update && apt install -y language-pack-en git python-virtualenv build-essential software-properties-common curl git-core libxml2-dev libxslt1-dev python-virtualenv libmysqlclient-dev python-apt python-dev libxmlsec1-dev libfreetype6-dev swig gcc g++ gettext gfortran graphviz graphviz-dev libffi-dev libfreetype6-dev libgeos-dev libjpeg8-dev liblapack-dev libpng12-dev libsqlite3-dev libxml2-dev libxmlsec1-dev libxslt1-dev lynx nodejs npm ntp pkg-config && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Error: Command failed with status 100: docker build -t overhangio/openedx:3.7.4 /home/dbilleter/.local/share/tutor/env/build/openedx

dbilleter@HP-Z200-BC03:~$

@dickbilleter this seems to be a temporary error coming from the ubuntu repo server. Can you try running the command again?

Yes I tried the same command but it produced the same exact errors. It seems to not want to connect with archive.ubuntu.com.

or security.* or any place to connect, thanks.

Hi - I think it is important to share: these errors in lms_1 container:
TypeError: int() argument must be a string or a number, not ‘RequestSite’,
2019-11-20 19:24:35,120 ERROR 12 [django.request] exception.py:135 - Internal Server Error: /courses/course-v1:CEVA+CP101+2019_07/about,
Traceback (most recent call last):,

Is this error appearing after you successfully re-built the docker image?

Yes sir - same errors as before. I did tutor local stop then ran the tutor images build openedx with the same results. If I do tutor local start afterward, the same limited functionality:

  • Sign-in page has 500 errors in the catalog but you can sign in or register.
  • After signing in the dashboard appears and if you go to click on a course, you get 500 errors with the course.

Ok, this is worrying, and we need to investigate this. Just to be clear:

  1. The theme is now working, right?
  2. You no longer have the “Theme ‘branded’ not found” error, right?
  3. You no longer have the issue that prevented you to install packages from archive.ubuntu.com, right?
  4. Your ‘branded’ is now active, right?

Please paste here the full error stacktrace. I am aware that you already posted it earlier, but it was for an earlier Open edX version.

Also, can you please try to disable the ‘branded’ theme? Does the error still occur?

Ok Regis, please see replies below:

  1. The theme is now working, right?

I still had the same branded theme error, so I removed "branded from the admin panel. I also changed this entry from the lms.env.json, so it would default to original settings:
Added back: "COMPREHENSIVE_THEME_DIRS":["/openedx/themes"],
Removed: "ENABLE_COMPREHENSIVE_THEME_DIRS": true,

  1. You no longer have the “Theme ‘branded’ not found” error, right?

Correct. I still had the error until removing “branded” from the admin panel.

  1. You no longer have the issue that prevented you to install packages from archive.ubuntu.com, right?

I do still have the issue that prevented me from installing packages. One popular fix on stackoverflow was overriding the DNS server using google DNS server but didn’t work.

  1. Your ‘branded’ is now active, right?

No - it is not active, because when I removed the “branded” theme entry from the admin panel, and the true/false entry from the json file, the theme error went away.

Please paste here the full error stacktrace. I am aware that you already posted it earlier, but it was for an earlier Open edX version.

Sure the latest are now pasted. The 2 errors I see are here:

lms_1 | TypeError: int() argument must be a string or a number, not 'RequestSite'
lms_1 | 2019-11-25 14:36:54,669 ERROR 11 [django.request] exception.py:135 - Internal Server Error: /

dbilleter@HP-Z200-BC03:~$  tutor local logs --tail=100 lms
docker-compose -f /home/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local logs --tail 100 lms
Attaching to tutor_local_lms_1
lms_1             |     courses = [c for c in courses if has_access(user, permission_name, c)]
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 148, in has_access
lms_1             |     return _has_access_course(user, action, obj)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 420, in _has_access_course
lms_1             |     return _dispatch(checkers, action, user, courselike)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 674, in _dispatch
lms_1             |     result = table[action]()
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 384, in see_exists
lms_1             |     return ACCESS_GRANTED if (can_load() or can_enroll()) else ACCESS_DENIED
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 363, in can_load
lms_1             |     has_not_expired = check_course_expired(user, courselike)
lms_1             |   File "/openedx/edx-platform/openedx/features/course_duration_limits/access.py", line 105, in check_course_expired
lms_1             |     if not CourseDurationLimitConfig.enabled_for_enrollment(user=user, course_key=course.id):
lms_1             |   File "/openedx/edx-platform/openedx/features/course_duration_limits/models.py", line 141, in enabled_for_enrollment
lms_1             |     return cls.enabled_for_course(course_key=course_key, target_datetime=timezone.now())
lms_1             |   File "/openedx/edx-platform/openedx/features/course_duration_limits/models.py", line 171, in enabled_for_course
lms_1             |     current_config = cls.current(course_key=course_key)
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/config_model_utils/models.py", line 135, in current
lms_1             |     course_override_q
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 787, in filter
lms_1             |     return self._filter_or_exclude(False, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 805, in _filter_or_exclude
lms_1             |     clone.query.add_q(Q(*args, **kwargs))
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q
lms_1             |     clause, _ = self._add_q(q_object, self.used_aliases)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
lms_1             |     current_negated, allow_joins, split_subq)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
lms_1             |     current_negated, allow_joins, split_subq)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1276, in _add_q
lms_1             |     allow_joins=allow_joins, split_subq=split_subq,
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1206, in build_filter
lms_1             |     condition = lookup_class(lhs, value)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/lookups.py", line 24, in __init__
lms_1             |     self.rhs = self.get_prep_lookup()
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/related_lookups.py", line 112, in get_prep_lookup
lms_1             |     self.rhs = target_field.get_prep_value(self.rhs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 966, in get_prep_value
lms_1             |     return int(value)
lms_1             | TypeError: int() argument must be a string or a number, not 'RequestSite'
lms_1             | 2019-11-25 14:36:54,669 ERROR 11 [django.request] exception.py:135 - Internal Server Error: /
lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
lms_1             |     response = get_response(request)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
lms_1             |     response = self._get_response(request)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
lms_1             |     response = self.process_exception_by_middleware(e, request)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
lms_1             |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
lms_1             |     response = view_func(request, *args, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/util/cache.py", line 76, in wrapper
lms_1             |     response = view_func(request, *args, **kwargs)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/branding/views.py", line 77, in index
lms_1             |     return student.views.index(request, user=request.user)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/student/views/management.py", line 142, in index
lms_1             |     courses = get_courses(user)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/courses.py", line 465, in get_courses
lms_1             |     courses = [c for c in courses if has_access(user, permission_name, c)]
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 148, in has_access
lms_1             |     return _has_access_course(user, action, obj)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 420, in _has_access_course
lms_1             |     return _dispatch(checkers, action, user, courselike)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 674, in _dispatch
lms_1             |     result = table[action]()
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 384, in see_exists
lms_1             |     return ACCESS_GRANTED if (can_load() or can_enroll()) else ACCESS_DENIED
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/access.py", line 363, in can_load
lms_1             |     has_not_expired = check_course_expired(user, courselike)
lms_1             |   File "/openedx/edx-platform/openedx/features/course_duration_limits/access.py", line 105, in check_course_expired
lms_1             |     if not CourseDurationLimitConfig.enabled_for_enrollment(user=user, course_key=course.id):
lms_1             |   File "/openedx/edx-platform/openedx/features/course_duration_limits/models.py", line 141, in enabled_for_enrollment
lms_1             |     return cls.enabled_for_course(course_key=course_key, target_datetime=timezone.now())
lms_1             |   File "/openedx/edx-platform/openedx/features/course_duration_limits/models.py", line 171, in enabled_for_course
lms_1             |     current_config = cls.current(course_key=course_key)
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/config_model_utils/models.py", line 135, in current
lms_1             |     course_override_q
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 787, in filter
lms_1             |     return self._filter_or_exclude(False, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 805, in _filter_or_exclude
lms_1             |     clone.query.add_q(Q(*args, **kwargs))
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q
lms_1             |     clause, _ = self._add_q(q_object, self.used_aliases)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
lms_1             |     current_negated, allow_joins, split_subq)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
lms_1             |     current_negated, allow_joins, split_subq)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1276, in _add_q
lms_1             |     allow_joins=allow_joins, split_subq=split_subq,
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1206, in build_filter
lms_1             |     condition = lookup_class(lhs, value)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/lookups.py", line 24, in __init__
lms_1             |     self.rhs = self.get_prep_lookup()
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/related_lookups.py", line 112, in get_prep_lookup
lms_1             |     self.rhs = target_field.get_prep_value(self.rhs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 966, in get_prep_value
lms_1             |     return int(value)
**lms_1             | TypeError: int() argument must be a string or a number, not 'RequestSite'**
lms_1             | 2019-11-25 14:37:00,886 INFO 10 [tracking] logger.py:50 - {"username": "", "event_type": "/register", "ip": "10.3.2.205", "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36", "host": "learn.logistics.corp", "referer": "http://learn.logistics.corp/", "accept_language": "en-US,en;q=0.9", "event": "{\"POST\": {}, \"GET\": {\"next\": [\"/\"]}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/register"}, "time": "2019-11-25T14:37:00.885912+00:00", "page": null}

Also, can you please try to disable the ‘branded’ theme? Does the error still occur?

Is it removed and the branded error is gone.

Ok, now that your theme is disabled, we need to make sure that your are using the right openedx docker image. Please run:

tutor images pull openedx
tutor local stop
tutor local start -d

Is the error still occurring?

Thanks. I ran all three of these commands without any error.
For pulling image it showed a Digest: name and Status: Image is up to date for overhangio/openedx:3.7.4
The same 500 errors prevail.This looks to be the single error left when tailing the logs:

 lms_1             | TypeError: int() argument must be a string or a number, not 'RequestSite'
Attaching to tutor_local_lms_1
lms_1             |     return self.dispatch(request, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
lms_1             |     return handler(request, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
lms_1             |     return bound_func(*args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
lms_1             |     response = view_func(request, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
lms_1             |     return func.__get__(self, type(self))(*args2, **kwargs2)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
lms_1             |     return bound_func(*args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 43, in _cache_controlled
lms_1             |     response = viewfunc(request, *args, **kw)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
lms_1             |     return func.__get__(self, type(self))(*args2, **kwargs2)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
lms_1             |     return bound_func(*args, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/util/views.py", line 49, in inner
lms_1             |     response = view_func(request, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
lms_1             |     return func.__get__(self, type(self))(*args2, **kwargs2)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
lms_1             |     return bound_func(*args, **kwargs)
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/util/maintenance_banner.py", line 42, in _decorated
lms_1             |     return func(request, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
lms_1             |     return func.__get__(self, type(self))(*args2, **kwargs2)
lms_1             |   File "/openedx/edx-platform/openedx/features/course_experience/views/course_home.py", line 61, in get
lms_1             |     return super(CourseHomeView, self).get(request, course_id, 'courseware', **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
lms_1             |     return bound_func(*args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
lms_1             |     response = view_func(request, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
lms_1             |     return func.__get__(self, type(self))(*args2, **kwargs2)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
lms_1             |     return bound_func(*args, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/util/views.py", line 49, in inner
lms_1             |     response = view_func(request, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
lms_1             |     return func.__get__(self, type(self))(*args2, **kwargs2)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
lms_1             |     return bound_func(*args, **kwargs)
lms_1             |   File "/openedx/edx-platform/openedx/features/enterprise_support/api.py", line 313, in inner
lms_1             |     return view_func(request, course_id, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
lms_1             |     return func.__get__(self, type(self))(*args2, **kwargs2)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/views/views.py", line 510, in get
lms_1             |     course = get_course_with_access(request.user, 'load', course_key)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/courses.py", line 102, in get_course_with_access
lms_1             |     course = get_course_by_id(course_key, depth)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/courses.py", line 77, in get_course_by_id
lms_1             |     course = modulestore().get_course(course_key, depth=depth)
lms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 89, in inner
lms_1             |     retval = func(field_decorator=strip_key_collection, *args, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 394, in get_course
lms_1             |     return store.get_course(course_key, depth=depth, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py", line 58, in get_course
lms_1             |     return super(DraftVersioningModuleStore, self).get_course(course_id, depth=depth, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 1144, in get_course
lms_1             |     return self._get_structure(course_id, depth, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 1134, in _get_structure
lms_1             |     result = self._load_items(structure_entry, [root], depth, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 830, in _load_items
lms_1             |     return [runtime.load_item(block_key, course_entry, **kwargs) for block_key in block_keys]
lms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 133, in _load_item
lms_1             |     block = self.xblock_from_json(class_, course_key, block_key, block_data, course_entry_override, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 277, in xblock_from_json
lms_1             |     module._field_data = wrapper(module, module._field_data)  # pylint: disable=protected-access
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/field_overrides.py", line 279, in wrap
lms_1             |     enabled_providers = cls._providers_for_block(block)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/courseware/field_overrides.py", line 303, in _providers_for_block
lms_1             |     provider_class for provider_class in cls.provider_classes if provider_class.enabled_for(block)
lms_1             |   File "/openedx/edx-platform/openedx/features/content_type_gating/field_override.py", line 59, in enabled_for
lms_1             |     return ContentTypeGatingConfig.enabled_for_course(course_key=course.scope_ids.usage_id.course_key)
lms_1             |   File "/openedx/edx-platform/openedx/features/content_type_gating/models.py", line 182, in enabled_for_course
lms_1             |     current_config = cls.current(course_key=course_key)
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/config_model_utils/models.py", line 135, in current
lms_1             |     course_override_q
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 787, in filter
lms_1             |     return self._filter_or_exclude(False, *args, **kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 805, in _filter_or_exclude
lms_1             |     clone.query.add_q(Q(*args, **kwargs))
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q
lms_1             |     clause, _ = self._add_q(q_object, self.used_aliases)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
lms_1             |     current_negated, allow_joins, split_subq)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
lms_1             |     current_negated, allow_joins, split_subq)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1276, in _add_q
lms_1             |     allow_joins=allow_joins, split_subq=split_subq,
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1206, in build_filter
lms_1             |     condition = lookup_class(lhs, value)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/lookups.py", line 24, in init
lms_1             |     self.rhs = self.get_prep_lookup()
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/related_lookups.py", line 112, in get_prep_lookup
lms_1             |     self.rhs = target_field.get_prep_value(self.rhs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 966, in get_prep_value
lms_1             |     return int(value)
lms_1             | TypeError: int() argument must be a string or a number, not 'RequestSite'

@dickbilleter I am very sorry that this error is happening to your platform. I’d sincerely like to be able to debug it, as it seems to indicate that there is a major issue when upgrading from Hawthorn to Ironwood. However, at this point, it’s not possible for me to debug this any further without running some manual commands on the server where this is running.

Do you think it could be possible for you to grant me access to the server? Or alternatively to send me your entire ~/.local/share/tutor/ folder (compressed in a single file) – do not place it on a public server, as it includes confidential data.