wallix / PEPS

Innovative Open source Email + File sharing
GNU Affero General Public License v3.0
699 stars 109 forks source link

make build fails #9

Closed Madko closed 9 years ago

Madko commented 9 years ago

Hi,

following the instructions in the readme file, I can't build PEPS:

Status: Downloaded newer image for makuk66/docker-solr:latest
 ---> c5a82dff2ad5
Step 1 : MAINTAINER MLstate <contact@mlstate.com>
 ---> Running in 840bb2b569ea
 ---> 35248ceda1b6
Removing intermediate container 840bb2b569ea
Step 2 : RUN apt-get update && apt-get install -y   curl   unzip
 ---> Running in 7974cd8fd0d8
Get:1 http://security.debian.org wheezy/updates Release.gpg [836 B]
Hit http://ppa.launchpad.net precise Release.gpg
Get:2 http://security.debian.org wheezy/updates Release [102 kB]
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise/main Sources
Hit http://http.debian.net wheezy Release.gpg
Hit http://ppa.launchpad.net precise/main amd64 Packages
Get:3 http://http.debian.net wheezy-updates Release.gpg [836 B]
Hit http://http.debian.net wheezy Release
Get:4 http://http.debian.net wheezy-updates Release [124 kB]
Get:5 http://security.debian.org wheezy/updates/main amd64 Packages [334 kB]
Hit http://http.debian.net wheezy/main amd64 Packages
Get:6 http://http.debian.net wheezy-updates/main amd64 Packages [4,104 B]
Fetched 566 kB in 2s (276 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version.
Suggested packages:
  zip
The following NEW packages will be installed:
  unzip
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 195 kB of archives.
After this operation, 386 kB of additional disk space will be used.
Get:1 http://security.debian.org/ wheezy/updates/main unzip amd64 6.0-8+deb7u2 [195 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 195 kB in 0s (457 kB/s)
Selecting previously unselected package unzip.
(Reading database ... 10123 files and directories currently installed.)
Unpacking unzip (from .../unzip_6.0-8+deb7u2_amd64.deb) ...
Setting up unzip (6.0-8+deb7u2) ...
 ---> 4e1cf5257695
Removing intermediate container 7974cd8fd0d8
Step 3 : RUN curl -sf -o /tmp/solr.zip -L https://github.com/MLstate/PEPS/releases/download/0.9.9/solr.zip
 ---> Running in 47f7fa7709fb
 ---> 3201ab9e1647
Removing intermediate container 47f7fa7709fb
Step 4 : RUN mkdir -p /solr && cd /solr && unzip -q /tmp/solr.zip
 ---> Running in 325ddb10aeef
 ---> 8432e0d69a35
Removing intermediate container 325ddb10aeef
Step 5 : RUN rm /tmp/solr.zip
 ---> Running in 291eeffd6d3d
 ---> aef0ce1a1551
Removing intermediate container 291eeffd6d3d
Step 6 : ENV SOLR_ROOT /opt/solr
 ---> Running in 9e448eaeaaa3
 ---> 299635d5ce9f
Removing intermediate container 9e448eaeaaa3
Step 7 : ENV SOLR_DATA $SOLR_ROOT/example/solr
 ---> Running in 74abf558bee1
 ---> 4a542fe53386
Removing intermediate container 74abf558bee1
Step 8 : RUN cp -r $SOLR_DATA/collection1 $SOLR_DATA/peps_mail
 ---> Running in 70f027bea8c6
cp: cannot stat `/opt/solr/example/solr/collection1': No such file or directory
INFO[0943] The command [/bin/sh -c cp -r $SOLR_DATA/collection1 $SOLR_DATA/peps_mail] returned a non-zero code: 1 
Makefile:41: recipe for target 'build' failed
make: *** [build] Error 1

Any idea why?

Madko commented 9 years ago

Complete build log is here http://ur1.ca/jrtca

KillianKemps commented 9 years ago

I got a similar error when doing a make build

It finishes with

cp: cannot stat `/opt/solr/example/solr/collection1': No such file or directory INFO[0174] The command [/bin/sh -c cp -r $SOLR_DATA/collection1 $SOLR_DATA/peps_mail] returned a non-zero code: 1 make: *** [build] Erreur 1

Complete log here: https://www.zerobin.net/?ba2550f50b0fa4e6#h426Z3+EfMFRMooxoF58u02LAYQ8947OQMesFcRxXJo=

G-Ray commented 9 years ago

Same error here

hbbio commented 9 years ago

This is confirmed.

Problem appears after this commit 3 days ago in the upstream solr Docker container: https://github.com/makuk66/docker-solr/commit/d09a40b3e50124b4da5dba7cb81f88b0ce2328a7

Temporary fix:

  1. Remove image: docker rmi makuk66/docker-solr
  2. Build a previous version of docker-solr (from github sadly, as the image doesn't use tags)
hbbio commented 9 years ago

Pushed a temporary fix, can you try pulling PEPS and rebuilding?

KillianKemps commented 9 years ago

I confirm after the temporary fix it does work again.

Madko commented 9 years ago

same here it works now. Thanks Henri