[SOLVED] Synology 2.5 spk install problems

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.

[Official package out. Link removed]

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.
[problem solved in official repo. link removed]
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

Hi, as the openhab 2.5.1 spk package is not released, I have done it myself. Here it is, again with no warranty.

[Official package out. Link removed]

Hi I have created the openhab 2.5.2 spk. As always, this is amateur work so no warranty
[Official package out. Link removed]

Now the official package from Synology is out. I remove the links to the packages that I created.

I have tried installing the package 2.5.2 available here.
It did not work for me, but it looks like a different problem (the openhab user is not deleted, I did not recreate it. But to allow access to the configuration files, after installation I just do:

chmod -R g+rxw conf/
chmod -R g+rxw userdata/

I switched to Ubuntu. I am sorry but I don’t have a Synology installed anymore.