Versions?

Hi, I’m running OH2 on a Pi with Debian - all setup before Raspbian was released.

Just checking versions - running update 2.2.0 informs me that version is already installed, but the web console still reports 2.1.0 and shows the old logo.

Any thoughts? What to check or try?

Hi @MrBov, just to make sure, you’re using a manual installation and not the apt package?

If you run the console (ssh openhab@localhost -p8101) (password: habopen) does this report 2.2.0? What is the version of openhab-core when you input the command bundle:list in the console?

As shown below bundle:list is showing openhab-core as 2.1.0… yet update still informs me I’m running 2.2.0. I’m using a manual installation - started with OpenHAB last year just before Raspbian and all the packages came along. Wondering if life would be easier if I started the base again and popped my config on top.

Let’s get this sorted first though, like to learn what is going wrong.

Really appreciate the pointers. :slight_smile:

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name

9 | Active | 80 | 5.3.1.201602281253 | OSGi JAX-RS Connector
10 | Active | 80 | 2.3.1 | Gson
11 | Active | 80 | 18.0.0 | Guava: Google Core Libraries for Java
12 | Active | 80 | 3.0.0.v201312141243 | Google Guice (No AOP)
13 | Active | 80 | 1.5.8 | swagger-annotations
14 | Active | 80 | 3.19.0.GA | Javassist
16 | Active | 80 | 3.5.2 | JmDNS
19 | Active | 80 | 1.1.0.Final | Bean Validation API
21 | Active | 80 | 2.0.1 | javax.ws.rs-api
23 | Active | 80 | 3.2.0.v201101311130 | ANTLR Runtime
26 | Active | 80 | 1.6.0 | Commons Codec
27 | Active | 80 | 3.2.1 | Commons Collections
28 | Active | 80 | 1.1 | Commons Exec
29 | Active | 80 | 2.2.0 | Commons IO
30 | Active | 80 | 2.6 | Commons Lang
35 | Active | 80 | 4.2.3 | Apache HttpClient OSGi bundle
36 | Active | 80 | 4.2.3 | Apache HttpCore OSGi bundle
57 | Active | 80 | 4.0.8 | Apache Karaf :: Wrapper :: Core
58 | Active | 80 | 3.1.0.7 | Apache ServiceMix :: Bundles :: commons-httpclient
63 | Active | 80 | 2.11.0.v20150805-0538 | EMF Common
64 | Active | 80 | 2.11.1.v20150805-0538 | EMF Ecore
65 | Active | 80 | 2.11.1.v20150805-0538 | EMF XML/XMI Persistence
66 | Active | 80 | 3.8.0.v20160509-1230 | Common Eclipse Runtime
67 | Active | 80 | 3.6.100.v20160223-2218 | Extension Registry Support
94 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Config Core
95 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Configuration Discovery
96 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Config Dispatcher
97 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome Config XML
98 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Core
99 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Core Audio
100 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome AutoUpdate Binding
101 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Core Binding XML
102 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Core ID
103 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Core Persistence
104 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Scheduler Service
105 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Core Thing
106 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome Core Thing XML
107 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Transformation Service
108 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Core Voice
109 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Console
110 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Console for OSGi runtime Karaf
111 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome JavaSound I/O, Fragments: 169
112 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Monitor
113 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Net I/O Bundle
114 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome REST Interface Bundle
115 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Core REST API
116 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome REST mDNS Announcer
117 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Sitemap REST API
118 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome SSE REST API
119 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Voice REST API
120 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Bonjour/MDS Service Discovery Bundle
121 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Web Audio Support
122 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Model Core
123 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Item Model
124 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Item Model Runtime
125 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Persistence Model
126 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Persistence Runtime
127 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Rule Model
128 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Rule Runtime
129 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Script
130 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Script Runtime
131 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Sitemap Model
132 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Sitemap Runtime
133 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Thing Model
134 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Thing Model Runtime
135 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Json Storage Service
136 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome UI
137 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome UI Icons
138 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Classic IconSet
139 | Active | 80 | 2.9.2 | Xtend Runtime Library
140 | Active | 80 | 2.9.2 | Xtend Macro Interfaces
141 | Active | 80 | 2.9.2 | Xtext
142 | Active | 80 | 2.9.2 | Xtext Common Types
143 | Active | 80 | 2.9.2 | JSR-45 Smap installer
144 | Active | 80 | 2.9.2 | Xtext Utility
145 | Active | 80 | 2.9.2.v20160428-1452 | Xbase Model
146 | Active | 80 | 2.9.2 | Xbase Runtime Library
162 | Active | 80 | 2.2.0 | JUPnP Library
163 | Active | 80 | 1.9.6 | MIME streaming extension
164 | Active | 80 | 5.0.2 | Require-Bundle Fix :: org.objectweb.asm
166 | Active | 90 | 2.1.0 | openHAB Core
167 | Active | 80 | 2.1.0 | openHAB Karaf Integration
169 | Resolved | 80 | 2.1.0 | openHAB Sound Support, Hosts: 111
170 | Active | 80 | 2.1.0 | openHAB Dashboard UI
175 | Active | 80 | 3.2.0 | Commons Net
176 | Active | 80 | 2.1.0 | openHAB 1.x Compatibility Layer
177 | Active | 80 | 1.1.1.201605111122 | Swagger Provider
178 | Active | 80 | 2.4.5 | Jackson-annotations
179 | Active | 80 | 2.4.5 | Jackson-core
180 | Active | 80 | 2.4.5 | jackson-databind
181 | Active | 80 | 2.4.5 | Jackson-dataformat-YAML
182 | Active | 80 | 2.1.0 | json-path
183 | Active | 80 | 3.12.0.OH | nrjavaserial
184 | Active | 80 | 1.5.8 | swagger-core
185 | Active | 80 | 1.5.8 | swagger-jaxrs
186 | Active | 80 | 1.5.8 | swagger-models
187 | Active | 80 | 2.2 | json-smart
188 | Active | 80 | 3.4.0 | Apache Commons Lang
189 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation API
190 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation commands
191 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation Core
192 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation Module Core
193 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation Media Modules
194 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation Module Script
195 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation Script Globals
196 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation Script RuleSupport
197 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation Module Timer
198 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation GSON Parser
199 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation Providers
200 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Automation REST API
201 | Active | 80 | 0.9.0.b5 | Astro Binding
202 | Active | 80 | 0.9.0.b5 | ntp Binding
203 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome Exec Transformation Service
204 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome JavaScript Transformation Service
205 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome JSonPath Transformation Service
206 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome Map Transformation Service
207 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome RegEx Transformation Service
208 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome Scale Transformation Service
209 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome XPath Transformation Service
210 | Active | 75 | 0.9.0.b5 | Eclipse SmartHome Xslt Transformation Service
211 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Basic UI, Fragments: 221
212 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome WebApp UI
213 | Active | 80 | 0.9.0.b5 | Eclipse SmartHome Paper UI, Fragments: 225
214 | Active | 80 | 2.1.0 | HarmonyHub Binding
215 | Active | 80 | 1.10.0 | openHAB Nest Binding
216 | Active | 80 | 2.1.0 | Network Binding
217 | Active | 80 | 2.1.0 | ZWave Binding
218 | Active | 80 | 2.1.0 | HomeKit Integration
219 | Active | 80 | 2.1.0 | Hue Emulation Service
220 | Active | 80 | 2.1.0 | openHAB REST Documentation
221 | Resolved | 75 | 2.1.0 | openHAB Basic UI Fragment, Hosts: 211
222 | Active | 75 | 2.1.0 | openHAB Classic UI Fragment
223 | Active | 80 | 2.1.0 | HABmin User Interface
224 | Active | 80 | 2.1.0 | HABPanel User Interface
225 | Resolved | 75 | 2.1.0 | openHAB Paper UI Theme Fragment, Hosts: 213
226 | Active | 80 | 0.9.10.v20160429-1435 | reflections (wrap)
227 | Active | 80 | 1.5.8.v20160511-1038 | swagger-jersey2-jaxrs (wrap)
229 | Active | 80 | 2.1.0 | openHAB Cloud Connector Bundle

