Ironwood.master course view error

There are some errors in the latest version of ironwood.master(yesterday).

I cant seem to view the demonstration course:

After clicking on learn more

The following error occurs https://ibb.co/2hYN4dy

No customised theme has been installed - this is the default theme.

The LMS log files show this:

 ubuntu@ip-172-31-16-69:/edx/app/edxapp/edx-platform/themes/edx.custom-theme/themes/custom-theme/lms/templates/static_templates$ sudo tail -f /edx/var/log/lms/edx.log
Aug 30 04:45:02 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  27238] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
Aug 30 04:50:03 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  26865] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
Aug 30 04:55:03 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  26972] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
Aug 30 05:00:04 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  26924] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
Aug 30 05:05:04 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  26972] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
Aug 30 05:10:00 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  26846] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
Aug 30 05:15:00 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  27130] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
Aug 30 05:20:01 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  26891] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
Aug 30 05:22:01 ip-172-31-16-69 [service_variant=lms][openedx.core.djangoapps.catalog.utils][env:sandbox] WARNING [ip-172-31-16-69  26924] [utils.py:103] - Failed to get program UUIDs from the cache for site example.com.
Aug 30 05:23:20 ip-172-31-16-69 [service_variant=lms][openedx.core.djangoapps.catalog.utils][env:sandbox] WARNING [ip-172-31-16-69  27028] [utils.py:103] - Failed to get program UUIDs from the cache for site example.com.
Aug 30 05:24:26 ip-172-31-16-69 [service_variant=lms][py.warnings][env:sandbox] WARNING [ip-172-31-16-69  27238] [__init__.py:1564] - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py:1145: DeprecationWarning: Use of .. or absolute path in a resource path is not allowed and will raise exceptions in a future release.self, resource_name
Aug 30 05:25:01 ip-172-31-16-69 [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [ip-172-31-16-69  26982] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"

The CMS log files show this:

ubuntu@ip-172-31-16-69:/edx/app/edxapp/edx-platform/themes/edx.custom-theme/themes/custom-theme/lms/templates/static_templates$ sudo tail -f /edx/var/log/cms/edx.log
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26580] [utils.py:50] - Could not import Registry from third_party_auth.provider
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26580] [utils.py:51] - cannot import name EnterpriseCustomerUser
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26588] [utils.py:50] - Could not import Registry from third_party_auth.provider
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26588] [utils.py:51] - cannot import name EnterpriseCustomerUser
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26549] [utils.py:50] - Could not import Registry from third_party_auth.provider
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26549] [utils.py:51] - cannot import name EnterpriseCustomerUser
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26552] [utils.py:50] - Could not import Registry from third_party_auth.provider
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26552] [utils.py:51] - cannot import name EnterpriseCustomerUser
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26578] [utils.py:50] - Could not import Registry from third_party_auth.provider
Aug 29 19:23:33 ip-172-31-16-69 [service_variant=cms][enterprise.utils][env:sandbox] WARNING [ip-172-31-16-69  26578] [utils.py:51] - cannot import name EnterpriseCustomerUser

Ok so I just solved this problem by installing ironwood.master and then ironwood.2 using these instructions

To clarify you do this on the same instance - do not launch a new instance.

You have to install ironwood.master first to avoid the ansible python modules error and then you can overcome the course view error by reverting back to ironwood.2

I don’t understand why this would fix things. It is not recommended to go backwards to ironwood.2. Can you install ironwood.master again and see if the problem is resolved?

I just completed a fresh install of ironwood.master and the same problem occurs.

I just realised though this solves the course error problem it breaks celery resulting in features like the import and export of courses as well as the multiple choice submission to not work:

not connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:23:30 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer]    [env:sandbox] ERROR [ip-172-31-25-110  26956] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:24:00 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-172-31-25-110  26706] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:24:04 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer] [env:sandbox] ERROR [ip-172-31-25-110  26832] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:24:05 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-172-31-25-110  26956] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:24:35 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-172-31-25-110  26706] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:24:39 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-172-31-25-110  26832] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:24:40 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-172-31-25-110  26956] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:25:10 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-172-31-25-110  26706] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...
Sep 10 09:25:14 ip-172-31-25-110 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-172-31-25-110  26832] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 32.00 seconds...

i’m facing the same error here…

@Terry can you provide more details? There were two errors reported in this topic (@kribby: a good reason not to report follow-on errors in the same thread).

Hi @nedbat,
when i try to view a course on my LMS, as a learner i’m getting the page not found error(Course about page),but everything works fine when i’m logged in i can view the course about page

@nedbat

@Terry thanks, are there any clues in the LMS log files?

@nedbat …thats what my log file is showing

Sep 13 16:01:03 terry [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [terry 28723] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer. Trying again in 32.00 seconds...

Might be a case of missing users ?

Have you tried creating admin or edx user in celery ?

Im fairly sure this isn’t a celery issue

@chintan solved the celery issue…but still getting a 404 when trying to view the course