Synology DiskStation

Tags: #<Tag:0x00007f51e4525d18>

(scott dee) #344

This is an incredibly easy process if the folder is shared :stuck_out_tongue: get your folders fixed and then just drop the files in. You should never need to be in @appstore folder

(Jeff) #345

yes, now everything is accessible. what i had before was the result of not creating the /conf, /addon, and /userdata before installing. if you don’t do that, turns out it will install without error, but put those directories in the @appstore folder. i wasted a ton of time on figuring that one out, but i appreciation the conversation that helped me sort it out.


(scott dee) #346

Start over then, you’ll make your life a lot easier

And rpi has its own set of problems. They’re fine machines but you already have a very capable machine

(Mr. Wiseman) #347

HI Synology Peers,

I’m at a point now where I need to upgrade my OH to 2.4 due to binding requirements. I’ve seen a lot of different discussions about the upgrade; mostly on the GitHub Synology thread.

Package -

I understand there is not a upgrade button/feature yet. I am “somewhat” savy with ssh and vi.

I saw a post by @cniweb on GitHub below:

“Hi, a automatic update is not implementet, at the moment. But you can use the manuel update mechanism from OH himself.”

Are these the steps -->

My current OH 2.3.001 is a standard install via the Synology web interface using the shared folder option (openhab). I have not created any symbolic links to anything (I saw issues around this on threads). I have lots of add-on Jar’s dropped in the folder including the updated/rewritten zWave binding.

Can anyone please provide a list of steps for me to follow for the upgrade that they used?

Best, Jay

iRobot 9xx on openHAB
(scott dee) #348

you can’t even use the built in method because synology uses 7z instead of zip. There are steps to make it work and i think cniweb is going to incorporate those changes at some point but as of now it’s best to just back it up yourself.

the main points would be to backup your entire conf folder, userdata folder, and addons folder.

you’ll want to restore the entire conf folder and probably addons folder but just pieces of the userdata folder. that one is a bit harder
from userdata you probably only need/want:
uuid (file)
openhabcloud (folder)
jsondb (folder)
config/org/openhab/ (there are files in here you may want like habpanel.config and that might be the only one, the others are rebuilt)

(Mr. Wiseman) #349


Thank you for taking the time to jot down some notes. I have a few questions . . .

Can I unzip the on a Windows box and drop the entire contents onto the Synology via a share? Good or bad idea?

Either way using the SPK or the ZIP; what directory should I execute “what” script to start the upgrade? I do have a share already called openHAB which has the v2.3 SPK sitting in it on the Synology; is this the place to drop the v2.4 SPK or ZIP in?

Picture of v2.4 unzipped:

I’m assuming I do NOT uninstall OH 2.3?

Here are 2 screen shots of the unzipped content for /scripts & /wizard_uifiles. Is there an order of execution of scripts?

Picture of /scripts of v2.4 unzipped:
Picture of /wizard_uifiles of v2.4 unzipped:
Best, Jay

(Mr. Wiseman) #350

How do I automate this script above on a schedule? Use scheduler with what syntax?

I’ve made the changes from Zip to 7z already.

Best, Jay

(j4ckz0n3) #351

Would it be possible to use a modified update script (changing unzip to 7z) from runtime/bin folder on a Synology? I’m not sure if the used paths and variables are correct on a Synology.

Furthermore: what about file system permissions?

(scott dee) #352

You install the SPK as any other. I would uninstall 2.3 first to be sure there’s no leftover cruft.

if you’ve modified the backup/restore scripts then you’ll run your backup script prior to uninstalling 2.3
COPY these modified scripts because they’ll be overwritten by the new install.

I would still make a copy of it yourself as well.

Install the new SPK and run the restore your modified scripts and then restore. That should cover it.

@jackzone I would ask @jwiseman for his scripts. I dont currently have modified scripts, i restore by hand.

permissions are set during the install

(Mr. Wiseman) #353

I modified the OH canned backup scripts but they aren’t running (not sure how to schedule them). What I have been doing with OH backups on the Synology is the following for many months now.

  1. I attached a SSD on the back of the unit via the USB port and use HyperBackup on the /homes/openhab directory nightly.
  2. My Sonology is attached to a Windows network via Active Directory and I copy/paste the entire /homes/openhab directory every few days to my Windows network.
  3. My setup is probably not the norm; I actually have 2 Synology’s in a HA pair, with one of them being the primary (so by default, a failure of a unit would not take me down).

Most likely I will be following @waspie advise/instructions and do the restore by copying my “key” files/folders back over manually from my Windows backups. I have a TON of tweaked settings across numerous files for performance tuning that I want to re-incorporate back into 2.4.

I haven’t decided “when” I’m going to upgrade (I’m a bit scared, I have 15k lines of rules code which is overwhelming if it works but fails on some of the rule logic) but I will let everyone know when I do the upgrade and what steps it took to upgrade.

The biggest factor of why I’m upgrading is because I’ve just started learning about MQTT and it requires a minimum of OH 2.4 (new core things/items defs) needed with the newer MQTT v2.5 binding in order to get my Roomba commands to work.

Best, Jay

(scott dee) #354

@jwiseman while you’re at it,I would use 2.5.0 M1
modify your /etc/hosts to point whatever the URL in the .SPK file is to point to localhost. That will make it fail downloading the openhab distribution files and fallback to held in your public folder. So, download and rename the m1 zip file to 2.4 as seen in the .SPK file. M1 has some good MQTT fixes in it that you’ll want.

(Mr. Wiseman) #355

Hey Scott,

Few questions . . .

What is the URL to the M1 Zip File, jFrog, Maven, etc. so I can manually download it?

In the v2.4 /scripts/ file; this is where v2.4 it’s getting downloaded. I copied/pasted the URL into a browser and just change it to 2.5.0 but it gives me a 404 error.

echo "Set instance variables..." >>$LOG

# Add more files by separating them using spaces


Best, Jay

(j4ckz0n3) #356

There seems to be no 2.5.0 directory at the moment:

(scott dee) #357

@jwiseman @jackzone

select linux - apt - milestone
scroll down to manual installation and then click the big unmissable download link