The update file uses a file called version.properties, and I wonder if this has somehow changed without the others changing. What does the file in [openhab-install-dir]/userdata/etc/version.properties say? Change openhab-distro to 2.1.0 if it isn’t already, then go to your openHAB install directory and then simply run the command:

./runtime/bin/update 2.2.0

Finally got some time to get back to it… Yes openhab-distro in version.properties says 2.2.0

> openHAB Distribution Version Information
> ----------------------------------------
> build-no        : Release Build
> online-repo     : https://dl.bintray.com/openhab/mvn/online-repo/2.2
> 
> Repository        Version
> ----------------------------------------
> openhab-distro  : 2.2.0
> smarthome       : 0.10.0.b1
> openhab-core    : 2.2.0
> openhab1-addons : 1.11.0
> openhab2-addons : 2.2.0
> karaf           : 4.1.3

Changed it to say 2.1.0 and kicked off an install

> pi@raspberrypi:/opt/openhab2 $ sudo systemctl stop openhab2.service
> pi@raspberrypi:/opt/openhab2 $ sudo ./runtime/bin/update 2.2.0
> 
> #########################################
>        openHAB 2.x.x update script
> #########################################
> 
> Making Temporary Directory
> Downloading openHAB 2.2.0...
> ######################################################################## 100.0%
> Update script in .zip archive found, using that instead.
> 
> #########################################
>        openHAB 2.x.x update script
> #########################################
> 
> Making Temporary Directory
> The script will attempt to update openHAB to version 2.2.0
> Is this okay? [y/N]: y
> Removing openHAB System Files...
> Clearing cache...
> Updating openHAB...
> Deleting temporary files...
> Restoring previous file ownership (openhab:openhab)
> 
> SUCCESS: openHAB updated from 2.1.0 to 2.2.0
> 
> pi@raspberrypi:/opt/openhab2 $ sudo systemctl start openhab2.service

