Closed naggappan closed 4 years ago
@auvipy I've asked you multiple times now to stop closing issues without comment. Please stop.
Why did you close this issue?
@thedrow @auvipy are you able to setup the docker based development environment? is docker build successfully for you? Very basic checkout the master code and build is failing with above error.
@thedrow Any update on this? Facing the same issue here when building via docker.
Hi! As this has been open for quite some time now, I tried debugging myself.
I could see that for Python-3.4
, we don't have version supporting kombu > 4.5.0
.
As a result, i went ahead and locally changed the kombu version requirement in requirements/default.txt
:
From:
kombu==4.6.5
To:
kombu>=4.5.0,<=4.6.5
With the above change, the issue (docker-compose build celery
) seems to be fixed. All other versions of python (2.7, 3.5, 3.6, 3.7) seemed to install kombu==4.6.5
, and only Python-3.4 installed kombu==4.5.0
. I tried running the unit & integration tests with Pyenv set to Python-3.4
and could see that the unit tests were passing except for one failure. On the other hand, running integration tests resulted in a bunch of fixture related setup error for celery_session_app
& celery_parameters
(didn't have the time to debug, yet!).
Please find the images / error_file below for the test summary (with Python-3.4
), for your ready reference:
integration_tests_fixture_setup_error.txt
I am new to Celery Development, so not sure if downgrading the kombu version would have any effect on the python-3.4 installation for Celery development.
Please let me know your thoughts on this, @thedrow @auvipy?
Environment Information:
Docker Engine - 19.03.4
Docker Compose - 1.24.1
MacOS High Sierra - 10.13.5
Container Platform - Linux
Python Version - 3.4.9
Pytest - 4.6.6
Pytest-sugar - 0.9.2
PR in progress https://github.com/celery/celery/pull/5801
technically, dev environment should be based on master
@auvipy Got it. Thanks!
can you pull the docker and report?
@auvipy Doing that now, will let you know.
test failure is normal as master at CI is broken. just check if docker is working properly. if not, show the log here
@auvipy Getting below error on executing docker-compose build celery
:
Building celery
Step 1/26 : FROM debian:buster
---> 8e9f8546050d
Step 2/26 : ENV PYTHONIOENCODING UTF-8
---> Using cache
---> d203357ee575
Step 3/26 : RUN apt update && apt install -y build-essential libcurl4-openssl-dev libffi-dev tk-dev xz-utils curl lsb-release git libmemcached-dev make liblzma-dev libreadline-dev libbz2-dev llvm libncurses5-dev libsqlite3-dev wget pypy python-openssl libncursesw5-dev zlib1g-dev pkg-config libssl1.0-dev
---> Running in 997e518d0344
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://security-cdn.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian buster InRelease [122 kB]
Get:4 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [108 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7899 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian buster-updates/main amd64 Packages [5792 B]
Fetched 8222 kB in 14s (580 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package libssl1.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1.0-dev' has no installation candidate
ERROR: Service 'celery' failed to build: The command '/bin/sh -c apt update && apt install -y build-essential libcurl4-openssl-dev libffi-dev tk-dev xz-utils curl lsb-release git libmemcached-dev make liblzma-dev libreadline-dev libbz2-dev llvm libncurses5-dev libsqlite3-dev wget pypy python-openssl libncursesw5-dev zlib1g-dev pkg-config libssl1.0-dev' returned a non-zero code: 100
can you try again? I will check it manually tomorrow morning again
Crashes at below step in Dockerfile:
Step 11/26 : RUN sh install-couchbase.sh
---> Running in a29a6ca1238a
--2019-10-30 18:22:03-- http://packages.couchbase.com/clients/c/libcouchbase-2.10.4_buster_amd64.tar
Resolving packages.couchbase.com (packages.couchbase.com)... 54.230.195.161, 54.230.195.18, 54.230.195.155, ...
Connecting to packages.couchbase.com (packages.couchbase.com)|54.230.195.161|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-10-30 18:22:04 ERROR 404: Not Found.
tar: libcouchbase-2.10.4_buster_amd64.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
dpkg: error: cannot access archive 'libcouchbase-2.10.4_buster_amd64/libcouchbase2-core_2.10.3-1_amd64.deb': No such file or directory
dpkg: error: cannot access archive 'libcouchbase-2.10.4_buster_amd64/libcouchbase-dev_2.10.3-1_amd64.deb': No such file or directory
ERROR: Service 'celery' failed to build: The command '/bin/sh -c sh install-couchbase.sh' returned a non-zero code: 2
@auvipy I don't see any libcouchbase-*
package (for version 2.10.4) listed for debian:buster
on the site: https://docs.couchbase.com/c-sdk/2.10/sdk-release-notes.html#latest-release
Could that be why it's failing with above? I see 404 in the response for the wget request.
$ wget -P ~/Desktop/ http://packages.couchbase.com/clients/c/libcouchbase-2.10.4_buster_amd64.tar 9.4m Thu Oct 31 12:18:37 2019
--2019-10-31 12:19:16-- http://packages.couchbase.com/clients/c/libcouchbase-2.10.4_buster_amd64.tar
Resolving packages.couchbase.com (packages.couchbase.com)... 54.230.195.155, 54.230.195.161, 54.230.195.18, ...
Connecting to packages.couchbase.com (packages.couchbase.com)|54.230.195.155|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-10-31 12:19:17 ERROR 404: Not Found.
hi, can you pull again and build?
Hi, doing that now. Will let you know.
Hi @auvipy , sorry for the late response, was AFK.
I was able to build the docker image successfully and spin up the container. But, had to make a few changes to Dockerfile.
One change was to set the build argument to: ARG DEBIAN_FRONTEND=noninteractive
With this, I was able to disable the prompt for tzdata
, during the build. With this, the timezone will be by default set to UTC
however, it can be changed/reconfigured later on to reflect appropriate timezone.
The second change was to add sudo
to the apt-get install ...
command, as sudo
is not included by default. I believe we are using sudo
in the script install-couchase.sh
.
Ref - https://github.com/tianon/docker-brew-ubuntu-core/issues/48
I have raised a PR for this, with the above changes included. Kindly review.
thanks!
It works thanks
thanks for trying it!
I am trying to build the celery docker container as mentioned in the docs to setup the dev environment. But docker build fails with below error,
Command: docker-compose build celery docker_Version: Docker version 19.03.2, build 6a30dfc docker_Compse_version: docker-compose version 1.18.0, build 8dd22a9
Error:
Checklist
Mandatory Debugging Information
celery -A proj report
in the issue. (if you are not able to do this, then at least specify the Celery version affected).master
branch of Celery.pip freeze
in the issue.Optional Debugging Information
Related Issues and Possible Duplicates
Related Issues
Possible Duplicates
Environment & Settings
Celery version:
celery report
Output:``` ```
Steps to Reproduce
Required Dependencies
Python Packages
pip freeze
Output:``` ```
Other Dependencies
N/A
Minimally Reproducible Test Case
```python ```
Expected Behavior
Actual Behavior