You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by musician <az...@hotmail.com> on 2019/08/21 13:11:13 UTC

Ensuring featuresBoot to execute only first time

Hello,

It is possible to configure karaf in way to execute the features specified
in the featuresBoot in org.apache.karaf.features.cfg only the first time and
not during the subsequent karaf re-starts?



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Ensuring featuresBoot to execute only first time

Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hello

Did you use official distro? What I'd do is debugging, but unfortunately i
don't have much time this week. Do you have some logs from first run?

regards
Grzegorz Grzybek

pt., 23 sie 2019 o 17:38 musician <az...@hotmail.com> napisał(a):

> I just checked the state.json under the bundle 11
> (mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.2.3) and
> found that the "bootDone" was still false. Perhaps that is my problem. Any
> ideas why bootDone is still false?
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
>

Re: Ensuring featuresBoot to execute only first time

Posted by musician <az...@hotmail.com>.
I just checked the state.json under the bundle 11
(mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.2.3) and
found that the "bootDone" was still false. Perhaps that is my problem. Any
ideas why bootDone is still false?



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Ensuring featuresBoot to execute only first time

Posted by musician <az...@hotmail.com>.
I found that the first time karaf starts, installs all the standard & custom
features and operates properly. But if I stop and start karaf again, it
throws errors such as missing dependencies. If I comment out the
featuresBoot from the file org.apache.karaf.features.cfg after stopping
karaf, the karaf starts up and runs properly. So, I was assuming that the
contents in featuresBoot are causing this behavior.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Ensuring featuresBoot to execute only first time

Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hello

Doesn't it always work like that? "state.json" in bundle data of
features.core bundle contains "bootDone" flag...

$ jq . bundle11/data/state.json
{
  "bootDone": true,
  "checksums": {},
  "features": {
    "root": [
      "feature:feature/[4.2.6,4.2.6]",
      "feature:deployer/[4.2.6,4.2.6]",
...

regards
Grzegorz Grzybek

śr., 21 sie 2019 o 15:25 musician <az...@hotmail.com> napisał(a):

> Hello,
>
> It is possible to configure karaf in way to execute the features specified
> in the featuresBoot in org.apache.karaf.features.cfg only the first time
> and
> not during the subsequent karaf re-starts?
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
>