Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3471

Karaf can't start if etc/config.properties is not writable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.2, 3.0.4, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None

      Description

      The Karaf main loads the config.properties (as a org.apache.felix.utils.properties.Properties) and load some additional properties in it (like System env/properties).

      Especially, it writes one thing (and the only thing ): the shutdown command.

      It's the:

      karaf.shutdown.command
      

      property, containing an unique/random UUID to "secure" the Karaf shutdown.

      If the property is not in etc/config.properties, Karaf will try to create one and write in etc/config.properties.
      If the property is already there, it just uses it.

      So, as a workaround, you can modify etc/config.properties to add:

      karaf.shutdown.command=321DE18U23187
      

      (or whatever you want).

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: