<h2 dir="auto">Checklist</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
</ul>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Django==1.10.3
boto==2.43.0
boto3==1.4.1
botocore==1.4.78

software -&gt; celery:4.0.0 (latentcall) kombu:4.0.0 py:2.7.6
            billiard:3.5.0.2 sqs:N/A
platform -&gt; system:Linux arch:64bit, ELF imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:sqs results:disabled"><pre class="notranslate">Django==1.10.3
boto==2.43.0
boto3==1.4.1
botocore==1.4.78

software -<span class="pl-k">&gt;</span> celery:4.0.0 (latentcall) kombu:4.0.0 py:2.7.6
            billiard:3.5.0.2 sqs:N/A
platform -<span class="pl-k">&gt;</span> system:Linux arch:64bit, ELF imp:CPython
loader   -<span class="pl-k">&gt;</span> celery.loaders.app.AppLoader
settings -<span class="pl-k">&gt;</span> transport:sqs results:disabled</pre></div>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">Just a project upgrade dependency.</p>
<h2 dir="auto">Actual behavior</h2>
<p dir="auto">Celery work stops when start, only with <code class="notranslate">sqs</code> broker. My test environment run with <code class="notranslate">redis</code> broker and works fine.</p>
<p dir="auto">With <code class="notranslate">... worker -l debug</code>, I can see my <code class="notranslate">sqs</code> queues and the worker stop with this message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2016-11-28 20:31:58,487: DEBUG/MainProcess] Canceling task consumer...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] Canceling task consumer...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] Closing consumer channel...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] closing all HTTP connections
[2016-11-28 20:31:59,493: DEBUG/MainProcess] closing all HTTP connections
[2016-11-28 20:31:59,494: DEBUG/MainProcess] removing tasks from inqueue until task handler finished"><pre class="notranslate"><code class="notranslate">[2016-11-28 20:31:58,487: DEBUG/MainProcess] Canceling task consumer...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] Canceling task consumer...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] Closing consumer channel...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] closing all HTTP connections
[2016-11-28 20:31:59,493: DEBUG/MainProcess] closing all HTTP connections
[2016-11-28 20:31:59,494: DEBUG/MainProcess] removing tasks from inqueue until task handler finished
</code></pre></div>
<p dir="auto">PS: The messages are delayed to queue normally.</p>
<p dir="auto">Because of this kombu issue <a href="https://github.com/celery/kombu/pull/581" data-hovercard-type="pull_request" data-hovercard-url="/celery/kombu/pull/581/hovercard">#581</a>, I'm trying to run the latest celery from master along with the github versions of amqp, vine, billiard and kombu. When I run a worker to retrieve messages from an AWS SQS queue, I get the following error:</p>
<p dir="auto"><code class="notranslate">&lt;?xml version="1.0"?&gt;&lt;ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"&gt;&lt;Error&gt;&lt;Type&gt;Sender&lt;/Type&gt;&lt;Code&gt;SignatureDoesNotMatch&lt;/Code&gt;&lt;Message&gt;Credential should be scoped to a valid region, not 'queue'. &lt;/Message&gt;&lt;Detail/&gt;&lt;/Error&gt;&lt;RequestId&gt;ef2af856-f4f4-5244-a6f8-b7e87de7ea7e&lt;/RequestId&gt;&lt;/ErrorResponse&gt; </code></p>
<p dir="auto">Here are the celery config options:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="BROKER_URL = 'sqs://{0}:{1}@'.format(
    urllib.quote(&quot;the aws key id&quot;, safe=''),
    urllib.quote(&quot;the aws secret key&quot;, safe='')
)
BROKER_TRANSPORT_OPTIONS = {
    'polling_interval': 3,
    'region': 'us-east-1',
    'visibility_timeout': 3600
}
CELERY_IGNORE_RESULT = True
CELERY_IMPORTS = ('tasks',)
CELERY_RESULT_BACKEND = False
CELERY_SEND_TASK_ERROR_EMAILS = False"><pre class="notranslate"><code class="notranslate">BROKER_URL = 'sqs://{0}:{1}@'.format(
    urllib.quote("the aws key id", safe=''),
    urllib.quote("the aws secret key", safe='')
)
BROKER_TRANSPORT_OPTIONS = {
    'polling_interval': 3,
    'region': 'us-east-1',
    'visibility_timeout': 3600
}
CELERY_IGNORE_RESULT = True
CELERY_IMPORTS = ('tasks',)
CELERY_RESULT_BACKEND = False
CELERY_SEND_TASK_ERROR_EMAILS = False
</code></pre></div>
<p dir="auto">Here are the dependencies:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.0.0rc2
billiard==3.5.0.0rc1
celery==4.0.0rc2
kombu==4.0.0a1
pycurl==7.43.0
vine==1.1.0"><pre class="notranslate"><code class="notranslate">amqp==2.0.0rc2
billiard==3.5.0.0rc1
celery==4.0.0rc2
kombu==4.0.0a1
pycurl==7.43.0
vine==1.1.0
</code></pre></div>
<p dir="auto">Any ideas?</p>
<p dir="auto">Thanks</p>