I also had feel problems connecting remotely via openHAB Cloud.
So, I find two UUID files and two SECRET files. At /var/lib/openhab2/ but also at /var/lib/openhab2/userdata/.
I’ve deleted the four files and have restarted OH. The new files where created only on /var/lib/openhab2/userdata/. But, connecting remotely still failed. I then copied both files to /var/lib/openhab2/, restarted OH and now I can connect via openHAB Cloud.
When you upgraded, did you get any prompts to overwrite configuration files with the maintainers version? If so, did you do it? You can reset everything that’s updated in the new version with the command:
Im afraid I don’t know what be causing that issue. There shouldn’t be a home directory for openhab and the apt packages do not set any. Is this a configuration that you have set yourself?
I’ve never set any any other openhab directory than the ones are according “by the book”. So, I believe it must have to do with OH 2.2.0 setup, or I had never notice that before.
Finally
After my last reinstallation, last night, I can see now some WARNing messages related with this subject:
2017-12-21 19:55:54.466 [WARN ] [.core.internal.folder.FolderObserver] - Directory 'things' does not exist in 'conf'. Please check your configuration settings!
2017-12-21 19:55:54.469 [WARN ] [.core.internal.folder.FolderObserver] - Directory 'scripts' does not exist in 'conf'. Please check your configuration settings!
2017-12-21 19:55:54.472 [WARN ] [.core.internal.folder.FolderObserver] - Directory 'items' does not exist in 'conf'. Please check your configuration settings!
2017-12-21 19:55:54.474 [WARN ] [.core.internal.folder.FolderObserver] - Directory 'persistence' does not exist in 'conf'. Please check your configuration settings!
2017-12-21 19:55:54.477 [WARN ] [.core.internal.folder.FolderObserver] - Directory 'sitemaps' does not exist in 'conf'. Please check your configuration settings!
2017-12-21 19:55:54.479 [WARN ] [.core.internal.folder.FolderObserver] - Directory 'rules' does not exist in 'conf'. Please check your configuration settings!
2017-12-21 19:55:54.551 [ERROR] [.service.internal.HttpServiceStarted] - Could not start the servlet context for context path []
java.lang.IllegalStateException: no valid keystore
I just upgraded this morning and ran into serious problems. Most of my rules are not working anymore, but sitemap and so on does. What about your karaf console - can you directly ssh in? At me it is always “connection refused”…
I am close to just do a rollback (question is how). Only had the astro-cron-problem, but a restart every 5 days is way better than a not working system…
Finally I got my system back!
After to many hours (days) trying to debug this issue, installing and re-installing old and new OH packages, I’ve decided for the “Final Solution”.
So, I’ve purged all OH packages (2.0.0, 2.1.0 and 2.2.0) and deleted all ‘openhab’ directories.
After OH 2.2.0 package rebuilded, has been installed from the scratch.
Everything runned as expected and finally my ‘items’, ‘rules’, ‘sitemap’, … files were read by the system.