Does that look right?

Trouble is, my web interface still reports 2.1.0 and bundle:list reports openhab-core of 2.1.0 still.

> pi@raspberrypi:/var/log/openhab2 $ ssh openhab@localhost -p8101
> Password authentication
> Password:
> 
>                           __  _____    ____
>   ____  ____  ___  ____  / / / /   |  / __ )
>  / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  |
> / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /
> \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/
>     /_/                        2.1.0
>                                - release build -
> 
> 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> bundle:list
> START LEVEL 100 , List Threshold: 50
>  ID | State    | Lvl | Version                | Name
> ------------------------------------------------------------------------------------------------------
>   9 | Active   |  80 | 5.3.1.201602281253     | OSGi JAX-RS Connector
>  10 | Active   |  80 | 2.3.1                  | Gson
>  11 | Active   |  80 | 18.0.0                 | Guava: Google Core Libraries for Java
>  12 | Active   |  80 | 3.0.0.v201312141243    | Google Guice (No AOP)
>  13 | Active   |  80 | 1.5.8                  | swagger-annotations
>  14 | Active   |  80 | 3.19.0.GA              | Javassist
>  16 | Active   |  80 | 3.5.2                  | JmDNS
>  19 | Active   |  80 | 1.1.0.Final            | Bean Validation API
>  21 | Active   |  80 | 2.0.1                  | javax.ws.rs-api
>  23 | Active   |  80 | 3.2.0.v201101311130    | ANTLR Runtime
>  26 | Active   |  80 | 1.6.0                  | Commons Codec
>  27 | Active   |  80 | 3.2.1                  | Commons Collections
>  28 | Active   |  80 | 1.1                    | Commons Exec
>  29 | Active   |  80 | 2.2.0                  | Commons IO
>  30 | Active   |  80 | 2.6                    | Commons Lang
>  35 | Active   |  80 | 4.2.3                  | Apache HttpClient OSGi bundle
>  36 | Active   |  80 | 4.2.3                  | Apache HttpCore OSGi bundle
>  57 | Active   |  80 | 4.0.8                  | Apache Karaf :: Wrapper :: Core
>  58 | Active   |  80 | 3.1.0.7                | Apache ServiceMix :: Bundles :: commons-httpclient
>  63 | Active   |  80 | 2.11.0.v20150805-0538  | EMF Common
>  64 | Active   |  80 | 2.11.1.v20150805-0538  | EMF Ecore
>  65 | Active   |  80 | 2.11.1.v20150805-0538  | EMF XML/XMI Persistence
>  66 | Active   |  80 | 3.8.0.v20160509-1230   | Common Eclipse Runtime
>  67 | Active   |  80 | 3.6.100.v20160223-2218 | Extension Registry Support
>  94 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Config Core
>  95 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Configuration Discovery
>  96 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Config Dispatcher
>  97 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome Config XML
>  98 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Core
>  99 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Core Audio
> 100 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome AutoUpdate Binding
> 101 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Core Binding XML
> 102 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Core ID
> 103 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Core Persistence
> 104 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Scheduler Service
> 105 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Core Thing
> 106 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome Core Thing XML
> 107 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Transformation Service
> 108 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Core Voice
> 109 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Console
> 110 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Console for OSGi runtime Karaf
> 111 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome JavaSound I/O, Fragments: 169
> 112 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Monitor
> 113 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Net I/O Bundle
> 114 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome REST Interface Bundle
> 115 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Core REST API
> 116 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome REST mDNS Announcer
> 117 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Sitemap REST API
> 118 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome SSE REST API
> 119 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Voice REST API
> 120 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Bonjour/MDS Service Discovery Bundle
> 121 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Web Audio Support
> 122 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Model Core
> 123 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Item Model
> 124 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Item Model Runtime
> 125 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Persistence Model
> 126 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Persistence Runtime
> 127 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Rule Model
> 128 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Rule Runtime
> 129 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Script
> 130 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Script Runtime
> 131 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Sitemap Model
> 132 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Sitemap Runtime
> 133 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Thing Model
> 134 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Thing Model Runtime
> 135 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Json Storage Service
> 136 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome UI
> 137 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome UI Icons
> 138 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Classic IconSet
> 139 | Active   |  80 | 2.9.2                  | Xtend Runtime Library
> 140 | Active   |  80 | 2.9.2                  | Xtend Macro Interfaces
> 141 | Active   |  80 | 2.9.2                  | Xtext
> 142 | Active   |  80 | 2.9.2                  | Xtext Common Types
> 143 | Active   |  80 | 2.9.2                  | JSR-45 Smap installer
> 144 | Active   |  80 | 2.9.2                  | Xtext Utility
> 145 | Active   |  80 | 2.9.2.v20160428-1452   | Xbase Model
> 146 | Active   |  80 | 2.9.2                  | Xbase Runtime Library
> 162 | Active   |  80 | 2.2.0                  | JUPnP Library
> 163 | Active   |  80 | 1.9.6                  | MIME streaming extension
> 164 | Active   |  80 | 5.0.2                  | Require-Bundle Fix :: org.objectweb.asm
> 166 | Active   |  90 | 2.1.0                  | openHAB Core
> 167 | Active   |  80 | 2.1.0                  | openHAB Karaf Integration
> 169 | Resolved |  80 | 2.1.0                  | openHAB Sound Support, Hosts: 111
> 170 | Active   |  80 | 2.1.0                  | openHAB Dashboard UI
> 175 | Active   |  80 | 3.2.0                  | Commons Net
> 176 | Active   |  80 | 2.1.0                  | openHAB 1.x Compatibility Layer
> 177 | Active   |  80 | 1.1.1.201605111122     | Swagger Provider
> 178 | Active   |  80 | 2.4.5                  | Jackson-annotations
> 179 | Active   |  80 | 2.4.5                  | Jackson-core
> 180 | Active   |  80 | 2.4.5                  | jackson-databind
> 181 | Active   |  80 | 2.4.5                  | Jackson-dataformat-YAML
> 182 | Active   |  80 | 2.1.0                  | json-path
> 183 | Active   |  80 | 3.12.0.OH              | nrjavaserial
> 184 | Active   |  80 | 1.5.8                  | swagger-core
> 185 | Active   |  80 | 1.5.8                  | swagger-jaxrs
> 186 | Active   |  80 | 1.5.8                  | swagger-models
> 187 | Active   |  80 | 2.2                    | json-smart
> 188 | Active   |  80 | 3.4.0                  | Apache Commons Lang
> 189 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation API
> 190 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation commands
> 191 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation Core
> 192 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation Module Core
> 193 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation Media Modules
> 194 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation Module Script
> 195 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation Script Globals
> 196 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation Script RuleSupport
> 197 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation Module Timer
> 198 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation GSON Parser
> 199 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation Providers
> 200 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Automation REST API
> 201 | Active   |  80 | 0.9.0.b5               | Astro Binding
> 202 | Active   |  80 | 0.9.0.b5               | ntp Binding
> 203 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome Exec Transformation Service
> 204 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome JavaScript Transformation Service
> 205 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome JSonPath Transformation Service
> 206 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome Map Transformation Service
> 207 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome RegEx Transformation Service
> 208 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome Scale Transformation Service
> 209 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome XPath Transformation Service
> 210 | Active   |  75 | 0.9.0.b5               | Eclipse SmartHome Xslt Transformation Service
> 211 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Basic UI, Fragments: 221
> 212 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome WebApp UI
> 213 | Active   |  80 | 0.9.0.b5               | Eclipse SmartHome Paper UI, Fragments: 225
> 214 | Active   |  80 | 2.1.0                  | HarmonyHub Binding
> 215 | Active   |  80 | 1.10.0                 | openHAB Nest Binding
> 216 | Active   |  80 | 2.1.0                  | Network Binding
> 217 | Active   |  80 | 2.1.0                  | ZWave Binding
> 218 | Active   |  80 | 2.1.0                  | HomeKit Integration
> 219 | Active   |  80 | 2.1.0                  | Hue Emulation Service
> 220 | Active   |  80 | 2.1.0                  | openHAB REST Documentation
> 221 | Resolved |  75 | 2.1.0                  | openHAB Basic UI Fragment, Hosts: 211
> 222 | Active   |  75 | 2.1.0                  | openHAB Classic UI Fragment
> 223 | Active   |  80 | 2.1.0                  | HABmin User Interface
> 224 | Active   |  80 | 2.1.0                  | HABPanel User Interface
> 225 | Resolved |  75 | 2.1.0                  | openHAB Paper UI Theme Fragment, Hosts: 213
> 226 | Active   |  80 | 0.9.10.v20160429-1435  | reflections (wrap)
> 227 | Active   |  80 | 1.5.8.v20160511-1038   | swagger-jersey2-jaxrs (wrap)
> 229 | Active   |  80 | 2.1.0                  | openHAB Cloud Connector Bundle

