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

Good Day - I’m new to the community. We did tutor local install on ubuntu using Docker. I haven’t been able to get the theme changed. I did try to follow the steps using the how-to with changing the logo and the ‘branded’ theme steps and followed all steps. It’s looking for the default theme directory.
I have the directory structure there but it keeps defaulting to the old theme.

Appreciate any help you can provide:

  • A couple notes:
    I set the theme in the admin tool and also did not change any of the lms.env.json
lms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 260, 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-10-16 13:19:49,442 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,443 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,446 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,446 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,447 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,447 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,450 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,450 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,451 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,451 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,452 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,452 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,453 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,453 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,454 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,454 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,454 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,455 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,455 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,456 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,456 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,457 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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-10-16 13:19:49,457 ERROR 10 [openedx.core.djangoapps.theming.helpers] helpers.py:224 - 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 219, 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 260, 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')]
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /dashboard HTTP/1.1" 200 27212 "learn.logistics.corp/login?next=%2F" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/i18n/en/djangojs.e37eef1ffc63.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/ie11_find_array.bd1c6dc7a133.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/css/lms-style-vendor.68e48093f5dd.css HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/css/lms-main-v1.ce289cf0e00b.css HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/lms-base-vendor.cb449c35a4fc.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/lms-base-application.2062f84b79fa.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/bundles/commons.d60dcd98c024881d011e.c835e91d09f6.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/lms/js/require-config.8e00198660b0.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/images/logo.b6c374d66d57.png HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/images/profiles/default_50.3455a6581573.png HTTP/1.1" 200 420 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/commerce/credit.e4a82bfe5f09.js HTTP/1.1" 200 1333 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/fonts/vendor/fontawesome-webfont.25a32416abee.eot? HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /asset-v1:Enterprise-Services-Development-102+CESD-100+2019+type@asset+block@course_template.png HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /asset-v1:CEVA-Enterprise-Services-Development+CESD_100+2019+type@asset+block@blog-course-authoring-tool-680x381.png HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/dateutil_factory.841c29e02056.js?raw HTTP/1.1" 200 419740 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/dashboard.31de4a5a002f.js HTTP/1.1" 200 13437 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/bundles/UnenrollmentFactory.1a105338599fdc1caae5.30bd03cbf0d8.js HTTP/1.1" 200 4321 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/bundles/EntitlementUnenrollmentFactory.2652af07818af6beae90.f87981064bf6.js HTTP/1.1" 200 6384 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/course_search/js/dashboard_search_factory.d7eb04f885dd.js?raw HTTP/1.1" 200 9968 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/vendor/noreferrer.aa62a3e70ffa.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/utils/navigation.08930e16ab3d.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"
nginx_1           | 10.3.2.205 - - [16/Oct/2019:13:19:49 +0000] "GET /static/js/header/header.309a1243e175.js HTTP/1.1" 304 0 "learn.logistics.corp/dashboard" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)" "-"

I’m willing to bet five jars of my favourite brand of peanut butter :peanuts: that the instructions from the docs are correct and that you did not follow them correctly :wink: so it’s going to be difficult to help you if you do not describe the exact steps you followed.

OK, let me see… :grinning:

