﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
5520	celery has wrong broker in config files	Bruno Santos		"After installing mediagoblin and used the systemd init files, 
I wasn't able to transcode any files.. 
After checking the logs /var/log/messages
I get the following error:

{{{

ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Trying again in 14.00 seconds...

[2017-07-28 17:39:06,874: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Trying again in 16.00 seconds...

[2017-07-28 17:39:22,912: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Trying again in 18.00 seconds.
}}}


After searching through the issues, I found issue #859:
[https://issues.mediagoblin.org/ticket/859]

somewhat related to this problem...

I've checked config_spec.ini and found this:


{{{
[celery]
# default result stuff
CELERY_RESULT_BACKEND = string(default=""database"")
CELERY_RESULT_DBURI = string(default=""sqlite:///%(here)s/celery.db"")

# default kombu stuff
BROKER_URL = string(default=""amqp://"")
}}}

After changing the kombu stuff to:

{{{
BROKER_TRANSPORT = string(default=""sqlalchemy"")
BROKER_URL = string(default=""sqlite:///%(here)s/kombu.db"")
}}}

now it works...

I've never touched this file, this is configuration by default and there's nothing in the easy deployment wiki page to change something in here...

"	defect	closed	major		programming	no-action			