Something is still wrong here…

Really appreciate any further thoughts or steps.

Any further thoughts on how to get my Pi upgraded to 2.2?

If not, any words of wisdom for getting a clean install and preserving my config/settings? What do I back up / copy?

Should I go for openHABian to simplify or use my Synology DS716+ NAS and copy stuff across?

Sorry @MrBov, I must have missed your previous message. Thats very strange, an update must be taking place, otherwise the update function would have returned an error.

Can I see the systemctl file, or rather a journal?

sudo systemctl status openhab
sudo journalctl -u openhab2 -b

Just to check again, youve moved the log folder to /var/log yourself? This is usually a folder chosen by the debian package install.

Looking at the install again, I suspect I actually did a package / Apt install. It was a while ago and the first time I had played with a Linux system for years (that’s my excuse).

I’ll grab the systemctl and journal when I get back later.

Thanks.

No problem! I also suspect that the version of openHAB is the .deb version in which case the update is simple:

sudo apt update
sudo apt upgrade

If that’s the case then you won’t be using any of the files located in /opt/openhab. See this page for more info on that.

Should also mention, that there’s a couple of things between 2.1.0 and 2.2.0 that you may need to consider. If you get prompted to replace a file during the update, the best answer is usually “y” (yes).

Tried that @Benjy , but it falls over on the Oracle JDK 8 upgrade with a 404 error and an error exit status 1… I’ll need to revisit when I get more time.

