Karaf
  1. Karaf
  2. KARAF-1133

Error executing command 'start' when starting a child instance

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.5
    • Fix Version/s: 2.2.6, 3.0.0
    • Component/s: karaf-core
    • Labels:
      None

      Description

      From 2.2.5, the admin script can no longer start a child instance with the "start" command. This works perfectly fine in 2.2.4, however.

      $bin/admin create test
      Creating new instance on SSH port 8102 and RMI ports 1100/44445 at: /tmp/apache-karaf-2.2.5/instances/test
      Creating dir: /tmp/apache-karaf-2.2.5/instances/test/bin
      Creating dir: /tmp/apache-karaf-2.2.5/instances/test/etc
      Creating dir: /tmp/apache-karaf-2.2.5/instances/test/system
      Creating dir: /tmp/apache-karaf-2.2.5/instances/test/deploy
      Creating dir: /tmp/apache-karaf-2.2.5/instances/test/data
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/config.properties
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/jre.properties
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/custom.properties
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/java.util.logging.properties
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/org.apache.felix.fileinstall-deploy.cfg
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/org.apache.karaf.log.cfg
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/org.apache.karaf.features.cfg
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/org.ops4j.pax.logging.cfg
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/org.ops4j.pax.url.mvn.cfg
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/startup.properties
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/users.properties
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/system.properties
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/org.apache.karaf.shell.cfg
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/etc/org.apache.karaf.management.cfg
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/bin/karaf
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/bin/start
      Creating file: /tmp/apache-karaf-2.2.5/instances/test/bin/stop

      $bin/admin start test
      [org.apache.karaf.admin.internal.InstanceImpl] : Starting instance test with command: /usr/lib/jvm/java-6-openjdk/jre/bin/java -server -Xmx512M -Dcom.sun.management.jmxremote -Djava.util.logging.config.file="/tmp/apache-karaf-2.2.5/instances/test/etc/java.util.logging.properties" -Djava.endorsed.dirs="/usr/lib/jvm/java-6-openjdk/jre/jre/lib/endorsed:/usr/lib/jvm/java-6-openjdk/jre/lib/endorsed:/tmp/apache-karaf-2.2.5/lib/endorsed" -Djava.ext.dirs="/usr/lib/jvm/java-6-openjdk/jre/jre/lib/ext:/usr/lib/jvm/java-6-openjdk/jre/lib/ext:/tmp/apache-karaf-2.2.5/lib/ext" -Dkaraf.home="/tmp/apache-karaf-2.2.5" -Dkaraf.base="/tmp/apache-karaf-2.2.5/instances/test" -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /tmp/apache-karaf-2.2.5/lib/karaf.jar:/tmp/apache-karaf-2.2.5/lib/karaf-jaas-boot.jar org.apache.karaf.main.Main
      Error execution command 'start': No such file or directory

        Activity

        Show
        Freeman Fang added a comment - commit fix http://svn.apache.org/viewvc?rev=1227036&view=rev for trunk http://svn.apache.org/viewvc?rev=1227031&view=rev for 2.2.x branch
        Hide
        Freeman Fang added a comment -

        yeah, as we currently put all temp files in $KARAF_DATA/tmp folder through
        -Djava.io.tmpdir="$KARAF_DATA/tmp"
        we need ensure create data/tmp folder also

        Show
        Freeman Fang added a comment - yeah, as we currently put all temp files in $KARAF_DATA/tmp folder through -Djava.io.tmpdir="$KARAF_DATA/tmp" we need ensure create data/tmp folder also
        Hide
        Thomas Feng added a comment -

        It seems like the karaf installation requires data/tmp to be created. After I do "mkdir -p data/tmp", I'm able to start the child instance, and libjansi.so is generated in data/tmp.

        Show
        Thomas Feng added a comment - It seems like the karaf installation requires data/tmp to be created. After I do "mkdir -p data/tmp", I'm able to start the child instance, and libjansi.so is generated in data/tmp.

          People

          • Assignee:
            Freeman Fang
            Reporter:
            Thomas Feng
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development