Issue after upgrade to latest milestone 2.5

Dear Colleagues,

I have been facing problems after upgrade the openhab to latest snapshot also milesto 2.5. May you please help me to understand what’s wrong? I have already clean up the cache and rebooted but it does not work.

2019-12-03 00:19:54.870 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://10.1.1.100:8443

2019-12-03 00:19:56.972 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin

2019-12-03 00:19:57.193 [INFO ] [openhab.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui

2019-12-03 00:19:57.510 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

2019-12-03 00:19:57.592 [ERROR] [.dashboard.internal.DashboardService] - Error during Dashboard startup: alias: ‘/start/index’ is already in use in this or another context

2019-12-03 00:19:57.617 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-misc-restdocs’

2019-12-03 00:20:29.708 [ERROR] [org.openhab.ui.dashboard ] - bundle org.openhab.ui.dashboard:2.5.0.M5 (289)[org.openhab.dashboard(512)] : The deactivate method has thrown an exception

java.lang.IllegalArgumentException: Alias [/start/index] was never registered

First, there is no “Milestone2.5” The tatest testing release is “2.5 Milestone 6”.

Try rebooting or restarting openHAB. openHAB thinks another process is using that URL.

That is documented in the upgrade warnings. In Milestone 2, REST Docs moved from misc to ui.

  Warning:  REST Docs: This add-on is now part of the UIs. When installing it using textual configuration, update 'services/addons.cfg' by removing 'restdocs' from 'misc' and add it to 'ui' instead.
1 Like

I have already restart the OH and clean up the cache, I think /start/index change or ar duplicated inside of Karaf folder, but I’m not sure where it’s storage and how to change it.

Another question, how to check the milestone it self?

2 Likes

Another alternative to PaperUI is to log into the Karaf Console:

rich@argus:/o/o/u/jsondb (master) ✗   ssh -p 8101 -t openhab@localhost

                          __  _____    ____
  ____  ____  ___  ____  / / / /   |  / __ )
 / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  |
/ /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /
\____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/
    /_/                        2.5.0-SNAPSHOT
                               Build #1766

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.

openhab>

Or look in $OH_USERDATA/etc/version.properties.

rich@argus:/o/o/u/etc (master) ✗   cat version.properties
openHAB Distribution Version Information
----------------------------------------
build-no        : Build #1766
online-repo     : https://openhab.jfrog.io/openhab/online-repo-snapshot/2.5

Repository        Version
----------------------------------------
openhab-distro  : 2.5.0-SNAPSHOT
openhab-core    : 2.5.0-SNAPSHOT
openhab1-addons : 1.14.0-SNAPSHOT
openhab2-addons : 2.5.0-SNAPSHOT
karaf           : 4.2.7
2 Likes

May you help me about duplicated issue that I mentione din begining othe post?

No, never seen that error.

I recently upgraded to 2.5M5 from 2.4 and had an issue with one file. After fixing the file I still needed to stop OH, clean the cache and Reboot 3 times for everything to work right. Have you attempted multiple reboots?

DEar colleagues, I’m still working to get this issue solved:

2019-12-03 00:19:57.592 [ERROR] [.dashboard.internal.DashboardService] - Error during Dashboard startup: alias: ‘/start/index’ is already in use in this or another context

May you help me to figure out what’s happens?

If you stop openhab sudo systemctl stop openhab2 and
try browsing to [ip-address]:8080/start/index does any web page appear?

Hi Bruce,

that’s strange, i got a exception error during stopped, after stopped process finished I CAN’T see openhab dashboard over http://10.1.1.100:8080/start/index… looks is some “wrong/dirty” on configuration files that I can’t find it… Thanks for your review…

2019-12-06 01:04:56.501 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel

2019-12-06 01:04:56.552 [INFO ] [openhab.ui.paper.internal.PaperUIApp] - Stopped Paper UI

2019-12-06 01:04:56.597 [ERROR] [org.openhab.ui.dashboard ] - bundle org.openhab.ui.dashboard:2.5.0.M5 (302)[org.openhab.dashboard(317)] : The deactivate method has thrown an exception

java.lang.IllegalArgumentException: Alias [/start/index] was never registered

at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:321) ~[?:?]

at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:82) ~[?:?]

at org.openhab.ui.dashboard.internal.DashboardService.deactivate(DashboardService.java:105) ~[?:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]

at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228) ~[bundleFile:?]

at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) ~[bundleFile:?]

at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664) ~[bundleFile:?]

at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510) [bundleFile:?]

at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317) [bundleFile:?]

at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307) [bundleFile:?]

at org.apache.felix.scr.impl.manager.SingleComponentManager.disposeImplementationObject(SingleComponentManager.java:407) [bundleFile:?]

at org.apache.felix.scr.impl.manager.SingleComponentManager.deleteComponent(SingleComponentManager.java:163) [bundleFile:?]

at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:831) [bundleFile:?]

at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:805) [bundleFile:?]

at org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:584) [bundleFile:?]

at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.disposeComponents(ConfigurableComponentHolder.java:716) [bundleFile:?]

at org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:510) [bundleFile:?]

