<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<p dir="auto">Config maps, environmental variable size length, environmental variables, ETCD key value limits</p>
<hr>
<p dir="auto">BUG REPORT</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.4", GitCommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", GitTreeState:"clean"}<br>
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.1", GitCommit:"50809107cd47a1f62da362bccefdd9e6f7076145", GitTreeState:"clean"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:<br>
Processer: 2.5 GHz Intel Core i7<br>
Memory: 16 GB 1600 MHz DDR3</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):<br>
OS X El Capitan Version 10.11.5 (15F34)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):<br>
Darwin COTNPL-GF7G8WP 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64s</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
Injected a large (130+ KB) environmental variable into a replication controller that was propagated into pods. Pod crashed with error and exit code 1, backoff initiated with periodic (20s) attempts to restart pods, which could not be restarted. This was clearly due to large environmental variables as several sizes were attempted, with vars of size ~130KB+ broke pods, with smaller sizes executing as expected</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
Pod running as usual with the environmental value in place, with sizes of up to 1 MB (etcd value limit).</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
Inject large environmental variables into Kubernetes pods or replication controllers.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): celery-rabbitmq</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0+5cb86ee", GitCommit:"5cb86ee022267586db386f62781338b0483733b3", GitTreeState:"not a git tree"}<br>
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.3", GitCommit:"c6411395e09da356c608896d3d9725acab821418", GitTreeState:"dirty"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): OSX</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
If I build and host the image built from <code class="notranslate">celery-app-add/Dockerfile</code>, the example does not work as expected.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
If I build the docker image and host it on docker hub, the image should be the same as the one hosted on <code class="notranslate">endocode/celery-app-add</code> and work with the example.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# run all of the controllers and services in the example
# see the tasks being run successfully via the flower interface
# shutdown the rc's and the services
cd celery-app-add
docker build -t &lt;mine&gt;/celery-app-add .
docker push &lt;mine&gt;/celery-app-add
# in the celery replication controller config, replace endocode/celery-app-add with &lt;mine&gt;/celery-app-add.
# run all the controllers and services in the example
# look at the logs for the celery-controller after kubectl get pods shows an Error has occurred."><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> run all of the controllers and services in the example</span>
<span class="pl-c"><span class="pl-c">#</span> see the tasks being run successfully via the flower interface</span>
<span class="pl-c"><span class="pl-c">#</span> shutdown the rc's and the services</span>
<span class="pl-c1">cd</span> celery-app-add
docker build -t <span class="pl-k">&lt;</span>mine<span class="pl-k">&gt;</span>/celery-app-add <span class="pl-c1">.</span>
docker push <span class="pl-k">&lt;</span>mine<span class="pl-k">&gt;</span>/celery-app-add
<span class="pl-c"><span class="pl-c">#</span> in the celery replication controller config, replace endocode/celery-app-add with &lt;mine&gt;/celery-app-add.</span>
<span class="pl-c"><span class="pl-c">#</span> run all the controllers and services in the example</span>
<span class="pl-c"><span class="pl-c">#</span> look at the logs for the celery-controller after kubectl get pods shows an Error has occurred.</span></pre></div>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
Main errors from the controller logs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
2016-08-18T21:05:44.050245103Z   File &quot;/usr/local/bin/celery&quot;, line 11, in &lt;module&gt;
2016-08-18T21:05:44.050249543Z     sys.exit(main())
2016-08-18T21:05:44.050251856Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/__main__.py&quot;, line 30, in main
2016-08-18T21:05:44.050255000Z     main()
2016-08-18T21:05:44.050257252Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/bin/celery.py&quot;, line 81, in main
2016-08-18T21:05:44.050259392Z     cmd.execute_from_commandline(argv)
2016-08-18T21:05:44.050261768Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/bin/celery.py&quot;, line 793, in execute_from_commandline
2016-08-18T21:05:44.050264057Z     super(CeleryCommand, self).execute_from_commandline(argv)))
2016-08-18T21:05:44.050266462Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/bin/base.py&quot;, line 311, in execute_from_commandline
2016-08-18T21:05:44.050268613Z     return self.handle_argv(self.prog_name, argv[1:])
2016-08-18T21:05:44.050270723Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/bin/celery.py&quot;, line 785, in handle_argv
2016-08-18T21:05:44.050273025Z     return self.execute(command, argv)
2016-08-18T21:05:44.050275154Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/bin/celery.py&quot;, line 717, in execute
2016-08-18T21:05:44.050277285Z     ).run_from_argv(self.prog_name, argv[1:], command=argv[0])
2016-08-18T21:05:44.050279383Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/bin/worker.py&quot;, line 179, in run_from_argv
2016-08-18T21:05:44.050281510Z     return self(*args, **options)
2016-08-18T21:05:44.050283584Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/bin/base.py&quot;, line 274, in __call__
2016-08-18T21:05:44.050286059Z     ret = self.run(*args, **kwargs)
2016-08-18T21:05:44.050288113Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/bin/worker.py&quot;, line 212, in run
2016-08-18T21:05:44.050290266Z     state_db=self.node_format(state_db, hostname), **kwargs
2016-08-18T21:05:44.050292354Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/worker/__init__.py&quot;, line 100, in __init__
2016-08-18T21:05:44.050294484Z     self.setup_instance(**self.prepare_args(**kwargs))
2016-08-18T21:05:44.050296529Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/worker/__init__.py&quot;, line 136, in setup_instance
2016-08-18T21:05:44.050298729Z     self.on_init_blueprint()
2016-08-18T21:05:44.050300747Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/apps/worker.py&quot;, line 143, in on_init_blueprint
2016-08-18T21:05:44.050302904Z     self._custom_logging = self.setup_logging()
2016-08-18T21:05:44.050304982Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/apps/worker.py&quot;, line 184, in setup_logging
2016-08-18T21:05:44.050307151Z     redirect_stdouts=False, colorize=colorize, hostname=self.hostname,
2016-08-18T21:05:44.050309202Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/log.py&quot;, line 70, in setup
2016-08-18T21:05:44.050313694Z     loglevel, logfile, colorize=colorize, hostname=hostname,
2016-08-18T21:05:44.050315963Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/log.py&quot;, line 118, in setup_logging_subsystem
2016-08-18T21:05:44.050318135Z     root, logfile, loglevel, format, colorize, **kwargs
2016-08-18T21:05:44.050320218Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/log.py&quot;, line 156, in _configure_logger
2016-08-18T21:05:44.050322390Z     colorize, **kwargs)
2016-08-18T21:05:44.050328980Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/log.py&quot;, line 222, in setup_handlers
2016-08-18T21:05:44.050331228Z     handler = self._detect_handler(logfile)
2016-08-18T21:05:44.050333300Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/log.py&quot;, line 233, in _detect_handler
2016-08-18T21:05:44.050335504Z     return WatchedFileHandler(logfile)
2016-08-18T21:05:44.050337579Z   File &quot;/usr/local/lib/python3.4/logging/handlers.py&quot;, line 434, in __init__
2016-08-18T21:05:44.050339701Z     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
2016-08-18T21:05:44.050341771Z   File &quot;/usr/local/lib/python3.4/logging/__init__.py&quot;, line 1006, in __init__
2016-08-18T21:05:44.050343962Z     StreamHandler.__init__(self, self._open())
2016-08-18T21:05:44.050346003Z   File &quot;/usr/local/lib/python3.4/logging/__init__.py&quot;, line 1035, in _open
2016-08-18T21:05:44.050348139Z     return open(self.baseFilename, self.mode, encoding=self.encoding)
2016-08-18T21:05:44.050350245Z PermissionError: [Errno 13] Permission denied: '/data/celery.log'
2016-08-18T21:05:44.846560901Z Traceback (most recent call last):
2016-08-18T21:05:44.846585632Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/utils/__init__.py&quot;, line 423, in __call__
2016-08-18T21:05:44.846589080Z     return self.__value__
2016-08-18T21:05:44.846591547Z AttributeError: 'ChannelPromise' object has no attribute '__value__'
2016-08-18T21:05:44.846594397Z 
2016-08-18T21:05:44.846596670Z During handling of the above exception, another exception occurred:
2016-08-18T21:05:44.846599160Z 
2016-08-18T21:05:44.846602697Z Traceback (most recent call last):
2016-08-18T21:05:44.846605622Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 436, in _ensured
2016-08-18T21:05:44.846608180Z     return fun(*args, **kwargs)
2016-08-18T21:05:44.846610541Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/messaging.py&quot;, line 177, in _publish
2016-08-18T21:05:44.846613045Z     channel = self.channel
2016-08-18T21:05:44.846615384Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/messaging.py&quot;, line 194, in _get_channel
2016-08-18T21:05:44.846617891Z     channel = self._channel = channel()
2016-08-18T21:05:44.846620241Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/utils/__init__.py&quot;, line 425, in __call__
2016-08-18T21:05:44.846629338Z     value = self.__value__ = self.__contract__()
2016-08-18T21:05:44.846632038Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/messaging.py&quot;, line 209, in &lt;lambda&gt;
2016-08-18T21:05:44.846634927Z     channel = ChannelPromise(lambda: connection.default_channel)
2016-08-18T21:05:44.846637680Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 757, in default_channel
2016-08-18T21:05:44.846640157Z     self.connection
2016-08-18T21:05:44.846642449Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 742, in connection
2016-08-18T21:05:44.846647641Z     self._connection = self._establish_connection()
2016-08-18T21:05:44.846650088Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 697, in _establish_connection
2016-08-18T21:05:44.846652585Z     conn = self.transport.establish_connection()
2016-08-18T21:05:44.846654920Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/transport/pyamqp.py&quot;, line 116, in establish_connection
2016-08-18T21:05:44.846657470Z     conn = self.Connection(**opts)
2016-08-18T21:05:44.846659906Z   File &quot;/usr/local/lib/python3.4/site-packages/amqp/connection.py&quot;, line 165, in __init__
2016-08-18T21:05:44.846662391Z     self.transport = self.Transport(host, connect_timeout, ssl)
2016-08-18T21:05:44.846664825Z   File &quot;/usr/local/lib/python3.4/site-packages/amqp/connection.py&quot;, line 186, in Transport
2016-08-18T21:05:44.846667875Z     return create_transport(host, connect_timeout, ssl)
2016-08-18T21:05:44.846670268Z   File &quot;/usr/local/lib/python3.4/site-packages/amqp/transport.py&quot;, line 299, in create_transport
2016-08-18T21:05:44.846672756Z     return TCPTransport(host, connect_timeout)
2016-08-18T21:05:44.846675143Z   File &quot;/usr/local/lib/python3.4/site-packages/amqp/transport.py&quot;, line 75, in __init__
2016-08-18T21:05:44.846677673Z     socket.SOCK_STREAM, SOL_TCP):
2016-08-18T21:05:44.846679979Z   File &quot;/usr/local/lib/python3.4/socket.py&quot;, line 537, in getaddrinfo
2016-08-18T21:05:44.846682362Z     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2016-08-18T21:05:44.846684732Z socket.gaierror: [Errno -2] Name or service not known
2016-08-18T21:05:44.846687050Z 
2016-08-18T21:05:44.846689219Z During handling of the above exception, another exception occurred:
2016-08-18T21:05:44.846691505Z 
2016-08-18T21:05:44.846693743Z Traceback (most recent call last):
2016-08-18T21:05:44.846695985Z   File &quot;/data/run_tasks.py&quot;, line 26, in &lt;module&gt;
2016-08-18T21:05:44.846698517Z     res = add.delay(x, y)
2016-08-18T21:05:44.846700778Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/task.py&quot;, line 453, in delay
2016-08-18T21:05:44.846703182Z     return self.apply_async(args, kwargs)
2016-08-18T21:05:44.846705514Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/task.py&quot;, line 565, in apply_async
2016-08-18T21:05:44.846710322Z     **dict(self._get_exec_options(), **options)
2016-08-18T21:05:44.846712875Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/base.py&quot;, line 354, in send_task
2016-08-18T21:05:44.846715423Z     reply_to=reply_to or self.oid, **options
2016-08-18T21:05:44.846717803Z   File &quot;/usr/local/lib/python3.4/site-packages/celery/app/amqp.py&quot;, line 310, in publish_task
2016-08-18T21:05:44.846720446Z     **kwargs
2016-08-18T21:05:44.846722739Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/messaging.py&quot;, line 172, in publish
2016-08-18T21:05:44.846725169Z     routing_key, mandatory, immediate, exchange, declare)
2016-08-18T21:05:44.846727541Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 457, in _ensured
2016-08-18T21:05:44.846730008Z     interval_max)
2016-08-18T21:05:44.846732299Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 369, in ensure_connection
2016-08-18T21:05:44.846734843Z     interval_start, interval_step, interval_max, callback)
2016-08-18T21:05:44.846737195Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/utils/__init__.py&quot;, line 246, in retry_over_time
2016-08-18T21:05:44.846739709Z     return fun(*args, **kwargs)
2016-08-18T21:05:44.846741974Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 237, in connect
2016-08-18T21:05:44.846744395Z     return self.connection
2016-08-18T21:05:44.846746626Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 742, in connection
2016-08-18T21:05:44.846749063Z     self._connection = self._establish_connection()
2016-08-18T21:05:44.846751414Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/connection.py&quot;, line 697, in _establish_connection
2016-08-18T21:05:44.846753887Z     conn = self.transport.establish_connection()
2016-08-18T21:05:44.846757108Z   File &quot;/usr/local/lib/python3.4/site-packages/kombu/transport/pyamqp.py&quot;, line 116, in establish_connection
2016-08-18T21:05:44.846760036Z     conn = self.Connection(**opts)
2016-08-18T21:05:44.846762698Z   File &quot;/usr/local/lib/python3.4/site-packages/amqp/connection.py&quot;, line 165, in __init__
2016-08-18T21:05:44.846765212Z     self.transport = self.Transport(host, connect_timeout, ssl)
2016-08-18T21:05:44.846767574Z   File &quot;/usr/local/lib/python3.4/site-packages/amqp/connection.py&quot;, line 186, in Transport
2016-08-18T21:05:44.846769994Z     return create_transport(host, connect_timeout, ssl)
2016-08-18T21:05:44.846772397Z   File &quot;/usr/local/lib/python3.4/site-packages/amqp/transport.py&quot;, line 299, in create_transport
2016-08-18T21:05:44.846774845Z     return TCPTransport(host, connect_timeout)
2016-08-18T21:05:44.846777109Z   File &quot;/usr/local/lib/python3.4/site-packages/amqp/transport.py&quot;, line 75, in __init__
2016-08-18T21:05:44.846779524Z     socket.SOCK_STREAM, SOL_TCP):
2016-08-18T21:05:44.846783728Z   File &quot;/usr/local/lib/python3.4/socket.py&quot;, line 537, in getaddrinfo
2016-08-18T21:05:44.846786248Z     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2016-08-18T21:05:44.846788640Z socket.gaierror: [Errno -2] Name or service not known"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
2016-08-18T21:05:44.050245103Z   File "/usr/local/bin/celery", line 11, in &lt;module&gt;
2016-08-18T21:05:44.050249543Z     sys.exit(main())
2016-08-18T21:05:44.050251856Z   File "/usr/local/lib/python3.4/site-packages/celery/__main__.py", line 30, in main
2016-08-18T21:05:44.050255000Z     main()
2016-08-18T21:05:44.050257252Z   File "/usr/local/lib/python3.4/site-packages/celery/bin/celery.py", line 81, in main
2016-08-18T21:05:44.050259392Z     cmd.execute_from_commandline(argv)
2016-08-18T21:05:44.050261768Z   File "/usr/local/lib/python3.4/site-packages/celery/bin/celery.py", line 793, in execute_from_commandline
2016-08-18T21:05:44.050264057Z     super(CeleryCommand, self).execute_from_commandline(argv)))
2016-08-18T21:05:44.050266462Z   File "/usr/local/lib/python3.4/site-packages/celery/bin/base.py", line 311, in execute_from_commandline
2016-08-18T21:05:44.050268613Z     return self.handle_argv(self.prog_name, argv[1:])
2016-08-18T21:05:44.050270723Z   File "/usr/local/lib/python3.4/site-packages/celery/bin/celery.py", line 785, in handle_argv
2016-08-18T21:05:44.050273025Z     return self.execute(command, argv)
2016-08-18T21:05:44.050275154Z   File "/usr/local/lib/python3.4/site-packages/celery/bin/celery.py", line 717, in execute
2016-08-18T21:05:44.050277285Z     ).run_from_argv(self.prog_name, argv[1:], command=argv[0])
2016-08-18T21:05:44.050279383Z   File "/usr/local/lib/python3.4/site-packages/celery/bin/worker.py", line 179, in run_from_argv
2016-08-18T21:05:44.050281510Z     return self(*args, **options)
2016-08-18T21:05:44.050283584Z   File "/usr/local/lib/python3.4/site-packages/celery/bin/base.py", line 274, in __call__
2016-08-18T21:05:44.050286059Z     ret = self.run(*args, **kwargs)
2016-08-18T21:05:44.050288113Z   File "/usr/local/lib/python3.4/site-packages/celery/bin/worker.py", line 212, in run
2016-08-18T21:05:44.050290266Z     state_db=self.node_format(state_db, hostname), **kwargs
2016-08-18T21:05:44.050292354Z   File "/usr/local/lib/python3.4/site-packages/celery/worker/__init__.py", line 100, in __init__
2016-08-18T21:05:44.050294484Z     self.setup_instance(**self.prepare_args(**kwargs))
2016-08-18T21:05:44.050296529Z   File "/usr/local/lib/python3.4/site-packages/celery/worker/__init__.py", line 136, in setup_instance
2016-08-18T21:05:44.050298729Z     self.on_init_blueprint()
2016-08-18T21:05:44.050300747Z   File "/usr/local/lib/python3.4/site-packages/celery/apps/worker.py", line 143, in on_init_blueprint
2016-08-18T21:05:44.050302904Z     self._custom_logging = self.setup_logging()
2016-08-18T21:05:44.050304982Z   File "/usr/local/lib/python3.4/site-packages/celery/apps/worker.py", line 184, in setup_logging
2016-08-18T21:05:44.050307151Z     redirect_stdouts=False, colorize=colorize, hostname=self.hostname,
2016-08-18T21:05:44.050309202Z   File "/usr/local/lib/python3.4/site-packages/celery/app/log.py", line 70, in setup
2016-08-18T21:05:44.050313694Z     loglevel, logfile, colorize=colorize, hostname=hostname,
2016-08-18T21:05:44.050315963Z   File "/usr/local/lib/python3.4/site-packages/celery/app/log.py", line 118, in setup_logging_subsystem
2016-08-18T21:05:44.050318135Z     root, logfile, loglevel, format, colorize, **kwargs
2016-08-18T21:05:44.050320218Z   File "/usr/local/lib/python3.4/site-packages/celery/app/log.py", line 156, in _configure_logger
2016-08-18T21:05:44.050322390Z     colorize, **kwargs)
2016-08-18T21:05:44.050328980Z   File "/usr/local/lib/python3.4/site-packages/celery/app/log.py", line 222, in setup_handlers
2016-08-18T21:05:44.050331228Z     handler = self._detect_handler(logfile)
2016-08-18T21:05:44.050333300Z   File "/usr/local/lib/python3.4/site-packages/celery/app/log.py", line 233, in _detect_handler
2016-08-18T21:05:44.050335504Z     return WatchedFileHandler(logfile)
2016-08-18T21:05:44.050337579Z   File "/usr/local/lib/python3.4/logging/handlers.py", line 434, in __init__
2016-08-18T21:05:44.050339701Z     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
2016-08-18T21:05:44.050341771Z   File "/usr/local/lib/python3.4/logging/__init__.py", line 1006, in __init__
2016-08-18T21:05:44.050343962Z     StreamHandler.__init__(self, self._open())
2016-08-18T21:05:44.050346003Z   File "/usr/local/lib/python3.4/logging/__init__.py", line 1035, in _open
2016-08-18T21:05:44.050348139Z     return open(self.baseFilename, self.mode, encoding=self.encoding)
2016-08-18T21:05:44.050350245Z PermissionError: [Errno 13] Permission denied: '/data/celery.log'
2016-08-18T21:05:44.846560901Z Traceback (most recent call last):
2016-08-18T21:05:44.846585632Z   File "/usr/local/lib/python3.4/site-packages/kombu/utils/__init__.py", line 423, in __call__
2016-08-18T21:05:44.846589080Z     return self.__value__
2016-08-18T21:05:44.846591547Z AttributeError: 'ChannelPromise' object has no attribute '__value__'
2016-08-18T21:05:44.846594397Z 
2016-08-18T21:05:44.846596670Z During handling of the above exception, another exception occurred:
2016-08-18T21:05:44.846599160Z 
2016-08-18T21:05:44.846602697Z Traceback (most recent call last):
2016-08-18T21:05:44.846605622Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 436, in _ensured
2016-08-18T21:05:44.846608180Z     return fun(*args, **kwargs)
2016-08-18T21:05:44.846610541Z   File "/usr/local/lib/python3.4/site-packages/kombu/messaging.py", line 177, in _publish
2016-08-18T21:05:44.846613045Z     channel = self.channel
2016-08-18T21:05:44.846615384Z   File "/usr/local/lib/python3.4/site-packages/kombu/messaging.py", line 194, in _get_channel
2016-08-18T21:05:44.846617891Z     channel = self._channel = channel()
2016-08-18T21:05:44.846620241Z   File "/usr/local/lib/python3.4/site-packages/kombu/utils/__init__.py", line 425, in __call__
2016-08-18T21:05:44.846629338Z     value = self.__value__ = self.__contract__()
2016-08-18T21:05:44.846632038Z   File "/usr/local/lib/python3.4/site-packages/kombu/messaging.py", line 209, in &lt;lambda&gt;
2016-08-18T21:05:44.846634927Z     channel = ChannelPromise(lambda: connection.default_channel)
2016-08-18T21:05:44.846637680Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 757, in default_channel
2016-08-18T21:05:44.846640157Z     self.connection
2016-08-18T21:05:44.846642449Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 742, in connection
2016-08-18T21:05:44.846647641Z     self._connection = self._establish_connection()
2016-08-18T21:05:44.846650088Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 697, in _establish_connection
2016-08-18T21:05:44.846652585Z     conn = self.transport.establish_connection()
2016-08-18T21:05:44.846654920Z   File "/usr/local/lib/python3.4/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
2016-08-18T21:05:44.846657470Z     conn = self.Connection(**opts)
2016-08-18T21:05:44.846659906Z   File "/usr/local/lib/python3.4/site-packages/amqp/connection.py", line 165, in __init__
2016-08-18T21:05:44.846662391Z     self.transport = self.Transport(host, connect_timeout, ssl)
2016-08-18T21:05:44.846664825Z   File "/usr/local/lib/python3.4/site-packages/amqp/connection.py", line 186, in Transport
2016-08-18T21:05:44.846667875Z     return create_transport(host, connect_timeout, ssl)
2016-08-18T21:05:44.846670268Z   File "/usr/local/lib/python3.4/site-packages/amqp/transport.py", line 299, in create_transport
2016-08-18T21:05:44.846672756Z     return TCPTransport(host, connect_timeout)
2016-08-18T21:05:44.846675143Z   File "/usr/local/lib/python3.4/site-packages/amqp/transport.py", line 75, in __init__
2016-08-18T21:05:44.846677673Z     socket.SOCK_STREAM, SOL_TCP):
2016-08-18T21:05:44.846679979Z   File "/usr/local/lib/python3.4/socket.py", line 537, in getaddrinfo
2016-08-18T21:05:44.846682362Z     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2016-08-18T21:05:44.846684732Z socket.gaierror: [Errno -2] Name or service not known
2016-08-18T21:05:44.846687050Z 
2016-08-18T21:05:44.846689219Z During handling of the above exception, another exception occurred:
2016-08-18T21:05:44.846691505Z 
2016-08-18T21:05:44.846693743Z Traceback (most recent call last):
2016-08-18T21:05:44.846695985Z   File "/data/run_tasks.py", line 26, in &lt;module&gt;
2016-08-18T21:05:44.846698517Z     res = add.delay(x, y)
2016-08-18T21:05:44.846700778Z   File "/usr/local/lib/python3.4/site-packages/celery/app/task.py", line 453, in delay
2016-08-18T21:05:44.846703182Z     return self.apply_async(args, kwargs)
2016-08-18T21:05:44.846705514Z   File "/usr/local/lib/python3.4/site-packages/celery/app/task.py", line 565, in apply_async
2016-08-18T21:05:44.846710322Z     **dict(self._get_exec_options(), **options)
2016-08-18T21:05:44.846712875Z   File "/usr/local/lib/python3.4/site-packages/celery/app/base.py", line 354, in send_task
2016-08-18T21:05:44.846715423Z     reply_to=reply_to or self.oid, **options
2016-08-18T21:05:44.846717803Z   File "/usr/local/lib/python3.4/site-packages/celery/app/amqp.py", line 310, in publish_task
2016-08-18T21:05:44.846720446Z     **kwargs
2016-08-18T21:05:44.846722739Z   File "/usr/local/lib/python3.4/site-packages/kombu/messaging.py", line 172, in publish
2016-08-18T21:05:44.846725169Z     routing_key, mandatory, immediate, exchange, declare)
2016-08-18T21:05:44.846727541Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 457, in _ensured
2016-08-18T21:05:44.846730008Z     interval_max)
2016-08-18T21:05:44.846732299Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 369, in ensure_connection
2016-08-18T21:05:44.846734843Z     interval_start, interval_step, interval_max, callback)
2016-08-18T21:05:44.846737195Z   File "/usr/local/lib/python3.4/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
2016-08-18T21:05:44.846739709Z     return fun(*args, **kwargs)
2016-08-18T21:05:44.846741974Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 237, in connect
2016-08-18T21:05:44.846744395Z     return self.connection
2016-08-18T21:05:44.846746626Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 742, in connection
2016-08-18T21:05:44.846749063Z     self._connection = self._establish_connection()
2016-08-18T21:05:44.846751414Z   File "/usr/local/lib/python3.4/site-packages/kombu/connection.py", line 697, in _establish_connection
2016-08-18T21:05:44.846753887Z     conn = self.transport.establish_connection()
2016-08-18T21:05:44.846757108Z   File "/usr/local/lib/python3.4/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
2016-08-18T21:05:44.846760036Z     conn = self.Connection(**opts)
2016-08-18T21:05:44.846762698Z   File "/usr/local/lib/python3.4/site-packages/amqp/connection.py", line 165, in __init__
2016-08-18T21:05:44.846765212Z     self.transport = self.Transport(host, connect_timeout, ssl)
2016-08-18T21:05:44.846767574Z   File "/usr/local/lib/python3.4/site-packages/amqp/connection.py", line 186, in Transport
2016-08-18T21:05:44.846769994Z     return create_transport(host, connect_timeout, ssl)
2016-08-18T21:05:44.846772397Z   File "/usr/local/lib/python3.4/site-packages/amqp/transport.py", line 299, in create_transport
2016-08-18T21:05:44.846774845Z     return TCPTransport(host, connect_timeout)
2016-08-18T21:05:44.846777109Z   File "/usr/local/lib/python3.4/site-packages/amqp/transport.py", line 75, in __init__
2016-08-18T21:05:44.846779524Z     socket.SOCK_STREAM, SOL_TCP):
2016-08-18T21:05:44.846783728Z   File "/usr/local/lib/python3.4/socket.py", line 537, in getaddrinfo
2016-08-18T21:05:44.846786248Z     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2016-08-18T21:05:44.846788640Z socket.gaierror: [Errno -2] Name or service not known
</code></pre></div>
<p dir="auto">(sorry for the wall of text)</p>
<p dir="auto">Docker history and undocker seem to show that the Dockerfile here produces a different image than what is hosted at endocode/celery-app-add. If I bash into endocode, I start in <code class="notranslate">/data</code> as <code class="notranslate">root</code> and if I bash into  I start in <code class="notranslate">~</code> as <code class="notranslate">user</code>. Perhaps I am building the image incorrectly though.</p>