Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while building images #5

Open
lucmski opened this issue Oct 7, 2019 · 3 comments
Open

error while building images #5

lucmski opened this issue Oct 7, 2019 · 3 comments

Comments

@lucmski
Copy link

lucmski commented Oct 7, 2019

Hi,

Hope you are all well !

I have the following error when trying docker-compose up

Building streammanager
Step 1/11 : FROM java:8
8: Pulling from library/java
5040bd298390: Already exists
fce5728aad85: Pull complete
76610ec20bf5: Pull complete
60170fec2151: Pull complete
e98f73de8f0d: Pull complete
11f7af24ed9c: Pull complete
49e2d6393f32: Pull complete
bb9cdec9c7f3: Pull complete
Digest: sha256:c1ff613e8ba25833d2e1940da0940c3824f03f802c449f3d1815a66b7f8c0e9d
Status: Downloaded newer image for java:8
 ---> d23bdf5b1b1b
Step 2/11 : MAINTAINER Manos Schinas [email protected]
 ---> Running in 61bbe570a768
Removing intermediate container 61bbe570a768
 ---> d901c4d3ee04
Step 3/11 : RUN apt-get update &&     DEBIAN_FRONTEND=noninteractive apt-get install -y git maven
 ---> Running in 7ced40256844
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [16.3 kB]
Ign http://deb.debian.org jessie-backports InRelease
Get:3 http://deb.debian.org jessie Release.gpg [1652 B]
Ign http://deb.debian.org jessie-backports Release.gpg
Get:4 http://deb.debian.org jessie Release [77.3 kB]
Ign http://deb.debian.org jessie-backports Release
Err http://deb.debian.org jessie-backports/main amd64 Packages
  
Err http://deb.debian.org jessie-backports/main amd64 Packages
  
Err http://deb.debian.org jessie-backports/main amd64 Packages
  
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [885 kB]
Err http://deb.debian.org jessie-backports/main amd64 Packages
  
Err http://deb.debian.org jessie-backports/main amd64 Packages
  404  Not Found
Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [20 B]
Get:7 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 20s (497 kB/s)
W: There is no public key available for the following key IDs:
AA8E81B4331F7F50
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'streammanager' failed to build: The command '/bin/sh -c apt-get update &&     DEBIAN_FRONTEND=noninteractive apt-get install -y git maven' returned a non-zero code: 100

Cheers

@jdnascim
Copy link

jdnascim commented Oct 17, 2019

Changing the stream-manager-service/Dockerfile worked for me

Comment the lines

RUN apt-get update &&
DEBIAN_FRONTEND=noninteractive apt-get install -y git maven

And add

RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http://deb.debian.org/debian jessie-updates main/d' /etc/apt/sources.list
RUN apt-get -o Acquire::Check-Valid-Until=false update
DEBIAN_FRONTEND=noninteractive apt-get install -y git maven

From what I have understood, it is a problem of Java image (not just stream manager image).

@lucmski
Copy link
Author

lucmski commented Oct 19, 2019

thanks for this :-)

but now I have an error with mongodb

mongodb_1        | 2019-10-19T13:27:28.729+0000 I NETWORK  [initandlisten] connection accepted from 172.19.0.5:55064 #234 (1 connection now open)
mongodb_1        | 2019-10-19T13:27:28.743+0000 I ACCESS   [conn234] SCRAM-SHA-1 authentication failed for admin on admin from client 172.19.0.5 ; UserNotFound: Could not find user admin@admin
mongodb_1        | 2019-10-19T13:27:28.747+0000 I NETWORK  [conn234] end connection 172.19.0.5:55064 (0 connections now open)

Any ideas about that issue ?

Cheers,
L.

@jdnascim
Copy link

Probably you either have not run create_user.sh or have not set the user and password in docker-compose.yml.

Anyway, ensure that you have followed the instructions of the mongodb section in readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants