Trying to create remote Fabric managed container fails with "Could not find file fabric8-karaf-1.0.0.redhat-379.zip"

Solution Verified - Updated -

Environment

  • JBoss Fuse 6.1

Issue

I am trying to create a remote Fabric managed container using

fabric:container-create-ssh --host remote-machine  --user admin  --password  admin MyContainer

This command fails with

Could not find file fabric8-karaf-1.0.0.redhat-379.zip

The response during command execution:

Running: mkdir -p /home/admin/containers/
Running: cd /home/admin/containers/
Running: mkdir -p container
Running: cd container
Java version is greater than 1.6.
Downloading Maven Artifact with groupId: io.fabric8 artifactId: fabric8-karaf and version: 1.0.0.redhat-379 from repository: http://host:8181/maven/download/
Using URL: http://host:8181/maven/download/io/fabric8/fabric8-karaf/1.0.0.redhat-379/fabric8-karaf-1.0.0.redhat-379.zip
Download failed with code: 000
rm: cannot remove `fabric8-karaf-1.0.0.redhat-379.zip': No such file or directory
Downloading Maven Artifact with groupId: io.fabric8 artifactId: fabric8-karaf and version: 1.0.0.redhat-379 from repository: https://repo.fusesource.com/nexus/content/groups/public/
Using URL: https://repo.fusesource.com/nexus/content/groups/public/io/fabric8/fabric8-karaf/1.0.0.redhat-379/fabric8-karaf-1.0.0.redhat-379.zip
Download failed with code: 000
rm: cannot remove `fabric8-karaf-1.0.0.redhat-379.zip': No such file or directory
Downloading Maven Artifact with groupId: io.fabric8 artifactId: fabric8-karaf and version: 1.0.0.redhat-379 from repository: https://repo.fusesource.com/nexus/content/groups/ea/
Using URL: https://repo.fusesource.com/nexus/content/groups/ea/io/fabric8/fabric8-karaf/1.0.0.redhat-379/fabric8-karaf-1.0.0.redhat-379.zip
Download failed with code: 000
rm: cannot remove `fabric8-karaf-1.0.0.redhat-379.zip': No such file or directory
Downloading Maven Artifact with groupId: io.fabric8 artifactId: fabric8-karaf and version: 1.0.0.redhat-379 from repository: https://repo.fusesource.com/nexus/content/repositories/snapshots/
Using URL: https://repo.fusesource.com/nexus/content/repositories/snapshots/io/fabric8/fabric8-karaf/1.0.0.redhat-379/fabric8-karaf-1.0.0.redhat-379.zip
Download failed with code: 000
rm: cannot remove `fabric8-karaf-1.0.0.redhat-379.zip': No such file or directory
Command Failed:Could not find file fabric8-karaf-1.0.0.redhat-379.zip

However the file fabric8-karaf-1.0.0.redhat-379.zip exist in the JBoss Fuse installation, in

$KARAF_HOME/system/io/fabric8/fabric8-karaf/1.0.0.redhat-379/

The machines are not connected to the Internet but the zip file should have been downloaded from the root container.
So why does the remote machine fail to download the zip file?

Resolution

Is there perhaps a DNS lookup problem? Can the remote machine resolve the DNS name of the machine running the Fabric root container (in this example hostname 'host')?
To verify, try to retrieve the url

http://host:8181/maven/download/io/fabric8/fabric8-karaf/1.0.0.redhat-379/fabric8-karaf-1.0.0.redhat-379.zip

from the remote machine (where the Fabric managed container creation failed) using a browser or a command line tool wget. Can it resolve the DNS name address correctly?

From the output above, the remote container also tries to retrieve fabric8-karaf-1.0.0.redhat-379.zip from our public Maven repositories, but if that machine is not connected to the Internet, that attempt will fails as well.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments