senaite / senaite.docker

SENAITE Docker Container
GNU General Public License v2.0
49 stars 40 forks source link

Error in Building Senaite 1.3.4 Image #11

Closed heyjordn closed 2 years ago

heyjordn commented 2 years ago

When trying to build the 1.3.4 image, I encounter the following error

Output

 => ERROR [ 9/10] RUN python bootstrap.py     && bin/buildout     && ln -s /data/filestora  5.3s
------                                                                                           
 > [ 9/10] RUN python bootstrap.py     && bin/buildout     && ln -s /data/filestorage/ var/filestorage     && ln -s /data/blobstorage/ var/blobstorage     && chown -R senaite:senaite /home/senaite /data     && rm -rf /home/senaite/buildout-cache/downloads/dist:                              
#13 0.740 ez_setup.py is deprecated and when using it setuptools will be pinned to 33.1.1 since it's the last version that supports setuptools self upgrade/installation, check https://github.com/pypa/setuptools/issues/581 for more info; use pip to install setuptools
#13 0.741 Downloading https://pypi.io/packages/source/s/setuptools/setuptools-33.1.1.zip
#13 2.427 Extracting in /tmp/tmpRsKuoG
#13 2.467 Now working in /tmp/tmpRsKuoG/setuptools-33.1.1
#13 2.467 Building a Setuptools egg in /tmp/bootstrap-ycjy8a
#13 2.811 warning: no files found matching '*' under directory 'setuptools/_vendor'
#13 3.129 /tmp/bootstrap-ycjy8a/setuptools-33.1.1-py2.7.egg
#13 3.689 Couldn't find index page for 'zc.buildout' (maybe misspelled?)
#13 4.800 Couldn't find index page for 'zc.buildout' (maybe misspelled?)
#13 5.195 No local packages or working download links found for zc.buildout
#13 5.198 error: Could not find suitable distribution for Requirement.parse('zc.buildout')
#13 5.216 Traceback (most recent call last):
#13 5.216   File "bootstrap.py", line 193, in <module>
#13 5.216     "Failed to execute command:\n%s" % repr(cmd)[1:-1])
#13 5.216 Exception: Failed to execute command:
#13 5.216 '/usr/local/bin/python', '-c', "import sys; sys.path[0:0] = ['/tmp/bootstrap-ycjy8a/setuptools-33.1.1-py2.7.egg']; from setuptools.command.easy_install import main; main()", '-mZqNxd', '/tmp/bootstrap-ycjy8a', 'zc.buildout'
------
executor failed running [/bin/sh -c python bootstrap.py     && bin/buildout     && ln -s $SENAITE_FILESTORAGE/ var/filestorage     && ln -s $SENAITE_BLOBSTORAGE/ var/blobstorage     && chown -R senaite:senaite $SENAITE_HOME $SENAITE_DATA     && rm -rf $SENAITE_HOME/buildout-cache/downloads/dist]: exit code: 1

Docker Version

Client:
 Cloud integration: 1.0.14
 Version:           20.10.6
 API version:       1.41
 Go version:        go1.16.3
 Git commit:        370c289
 Built:             Fri Apr  9 22:46:57 2021
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.6
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       8728dd2
  Built:            Fri Apr  9 22:44:56 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.4
  GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
 runc:
  Version:          1.0.0-rc93
  GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker Info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
  compose: Docker Compose (Docker Inc., 2.0.0-beta.1)
  scan: Docker Scan (Docker Inc., v0.8.0)

Server:
 Containers: 22
  Running: 0
  Paused: 0
  Stopped: 22
 Images: 31
 Server Version: 20.10.6
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
 runc version: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.25-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 1.941GiB
 Name: docker-desktop
 ID: WX3R:M7B5:BOZ7:NC2W:EWCK:ORTQ:CBZL:EMNE:RQB4:VKAG:HQYB:SHD3
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
ramonski commented 2 years ago

Hi @heyjordn,

versions below 2.x are no longer supported.

Please use either the prebuilt image from here: https://hub.docker.com/layers/senaite/ramonski/senaite/v1.3.4/images/sha256-b22925c0c5e3ba7343f8c5b93f713ee027f004fad5c4b47ac1d3d96bcf2ab280?context=repo

or do your custom build from here https://github.com/senaite/senaite.docker/tree/master/latest

heyjordn commented 2 years ago

Thanks @ramonski , we should probably add that to the readme, I was attempting to install the senaite.health addon but ran into some errors so I'll try that one^.

ramonski commented 2 years ago

Yes, the documentation is always lagging behind. Please note that senaite.health is discontinued for Senaite 2.x, so it won't work. You can go ahead with the senaite.patient add-on if you need to manage patients in the system. Closing this one for now.