Note: lms.env.json: "ENABLE_COMPREHENSIVE_THEMING": true` is in place.

1 To do so, you will have to create a very basic theme that will contain just your logo image. Head to the tutor root folder (indicated by tutor config printroot ) and create the following directory structure:
Done. Created: ./.local/share/tutor/env/build/openedx/themes/branded/lms/static/images/

  1. On Ubuntu, copied my logo.png into the directory.

  2. You should then re-build the openedx docker image, as per the Tutor documentation on theming 1:
    tutor images build

Get an error here: dbilleter@HP-Z200-BC03:~$ tutor images build openedx
Building image regis/openedx:hawthorn
docker build -t regis/openedx:hawthorn /home/dbilleter/.local/share/tutor/env/build/openedx
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/dbilleter/.local/share/tutor/env/build/openedx/Dockerfile: no such file or directory
Error: Command failed with status 1: docker build -t regis/openedx:hawthorn /home/dbilleter/.local/share/tutor/env/build/openedx

  1. Then, restart your platform:
    tutor local stop && tutor local start
    Done OK

  2. To activate your themes, head over to the administration panel at http://localhost/admin/theming/sitetheme/ 1 (replace “localhost” by your real host for a live production platform). Click the “Add site theme” button to create a theme with a dir name equal to “branded” that will be used by the “localhost” site:
    Done OK

  3. Again, you should replace “localhost” by the real LMS domain name, given by tutor config printvalue LMS_HOST , for a live production platform.
    Correct value in the lms.env.json file because DNS works.

That’s it! When you reload the LMS or the CMS pages in your browser, you should see that the default logo has been replaced by your own custom image.

Why are you building the hawthorn image, and not ironwood? Which tutor version are you running?

Thanks for the quick response! We installed hawthorn back in early spring I believe before ironwood.

Tutor version is tutor 3.0.5 with Docker CE and Compose, using tutor local quickstart?

Would this be the easiest and fastest way to install ironwood

Although it’s good to see a long time user of tutor, yes I strongly recommend to upgrade :wink:

Thanks Regis. I upgraded to Ironwood, following the steps from the Github link. Then I did a tutor local restart and it appears all the containers are updated with I

ronwood now (attached) and running in green on Portainer.

The main login page shows a 500 error (2nd attachment)

The nginx log on Portainer shows a 500 and maybe 200 errors? (after http/1.1) though not labeled as error.

Any suggestions are appreciated!

Did you do a “restart” or a “quickstart”? (hint: it should be a quickstart)
See https://docs.tutor.overhang.io/install.html#upgrading

Thanks again Regis. I used tutor local restart. Will using tutor local quickstart erase all data? If so I’ll need to export my handful of courses then re-import them.

If I do need to export them first, with the UI for both LMS/CMS producing 500 errors, I may need to export from command line?

No, an upgrade will not erase all data :slight_smile: But you should probably backup your data prior to any major upgrade. To do so, just create a backup of the $(tutor config printroot)/data folder, as described here: https://docs.tutor.overhang.io/local.html#backups-migrating-to-a-different-server

Great. I backed up my old files as you directed on our Ubuntu box – they all appear to be there.

I did tutor local quickstart and everything installed correctly. After, it finished I was able to log in, and it took me correctly to a dashboard, explore courses, discover new, profile, account all work.
Here are items that still have issues:

  1. Our log-in page produces a 500 error.
  2. Our log-out page produces 500 error.
  3. When I try to click on any of the existing courses, they produce 500 errors.

Appreciate the help. Portainer still shows Ironwood and all containers running in green.

Please follow the instructions here to view the logs for the LMS. There should be an error there, please paste it here.

Thanks again. Here are the 2 errors saw after running I saw from tutor local logs --follow:
Note: with the theme issue, however, I can change to pre-existing themes only, like red-theme, and Stanford-style and the theme updates, though. But the same 500 errors appear on home (in place of my catalog), clicking on courses in catalog, and logout.

2019-11-04 16:43:46,734 ERROR 11 [openedx.core.djangoapps.theming.helpers] helpers.py:225 - Theme not found in any of the themes dirs. [Theme 'edx.custom-theme' not found in any of the following themes dirs, 

forum_1           | /openedx/cs_comments_service/vendor/bundle/ruby/2.4.0/gems/unicorn-5.3.0/lib/unicorn/http_server.rb:205:in `pid=': Already running on PID:7 (or pid=/tmp/forum_unicorn.pid is stale) (ArgumentError)

Screens are below:

  1. Home page and Logout page (Nearly identical) – 500

  2. After logging in, Catalog appears correct and refiners too.

  3. When clicking on courses after logging in, they show 500 errors.

I have Studio running, but when I log in, all 7 courses appear fine on the dashboard, but produce 500 errors when I click any of them.

Please post the complete output of tutor local logs --tail=100 lms after triggering an error in the LMS (or tutor local logs --tail=100 cms after triggering an error in the CMS). Otherwise we simply can’t debug.

Hello Regis,

I posted the complete output from tailing the logs after producing the 500 errors for LMS. Thanks again! I will do the same for CMS.

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             |   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-05 14:05:49,757 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'

CMS Output too. Thanks!