BTW, journalctl shows…

pi@raspberrypi:/etc/openhab2/rules $ sudo journalctl -u openhab2 -b
-- Logs begin at Sun 2018-03-18 06:17:01 UTC, end at Tue 2018-04-17 20:58:46 UTC. --
Mar 18 06:17:06 raspberrypi systemd[1]: Starting openHAB 2 - empowering the smart home...
Mar 18 06:17:06 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 18 06:17:06 raspberrypi start.sh[749]: Launching the openHAB runtime...
Mar 28 19:08:51 raspberrypi systemd[1]: Stopping openHAB 2 - empowering the smart home...
Mar 28 19:08:51 raspberrypi stop[25983]: stop: Ignoring predefined value for KARAF_HOME
Mar 28 19:09:15 raspberrypi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Mar 28 19:10:51 raspberrypi systemd[1]: Starting openHAB 2 - empowering the smart home...
Mar 28 19:10:51 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 28 19:10:51 raspberrypi start.sh[26261]: Launching the openHAB runtime...
Apr 08 17:22:46 raspberrypi systemd[1]: Stopping openHAB 2 - empowering the smart home...
Apr 08 17:22:46 raspberrypi stop[13901]: stop: Ignoring predefined value for KARAF_HOME
Apr 08 17:23:11 raspberrypi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Apr 08 17:25:39 raspberrypi systemd[1]: Starting openHAB 2 - empowering the smart home...
Apr 08 17:25:39 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.
Apr 08 17:25:39 raspberrypi start.sh[14201]: Launching the openHAB runtime...

