OH2 is looking for not installed bundle

Regarding to issue i digged a little bit deeper and found out that openhab2 is looking for a bundleFile which is not installed.
Openhab2 is looking for bundle with id 24 => /var/lib/openhab2/cache/org.eclipse.osgi/24/0/bundleFile .
But a list of all installed bundles shows no bundle with id 24.

openhab> bundle:list                                                        
START LEVEL 100 , List Threshold: 50                                     
 ID │ State    │ Lvl │ Version                │ Name                                            
────┼──────────┼─────┼────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 20 │ Active   │  80 │ 5.3.1.201602281253     │ OSGi JAX-RS Connector                          
 21 │ Active   │  80 │ 2.7.0.v20170129-0911   │ Gson: Google Json Library for Java
 22 │ Active   │  80 │ 18.0.0                 │ Guava: Google Core Libraries for Java
 23 │ Active   │  80 │ 3.0.0.v201312141243    │ Google Guice (No AOP)                  
 26 │ Active   │  80 │ 3.5.5                  │ JmDNS                          
 28 │ Active   │  80 │ 1.0.0                  │ Units of Measurement API             
 30 │ Active   │  80 │ 1.1.0.Final            │ Bean Validation API                                        
 31 │ Active   │  80 │ 2.0.1                  │ javax.ws.rs-api                   
 32 │ Active   │  80 │ 3.2.0.v201101311130    │ ANTLR Runtime                      
 35 │ Active   │  80 │ 3.2.1                  │ Commons Collections                            
 36 │ Active   │  80 │ 1.1                    │ Commons Exec                                          
 37 │ Active   │  80 │ 2.2.0                  │ Commons IO                         
 38 │ Active   │  80 │ 2.6                    │ Commons Lang                 
 47 │ Active   │  80 │ 4.2.1                  │ Apache Karaf :: OSGi Services :: Event
 63 │ Active   │  80 │ 4.6.0                  │ Apache XBean OSGI Bundle Utilities                
 64 │ Active   │  80 │ 4.6.0                  │ Apache XBean :: Classpath Resource Finder
 65 │ Active   │  80 │ 2.12.0.v20160420-0247  │ EMF Common                       
 66 │ Active   │  80 │ 2.12.0.v20160420-0247  │ EMF Ecore                          
 67 │ Active   │  80 │ 2.11.0.v20160420-0247  │ EMF Change Model                       
 68 │ Active   │  80 │ 2.12.0.v20160420-0247  │ EMF XML/XMI Persistence              
 69 │ Active   │  80 │ 3.8.0.v20160509-1230   │ Common Eclipse Runtime      
 70 │ Active   │  80 │ 3.6.100.v20160223-2218 │ Extension Registry Support      
 80 │ Active   │  80 │ 9.4.11.v20180605       │ Jetty :: Proxy             

So where is the reference to bundle 24 stored? How to remove this blackhole reference without reinstalling the whole system?

Kind regards
Thomas

When you look inside the above folder, is there a “bundleFile”?

Which “date” does the folder have?

Does it correspond to the “dates” of all other folders?

Maybe you also have to clean the cache?

The folder /var/lib/openhab2/cache/org.eclipse.osgi/24 does not exists.

All other folder has the date and timestamp from the last time a cleaned the cache by running openhab-cli clean-cache .

@THKDev

OK. Could you please provide the error-logs or the interesting parts of it?

How do you know, that “Openhab2 is looking for bundle with id 24…”?

For error-log see here.

Did you use this manual?