[SOLVED] No PaperUI or BasicUI after upgrade to OpenHab 2.5.0-1

Hi guys,

I was running 2.4 on this Raspberry Pi 3. I just upgraded to 2.5, and OH doesn’t seem to fully start-up. I did clean the cache and the tmp folders, and restarted OH multiple times. The log also doesn’t indicate any major error. Anyone knows what could be the cause? I do have a number of Python rules, but OH doesn’t even seem to get to that point yet. Please see the log below.

2020-01-11 22:42:51.329 [WARN ] [g.dispatch.internal.ConfigDispatcher] - The file /etc/openhab2/services/mqtt.cfg subsequently defines the exclusive PID 'org.openhab.mqtt'. Overriding existing configuration now.
2020-01-11 22:42:58.087 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'weather.items'
2020-01-11 22:42:58.282 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'chrome-cast.items'
2020-01-11 22:42:58.398 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'routes.items'
2020-01-11 22:42:58.483 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.items'
2020-01-11 22:42:58.627 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'camera.items'
2020-01-11 22:42:58.679 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'presence.items'
2020-01-11 22:42:58.763 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'temperature-and-humidity.items'
2020-01-11 22:42:58.890 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'switch-and-plug.items'
2020-01-11 22:43:00.465 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'default.sitemap', using it anyway:
Linkable widget should contain either only frames or none at all
2020-01-11 22:43:00.470 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2020-01-11 22:43:00.889 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'google.things'
2020-01-11 22:43:00.907 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'camera.things'
2020-01-11 22:43:00.934 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dsc-alarm.things'
2020-01-11 22:43:00.956 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'feed.things'
2020-01-11 22:43:00.975 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'network.things'
2020-01-11 22:43:01.013 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'mqttConnections.things', using it anyway:
Provide a thing type ID and a thing ID in this format:
 <thingTypeId> <thingId>
2020-01-11 22:43:01.059 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqttConnections.things'
2020-01-11 22:43:01.087 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'tplinksmarthome.things'
2020-01-11 22:43:01.154 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'astro.things'
2020-01-11 22:43:09.833 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'presence.rules'
2020-01-11 22:43:11.980 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'security-alert-when-in-vacation.rules'
2020-01-11 22:43:14.483 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'security-alert-when-owner-away.rules', using it anyway:
The value of the local variable subject is not used
2020-01-11 22:43:14.488 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'security-alert-when-owner-away.rules'
2020-01-11 22:43:15.264 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'security-alerts-general.rules'
2020-01-11 22:43:20.073 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'weather.rules'
2020-01-11 22:43:23.658 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'plugs.rules'
2020-01-11 22:43:27.019 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'security-actions.rules'
2020-01-11 22:43:29.000 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'temperature-and-humidity-alert.rules'
2020-01-11 22:43:32.755 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights-vacation-mode.rules'
2020-01-11 22:43:33.875 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'time-of-day.rules'
2020-01-11 22:43:37.947 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'routes.rules'
2020-01-11 22:43:38.861 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'security-alert-when-in-alarm.rules'
2020-01-11 22:43:39.790 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2020-01-11 22:43:42.059 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.0.204:8080
2020-01-11 22:43:42.094 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.0.204:8443
2020-01-11 22:44:03.488 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Error during the execution of startup rule 'Calculate time of day state': Could not cast NULL to org.eclipse.smarthome.core.library.types.DateTimeType; line 28, column 30, length 37

Thank you,

Here’s my bundle:list output. I don’t see any strange version.

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
 ID │ State  │ Lvl │ Version                 │ Name
────┼────────┼─────┼─────────────────────────┼──────────────────────────────────────────────────────────────────────────
 19 │ Active │  80 │ 5.3.1.201602281253      │ OSGi JAX-RS Connector
 20 │ Active │  80 │ 2.8.2.v20180104-1110    │ Gson: Google Json Library for Java
 21 │ Active │  80 │ 18.0.0                  │ Guava: Google Core Libraries for Java
 22 │ Active │  80 │ 27.1.0.jre              │ Guava: Google Core Libraries for Java
 23 │ Active │  80 │ 1.0.1                   │ Guava InternalFutureFailureAccess and InternalFutures
 24 │ Active │  80 │ 3.0.0.v201312141243     │ Google Guice (No AOP)
 25 │ Active │  80 │ 4.8.35.v20190528-1517   │ ClassGraph
 26 │ Active │  80 │ 3.18.1.GA               │ Javassist
 29 │ Active │  80 │ 3.5.5                   │ JmDNS
 31 │ Active │  80 │ 1.0.0                   │ Units of Measurement API
 33 │ Active │  80 │ 1.1.0.Final             │ Bean Validation API
 35 │ Active │  80 │ 2.0.1                   │ javax.ws.rs-api
 36 │ Active │  80 │ 2.9.2                   │ Joda-Time
 37 │ Active │  80 │ 0.5.8                   │ Jollyday
 38 │ Active │  80 │ 3.2.0.v201101311130     │ ANTLR Runtime
 40 │ Active │  80 │ 1.1                     │ Commons Exec
 41 │ Active │  80 │ 2.2.0                   │ Commons IO
 42 │ Active │  80 │ 2.6                     │ Commons Lang
 51 │ Active │  80 │ 4.2.7                   │ Apache Karaf :: OSGi Services :: Event
 66 │ Active │  80 │ 1.4.7.1                 │ Apache ServiceMix :: Bundles :: xstream
 69 │ Active │  80 │ 4.14.0                  │ Apache XBean OSGI Bundle Utilities
 70 │ Active │  80 │ 4.14.0                  │ Apache XBean :: Classpath Resource Finder
 71 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF Common
 72 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF Ecore
 73 │ Active │  80 │ 2.11.0.v20160420-0247   │ EMF Change Model
 74 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF XML/XMI Persistence
 75 │ Active │  80 │ 3.10.400.v20190516-1504 │ Common Eclipse Runtime
