Openhab 2.5.1 RC1 Server Error 500 (/start/index)

Hello,

I have a problem after a upgrade from openhab 2.4 to openhab 2.5.1 rc1.

The installation/update to 25.1 will be done without errors.

But after a reboot the ip:8080 will bring a 500 server error /start/index

Cache ist clear and that the output…

Has anybody any idea?

Thx, markus

HTTP ERROR 500

Problem accessing /start/index. Reason:

Server Error

Caused by:

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
at org.apache.felix.cm.impl.ConfigurationImpl.configure(ConfigurationImpl.java:659)
at org.apache.felix.cm.impl.ConfigurationImpl.configureFromPersistence(ConfigurationImpl.java:619)
at org.apache.felix.cm.impl.ConfigurationImpl.(ConfigurationImpl.java:194)
at org.apache.felix.cm.impl.ConfigurationManager.getConfiguration(ConfigurationManager.java:466)
at org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfiguration(ConfigurationAdminImpl.java:164)
at org.openhab.ui.dashboard.internal.DashboardServlet.getPackage(DashboardServlet.java:196)
at org.openhab.ui.dashboard.internal.DashboardServlet.isSetup(DashboardServlet.java:191)
at org.openhab.ui.dashboard.internal.DashboardServlet.doGet(DashboardServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:494)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918)
at java.lang.Thread.run(Thread.java:748)

Did you do a second restart of OH? Especially after clearing the cache and updating, the behaviour can be a bit ‘erratic’.

Yes, i restart my raspi 4 completly after cleaning the cache…

But nothing has changed…

Just to be sure we understand each other :grinning:, did you restart it a second time? To be precise: update OH - clear the cache & temp directory - restart OH - wait until the ‘dust’ settles (= openhab.log is mostly quiet) - restart again (without clearing anything).

Yes, i restarted the OH and the raspi a second time and nothing is changed :neutral_face:

Thats is the log form openhab:

2019-12-13 08:22:09.086 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘eg.items’

2019-12-13 08:22:09.487 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘influxdb.persist’

2019-12-13 08:22:10.000 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘default.sitemap’, using it anyway:

Frames must not contain other frames

Frames must not contain other frames

2019-12-13 08:22:10.004 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘default.sitemap’

2019-12-13 08:22:10.261 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘astro.things’

2019-12-13 08:22:12.669 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007

2019-12-13 08:22:14.937 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘xmas.rules’

2019-12-13 08:22:15.475 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘timer.rules’

2019-12-13 08:22:16.810 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘eg.rules’

2019-12-13 08:22:17.054 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘og.rules’

2019-12-13 08:22:18.149 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.42.106:8080

2019-12-13 08:22:18.151 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.42.106:8443

2019-12-13 08:22:34.225 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /start/index

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

at org.apache.felix.cm.impl.ConfigurationImpl.configure(ConfigurationImpl.java:659) ~[?:?]

at org.apache.felix.cm.impl.ConfigurationImpl.configureFromPersistence(ConfigurationImpl.java:619) ~[?:?]

at org.apache.felix.cm.impl.ConfigurationImpl.(ConfigurationImpl.java:194) ~[?:?]

at org.apache.felix.cm.impl.ConfigurationManager.getConfiguration(ConfigurationManager.java:466) ~[?:?]

at org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfiguration(ConfigurationAdminImpl.java:164) ~[?:?]

at org.openhab.ui.dashboard.internal.DashboardServlet.getPackage(DashboardServlet.java:196) ~[?:?]

at org.openhab.ui.dashboard.internal.DashboardServlet.isSetup(DashboardServlet.java:191) ~[?:?]

at org.openhab.ui.dashboard.internal.DashboardServlet.doGet(DashboardServlet.java:83) ~[?:?]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) ~[bundleFile:3.1.0]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[bundleFile:3.1.0]

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) ~[bundleFile:9.4.20.v20190813]

at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) ~[bundleFile:9.4.20.v20190813]

at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.20.v20190813]

at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.Server.handle(Server.java:494) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

2019-12-13 08:22:35.470 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /start/index

Try reboot instead of restart, as it’s worked for me in the past with similar issues.

I have tried reboot the raspy any times…

Nothing will worked.

I will install a new image, make an upgrade an will see what happend…

Thx Markus

Use the console to back a backup and you should be able to restore everything after the new image install.

sudo openhab-cli backup --full

Then copy that to your PC.

It‘s freaky, after a brand new install 2.5.0.1 every is fine… After restoring the backup from 2.4.0.1 thee error comes back again…

Please see also here:

.

EDIT: you have to check EVERY first line in ALL .config files in (/userdata/config/ and subfolders), if there are any of these entries:
.
especially: …/org/openhab/dashboard.config

WRONG:

:org.apache.felix.configadmin.revision:=“1.0”

or

:org.apache.felix.configadmin.revision:=“2.0”

or

:org.apache.felix.configadmin.revision:=“3.0”

…and so on…

.

CORRECT:

:org.apache.felix.configadmin.revision:=L"1"

or

:org.apache.felix.configadmin.revision:=L"2"

or

:org.apache.felix.configadmin.revision:=L"3"

…and so on…

Please also check: …/org/openhab/ addons.config

1 Like

Thx, for the tip

1 Like