at org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:429) [bundleFile:?]

at org.apache.felix.scr.impl.Activator.access$300(Activator.java:49) [bundleFile:?]

at org.apache.felix.scr.impl.Activator$ScrExtension.destroy(Activator.java:292) [bundleFile:?]

at org.apache.felix.scr.impl.AbstractExtender$1.run(AbstractExtender.java:216) [bundleFile:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]

at org.apache.felix.scr.impl.AbstractExtender.destroyExtension(AbstractExtender.java:238) [bundleFile:?]

at org.apache.felix.scr.impl.AbstractExtender.bundleChanged(AbstractExtender.java:132) [bundleFile:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.Module.doStop(Module.java:634) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.Module.stop(Module.java:498) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1675) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1594) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.Module.doStop(Module.java:636) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.Module.stop(Module.java:498) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202) [org.eclipse.osgi-3.12.100.jar:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165) [org.eclipse.osgi-3.12.100.jar:?]

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

2019-12-06 01:04:56.660 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard

@mvo

What is the result of:

http:list

and:

feature:list |grep dashboard
1 Like

"openhab> http:list
ID | Servlet | Servlet-Name | State | Alias | Url
----±-----------------------±-----------------±------------±---------------- —±----------------------
19 | ServletContainerBridge | ServletModel-164 | Deployed | /rest | [/rest/]
135 | AudioServlet | ServletModel-24 | Undeployed | /audio | [/audio/
]
135 | AudioServlet | ServletModel-31 | Undeployed | /audio | [/audio/]
135 | AudioServlet | ServletModel-41 | Undeployed | /audio | [/audio/
]
135 | AudioServlet | ServletModel-62 | Deployed | /audio | [/audio/]
135 | AudioServlet | ServletModel-9 | Undeployed | /audio | [/audio/
]
138 | IconForwarder | ServletModel-22 | Deployed | /images | [/images/]
189 | AsyncProxyServlet | ServletModel-15 | Deployed | /proxy | [/proxy/
]
189 | ChartServlet | ServletModel-6 | Deployed | /chart | [/chart/]
190 | IconServlet | ServletModel-167 | Deployed | /icon | [/icon/
]
192 | ResourceServlet | /start:web | Deployed | /start | [/start/]
192 | DashboardServlet | ServletModel-170 | Deployed | /start/index | [/start/index/
]
247 | AsyncServlet | ServletModel-46 | Deployed | /upnpcallback | [/upnpcallback/]
249 | BindingServlet | ServletModel-70 | Deployed | /amazonechocontr ol | [/amazonechocontrol/
]
264 | WeatherServlet | ServletModel-60 | Deployed | /weather | [/weather/]
289 | ResourceServlet | /basicui:web | Deployed | /basicui | [/basicui/
]
289 | CmdServlet | ServletModel-174 | Deployed | /basicui/CMD | [/basicui/CMD/]
289 | WebAppServlet | ServletModel-177 | Deployed | /basicui/app | [/basicui/app/
]
290 | ResourceServlet | /classicui:web | Deployed | /classicui | [/classicui/]
290 | CmdServlet | ServletModel-182 | Deployed | /classicui/CMD | [/classicui/CMD/
]
290 | WebAppServlet | ServletModel-185 | Deployed | /classicui/app | [/classicui/app/]
291 | ResourceServlet | /habmin:web | Deployed | /habmin | [/habmin/
]
294 | ResourceServlet | /paperui:web | Deployed | /paperui | [/paperui/]
295 | ResourceServlet | /habpanel:web | Deployed | /habpanel | [/habpanel/
]
296 | ResourceServlet | /doc:swagger | Deployed | /doc | [/doc/]
302 | DashboardServlet | ServletModel-202 | Failed | /start/index | [/start/index/
]
openhab> feature:list |grep dashboard
openhab-ui-dashboard | 2.5.0.SNAPSHOT | | Started | openhab-addons-2.5.0-SNAPSHOT | Dashboard UI
openhab-ui-dashboard | 2.5.0.M5 | | Started | openhab-addons-2.5.0.M5 | Dashboard UI
"

You should not have 2 dashboards. I believe the SNAPSHOt one needs to be uninstalled.

@mvo

It seems that openhab-ui-dashboard is installed twice.

What is the result of:

bundle:list |grep ashboard

You also should check if there are even more bindings installed twice, with:

bundle:list

For better reading your posts you should also use code fences.

2 Likes

openhab> bundle:list | grep Dashboard
286 | Active | 80 | 2.5.0.201911291913 | openHAB UI :: Bundles :: Dashboard UI
openhab>

That is not what @Celaeno1 typed. He wanted:

@mvo

If you are really on 2.5.0.M5 then I would have expected this:

 286 | Active | 80 | 2.5.0.M5 | openHAB UI :: Bundles :: Dashboard UI

So it seems you have a mixture of 2.5.0.M5 and 2.5.0-SNAPSHOT.

Please do:

bundle:uninstall 286
feature:install openhab-ui-dashboard
2 Likes

I’m on 2.5.0-SNAPSHOT
Build #1774