openhab / openhab-syno-spk

openHAB Synology SPK Install Package
Eclipse Public License 2.0
161 stars 42 forks source link

Virgin installation of 2.2.0 - error (java) User Home Service not enabled #121

Closed piejanssens closed 5 years ago

piejanssens commented 6 years ago

image

I installed the official Java 8 pkg before installing openHAB. I created the shared folder 'openHAB' and gave r/w permissions to 'guest' (is this necessary?).

piejanssens commented 6 years ago

I enabled the DSM "User's Home" option (strange requirement! and not documented) to get passed this error. Now the OpenHAB install completed and I could start and load up OH. PS. I don't use a 'public' folder and would prefer to have the option to specify the share location for OH or have an option for the share 'openHAB': /volume1/openHAB instead of /volume1/public/openHAB

piejanssens commented 6 years ago

Is the UH_SERVICE check done only because enabling the home service would create the public share?

cniweb commented 6 years ago

Yes, I think the option is only for that. So if in Wizzard another option than the share folder in the user home settle, then the user home service can remain disabled.

piejanssens commented 6 years ago

There is nothing 'public' about openHAB config files and therefore I don't see a particular reason to want it as part of the 'Public' shared folder Please note that enabling the user home folder on DSM6+ (at least my version) does not create the public folder, so to use the home UH_SERVICE check to assume the 'Public' share will be there makes no sense.

The best (IMO) solution for the wizard would be to let the user select the destination for the conf files and if possible create the 'conf', 'userdata' and 'addons' folders in that selected directory automatically. So replace the radio buttons with a single input field where the user needs to enter the path to the root folder for the OH files starting with the name of a shared folder. There is already code in place to check if that folder exists. e.g. I would enter 'openHAB'. If you want it in public you could enter 'Public/openHAB'.

cniweb commented 6 years ago

@SchoppAx What do you think about?

SchoppAx commented 6 years ago

That’s an easy enhancement.

I will change the destination settings in the holidays ;-)

acseven commented 6 years ago

Hi,

I think this is related to this new option that we get during installation: scrn

Just want to suggest that the setup description would make a reference to the first two being shared folders - at least I didn't figure it out for "SmartHome" at first. Something like "(share must exist..." should suffice...

Cheers

cniweb commented 6 years ago

@acseven Sounds good and should be easy to implement...

HakamSaffour commented 5 years ago

I made a pull request to add the missing step

  1. Go to Control Panel → User → Advanced → User Home and check 'Enable user home service' https://github.com/openhab/openhab-docs/pull/910

This issue can be closed