[SOLVED] Synology 2.5 spk install problems

Hi, I had openhanded 2.4 installed in a synology nas DS3617xs with DSM 6.2.2-24922 Update 4.
I installed 2.5 on top of 2.4 and it did not work. The installation of the spk removed all the files in /var/homes/openhab and it removed the openhab user.
I did two more attempts:
I un-installed and did a clean install and it did not work. It did not create the user openhab.
I un-installed and created the user and then installed again and it did not work but this time it did not deleted the user.

I installed back openhab 2.4 and it worked ok. Then I copied back the config filed (that I had backed up) and everything works the same as before.

Any idea of how I can make it work? It has to be easy, 2.4 works very well.

Thanks,
Manuel

Hi Manuel,

I have the same issue and would be interested in a solution as well. No way to install 2.5 but going back to 2.4, everything’s working perfectly.

Best wishes,
beinaendi

HI there,

can confirm this behaviour:
I tried updating the SPK package from 2.4.002 to 2.5 and it failed. Also deinstallation of 2.4 and new installation of 2.5 failed. Service could not be started and I also noticed the missing “homes/openhab” directories.
Would e great if someone could look into this issue with the synology package. In case you’ll need someone to test releases on Synology just let me know.

Rgds,
Markus

Hi, I repeated the process again and tried to look into the installation logs for 5 minutes but I did not find anything obvious.
Maybe during Christmas I have time to take a look.
What I noticed is that this time it did not delete the files in homes/openhab. I have no idea why.

I seem to recall somebody recommending to use the Docker install now?

You might want to give it another try - see here (scroll to the last postings):
https://github.com/openhab/openhab-syno-spk/issues/158

Hi, I tried un-installing first and still does not start.

This is the install log:

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

2019-12-18:19:04:40

Set instance variables…
public:
smarthome:
home:
TMPFS:
Z-Wave:
tmp: /volume1/@tmp
share: /var/services/homes
oh: /var/services/homes/openhab
backup: /volume1/@appstore/openHAB-backup-201912
done
User that exec the Installation
root
Start preuninst…
done

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

2019-12-18:19:04:51

Set instance variables…
public:
smarthome:
home:
TMPFS:
Z-Wave:
tmp: /volume1/@tmp
share: /var/services/homes
oh: /var/services/homes/openhab
backup: /volume1/@appstore/openHAB-backup-201912
done
User that exec the Installation
root
Start postuninst…

After that, it does not start. This is the start log:
Start service
call start.sh.
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
PID file created.
done.

2019/12/18 19:04:51 uninstall openHAB: Uninstall 2.4.0.002 successfully
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/openHAB
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/openHAB ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/rm -rf /var/packages/openHAB
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/rm -rf /var/packages/openHAB ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/mkdir -p /var/packages/openHAB
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/mkdir -p /var/packages/openHAB ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/openHAB/INFO
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/openHAB/INFO ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/rm -rf /var/packages/openHAB/scripts
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/rm -rf /var/packages/openHAB/scripts ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/openHAB/scripts
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/openHAB/scripts ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/rm -rf /var/packages/openHAB/WIZARD_UIFILES
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/rm -rf /var/packages/openHAB/WIZARD_UIFILES ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/openHAB/WIZARD_UIFILES
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/openHAB/WIZARD_UIFILES ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/rm -rf /var/packages/openHAB/conf
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/rm -rf /var/packages/openHAB/conf ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/openHAB/conf
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/openHAB/conf ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2019/12/18 19:07:17 install openHAB 2.5.0.000 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2019/12/18 19:07:17 install openHAB 2.5.0.000 successfully
2019/12/18 19:07:18 install openHAB: begin to start version 2.5.0.000
2019/12/18 19:07:19 install openHAB 2.5.0.000 Begin pre-load apparmor
2019/12/18 19:07:19 install openHAB 2.5.0.000 End pre-load apparmor ret=[0]
2019/12/18 19:07:19 install openHAB 2.5.0.000 Begin start-stop-status start
2019/12/18 19:07:49 install openHAB 2.5.0.000 End start-stop-status start ret=[0]
2019/12/18 19:07:49 install openHAB: start version 2.5.0.000 successfully, result 0

The installation process does not create the openhab user, but if it is created before the installation, the un-install removes it.

I have looked into the install packages and the only differences are the owner and rights of the files in the spk package (it is just a tar file)
and these two lines in the install script:

< DOWNLOAD_PATH="https://bintray.com/openhab/mvn/download_file?file_path=org/openhab/distro/openhab/2.4.0"
< DOWNLOAD_FILE1="openhab-2.4.0.zip"
---
> DOWNLOAD_PATH="https://bintray.com/openhab/mvn/download_file?file_path=org/openhab/distro/openhab/2.5.0"
> DOWNLOAD_FILE1="openhab-2.5.0.zip"

So it has to be either the rights are wrong or the download file is not available.

I will set the ownership and rights in the new package as in the old and I will try again.

OK, I solved it. It was the permissions.

openHAB-2.5.0.000-syno-noarch-0.001.spk

This is the file with the fixed permissions.

Use it AT YOUR OWN RISK. I take no responsibility at all.

1 Like

Hi Manuel,

worked for me as well. Now that the 3.0 Snapshot was released today, would an update work or would you have to change rights again (as I don’t know how to do)?

Many thanks,
beinaendi

Hi, I checked the 3.0 spk permissions and they are also wrong. It will not work, but I don’t want to install it so I have not fixed it. If the openhab build is not fixed by Christmas, I might fix it then. Sorry I am a bit busy, but you can try. It is just a tar file.

Hi Manuel,

no problem! I’d like to install it, as soon as it is a release. And I asked that question because I don’t know how to make the changes you did and because I asked myself if I should find out.

Thanks you, best regards,
Andreas

I would stay clear from the 3.0 snapshots unless you want to be a pre-alpha tester. Recently all OH1 add-on support was removed and soon many UIs like Paper UI will be too.

1 Like

Hi, here it is the spk for openhab 3.0 but I have not tried it myself as I don’t want to install it yet.
I hope it works. Please let me know if it works.
openHAB-3.0.0.000-SNAPSHOT-syno-noarch-0.001.spk
As usual, no warranty at all. As I said I have not even tried it myself.

M

Hi wborn, it is clear that the Synology package is broken. It is impossible that the package has ever worked, not even once for anybody. I tried to contact the developer who made the last commit to that but I have not succeeded. Any idea on how to contact them to explain what is wrong so the official package works?
Basically the shell scripts in the spk package do not have execution permission. Plus the files inside the package have ownerships which are not 0/0 but some user (this second thing will not break it but it is not nice). I don’t feel comfortable having the links to the fixed packages pointing to my personal Dropbox account.

The best way would be to create an issue for this in the issue tracker: https://github.com/openhab/openhab-syno-spk/issues
Maybe @cniweb can then have a look at it?

Or file a PR if your fixes can easily be merged into the repo.

Thanks

1 Like

I created an issue:
https://github.com/openhab/openhab-syno-spk/issues/161