hello everybody, sorry if this is a repeated question but the posts i read didn’t help me out…
i’m migrating from 1.8.3
java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode)
briefly, the problem is: When i start openhab2 the logs shows that 3 bindings are being uninstalled, and i really don’t understand why.
This 3 bindings are always uninstalled when i execute service openhab start:
2017-02-01 20:09:41.439 [ExtensionEvent ] - Extension 'binding-mqttitude1' has been uninstalled. 2017-02-01 20:09:57.243 [ExtensionEvent ] - Extension 'binding-mqtt1' has been uninstalled. 2017-02-01 20:10:06.102 [ExtensionEvent ] - Extension 'binding-http1' has been uninstalled.
Besides that items are removed (events.log shows that)
i really don’t understand what is going on
My installation was like this:
sudo apt-get install openhab2 sudo apt-get install openhab2-addons sudo apt-get install openhab2-addons-legacy
i edited the files addons.cfg and runtime.cfg
didn’t install the Compatibility layer because i don’t think is necessary (?)
i populated the services/.cfg files that the addons created
# The installation package of this openHAB instance # Note: This is only regarded at the VERY FIRST START of openHAB # Note: If you want to specify your add-ons yourself through entries below, set the package to "minimal" # as otherwise your definition might be in conflict with what the installation package defines. # # Optional. If not set, the dashboard (https://<yourserver>:8080/) will ask you to choose a package. # # Valid options: # - minimal : Installation only with dashboard, but no UIs or other add-ons. Use this for custom setups. # - simple : Setup for using openHAB purely through UIs - you need to expect MANY constraints in functionality! # - standard : Default setup for normal users, best for textual setup # - expert : Setup for expert users, especially for people migrating from openHAB 1.x # - demo : A demo setup which includes UIs, a few bindings, config files etc. # # See http://docs.openhab.org/configuration/packages.html for a detailed explanation of these packages. # package = standard # Access Remote Add-on Repository # Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons. # This not only makes latest snapshots of add-ons available, it is also required for the installation of # any legacy 1.x add-on. (default is true) # remote = true # Include legacy 1.x bindings. If set to true, it also allows the installation of 1.x bindings for which there is # already a 2.x version available (requires remote repo access, see above). (default is false) # legacy = true # A comma-separated list of bindings to install (e.g. "sonos,knx,zwave") binding = mqtt,http,ntp,mqttitude # A comma-separated list of UIs to install (e.g. "basic,paper") ui = basic,paper,classic,habpanel # A comma-separated list of persistence services to install (e.g. "rrd4j,jpa") persistence = mysql # A comma-separated list of actions to install (e.g. "mail,pushover") action = mail # A comma-separated list of transformation services to install (e.g. "map,jsonpath") transformation = map # A comma-separated list of voice services to install (e.g. "marytts,freetts") voice = # A comma-separated list of miscellaneous services to install (e.g. "myopenhab") misc =
firstly i used ‘expert’ then change to ‘standard’…
i don’t know if it has nothing to do, i suppose not…
- now the service is running…
- i have the cfg files populated, in place
- no bindings
- $ ssh openhab@localhost -p 8101
- i install the 3 bindings.
feature:install openhab-binding-mqttitude1 feature:install openhab-binding-mqtt1 feature:install openhab-binding-http1
then when i start openhab2 the bindings are automatically uninstalled…
2017-02-01 20:09:24.297 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app 2017-02-01 20:09:24.439 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui 2017-02-01 20:09:24.837 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app 2017-02-01 20:09:25.279 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel 2017-02-01 20:09:32.868 [ERROR] [mqttitude.internal.MqttitudeConsumer] - Unable to calculate relative location for LG_EnCasa as there is no lat/lon configured for 'home' 2017-02-01 20:09:41.432 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-binding-mqttitude1' 2017-02-01 20:09:50.393 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection 'mosquitto' 2017-02-01 20:09:57.233 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-binding-mqtt1' 2017-02-01 20:10:06.099 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-binding-http1' 2017-02-01 20:10:07.017 [INFO ] [b.core.service.AbstractActiveService] - HTTP Refresh Service has been shut down
Also, maybe has nothing to do with what i’m saying…when i execute
sudo service openhab2 restart
it just stops the service and doesn’t start again
i have to run the same command with ‘start’ to start openhab2
Any help/tip is appreciated!