openhab-distro
openhab-distro copied to clipboard
Unable to set working directory (wrapper, when installing openHAB as a service)
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.