<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hi Thomas,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Here is the info requested.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">hg parent:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">changeset:   7254:e71216a16853<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">tag:         tip<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">user:        Thomas De Schampheleire <thomas.de_schampheleire@nokia.com><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">date:        Wed May 16 21:20:40 2018 +0200<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">summary:     docs: reorganize index page<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">pip freeze: There are a lot of packages so I pasted them on pastebin to keep the email chain clean: 
<a href="https://pastebin.com/Edr8FTmv">https://pastebin.com/Edr8FTmv</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I installed the rabbitmq server from  the Ubuntu packages with apt. The version is: RabbitMQ 3.5.7<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I am running it on Ubuntu Server 16.04.5 LTS
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I just saw on the rabbitmq web page that there is a more recent version which is 3.7.7, so I will make a new clean install of Kallithea and try again, but this time I will
 get the package directly from the rabbitmq website.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hi Mads, what version of RabbitMQ are you using?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Mat<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Thomas De Schampheleire [mailto:patrickdepinguin@gmail.com]
<br>
<b>Sent:</b> Sunday, August 05, 2018 2:00 PM<br>
<b>To:</b> Matey Chopov <matey.chopov@ca.abb.com><br>
<b>Cc:</b> kallithea-general@sfconservancy.org<br>
<b>Subject:</b> Re: Kallithea 0.3.99, Celery, Rabbitmq DisabledBackend object has no attribute '_get_task_meta_for'<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Sun, Aug 5, 2018, 16:12 Thomas De Schampheleire <<a href="mailto:patrickdepinguin@gmail.com">patrickdepinguin@gmail.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal">Hi Mat,<br>
<br>
2018-08-03 22:41 GMT+02:00 Matey Chopov <<a href="mailto:matey.chopov@ca.abb.com" target="_blank">matey.chopov@ca.abb.com</a>>:<br>
> Hi guys,<br>
><br>
><br>
><br>
> We decided recently to implement on our Kallithea 0.3.99 test instance<br>
> celery and rabbitmq.<br>
><br>
><br>
><br>
> Everything seems to work fine, as celery is able to connect to the rabbitmq<br>
> server, but there’s one issue that I cannot resolve for some reason.<br>
><br>
><br>
><br>
> When Celery is enabled in the Kallithea my.ini file and we create a new repo<br>
> via the Kallithea web interface we get to the “Repository is being created”<br>
> page, but then we get the following error message:<br>
><br>
> “We’re sorry but error occurred during this operation …”<br>
><br>
><br>
><br>
> The repository is being created even when the Kallithea web interface throws<br>
> that error and it does work fine after, but in the Kallithea log I get a<br>
> trace exception :<br>
><br>
><br>
><br>
> “AttributeError: ‘DisabledBackend’ object has no attribute<br>
> ‘_get_task_meta_for’<br>
><br>
><br>
><br>
> I have uploaded the full trace on pastebin here:<br>
> <a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FgSK4VG20&data=02%7C01%7Cmatey.chopov%40ca.abb.com%7Ce873048903f248fe969e08d5fafd590c%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636690888380841939&sdata=Td73D9H0QTL9mj0RPEqaI7GahVZShek5vE88I7E8wD0%3D&reserved=0" target="_blank">
https://pastebin.com/gSK4VG20</a><br>
><br>
><br>
><br>
> I read that it may be related to how the rabbitmq server is configured, so I<br>
> messed with it, but couldn’t still resolve the issue.<br>
><br>
><br>
><br>
> We are running a default install of Kallithea 0.3.99 with sqlite and<br>
> waitress.<br>
><br>
><br>
><br>
> My Celery config in the my.ini file is the following:<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
><br>
><br>
> use_celery = true<br>
><br>
> celeryd.log.level = DEBUG<br>
><br>
> celeryd.log.file = /mnt/data/celeryd.log<br>
><br>
> ## Example: connect to the virtual host 'rabbitmqhost' on localhost as<br>
> rabbitmq:<br>
><br>
><br>
><br>
> broker.url = amqp://kallithea:kallitheapass@localhost:5672/vkallithea<br>
><br>
> celery.imports = kallithea.lib.celerylib.tasks<br>
><br>
> celery.accept.content = pickle<br>
><br>
> celery.result.backend = amqp<br>
><br>
> celery.result.dburi = amqp://<br>
><br>
> celery.result.serialier = json<br>
><br>
><br>
><br>
> #celery.send.task.error.emails = true<br>
><br>
> #celery.amqp.task.result.expires = 18000<br>
><br>
><br>
><br>
> celeryd.concurrency = 2<br>
><br>
> celeryd.max.tasks.per.child = 1<br>
><br>
><br>
><br>
> ## If true, tasks will never be sent to the queue, but executed locally<br>
> instead.<br>
><br>
> celery.always.eager = false<br>
><br>
><br>
><br>
> ----------------------------------------------------------<br>
><br>
><br>
><br>
> Would you have any clue what could be the issue here?<br>
><br>
<br>
<br>
I haven't seen this issue before.<br>
Which exact version of Kallithea are you using, could you obtain the<br>
Mercurial revision, using 'hg version' from the Kallithea source<br>
directory?<o:p></o:p></p>
</blockquote>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Sorry, I meant 'hg parent' rather than 'hg version'.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal"><br>
Could you post the contents of 'pip freeze' too, to see the versions<br>
of celery etc.<br>
<br>
Which version of rabbitmq are you using?<br>
<br>
Best regards,<br>
Thomas<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>