openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

[OH2] Openhab 2 log warning after move to other dir #4851

Closed nurgaleevarman closed 7 years ago

nurgaleevarman commented 7 years ago

Problem

Openhab initializes the pathname only at the first start

Current Behavior

I,m extract OH2 to folder

C:\NewFolder\openhab-offline-2.0.0-SNAPSHOT

Then run it and wait 1 min. Stop OH2.

Then MOVE OH to next folder

C:\NewFolder2\openhab-offline-2.0.0-SNAPSHOT

Delete C:\NewFolder

Then Start OH2 from C:\NewFolder2\openhab-offline-2.0.0-SNAPSHOT

Log file:

2016-12-02 09:09:10.987 [WARN ] [org.apache.felix.fileinstall        ] - C:\NEWFOL~1\OPENHA~1.0-S\addons does not exist, please create it.
2016-12-02 09:09:10.992 [WARN ] [org.apache.felix.fileinstall        ] - Root path does not exist: C:\NewFolder\openhab-offline-2.0.0-SNAPSHOT\addons
2016-12-02 09:09:16.455 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2016-12-02 09:09:16.537 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2016-12-02 09:09:16.570 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
2016-12-02 09:09:16.612 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

And OH2 create folder with OLDPATH.

C:\NewFolder\openhab-offline-2.0.0-SNAPSHOT\userdata\tmp\bundles

4848

Solution

Update all pathname after each Openhab start.

Your Environment

watou commented 7 years ago

@9037568 closed bc should be opened in openhab-distro?

9037568 commented 7 years ago

Right, same as #4848 before it. I wasn't sure which tracker it should go to, though.

watou commented 7 years ago

Thanks Chris.