dbilleter@HP-Z200-BC03:~$ tutor local logs --tail=100 cms
docker-compose -f /home/dbilleter/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local logs --tail 100 cms
Attaching to tutor_local_cms_1
cms_1             |   File "/openedx/edx-platform/openedx/features/content_type_gating/models.py", line 182, in enabled_for_course
cms_1             |     current_config = cls.current(course_key=course_key)
cms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/config_model_utils/models.py", line 135, in current
cms_1             |     course_override_q
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 787, in filter
cms_1             |     return self._filter_or_exclude(False, *args, **kwargs)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 805, in _filter_or_exclude
cms_1             |     clone.query.add_q(Q(*args, **kwargs))
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q
cms_1             |     clause, _ = self._add_q(q_object, self.used_aliases)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
cms_1             |     current_negated, allow_joins, split_subq)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
cms_1             |     current_negated, allow_joins, split_subq)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1276, in _add_q
cms_1             |     allow_joins=allow_joins, split_subq=split_subq,
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1206, in build_filter
cms_1             |     condition = lookup_class(lhs, value)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/lookups.py", line 24, in __init__
cms_1             |     self.rhs = self.get_prep_lookup()
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/related_lookups.py", line 112, in get_prep_lookup
cms_1             |     self.rhs = target_field.get_prep_value(self.rhs)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 966, in get_prep_value
cms_1             |     return int(value)
cms_1             | TypeError: int() argument must be a string or a number, not 'RequestSite'
cms_1             | 2019-11-04 19:23:47,168 ERROR 10 [django.request] exception.py:135 - Internal Server Error: /course/course-v1:CEVA-Enterprise-Services-Development+CESD_100+2019
cms_1             | Traceback (most recent call last):
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
cms_1             |     response = get_response(request)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
cms_1             |     response = self._get_response(request)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
cms_1             |     response = self.process_exception_by_middleware(e, request)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
cms_1             |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 185, in inner
cms_1             |     return func(*args, **kwargs)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
cms_1             |     return view_func(request, *args, **kwargs)
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/course.py", line 273, in course_handler
cms_1             |     return course_index(request, CourseKey.from_string(course_key_string))
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
cms_1             |     return view_func(request, *args, **kwargs)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
cms_1             |     response = view_func(request, *args, **kwargs)
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/course.py", line 629, in course_index
cms_1             |     course_structure = _course_outline_json(request, course_module)
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/course.py", line 348, in _course_outline_json
cms_1             |     user=request.user
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/item.py", line 1122, in create_xblock_info
cms_1             |     is_concise=is_concise
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/item.py", line 1437, in _create_xblock_child_info
cms_1             |     ) for child in xblock.get_children()
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/item.py", line 1122, in create_xblock_info
cms_1             |     is_concise=is_concise
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/item.py", line 1437, in _create_xblock_child_info
cms_1             |     ) for child in xblock.get_children()
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/item.py", line 1122, in create_xblock_info
cms_1             |     is_concise=is_concise
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/item.py", line 1437, in _create_xblock_child_info
cms_1             |     ) for child in xblock.get_children()
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/views/item.py", line 1172, in create_xblock_info
cms_1             |     user_partitions = get_user_partition_info(xblock, course=course)
cms_1             |   File "/openedx/edx-platform/cms/djangoapps/contentstore/utils.py", line 398, in get_user_partition_info
cms_1             |     for p in sorted(get_all_partitions_for_course(course, active_only=True), key=lambda p: p.name):
cms_1             |   File "/openedx/edx-platform/openedx/core/lib/cache_utils.py", line 74, in _decorator
cms_1             |     result = f(*args, **kwargs)
cms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/partitions/partitions_service.py", line 39, in get_all_partitions_for_course
cms_1             |     all_partitions = course.user_partitions + _get_dynamic_partitions(course)
cms_1             |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/partitions/partitions_service.py", line 82, in _get_dynamic_partitions
cms_1             |     create_content_gating_partition(course),
cms_1             |   File "/openedx/edx-platform/openedx/features/content_type_gating/partitions.py", line 33, in create_content_gating_partition
cms_1             |     enabled_for_course = ContentTypeGatingConfig.enabled_for_course(course_key=course.id)
cms_1             |   File "/openedx/edx-platform/openedx/features/content_type_gating/models.py", line 182, in enabled_for_course
cms_1             |     current_config = cls.current(course_key=course_key)
cms_1             |   File "/openedx/edx-platform/openedx/core/djangoapps/config_model_utils/models.py", line 135, in current
cms_1             |     course_override_q
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 787, in filter
cms_1             |     return self._filter_or_exclude(False, *args, **kwargs)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 805, in _filter_or_exclude
cms_1             |     clone.query.add_q(Q(*args, **kwargs))
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q
cms_1             |     clause, _ = self._add_q(q_object, self.used_aliases)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
cms_1             |     current_negated, allow_joins, split_subq)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1270, in _add_q
cms_1             |     current_negated, allow_joins, split_subq)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1276, in _add_q
cms_1             |     allow_joins=allow_joins, split_subq=split_subq,
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1206, in build_filter
cms_1             |     condition = lookup_class(lhs, value)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/lookups.py", line 24, in __init__
cms_1             |     self.rhs = self.get_prep_lookup()
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/related_lookups.py", line 112, in get_prep_lookup
cms_1             |     self.rhs = target_field.get_prep_value(self.rhs)
cms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 966, in get_prep_value
cms_1             |     return int(value)
cms_1             | TypeError: int() argument must be a string or a number, not 'RequestSite'
cms_1             | 2019-11-04 20:38:26,880 INFO 11 [tracking] logger.py:50 - {"username": "", "event_type": "/signin", "ip": "10.3.2.205", "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763", "host": "learnstudio.logistics.corp", "referer": "http://learnstudio.logistics.corp/home/", "accept_language": "", "event": "{\"POST\": {}, \"GET\": {\"next\": [\"/course/course-v1:CEVA-Enterprise-Services-Development+CESD_100+2019\"]}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/signin"}, "time": "2019-11-04T20:38:26.879917+00:00", "page": null}
cms_1             | 2019-11-04 22:19:10,931 INFO 11 [tracking] logger.py:50 - {"username": "", "event_type": "/signin", "ip": "10.3.2.205", "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763", "host": "learnstudio.logistics.corp", "referer": "http://learnstudio.logistics.corp/home/", "accept_language": "", "event": "{\"POST\": {}, \"GET\": {\"next\": [\"/course/course-v1:CEVA-Enterprise-Services-Development+CESD_100+2019\"]}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/signin"}, "time": "2019-11-04T22:19:10.931018+00:00", "page": null}
dbilleter@HP-Z200-BC03:~$

