Synology DiskStation

Hey Serge,

Wanted to remind you that my steps will NOT work exactly unless the file structure isn’t the same as OH 2.3 with the public folder install option (which I think is option 3).

Keep in mind; my steps are NOT to “upgrade” what is there already (OH 2.3). It’s a brand new clean install of OH 2.4 w/o any of your files and folders structures being upgraded.

The reason we renamed OH 2.5m1 zip file to OH 2.4 zip is to use the OH 2.5m1 bindings vs. OH 2.4 bindings at the very end of the steps. There is NO full OH upgrade to 2.5m1 on Synology yet.

I’m recommending you follow the directions step by step (making backup copies of your OH stuff to another machine before starting - very important).

Best, Jay

Hi Jay,

I finally got it working.

In my case (no ‘public’ folder) the folder to use in step 7 was: volume1/@appstore/openHAB.

There is probably an easier way to do it but since it is a root folder I used ssh to copy the zip and spk files to that directory.

With “user home service” enabled the configuration folders are also mirrored to the homes/openhab folder so the kar file can be copied to either ‘addons’ folders.

Thanks again for your help with this.




Did any of you try updating to 2.5M2 ?


Nope. Not yet. Actually starting to wonder about migrating from Syno to a RPi, but the backup scripts don’t work due to file location differences…

not yet - too many red flags for me. that and m1 works so well for me. it runs until i shut it down to make a change, never because of crashes…

I wanted to try installing 2.5M2 but I can not figure out how openHAB finds out what bundles to download.
First I was thinking why not just modify the URL that is used to download openHAB in the .spk file. I was thinking that somehow openHAB 2.5 M2 would know only to download 2.5 M2 bundles. So if I just download M2 in the spk it would run 2.5 M2. But when reading the post about how to install 2.5 M1 it clearly looks like this would not work.

I tried to figure out how this works from the Developer Appendix documentation but there is still some things I can not figure out.
I understand that each bundle has a pom file that described the requirements of each bundle (i.e. bindings, java modules etc.) and how Karaf is used to install bundles/modules at runtime based on the pom (i guess). And I guess somehow Karaf is given a URL to the Artifactory hosted by JFrog. but how does that tie into how 2.5 M2 is only downloading 2.5 M2 bindings ?
When running the 2.5 M2 on a windows this is working without changing anything so why is that different than when it is run a synology diskstation?

I realize this might be a bit complicated to explain but maybe you guys can give me some pointers.

2.5 for syno? any news or solution?

I have 2.5 M4 working for a week now and it has been running without major issues.
What I did was.

  1. Downloaded the 2.4 spk (Link)
  2. Extract the file from the spk with 7-Zip
  3. Modify it to point the Milestone version.
    3.a. Edit. DOWNLOAD_PATH=“
    3.b. Edit. DOWNLOAD_FILE1=“”
  4. Then I put the back into the spk with 7-Zip.
  5. Install the spk. ( I used the public folder and Zwave / tmpfs options )

After I did the install I did some permission changes to get the serial ports working but I am a bit unsure how much of that was actually required.

The only issue I have is with RFLink. When the Synology is restarted it will not go back online, but if I unplug it and wait a bit before reconnecting then it works again. I have not investigated this so much so it might just be my system.

an easier way that all that :stuck_out_tongue: is to edit the /etc/hosts file on your syno like:

then rename whatever openhab release you want to in your public folder and thats it

@Kennet Thank you very much, I follow your instruction and install openhab-2.5.0.M6 into my DS715 which is running on DSM 6.2.1-23824 Update 1.
it is working fine without issue oberserved.
why I need update 2.5 M6 from 2.4? Because I have one Z-Wave Fibaro FGR-222 defect, bought a new Z-Wave Fibaro FGR-223 which is not in openhab 2.4 database, need update 2.5 Mx, I choose the lates one : 2.5 M6, just was a few hour old.

@waspie can you share more details how to it ?

edit the hosts file?
ssh to your synology and vi /etc/hosts
or if you have nano installed from the syno community use nano

thank you for quick reply, can you share more details how to install the whole openhab 2.5 M6 in synology? thanks

Already running 2.4.002 on Syno for quite sometime, in order to upgrade to 2.5 or 2.5 Mx can it be done by

  1. backup (of course)
  2. adapt hosts file
  3. running "sudo /volume1/@appstore/openHAB/runtime/bin/update 2.5.0 "



