Is there a command to display what a bundle is Waiting for?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a command to display what a bundle is Waiting for?

Steinar Bang
Platform: debian 10.3 "buster", amd64, openjdk 11, karaf 4.2.8 (from binary tarball)

I have this in bundle:list:
...
166 │ Waiting │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp backend
167 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp Liquibase db schema definitions
168 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp production database setup
169 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp OSGi service definitions
170 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp web frontend
171 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn web security component
172 │ Waiting │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp REST API

Curiously bundle:status reports 166 as Active:
karaf@root()> bundle:status 166
Active
karaf@root()>

Is there a reason for bundle 166 showing as Waiting in list and active
in status?

Is there a bundle:* command to show what service or imported package,
166 is Waiting for?

There are no suspicious stack traces from the startup in karaf.log.

Thanks!


- Steinar

Reply | Threaded
Open this post in threaded view
|

Re: Is there a command to display what a bundle is Waiting for?

Alex Soto
Try command:

bundle:diag



Best regards,
Alex soto




On Feb 13, 2020, at 2:04 PM, Steinar Bang <[hidden email]> wrote:

Platform: debian 10.3 "buster", amd64, openjdk 11, karaf 4.2.8 (from binary tarball)

I have this in bundle:list:
...
166 │ Waiting │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp backend
167 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp Liquibase db schema definitions
168 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp production database setup
169 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp OSGi service definitions
170 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp web frontend
171 │ Active  │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn web security component
172 │ Waiting │  80 │ 1.0.0.SNAPSHOT     │ Ukelonn webapp REST API

Curiously bundle:status reports 166 as Active:
karaf@root()> bundle:status 166
Active
karaf@root()>

Is there a reason for bundle 166 showing as Waiting in list and active
in status?

Is there a bundle:* command to show what service or imported package,
166 is Waiting for?

There are no suspicious stack traces from the startup in karaf.log.

Thanks!


- Steinar


Reply | Threaded
Open this post in threaded view
|

Re: Is there a command to display what a bundle is Waiting for?

jbonofre
In reply to this post by Steinar Bang
Take a look on bundle:diag 

Regards 
JB

Le jeu. 13 f?vr. 2020 ? 20:04, Steinar Bang <[hidden email]> a ?crit :
Platform: debian 10.3 "buster", amd64, openjdk 11, karaf 4.2.8 (from binary tarball)

I have this in bundle:list:
...
166 ? Waiting ? 80 ? 1.0.0.SNAPSHOT ? Ukelonn webapp backend
167 ? Active ? 80 ? 1.0.0.SNAPSHOT ? Ukelonn webapp Liquibase db schema definitions
168 ? Active ? 80 ? 1.0.0.SNAPSHOT ? Ukelonn webapp production database setup
169 ? Active ? 80 ? 1.0.0.SNAPSHOT ? Ukelonn webapp OSGi service definitions
170 ? Active ? 80 ? 1.0.0.SNAPSHOT ? Ukelonn webapp web frontend
171 ? Active ? 80 ? 1.0.0.SNAPSHOT ? Ukelonn web security component
172 ? Waiting ? 80 ? 1.0.0.SNAPSHOT ? Ukelonn webapp REST API

Curiously bundle:status reports 166 as Active:
karaf@root()> bundle:status 166
Active
karaf@root()>

Is there a reason for bundle 166 showing as Waiting in list and active
in status?

Is there a bundle:* command to show what service or imported package,
166 is Waiting for?

There are no suspicious stack traces from the startup in karaf.log.

Thanks!


- Steinar

Reply | Threaded
Open this post in threaded view
|

Re: Is there a command to display what a bundle is Waiting for?

Steinar Bang
In reply to this post by Alex Soto
>>>>> Alex Soto <[hidden email]>:

> Try command:
> bundle:diag

> See here:  https://karaf.apache.org/manual/latest/#_diagnostic <https://karaf.apache.org/manual/latest/#_diagnostic>

Thanks! And thanks to JB as well!

The problem is a missing DataSource:
 karaf@root()> bundle:diag
 Ukelonn webapp backend (166)
 ----------------------------
 Status: Waiting
 Declarative Services
 no.priv.bang.ukelonn.backend.UkelonnServiceProvider (12)
   missing references: DataSource


 Ukelonn webapp REST API (172)
 -----------------------------
 Status: Waiting
 Declarative Services
 no.priv.bang.ukelonn.api.UkelonnRestApiServlet (17)
   missing references: UkelonnService


karaf@root()>