openhab-distro icon indicating copy to clipboard operation
openhab-distro copied to clipboard

Unable to set working directory (wrapper, when installing openHAB as a service)

Open ThoSt81 opened this issue 8 years ago • 0 comments

When trying to install openHAB as a service on Windows "openHAB-service.bat install" fails due to the following error (2.0.0 snapshot, downloaded on Feb 7th --> tested again with latest version downloaded now -> same problem)

wrapper  | Unable to set working directory to: /C:/openHAB/userdata/ (The filena
me, directory name, or volume label syntax is incorrect. (0x7b))
Unable to get the current logfile size with stat: The filename, directory name,
or volume label syntax is incorrect. (0x7b)

The problem can be fixed by manually editing the openHAB-wrapper.conf (runtime\karaf\etc)

set.default.JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_73
set.default.KARAF_HOME=/C:/openHAB/runtime/karaf/
set.default.KARAF_BASE=/C:/openHAB/userdata/
set.default.KARAF_DATA=/C:/openHAB/userdata/
set.default.KARAF_ETC=C:\openHAB\runtime\karaf\etc

Take out the leading / at line 2,3 and 4 in the example above.

Cheers, Thomas

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ThoSt81 avatar Feb 15 '16 22:02 ThoSt81