Backup all of your data (/volume#/public/openHAB <- the whole folder)
When you install the new version it uninstalls everything and removes the openhab user from the system. It is as if openhab was never installed - so backup EVERYTHING.
download the M6 or whatever build from openhab. rename it to and upload it to the public folder on your syno. nano or vi the /etc/hosts file on your syno and add
then get yourself the openhab spk and install as normal. it’ll use the zip since it can’t connect to bintray.
then restore your conf files and very selectively restore stuff out of the userdata folder. I wouldn’t copy the userdata folder from the backup straight over. I’ve run into problems with that. I grab the persistence folder, the openhabcloud stuff (and uuid file) habpanel.config file from userdata/config/org/openhab (i think that’s the path) and the jsondb folder. then let 'er rip.

I can’t answer #3, I have no idea.

First, thank you to all of you for the useful information shared in this topic.
I’ve learned a lot by reading through this tread and attempting different methods of installation.

I had OH2.5 M1 running on my DS718+ for a while but I can’t manage to upgrade/install OH2.5 M5 or M6 successfully.

Platform information:

  • Hardware: Synology DS718+/ INTEL Celeron J3455/2048MB
  • OS: DSM 6.2.2-24922 Update 3
  • Java Runtime Environment: Java8 upgraded to version 1.8.0_231
  • openHAB version: 2.5 M5 or M6 (the outcome is the same)


  • Package installation failed.
  • Package installation completed but major runtime errors.

1. Package installation failed:

When trying to install either the original “openHAB-” release or with the installer script modified to use the M5 or M6 zip file, the installation fail with the following DSM message:

And here is the installation log:

#### S T A R T  -  o p e n H A B  S P K ####

Set instance variables...
  public:    false
  smarthome: false
  home:      true
  TMPFS:     false
  Z-Wave:    false
  port:    8080
  port:    8443
  tmp:    /volume1/@tmp
  share:  /var/services/homes
  oh:     /var/services/homes/openhab
  backup: -backup-201912
User that exec the Installation
Start preinst...
  Found java executable in PATH
  Java version 1.8.0_231
  Version is more than 1.8
  The User Home service is enabled. UH_SERVICE=yes
  The shared folder '/var/services/homes' exists.
  Get new version
  There was a problem downloading from the download link:
  Alternatively, download this file manually and place it in the '/var/services/homes' shared folder and start installation again.

2. Package installation completed but major runtime errors:

If I proceed as instructed in the above log and place the zip file manually in the share folder the package script runs without a glitch and the DSM returns an installation completed message however I can’t access the UI and the script returns the following errors:

MySynology:/volume1/@appstore/openHAB$ ./
Launching the openHAB runtime...
Listening for transport dt_socket at address: 5005 /volume1/homes/openhab/userdata/tmp/ (Permission denied)
at Method)
at org.apache.karaf.main.InstanceHelper.writePid(
at org.apache.karaf.main.Main.launch(
at org.apache.karaf.main.Main.main(
java.lang.RuntimeException: Exception instantiating lock class org.apache.karaf.main.lock.SimpleFileLock

Karaf can't startup, make sure the log file can be accessed and written by the user starting Karaf : /volume1/homes/openhab/userdata/tmp/lock (Permission denied)
at org.apache.karaf.main.Main.createLock(
at org.apache.karaf.main.Main.doMonitor(
at org.apache.karaf.main.Main.access$100(
at org.apache.karaf.main.Main$

Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at org.apache.karaf.main.Main.createLock(
... 3 more

Caused by: java.lang.RuntimeException: Karaf can't startup, make sure the log file can be accessed and written by the user starting Karaf : /volume1/homes/openhab/userdata/tmp/lock (Permission denied)
at org.apache.karaf.main.lock.SimpleFileLock.<init>(
... 8 more

Caused by: /volume1/homes/openhab/userdata/tmp/lock (Permission denied)
at Method)
at org.apache.karaf.main.lock.SimpleFileLock.<init>(
... 8 more

The permissions on the share folder seem to be OK and I am running the latest Java8 syno package with the Oracle 1.8.0_231 upgrade.

Anyone encountered a similar problem so far?

permission denied.

use file station to set ownership and permissions of that folder to openhab and read/write

Thanks for your reply.

I’ve changed the ownership and permissions, restarted OH and still not working…

Well, what’s the error now?

spk seems to be too complicated. not only to install… backup, upgrade - all not clear (and messy ?!).
I gave up with it, after waisting too much time and moved to docker now. works in a few min on Synology and all is pretty clear. No errors. No issues. Easy.


Here is the new log:

Launching the openHAB runtime...

                          __  _____    ____      
  ____  ____  ___  ____  / / / /   |  / __ )     
 / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  | 
/ /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /      
\____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/     
    /_/                        2.5.0.M6
                               Milestone Build   

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.

openhab> org.apache.karaf.features.internal.util.MultiException: Error:                                                                                                                                              
	Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.dashboard/2.5.0.M6
	at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(
	at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(
	at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(
	at org.apache.karaf.features.internal.service.Deployer.deploy(
	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(
	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
	Suppressed: Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.dashboard/2.5.0.M6
		at java.util.concurrent.Executors$
		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
		at java.util.concurrent.ScheduledThreadPoolExecutor$
		... 3 more
	Caused by: Error resolving artifact org.openhab.ui.bundles:org.openhab.ui.dashboard:jar:2.5.0.M6: [Could not transfer artifact org.openhab.ui.bundles:org.openhab.ui.dashboard:jar:2.5.0.M6 from/to openhab (]
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException(
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(
		... 7 more
		Suppressed: Could not transfer artifact org.openhab.ui.bundles:org.openhab.ui.dashboard:jar:2.5.0.M6 from/to openhab (
			at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(
			... 12 more
		Caused by:
			... 21 more
		Caused by:
			at org.ops4j.pax.url.mvn.internal.wagon.ConfigurableHttpWagon.execute(
			... 30 more
	Caused by: Error resolving artifact org.openhab.ui.bundles:org.openhab.ui.dashboard:jar:2.5.0.M6
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(
		... 12 more