openhab / openhab-distro

The binary distribution of openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.3k stars 394 forks source link

Paper UI and Basic UI uninstalled after being installed #340

Closed lolodomo closed 7 years ago

lolodomo commented 7 years ago

At first startup of snapshot 627, I can see that Paper UI and Basic UI are first installed and then uninstalled.

2016-12-01 23:05:45.172 [INFO ] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-ui-basic'
2016-12-01 23:05:57.928 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
2016-12-01 23:05:57.958 [INFO ] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-ui-paper'
2016-12-01 23:06:08.392 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2016-12-01 23:06:08.411 [INFO ] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-ui-habpanel'
2016-12-01 23:07:14.474 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2016-12-01 23:07:14.735 [INFO ] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-ui-classic'
2016-12-01 23:07:23.313 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2016-12-01 23:07:23.462 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-ui-paper'
2016-12-01 23:07:36.150 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-ui-basic'

Habpanel and classic UI are not uninstalled. What is important, I think, is that my addons.cfg file contains:

package = standard
ui = classic
lolodomo commented 7 years ago

Paper UI and Basic UI are included in the standard package. As I set the "ui=" line in my addons.cfg file, I understand that it overwrittes the package and that would explain why Paper UI and Basic UI are uninstalled. But why HABpanel is not uninstalled in this case ?

lolodomo commented 7 years ago

If I install Paper UI and Basic UI using the console command (feature:install), they are again uninstalled at next restart of OH and my file userdata/etc/org.openhab.addons.cfg contains:

package = standard
ui = classic
misc = restdocs
remote = true
binding = ntp,astro,mios,netatmo,weather,hue,rfxcom,freebox,sonos
legacy = true
persistence = rrd4j
transformation = map
voice = voicerss

Installing features through the console seems to not update this file.

lolodomo commented 7 years ago

Only solution found was to update my addons.cfg file and restart:

ui = paper,basic,classic

HABpanel remains installed. No real logic I can found.

lolodomo commented 7 years ago

Interesting point: HABpanel is not marked as "installed" in Paper UI while present in the dashboard.

openhab> bundle:list | grep anel
185 | Active   |  80 | 2.0.0.201612010742    | HABPanel User Interface
openhab> feature:list | grep anel
openhab-ui-habpanel                       | 2.0.0.SNAPSHOT   |          | Uninstalled | openhab-aggregate-xml                | HABPanel
openhab-binding-anel                      | 1.9.0.SNAPSHOT   |          | Uninstalled | openhab-aggregate-xml                | Anel Binding
openhab>
kaikreuzer commented 7 years ago

Same as https://github.com/openhab/openhab-distro/issues/342 - simply delete your addons.cfg or put your entries in comments. Otherwise, what is in there is what will be installed.

lolodomo commented 7 years ago

And why is it different for HABpanel ?

lolodomo commented 7 years ago

My problem with HabPanel has disappeared with the snapshot 636.