104 │ Active │  80 │ 0.8.0.v20190822-0801    │ org.eclipse.lsp4j
105 │ Active │  80 │ 0.8.0.v20190822-0801    │ org.eclipse.lsp4j.jsonrpc
106 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xtend Runtime Library
107 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xtend Macro Interfaces
108 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext
109 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xtext Common Types
110 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext IDE Core
111 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext Utility
112 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xbase Model
113 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xbase Generic IDE Services
115 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xbase Runtime Library
131 │ Active │  80 │ 1.9.6                   │ MIME streaming extension
133 │ Active │  80 │ 7.1.0                   │ org.objectweb.asm.commons
134 │ Active │  80 │ 7.1.0                   │ org.objectweb.asm.tree
135 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Core
136 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Audio
137 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: OAuth2Client
138 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Binding XML
139 │ Active │  90 │ 2.5.0                   │ openHAB Core :: Bundles :: Boot
140 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Core
141 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Discovery
142 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration mDNS Discovery
143 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Dispatcher
144 │ Active │  75 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration XML
145 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Ephemeris
146 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: ID
147 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Console
148 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
149 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: HTTP Interface
151 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Monitor
152 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Network I/O
153 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST Interface
154 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Audio REST Interface
155 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST Interface :: Core
156 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST mDNS Announcer
157 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST JAX-RS Optimizations
158 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Sitemap REST Interface
159 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: SSE Interface
160 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Voice REST Interface
161 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: mDNS Service
162 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Karaf Integration
163 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Core
164 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Items
165 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Item IDE
166 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Items Runtime
167 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Language Server
168 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence
169 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence IDE
170 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence Runtime
171 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rules
172 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rule IDE
173 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rules Runtime
174 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script
175 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script IDE
176 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script Runtime
177 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap
178 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap IDE
179 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap Runtime
180 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing
181 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing IDE
182 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing Runtime
183 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Persistence
184 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Scheduler Service
185 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Semantics
186 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: JSON Storage
187 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Thing
188 │ Active │  75 │ 2.5.0                   │ openHAB Core :: Bundles :: Thing XML
189 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Transformation Service
190 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: UI
191 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: UI Icon Support
192 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Voice
193 │ Active │  80 │ 2.5.0                   │ openHAB UI :: Bundles :: Dashboard UI
202 │ Active │  80 │ 1.4.0                   │ ThreeTen-Extra
203 │ Active │  80 │ 1.0.3                   │ Units of Measurement Common Library
204 │ Active │  80 │ 1.0.10                  │ Units of Measurement Implementation for Java SE

I made further progress. Just in case other people stumble on the same issue. The problem is that during the upgrade, OH didn’t migrate the addons.config at /var/lib/openhab2/config/org/openhab properly. Here’s how my old file look like:

action="mail,ecobee"
binding="expire1,myq1,dscalarm,network,ecobee1,astro,tplinksmarthome,weather1,feed,zwave,chromecast,mqtt"
felix.fileinstall.filename="file:/var/lib/openhab2/etc/org.openhab.addons.cfg"
misc="restdocs,openhabcloud,ruleengine"
package="standard"
service.pid="org.openhab.addons"
transformation="map,jsonpath,javascript"
ui="basic,paper,habpanel,homebuilder"
voice="googletts,voicerss"

OH just renames that file to addons.config.old and re-create the file with this content:

package="minimal"
service.pid="org.openhab.addons"

To fix it, I have to replace that with

:org.apache.felix.configadmin.revision:=L"48"
action="mail,ecobee"
binding="expire1,myq1,dscalarm,network,ecobee1,astro,tplinksmarthome,weather1,feed,zwave,chromecast,mqtt"
felix.fileinstall.filename="file:/var/lib/openhab2/etc/org.openhab.addons.cfg"
misc="restdocs,openhabcloud,ruleengine"
package="standard"
service.pid="org.openhab.addons"
transformation="map,jsonpath,javascript"
ui="basic,paper,habpanel,homebuilder"
voice="googletts,voicerss"

I do have the UIs back now, ZWave is working, but all the Python scripts are in error.

Remove restdocs from misc and reinstall. Otherwise addons will restart every minute.

Yup that part was in the release notes. I fixed that very quickly yesterday. My python scripts were also fixed relatively quickly after updating openhab2-jython.

Thanks,