Skip to content

Instantly share code, notes, and snippets.

@alexandru
Created March 7, 2011 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandru/859106 to your computer and use it in GitHub Desktop.
Save alexandru/859106 to your computer and use it in GitHub Desktop.
how I solved the rabbitmq connection error
#
# This is related to (reported by Scott, also happened to me):
# https://gist.github.com/12420d9060341b10e8cc
#
# Guys, syncdb / migrate should in no way be dependent on any server other than PostgreSQL.
#
# Secondly, this method requires access to a port that's not the standard RabbitMQ port.
# I have no idea what port 61613 should be doing, or how to set it up.
#
# And even though I have started RabbitMq and it is properly set, it still wouldn't work.
# Also, launch_safe is awful to get running - it's giving me lots of errors related to Nginx now.
#
# It's also a chicken-egg problem, it's natural that "syncdb" is first, "launch_safe" second.
#
def send_message(topic, data):
return # yeah baby
conn = stomp.Connection([(settings.BROKER_HOST,61613)],
settings.BROKER_USER, settings.BROKER_PASSWORD)
conn.start()
conn.connect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment