Docker-compose build gives huge error


#1

Hi all

I am trying to get this thing to build, and on the off chance that I am screwing up, I have not touched any config files. Tried to build it as it is cloned, but running into a major error. Could someone please point me in the right direction?

Setup

CentOS 7.5
Python 2.7.5
docker-compose version 1.18.0, build 8dd22a9
Docker version 1.13.1, build 6e3bb8e/1.13.1

Error

docker-compose build
redis uses an image, skipping
memcached uses an image, skipping
postgres uses an image, skipping
smtp uses an image, skipping
Building worker
Step 1/1 : FROM sentry:9.0-onbuild
Trying to pull repository docker.io/library/sentry ... 
9.0-onbuild: Pulling from docker.io/library/sentry
57936531d1ee: Pull complete
6ff36f346217: Pull complete
396782793616: Pull complete
b65b8c2b90d6: Pull complete
4d45710f8065: Pull complete
df4a3f3b6787: Pull complete
a53607213076: Pull complete
310bf8486250: Pull complete
ae41425c787d: Pull complete
8aff86aa9f27: Pull complete
7c2361b7aae5: Pull complete
4a5ef6855f3e: Pull complete
f8174ad884b2: Pull complete
8b5f1dfdf6c5: Pull complete
988d11821767: Pull complete
Digest: sha256:08fd61439a44562f81fb3eaaa6c489a798c58d1961dcde0db03406141bb32539
Status: Downloaded newer image for docker.io/sentry:9.0-onbuild
# Executing 4 build triggers...
Step 1/1 : COPY . /usr/src/sentry
Step 1/1 : RUN if [ -s requirements.txt ]; then pip install -r requirements.txt; fi
 ---> Running in 63e44ccb2a47

Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/pip/_internal/basecommand.py", line 141, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 330, in run
    self._warn_about_conflicts(to_install)
  File "/usr/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 456, in _warn_about_conflicts
    package_set, _dep_info = check_install_conflicts(to_install)
  File "/usr/local/lib/python2.7/site-packages/pip/_internal/operations/check.py", line 98, in check_install_conflicts
    package_set = create_package_set_from_installed()
  File "/usr/local/lib/python2.7/site-packages/pip/_internal/operations/check.py", line 41, in create_package_set_from_installed
    package_set[name] = PackageDetails(dist.version, dist.requires())
  File "/usr/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2607, in requires
    dm = self._dep_map
  File "/usr/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2871, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/usr/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2880, in _compute_dependencies
    for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
  File "/usr/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2862, in _parsed_pkg_info
    metadata = self.get_metadata(self.PKG_INFO)
  File "/usr/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1788, in get_metadata
    raise KeyError("No metadata except PKG-INFO is available")
KeyError: 'No metadata except PKG-INFO is available'
ERROR: Service 'worker' failed to build: The command '/bin/sh -c if [ -s requirements.txt ]; then pip install -r requirements.txt; fi' returned a non-zero code: 2

Any help here would be greatly appreciated? Sorry for being such a noob.


#2

hi, I meet this issue today , I found this issue that image may be error in the Dockerfile,
I solevd:

“sentry:9.0-onbuild” to “sentry:9.0”

It is Dockerfile file in the ‘onpremiss’ folder

#image|690x63

#image|690x69

I hope to help you!