Yep, definitely the deb install.

Most likely you’ll need to replace the zulu repo list file found in /etc/apt/sources.list.d/.

http://zulu.org/zuludocs-folder/#ZuluUserGuide/PrepareZuluPlatform/AttachAPTRepositoryUbuntuOrDebianSys.htm should be some help. If not let me know what specific error you’re getting and hopefully I can help. :slightly_smiling_face:

So the apt update/upgrade all succeeded fine at the weekend - no JDK issues at all this time, so perhaps it was an issue on their end when I tried earlier…

Since doing the update I’m now finding a load of things failing. I can still manually control things but none of my rules are working any more (e.g. turning lights on/off at night) and neither is Alexa voice control, which at first inspection seems to throw Java exceptions.

Guess I’ll be spending time trawling through log files this evening :slight_smile:

It maybe the changes to the rule system that might need addressing. Particularly with the timestamps.

If you setup a samba share and use openHAB’s visual studio code extension, then it may be easy to spot what’s going on.

Yes, date and time stuff was my first check tonight :-). Adding SMB with the visual studio stuff would make so much sense… Cheers Ben.

No problem! If you still find yourself stuck, feel free to post the rule file and we can work out where the problem lies.

Those rule changes have solved most of it. Still chasing a few strange things down where Alexa occasionally tells me certain lights are not responding. Getting there though :slight_smile:. Appreciate the guidance.

Over the last couple of days I have started to hit issues with my time of day rules again… anything likely to have changed?

Can you point me to the correct examples and documentation for time of day stuff? I want to make sure I have it right. Currently my rules are now giving me this error:

2018-05-22 20:14:11.156 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘Generate Time of Day Events’: Could not cast UNDEF to org.eclipse.smarthome.core.library.types.DateTimeType; line 65, column 27, length 44

The rule in question is:

rule "Generate Time of Day Events"
    when
        Item CurrentTime received update
    then
        val now = new Date()
        val day = new Date((DayStart_Time.state as DateTimeType).getZonedDateTime.toEpochSecond * 1000)
        val evening = new Date((DuskStart_Time.state as DateTimeType).getZonedDateTime.toEpochSecond * 1000)
        val night = new Date((MorningNightStart_Time.state as DateTimeType).getZonedDateTime.toEpochSecond * 1000)

        if(now.after(night) && now.before(day)) {
            logInfo(RFN, "Transitioning to Day!!!")
            DayStart_Event.postUpdate(ON)
        }
        else if(now.after(day) && now.before(evening)) {
            logInfo(RFN, "Transitioning to Evening!!!")
            EveningStart_Event.postUpdate(ON)
        }
        else {
            logInfo(RFN, "Transitioning to Night!!!")
            NightStart_Event.postUpdate(ON)
        }
    end

I only look to trigger different automatic lighting events based on day (no lights), evening (some lights on) and night (no lights on unless movement detected).

Any pointers appreciated. Plus always looking for better ways to do it.

Bit more digging shows that MorningNightStart_Time.state is returning null. Has something changed with the Astro binding?