Sorry, I saw you mentioned tailing with lms after producing errors with the CMS. If tailing cms (previous post) is not good, just let me know. Thx.

Hmmmm this is the first time that I see this error… Did you customize the platform in any way? In particular:

  • Did you build a custom Open edX image? If yes you will have to run tutor images build openedx prior to quickstart.
  • Did you define custom settings?
  • Are you running a custom theme?
  • Did you install extra requirements?
  • Are you running an edx-platform fork?

Hi Regis,
No customizations at all. Just an attempt to customize theme - everything out of the box!

Did you customize the platform in any way? In particular:

  1. Did you build a custom Open edX image? If yes you will have to run tutor images build openedx prior to `quickstart’
    DB: No, but had to run tutor images build openedx as part of custom theme, see #3.

  2. Did you define [custom settings] No custom settings defined. I read the post and nothing different defined.

  3. Are you running a custom theme? Yes to this question: I followed the steps to create a custom theme: https://docs.tutor.overhang.io/configuration.html#adding-custom-themes
    In order, followed the steps and ran tutor images build openedx
    In the first post above, vying for 5 jars of peanut butter :slight_smile:, here was error I got when building:

  4. You should then re-build the openedx docker image, as per the Tutor documentation on theming 1: tutor images build
    Get an error here:

dbilleter@HP-Z200-BC03:~$ tutor images build openedx
Building image regis/openedx:hawthorn
docker build -t regis/openedx:hawthorn /home/dbilleter/.local/share/tutor/env/build/openedx
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/dbilleter/.local/share/tutor/env/build/openedx/Dockerfile: no such file or directory
Error: Command failed with status 1: docker build -t regis/openedx:hawthorn /home/dbilleter/.local/share/tutor/env/build/openedx 

Note: This led me to upgrade to Ironwood, from your advice…

  • Did you install extra requirements? No
  • Are you running an edx-platform fork? No. But we did install your Ironwood upgrade over Hawthorn on Ubuntu.

Please post here the output of the following commands:

  • tutor --version
  • tutor plugins list
  • docker ps

Did you try to run Open edX without your custom theme? To do so, you should run the public openedx docker image:

tutor local stop
tutor images pull openedx
tutor local quickstart --non-interactive

Does the 500 error still occur?