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

Can't build in Ubuntu 20.04 #482

Open
iohann95 opened this issue Nov 8, 2021 · 2 comments
Open

Can't build in Ubuntu 20.04 #482

iohann95 opened this issue Nov 8, 2021 · 2 comments

Comments

@iohann95
Copy link

iohann95 commented Nov 8, 2021

I'm trying to build on my Ubuntu 20.04 but always get an error, no matter what I do

[WARNING] There were 0 download errors - check the warnings above [INFO] [INFO] --- maven-jar-plugin:3.2.0:test-jar (default) @ alfresco-transform-imagemagick-boot --- [INFO] Building jar: /home/ubuntu/alfresco-transform-core-2.5.3/alfresco-transform-imagemagick/alfresco-transform-imagemagick-boot/target/alfresco-transform-imagemagick-boot-2.5.3-tests.jar [INFO] [INFO] --- fabric8-maven-plugin:4.4.0:build (build-image) @ alfresco-transform-imagemagick-boot --- [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc: Name or service not known [INFO] F8: Running in Kubernetes mode [INFO] F8: Building Container image with Docker in Kubernetes mode [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring.

Failed to execute the build: io.fabric8.maven.docker.access.DockerAccessException: Unable to build image [alfresco/alfresco-imagemagick:latest] : Connection reset by peer

Thanks!

@montgolfiere
Copy link
Contributor

I think there may be an issue with "io.fabric8.fabric8-maven-plugin". As a workaround you may be able to edit /etc/docker/daemon.json and add:

  "debug" : true,
  "experimental" : true,

Then restart your docker daemon / service.

At some point we need to completely switch-over to the "io.fabric8.docker-maven-plugin" which may not require the workaround (tbc).

@igorbga
Copy link

igorbga commented Jul 12, 2022

I'm having the same issue in Ubuntu 22.04.

@montgolfiere your workaround worked, well in fact only "experimental" was required.

Please could you point us to what experimental feature is required by the actual build process. I'm curious about it as Ubuntu 22.04 is shipping with Docker 20.10.12 which is a quite modern version of docker.

Thanks.

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

3 participants