hi guys…im trying to import a course but i’m getting the following error.
Unpacking
There was an error while unpacking the file. [Errno 104] Connection reset by peer
hi guys…im trying to import a course but i’m getting the following error.
There was an error while unpacking the file. [Errno 104] Connection reset by peer
Hi Terry,
You should check the logged messages in these files: /edx/var/log/{lms,cms}/edx.log
.
Run the following command:
sudo tail -f /edx/var/log/{lms,cms}/edx.log
then retry to import your course and see what happens.
getting connection reset by peer error
@Terry If you could copy/paste the log output here it could help people in debugging the issue.
Below are my log files
138220 Nov 27 17:54:48 dzidzo [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [dzidzo 2345] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
138221 Trying again in 32.00 seconds...
138222 Nov 27 17:55:04 dzidzo [service_variant=lms][openedx.core.lib.log_utils][env:sandbox] INFO [dzidzo 8915] [log_utils.py:36] - ApiKeyHeaderPermission used: ip="127.0.0.1", path="/notifier_api/v1/users/"
138223 Nov 27 17:55:04 dzidzo [service_variant=lms][py.warnings][env:sandbox] WARNING [dzidzo 8915] [paginator.py:119] - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/pagination.py:208: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'django.contrib.auth.models.User'> QuerySet.
138224 paginator = self.django_paginator_class(queryset, page_size)
138225 Nov 27 17:55:22 dzidzo [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [dzidzo 2347] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
138226 Trying again in 32.00 seconds...
138227 Nov 27 17:55:22 dzidzo [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [dzidzo 2346] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
138228 Trying again in 32.00 seconds...
138229 Nov 27 17:55:23 dzidzo [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [dzidzo 2345] [consumer.py:366] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Hey Terry,
Seems that you have a problem with the celery. But you are lucky because @lpm0073 has written an article about troubleshooting celery which is really helpful.
Hi @mahyard i have followed every step of that article but im still getting the same error
Hi @Terry,
Here it has some issue with celery as @mahyard mentioned.
For that first check whether celery has users?
You can check users with this: sudo rabbitmqctl list_users
If not then add users and set necessary permissions.
sudo rabbitmqctl add_user celery celery
sudo rabbitmqctl set_permissions -p / celery "." "." ".*"
sudo rabbitmqctl add_user edx edx
sudo rabbitmqctl set_permissions -p / edx "." "." ".
sudo rabbitmqctl add_user admin admin
sudo rabbitmqctl set_permissions -p / admin "." "." "."
Again check users are created or not with the aforementioned command.
Restart your CMS and rabbitmq-server services and you are good to go.
@jramnai i deleted the exitsting 3 users{celery,edx,admin} and set the permisions but still getting the same error…
/etc/rabbitmq/rabbitmq-env.conf
, IP should be localhost