openhab / openhab-syno-spk

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

snapshot support for openhab 2.5 #158

Closed Timtam closed 4 years ago

Timtam commented 5 years ago

It would be nice to have e.g. a branch for already available OH 2.5 snapshots to test new features on a Synology NAS without fiddling with the manual installation. This branch could be updated to install the latest stable 2.5 version as soon as it gets released.

cniweb commented 5 years ago

I try to take care of it the next few days.

Timtam commented 5 years ago

Thanks for that :). Any progress on that? I just thought that having a release which will always pull the very latest snapshot might be even more future proof here and probably kinda helpful for bleeding edge testers.

X015 commented 5 years ago

Any news on the 2.5 SNAPSHOT? Realy looking forward to it!

Thanks!

ddnl commented 4 years ago

looking forward to the 2.5 snapshot for synolgy :-) Thanks

cniweb commented 4 years ago

I'll try to do it next week...

piejanssens commented 4 years ago

Looking more forward to 2.5 final which came out yesterday 😄

cniweb commented 4 years ago

You can test it: https://github.com/openhab/openhab-syno-spk/releases/tag/2.5.0.000

piejanssens commented 4 years ago

You can test it: https://github.com/openhab/openhab-syno-spk/releases/tag/2.5.0.000

Didn't go too well. In the UI it says "Failed to run package service." I tried to run it via the script. Noticed the following permissions:

-rw-rw-r-- 1 root root 20199 Dec 16 18:03 installer.sh
-rwx------ 1 root root    52 Dec 16 18:03 postinst
-rwx------ 1 root root    52 Dec 16 18:03 postuninst
-rwx------ 1 root root    52 Dec 16 18:03 postupgrade
-rwx------ 1 root root    76 Dec 16 18:03 preinst
-rwx------ 1 root root    52 Dec 16 18:03 preuninst
-rwx------ 1 root root    76 Dec 16 18:03 preupgrade
-rw-rw-r-- 1 root root  6060 Dec 16 18:03 restore
-rwx------ 1 root root    49 Dec 16 18:03 start-stop-status
-rw-rw-r-- 1 root root  3790 Dec 16 18:03 start-stop-status.sh

Then did a chmod -R 755 on the /var/packages/openHAB dir.

pieter@DISKSTATION:/var/log$ cat openHAB-install.log 
#### S T A R T  -  o p e n H A B  S P K ####
2019-12-16:19:35:44

Set instance variables...
  public:    true
  smarthome: false
  home:      false
  TMPFS:     false
  Z-Wave:    true
  port:    8080
  port:    8443
  tmp:    /volume1/@tmp
  share:  /volume1/public
  oh:     /volume1/public/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-16:19:35:56

Set instance variables...
  public:    true
  smarthome: false
  home:      false
  TMPFS:     false
  Z-Wave:    true
  port:    8080
  port:    8443
  tmp:    /volume1/@tmp
  share:  /volume1/public
  oh:     /volume1/public/openHAB
  backup: /volume1/@appstore/openHAB-backup-201912
done
User that exec the Installation
root
Start postuninst...
  Daemon user folder '/var/services/homes/openhab' not found - nothing deleted
done
pieter@DISKSTATION:/var/log$ cat openHAB-start_stop.log 
Stop service.
  Stopping openHAB ...
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  wait_for_status: 1
  stop_daemon: kill service
done.
Start service
  call start.sh.
  FAILED (su)
Stop service.
  openHAB is not running
done.
Start service
  call start.sh.
  FAILED (su)
Stop service.
  openHAB is not running
done.
Start service
  call start.sh.
  FAILED (su)
Stop service.
  openHAB is not running
done.
Start service
  call start.sh.
  FAILED (su)
Stop service.
  openHAB is not running
done.
Start service
  call start.sh.
  FAILED (su)
Stop service.
  openHAB is not running
done.
Start service
  call start.sh.
  FAILED (su)
Stop service.
  openHAB is not running
done.
Hoffi96 commented 4 years ago

got exactly the same error. Just installed 2.5 over my existing 2.4 installation

cniweb commented 4 years ago

OK, I see why. New release is in progress.

cniweb commented 4 years ago

Can you try again: https://github.com/openhab/openhab-syno-spk/releases/download/2.5.0.000/openHAB-2.5.0.000-syno-noarch-0.001.spk

piejanssens commented 4 years ago

image

I can't access the log atm. Will do in a couple of hrs.

cniweb commented 4 years ago

You must uninstall first and than install new (backup your files first).

Hoffi96 commented 4 years ago

same error as described above

mbremer99 commented 4 years ago

Installation worked for me - did uninstall of failed package this morning and now installed new spk. This is the log from the sucessfull install:

`#### S T A R T - o p e n H A B S P K #### 2019-12-17:20:40:47

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 done User that exec the Installation root 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 Processing openhab-2.5.0.zip done

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

2019-12-17:20:40:54

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: /volume1/@appstore/openHAB-backup-201912 done User that exec the Installation root Start postinst... Create 'openhab' daemon user Install new version Extract openhab-2.5.0.zip Move files to /volume1/@appstore/openHAB No TMPFS Install needed Create conf/addon/userdata folders for home dir Move conf to /var/services/homes/openhab/conf and create conf link Move addons to /var/services/homes/openhab/addons and create addons link Move userdata to /var/services/homes/openhab/userdata and create userdata link Fix permissions done No Z-Wave Wanted`