Missing files when doing instance:create

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Missing files when doing instance:create

Oleg Cohen

I have a clean installation of Karaf 4.1.0 on Linux CentOS with Java 1.8.

When creating a node using instance:create -v test-01 I see a number of files are listed missing even though they are present in the main installation at the etc folder. Here is a sample output:

Creating new instance on SSH port 8104 and registry port 1102 / RMI server port 44447 at: /opt/apache-karaf-4.1.0/instances/test-01
Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/bin
Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/etc
Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/system
Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/deploy
Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/data
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/all.policy
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/config.properties
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/custom.properties
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/distribution.info
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/equinox-debug.properties
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/java.util.logging.properties
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/jmx.acl.cfg
WARNING: unable to find etc/jmx.acl.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/jre.properties
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/keys.properties
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.felix.fileinstall-deploy.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.features.repos.cfg
WARNING: unable to find etc/org.apache.karaf.features.repos.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.jaas.cfg
WARNING: unable to find etc/org.apache.karaf.jaas.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.kar.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.log.cfg
WARNING: unable to find etc/org.apache.karaf.log.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.ops4j.pax.logging.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.ops4j.pax.url.mvn.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/shell.init.script
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/users.properties
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.features.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/system.properties
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.shell.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.management.cfg
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/karaf
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/start
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/stop
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/karaf.bat
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/start.bat
Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/stop.bat
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing files when doing instance:create

jbonofre
Hi Oleg,

Thanks for the report. As workaround you can use instance:clone (create
starts from embedded files, not related to the root instance).

I will fix that for 4.1.1.

Regards
JB

On 03/08/2017 02:15 AM, Oleg Cohen wrote:

>
> I have a clean installation of Karaf 4.1.0 on Linux CentOS with Java 1.8.
>
> When creating a node using instance:create -v test-01 I see a number of
> files are listed missing even though they are present in the main
> installation at the etc folder. Here is a sample output:
>
> Creating new instance on SSH port 8104 and registry port 1102 / RMI
> server port 44447 at: /opt/apache-karaf-4.1.0/instances/test-01
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/bin
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/etc
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/system
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/deploy
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/data
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/all.policy
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/config.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/custom.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/distribution.info
> <http://distribution.info>
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/equinox-debug.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/java.util.logging.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/jmx.acl.cfg
> WARNING: unable to find etc/jmx.acl.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/jre.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/keys.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.felix.fileinstall-deploy.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.features.repos.cfg
> WARNING: unable to find etc/org.apache.karaf.features.repos.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.jaas.cfg
> WARNING: unable to find etc/org.apache.karaf.jaas.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.kar.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.log.cfg
> WARNING: unable to find etc/org.apache.karaf.log.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.ops4j.pax.logging.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.ops4j.pax.url.mvn.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/shell.init.script
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/users.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.features.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/system.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.shell.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.management.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/karaf
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/start
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/stop
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/karaf.bat
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/start.bat
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/stop.bat

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing files when doing instance:create

jbonofre
In reply to this post by Oleg Cohen
For the tracking: https://issues.apache.org/jira/browse/KARAF-5018

Regards
JB

On 03/08/2017 02:15 AM, Oleg Cohen wrote:

>
> I have a clean installation of Karaf 4.1.0 on Linux CentOS with Java 1.8.
>
> When creating a node using instance:create -v test-01 I see a number of
> files are listed missing even though they are present in the main
> installation at the etc folder. Here is a sample output:
>
> Creating new instance on SSH port 8104 and registry port 1102 / RMI
> server port 44447 at: /opt/apache-karaf-4.1.0/instances/test-01
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/bin
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/etc
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/system
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/deploy
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/data
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/all.policy
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/config.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/custom.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/distribution.info
> <http://distribution.info>
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/equinox-debug.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/java.util.logging.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/jmx.acl.cfg
> WARNING: unable to find etc/jmx.acl.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/jre.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/keys.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.felix.fileinstall-deploy.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.features.repos.cfg
> WARNING: unable to find etc/org.apache.karaf.features.repos.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.jaas.cfg
> WARNING: unable to find etc/org.apache.karaf.jaas.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.kar.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.log.cfg
> WARNING: unable to find etc/org.apache.karaf.log.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.ops4j.pax.logging.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.ops4j.pax.url.mvn.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/shell.init.script
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/users.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.features.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/system.properties
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.shell.cfg
> Creating file:
> /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.management.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/karaf
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/start
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/stop
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/karaf.bat
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/start.bat
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/stop.bat

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Loading...