Jan 8 20:30:53 ip-10-0-0-183 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-10-0-0-183 1601] [consumer.py:796] - consumer: Cannot connect to amqp://cel...@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 2.00 seconds...
Jan 8 20:30:53 ip-10-0-0-183 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-10-0-0-183 1774] [consumer.py:796] - consumer: Cannot connect to amqp://cel...@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Trying again in 2.00 seconds...
Jan 8 20:30:53 ip-10-0-0-183 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-10-0-0-183 1599] [consumer.py:796] - consumer: Cannot connect to amqp://cel...@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
Of course, there are tons of them... The only thing I've done is create an image from one machine and launch a new server with a different IP address. I am almost certain this is because the original IP address changed.
Any suggestions on how to fix it? Thanks.
ubuntu@ip-10-0-0-183:/edx/var/log/lms$ sudo rabbitmqctl status
Status of node 'rabbit@ip-10-0-0-183' ...
[{pid,1381},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.2.3"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.2.3"},
{webmachine,"webmachine","1.10.3-rmq3.2.3-gite9359c7"},
{mochiweb,"MochiMedia Web Server","2.7.0-rmq3.2.3-git680dba8"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.2.3"},
{rabbit,"RabbitMQ","3.2.3"},
{os_mon,"CPO CXC 138 46","2.2.7"},
{inets,"INETS CXC 138 49","5.7.1"},
{xmerl,"XML parser","1.2.10"},
{mnesia,"MNESIA CXC 138 12","4.5"},
{amqp_client,"RabbitMQ AMQP Client","3.2.3"},
{sasl,"SASL CXC 138 11","2.1.10"},
{stdlib,"ERTS CXC 138 10","1.17.5"},
{kernel,"ERTS CXC 138 10","2.14.5"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1] [async-threads:30] [kernel-poll:true]\n"},
{memory,
[{total,30832720},
{connection_procs,5296},
{queue_procs,5296},
{plugins,346744},
{other_proc,9247168},
{mnesia,57952},
{mgmt_db,47032},
{msg_index,23904},
{other_ets,1041840},
{binary,3152},
{code,17193313},
{atom,1553681},
{other_system,1307342}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,1579615846},
{disk_free_limit,50000000},
{disk_free,14761238528},
{file_descriptors,
[{total_limit,924},{total_used,3},{sockets_limit,829},{sockets_used,1}]},
{processes,[{limit,1048576},{used,191}]},
{run_queue,0},
{uptime,77}]
...done.
No succes with the ansible-playbook, but it is giving me some ideas. Thanks.
--
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/1SsdJ39IQRc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openedx-ops...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RABBITMQ_NODE_IP_ADDRESS from 10.0.0.35 to 127.0.0.1
I was wondering why I couldn't connect on localhost and why my error messages in /edx/var/log/lms were of the type
Jan 15 20:09:10 ip-10-0-0-35 [service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [ip-10-0-0-35 1508] [consumer.py:796] - consumer: Cannot connect to amqp://cel...@127.0.0.1:5672//: [Errno 111] Connection refused.
Thanks for your help Ed, it allowed me to learn a little bit more about ansible and rabbitmq.To unsubscribe from this group and all its topics, send an email to openedx-ops+unsubscribe@googlegroups.com.
Hi everyone!
sudo rabbitmqctl list_users
sudo rabbitmqctl list_permissions -p /celery
sudo rabbitmqctl add_user celery celery
sudo rabbitmqctl set_permissions -p /celery ".*" ".*" ".*"
sudo service rabbitmq-server restart
EDXAPP_CELERY_USER: 'celery'EDXAPP_CELERY_PASSWORD: '*************'
If you have no "celery" user, do the following:sudo rabbitmqctl add_user celery celeryKeep in mind that the second "celery" in the command is the default password for celery user. If you changed it in edx auth files (you should have) then edit the command appropriatelysudo rabbitmqctl set_permissions -p /celery ".*" ".*" ".*"Keep in mind that the command above gave full permissions to the celery user. Edit permissions to make this more secure.sudo service rabbitmq-server restart
sudo rabbitmqctl set_permissions -p /celery ".*" ".*" ".*"
sudo rabbitmqctl set_permissions celery ".*" ".*" ".*"
[service_variant=lms][celery.worker.consumer][env:sandbox] ERROR [box-dev 21289] [consumer.py:364] - consumer: Cannot connect to amqp://celery:**@127.0.0.1:5672//: [Errno 104] Connection reset by peer.
rabbitmq-conf:
RABBITMQ_NODE_PORT=5672
RABBITMQ_NODE_IP_ADDRESS=127.0.0.1
output from 'sudo rabbitmqctl status'
Status of node 'rabbit@box-dev' ...
[{pid,1213},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.2.3"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.2.3"},
{rabbit,"RabbitMQ","3.2.3"},
{mnesia,"MNESIA CXC 138 12","4.5"},
{os_mon,"CPO CXC 138 46","2.2.7"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.2.3"},
{webmachine,"webmachine","1.10.3-rmq3.2.3-gite9359c7"},
{mochiweb,"MochiMedia Web Server","2.7.0-rmq3.2.3-git680dba8"},
{xmerl,"XML parser","1.2.10"},
{inets,"INETS CXC 138 49","5.7.1"},
{amqp_client,"RabbitMQ AMQP Client","3.2.3"},
{sasl,"SASL CXC 138 11","2.1.10"},
{stdlib,"ERTS CXC 138 10","1.17.5"},
{kernel,"ERTS CXC 138 10","2.14.5"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:30] [kernel-poll:true]\n"},
{memory,
[{total,32391312},
{connection_procs,65176},
{queue_procs,5408},
{plugins,328424},
{other_proc,9496320},
{mnesia,60144},
{mgmt_db,48480},
{msg_index,34160},
{other_ets,1060896},
{binary,697608},
{code,17202873},
{atom,1598585},
{other_system,1793238}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,3030636953},
{disk_free_limit,50000000},
{disk_free,24899944448},
{file_descriptors,
[{total_limit,924},{total_used,5},{sockets_limit,829},{sockets_used,3}]},
{processes,[{limit,1048576},{used,198}]},
{run_queue,0},
{uptime,8775}]
I'm at a bit of a loss here ...
Any help would be greatly appreciated.
sudo rabbitmqctl set_permissions -p / celery ".*" ".*" ".*"
--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/7e5e40c5-e626-4395-80fe-c08ac3e52326%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/7e5e40c5-e626-4395-80fe-c08ac3e52326%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/1SsdJ39IQRc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/CAFpz4ce%3DvMb_rbyywqKXdtaps7adXcz%3DbQ9ijvz6j_jEfp9%3Duw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Just remove the last part... -e@/edx/app/edx_ansible/server-vars.yml if you do not have a server-vars file.
To unsubscribe from this group and stop receiving emails from it, send an email to opene...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/7e5e40c5-e626-4395-80fe-c08ac3e52326%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/1SsdJ39IQRc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opene...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/CAFpz4ce%3DvMb_rbyywqKXdtaps7adXcz%3DbQ9ijvz6j_jEfp9%3Duw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.