[SOLVED] OH 2.3 stable, 2.4.0.M7, latest snapshot didn't start

I try all 3 repo.
Clean install on Ubuntu 18 x86
Only one error at start up, thats all.

[ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-ui-homebuilder, openhab-ui-basic, openhab-ui-habpanel, openhab-ui-paper': Error:
	Error downloading mvn:org.openhab.core/org.openhab.ui.basicui/2.4.0.M7

i use this before installing:

sudo apt purge openhab2*

help

1 Like

When I moved OH version from 2.3 to 2.4 M7 I had the same issue/error as above. I also had an additional error message when opening BasicUI, this error happened every minuet the BasicUI was open. I was able to fix this by stopping OH, cleaning the cache, then rebooting.

For my apt-get install on RPI here are the commands use. Hope this helps.

sudo systemctl stop openhab

sudo openhab-cli clean-cache

sudo reboot

EDIT: This may or may not make a difference but thought I would include it just encase. On the first attempt I tried to stop OH, clean cache, then restart but that didn’t work. After rebooting, all was good. I mentioned this b/c you may need to stop OH, clean, restart and then repeat a second time only changing the restart to reboot.

Thank you for helping.
Cleaning and rebooting doesn’t help.
I think something wrong with users.

ag@zbox:~$ openhab-cli info

Version:     2.3.0 (Build)

User:        root (Active Process 3729)
User Groups: root

Directories: Folder Name      | Path                        | User:Group
             -----------      | ----                        | ----------
             OPENHAB_HOME     | /usr/share/openhab2         | openhab:openhab
             OPENHAB_RUNTIME  | /usr/share/openhab2/runtime | openhab:openhab
             OPENHAB_USERDATA | /var/lib/openhab2           | openhab:openhab
             OPENHAB_CONF     | /etc/openhab2               | openhab:openhab
             OPENHAB_LOGDIR   | /var/log/openhab2           | openhab:openhab

URLs:        http://192.168.1.10:8080
             https://192.168.1.10:8443

Why user root in my case? I look at this post Everything lost? No PaperUI etc :-(
May be user must be User: openhab?
How to change it?
Here is debug:

Debug info from CLI
21:27:23.578 [DEBUG] [le.osgi.LoggingCommandSessionListener] - Executing command: 'log:log'
21:27:23.583 [DEBUG] [le.osgi.LoggingCommandSessionListener] - Command: 'log:log' failed: org.apache.karaf.shell.support.CommandException: Argument message is required
21:27:26.065 [DEBUG] [le.osgi.LoggingCommandSessionListener] - Executing command: 'log:tail'
21:27:34.396 [DEBUG] [org.quartz.core.QuartzSchedulerThread] - batch acquisition of 0 triggers
21:27:40.766 [INFO ] [.internal.service.FeaturesServiceImpl] - Adding features: openhab-ui-homebuilder/[2.3.0,2.3.0], openhab-ui-basic/[2.3.0,2.3.0], openhab-ui-habpanel/[2.3.0,2.3.0], openhab-ui-paper/[2.3.0,2.3.0]
21:27:40.809 [DEBUG] [l.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /usr/share/openhab2/runtime/system
21:27:40.811 [DEBUG] [l.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /usr/share/openhab2/runtime/system
21:27:40.811 [DEBUG] [l.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /usr/share/openhab2/runtime/system
21:27:40.864 [DEBUG] [l.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /var/lib/openhab2/system
21:27:40.867 [DEBUG] [l.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /var/lib/openhab2/tmp/mvn
21:27:40.871 [DEBUG] [ernal.impl.DefaultTransporterProvider] - Using transporter WagonTransporter with priority -1.0 for https://dl.bintray.com/openhab/mvn/online-repo/2.3/
21:27:40.875 [DEBUG] [pl.DefaultRepositoryConnectorProvider] - Using connector BasicRepositoryConnector with priority 0.0 for https://dl.bintray.com/openhab/mvn/online-repo/2.3/
21:27:40.882 [DEBUG] [ttp.client.protocol.RequestAddCookies] - CookieSpec selected: compatibility
21:27:40.886 [DEBUG] [nn.PoolingHttpClientConnectionManager] - Connection request: [route: {s}->https://dl.bintray.com:443][total kept alive: 0; route allocated: 0 of 20; total allocated: 0 of 40]
21:27:40.889 [DEBUG] [nn.PoolingHttpClientConnectionManager] - Connection leased: [id: 10][route: {s}->https://dl.bintray.com:443][total kept alive: 0; route allocated: 1 of 20; total allocated: 1 of 40]
21:27:40.891 [DEBUG] [he.http.impl.execchain.MainClientExec] - Opening connection {s}->https://dl.bintray.com:443
21:27:40.897 [DEBUG] [mpl.conn.HttpClientConnectionOperator] - Connecting to dl.bintray.com/5.153.35.248:443
21:27:41.060 [DEBUG] [nn.DefaultManagedHttpClientConnection] - http-outgoing-10: Shutdown connection
21:27:41.066 [DEBUG] [he.http.impl.execchain.MainClientExec] - Connection discarded
21:27:41.070 [DEBUG] [nn.DefaultManagedHttpClientConnection] - http-outgoing-10: Close connection
21:27:41.072 [DEBUG] [nn.PoolingHttpClientConnectionManager] - Connection released: [id: 10][route: {s}->https://dl.bintray.com:443][total kept alive: 0; route allocated: 0 of 20; total allocated: 0 of 40]
21:27:41.078 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-ui-homebuilder, openhab-ui-basic, openhab-ui-habpanel, openhab-ui-paper': Error:
	Error downloading mvn:org.openhab.core/org.openhab.ui.paperui/2.3.0
21:28:01.357 [DEBUG] [org.quartz.core.QuartzSchedulerThread] - batch acquisition of 0 triggers
^C21:28:11.514 [DEBUG] [le.osgi.LoggingCommandSessionListener] - Command: 'log:tail' returned 'null'

Or may be OH can not download from this repo?

Correct, the files should be under the ownership of user openhab.

just now update to M8

Version:     2.4.0.M8 (Build)

User:        openhab (Active Process 6826)
User Groups: openhab

Directories: Folder Name      | Path                        | User:Group
             -----------      | ----                        | ----------
             OPENHAB_HOME     | /usr/share/openhab2         | openhab:openhab
             OPENHAB_RUNTIME  | /usr/share/openhab2/runtime | openhab:openhab
             OPENHAB_USERDATA | /var/lib/openhab2           | openhab:openhab
             OPENHAB_CONF     | /etc/openhab2               | openhab:openhab
             OPENHAB_LOGDIR   | /var/log/openhab2           | openhab:openhab

URLs:        http://192.168.1.10:8080
             https://192.168.1.10:8443

Same error:

22:03:53.304 [INFO ] [.internal.service.FeaturesServiceImpl] - Adding features: openhab-ui-homebuilder/[2.4.0.M8,2.4.0.M8],openhab-ui-paper/[2.4.0.M8,2.4.0.M8],openhab-ui-basic/[2.4.0.M8,2.4.0.M8],openhab-ui-habpanel/[2.4.0.M8,2.4.0.M8]
22:03:53.712 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-ui-homebuilder, openhab-ui-basic, openhab-ui-habpanel, openhab-ui-paper': Error:
	Error downloading mvn:org.openhab.core/org.openhab.ui.basicui/2.4.0.M8

That much looks better.:+1:

Now try stopping, cleaning, restarting/reboot a few times like mentioned above.

Doesn’t help, here is debug info, can you translate it to human language? :joy:

Debug info
2018-12-10 22:21:54.104 [DEBUG] [org.apache.felix.configadmin        ] - getConfiguration(pid=org.openhab.addons)
2018-12-10 22:21:54.106 [DEBUG] [org.apache.felix.configadmin        ] - Found cached configuration org.openhab.addons bound to mvn:org.openhab.core/org.openhab.core.karaf/2.4.0.M8
2018-12-10 22:21:54.107 [DEBUG] [org.apache.felix.configadmin        ] - getConfiguration(pid=org.ops4j.pax.url.mvn, location=null)
2018-12-10 22:21:54.108 [DEBUG] [org.apache.felix.configadmin        ] - Explicit Permission; grant configure permission on configuration bound to * to bundle mvn:org.openhab.core/org.openhab.core.karaf/2.4.0.M8
2018-12-10 22:21:54.110 [DEBUG] [org.apache.felix.configadmin        ] - Found cached configuration org.ops4j.pax.url.mvn bound to ?
2018-12-10 22:21:54.111 [DEBUG] [org.apache.felix.configadmin        ] - Explicit Permission; grant configure permission on configuration bound to ? to bundle mvn:org.openhab.core/org.openhab.core.karaf/2.4.0.M8
2018-12-10 22:21:54.112 [DEBUG] [org.apache.felix.configadmin        ] - getConfiguration(pid=org.ops4j.pax.url.mvn, location=null)
2018-12-10 22:21:54.112 [DEBUG] [org.apache.felix.configadmin        ] - Explicit Permission; grant configure permission on configuration bound to * to bundle mvn:org.openhab.core/org.openhab.core.karaf/2.4.0.M8
2018-12-10 22:21:54.113 [DEBUG] [org.apache.felix.configadmin        ] - Found cached configuration org.ops4j.pax.url.mvn bound to ?
2018-12-10 22:21:54.113 [DEBUG] [org.apache.felix.configadmin        ] - Explicit Permission; grant configure permission on configuration bound to ? to bundle mvn:org.openhab.core/org.openhab.core.karaf/2.4.0.M8
2018-12-10 22:21:54.132 [INFO ] [internal.service.FeaturesServiceImpl] - Adding features: openhab-ui-homebuilder/[2.4.0.M8,2.4.0.M8],openhab-ui-paper/[2.4.0.M8,2.4.0.M8],openhab-ui-basic/[2.4.0.M8,2.4.0.M8],openhab-ui-habpanel/[2.4.0.M8,2.4.0.M8]
2018-12-10 22:21:54.135 [DEBUG] [org.apache.felix.configadmin        ] - getConfiguration(pid=org.ops4j.pax.url.mvn, location=null)
2018-12-10 22:21:54.136 [DEBUG] [org.apache.felix.configadmin        ] - Explicit Permission; grant configure permission on configuration bound to * to bundle mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.2.1
2018-12-10 22:21:54.137 [DEBUG] [org.apache.felix.configadmin        ] - Found cached configuration org.ops4j.pax.url.mvn bound to ?
2018-12-10 22:21:54.138 [DEBUG] [org.apache.felix.configadmin        ] - Explicit Permission; grant configure permission on configuration bound to ? to bundle mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.2.1
2018-12-10 22:21:54.172 [DEBUG] [.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /usr/share/openhab2/runtime/system
2018-12-10 22:21:54.173 [DEBUG] [.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /usr/share/openhab2/runtime/system
2018-12-10 22:21:54.212 [DEBUG] [.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /var/lib/openhab2/system
2018-12-10 22:21:54.216 [DEBUG] [.impl.DefaultLocalRepositoryProvider] - Using manager PaxLocalRepositoryManager with priority 0.0 for /var/lib/openhab2/tmp/mvn
2018-12-10 22:21:54.218 [DEBUG] [rnal.impl.DefaultTransporterProvider] - Using transporter WagonTransporter with priority -1.0 for https://openhab.jfrog.io/openhab/online-repo-milestone/2.4/
2018-12-10 22:21:54.220 [DEBUG] [l.DefaultRepositoryConnectorProvider] - Using connector BasicRepositoryConnector with priority 0.0 for https://openhab.jfrog.io/openhab/online-repo-milestone/2.4/
2018-12-10 22:21:54.259 [DEBUG] [n.PoolingHttpClientConnectionManager] - Connection manager is shutting down
2018-12-10 22:21:54.261 [DEBUG] [n.PoolingHttpClientConnectionManager] - Connection manager shut down
2018-12-10 22:21:54.274 [DEBUG] [tp.client.protocol.RequestAddCookies] - CookieSpec selected: compatibility
2018-12-10 22:21:54.276 [DEBUG] [n.PoolingHttpClientConnectionManager] - Connection request: [route: {s}->https://openhab.jfrog.io:443][total kept alive: 0; route allocated: 0 of 20; total allocated: 0 of 40]
2018-12-10 22:21:54.278 [DEBUG] [n.PoolingHttpClientConnectionManager] - Connection leased: [id: 2][route: {s}->https://openhab.jfrog.io:443][total kept alive: 0; route allocated: 1 of 20; total allocated: 1 of 40]
2018-12-10 22:21:54.279 [DEBUG] [e.http.impl.execchain.MainClientExec] - Opening connection {s}->https://openhab.jfrog.io:443
2018-12-10 22:21:54.283 [DEBUG] [pl.conn.HttpClientConnectionOperator] - Connecting to openhab.jfrog.io/104.196.54.40:443
2018-12-10 22:21:54.633 [DEBUG] [n.DefaultManagedHttpClientConnection] - http-outgoing-2: Shutdown connection
2018-12-10 22:21:54.636 [DEBUG] [e.http.impl.execchain.MainClientExec] - Connection discarded
2018-12-10 22:21:54.638 [DEBUG] [n.DefaultManagedHttpClientConnection] - http-outgoing-2: Close connection
2018-12-10 22:21:54.640 [DEBUG] [n.PoolingHttpClientConnectionManager] - Connection released: [id: 2][route: {s}->https://openhab.jfrog.io:443][total kept alive: 0; route allocated: 0 of 20; total allocated: 0 of 40]
2018-12-10 22:21:54.658 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-ui-homebuilder, openhab-ui-basic, openhab-ui-habpanel, openhab-ui-paper': Error:
	Error downloading mvn:org.openhab.core/org.openhab.ui.basicui/2.4.0.M8

Solved by reinstalling JAVA

sudo apt remove oracle-java8-*
sudo add-apt-repository ppa:webupd8team/java
sudo apt install oracle-java8-installer
sudo apt install oracle-java8-set-default

1 Like