openhab / openhab-syno-spk

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

Installation suceeds, package service can't be started - 3.0 Snapshot #182

Open chingon007 opened 3 years ago

chingon007 commented 3 years ago

Hello,

I tried to installt the 3.0 Snapshot under /var/services/homes/openhab. According to the Synology Log Center it is successfull installed, but neither is the package service starting - receiving error: Package service can't be started - nor do I have any created folders in /var/services/homes/openhab or an user is created.

Where do I find specific logs for the openhab installation to see what is going wrong?

chingon007 commented 3 years ago

Ok, found the log. The error I am receiving is:

Start postuninst... Daemon user folder '' not found - nothing deleted

chingon007 commented 3 years ago

The error is coming from uninstalling. If I start installing nothing appears in the log file. I did install and added it to etc. What could be wrong?

ekkards commented 3 years ago

Neither have I been successful, on a DiskStation with INTEL Atom C2538

using Java installation hints in https://github.com/openhab/openhab-syno-spk/README.md

$ which java
/var/packages/java11/bin/java

and

$ java --version
openjdk 11.0.10 2021-01-19 LTS
OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)

checked CLASSPATH

$ echo $CLASSPATH
.:/var/packages/java11/lib

and JAVA_HOME

$ echo $JAVA_HOME
/var/packages/java11

but not even /var/services/homes/openhab would be there.

/var/log/openHAB-install.log contains

#### S T A R T  -  o p e n H A B  S P K ####
2021-01-21:19:46:42

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-202101
done
User that exec the Installation
root
Start postuninst...
  Daemon user folder '' not found - nothing deleted
done
fabyte commented 3 years ago

Same here, I have exactly the same java environment like @ekkards . Besides that, I'm running a DS220j with Realtek RTD1296 SoC.

/var/log/openHAB-start_stop.log shows:

Start service
  call start.sh.
  FAILED (su)
Stop service.
  openHAB is not running
done.
Gemikro1 commented 3 years ago

Same for me, also installed Java11 with the minor modification that i have the additional \jdk-11.0.9.1+1 in the Java installation path and env vars. I think the installation fails because the installer.sh script tries to find the file "openhab-3.0.0-SNAPSHOT.zip" under "https://ci.openhab.org/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/" where it simply does not exist. There is stable version available under https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F3.0.1%2Fopenhab-3.0.1.zip I am currently trying to modify the installer to use the locally downloaded 3.0.1 file instead of the 3.0.0 snapshot.