openhab / openhab-syno-spk Goto Github PK
View Code? Open in Web Editor NEWopenHAB Synology SPK Install Package
License: Eclipse Public License 2.0
openHAB Synology SPK Install Package
License: Eclipse Public License 2.0
Karaf console does not start and is not reachable. Everything is doing well on OH2.
2017-01-28 12:57:40.437 [WARN ] [org.apache.karaf.shell.ssh.Activator] - Exception caught while starting SSH server
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)[:1.8.0_92]
at sun.nio.ch.Net.bind(Net.java:433)[:1.8.0_92]
at sun.nio.ch.Net.bind(Net.java:425)[:1.8.0_92]
at sun.nio.ch.AsynchronousServerSocketChannelImpl.bind(AsynchronousServerSocketChannelImpl.java:162)[:1.8.0_92]
at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:66)[61:org.apache.sshd.core:0.14.0]
at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:74)[61:org.apache.sshd.core:0.14.0]
at org.apache.sshd.SshServer.start(SshServer.java:287)[61:org.apache.sshd.core:0.14.0]
at org.apache.karaf.shell.ssh.Activator.doStart(Activator.java:117)[56:org.apache.karaf.shell.ssh:4.0.8]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:246)[56:org.apache.karaf.shell.ssh:4.0.8]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_92]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_92]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_92]
Hello.
On a DS111 i was unable to install OpenHAB-1.7.1-syno-noarch-0.001.spk. In Package Manager on manual Install, i get error "Invalid File Format"
Cheers
Olli
After installing opemHAB2 the option to put conf at public on Volume1 does not work. Openhab sticks to the conf at @appstore/openHAB2/conf and does not produce simlink to /vlume1/openHAB2/conf.
I can't find the section in install scripts even not in start scripts. For Version 1.8 i finde the section in scripts.
DS 213j DSM6 6.0.2
Beta 3 after installation shows "Running in GUI"
WebUI is not working
if I do
su -s /bin/sh - openhab -c "/var/packages/OpenHAB2/target/start.sh"
I get "su: warning: cannot change directory to /var/services/homes/openhab: No such file or directory
"
I can help with testing. I need this stuff to be up again. 1.8 was great!
Hi, can you add links to 'conf' 'addons' 'logs' as it was in oh1.8?
Something like that:
mv /volume1/@appstore/openHAB2/conf /volume1/public/openHAB2/
mv /volume1/@appstore/openHAB2/addons /volume1/public/openHAB2/
mv /volume1/@appstore/openHAB2/userdata/logs /volume1/public/openHAB2/
ln -s /volume1/public/openHAB2/conf conf
ln -s /volume1/public/openHAB2/addons addons
ln -s /volume1/public/openHAB2/logs userdata/logs
Just playing with the idea to buy a NAS for my SmartHome setup.
Would be great if you could collect working devices in a list. With comments on their performance.
Thanks!
Hi there,
just installed the latest prerelease and it is not starting via package manager. The log is also empty, it just doesn't start. I am running a DS214Play with latest DSM6.
Let me know if I can deliver any further information or log files.
I am getting this message when doing an install of 2.0.0.008-SNAPSHOT-DSM6 on DSM 6.0.2-8451 Update 4:
Failed to install "openHAB2".
Usage: wget [OPTION]... [URL]...Try `wget --help' for more options. There was a problem
downloading openhab-offline-2.0.0-SNAPSHOT.zip from the official download link, which was
"https://openhab.ci.cloudbees.com/job/openHAB-
Distribution/lastSuccessfulBuild/artifact/distributions/openhab-offline/target/openhab-offline-2.0.0
-SNAPSHOT.zip" Alternatively, you may download this file manually and place it in the 'public' shared
folder.
I have also tried to manually download the zip-file to /volume1/public but get the same error
When trying to do a manual package install of the OpenHAB 2 beta on my 1512+ I get the following error message. "Port undefined configured for this package is either used by another service or reserved for system. Please disable or modify the conflicting service, or contact the developer to modify the package configuration"
I've made sure that nothing in /usr/local/etc/services.d/ refers to the ports 8080 or 5555. Not sure why it refers to port "undefined" though.
I'm running DSM 6.0-7321 Update 3
Any help would be appreciated.
Regards
Tim
The manual install of OpenHAB-1.8.2-syno-noarch-0.001.spk on a DS111 with DSM 5.2-5664 Update 8 gives me the following Error:
"OpenHAB" konnte nicht installiert werden. (unable to install)
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
There was a problem downloading distribution-1.8.2-runtime.zip from the official download link,
which was "https://bintray.com/artifact/download/openhab/bin/distribution-1.8.2-runtime.zip"
Alternatively, you may download this file manually and place it in the 'public' shared folder.
After a manually Download - the File distribution-1.8.2-runtime.zip already exist in the 'public' shared folder, but the error was the same.
From /var/log/messages:
entry.cgi_SYNO.Core.Package.Installation[1].install[13756]: pkginstall.cpp:405 Failed to run preinst script for OpenHAB, [1]
Hope that help
Thanks
After fresh install OpenHAB-2.1.0.002-SNAPSHOT-DSM6-syno-noarch-0.001.spk no dir structure created.
Second i restore my OH2 installation from backup and try to update it using OpenHAB-2.1.0.002-SNAPSHOT-DSM6-syno-noarch-0.001.spk - all dirs was removed from OH2 dir.
See openhab/openhab-distro#299
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Hi again :)
I would love to see a package for 2.0.0-SNAPSHOT (instead of only the beta 2).
I don't know if it's possible to implement an update button - probably in form of an uninstall-script that lets you choose between uninstalling and updating?
Hi,
first thanks for the very nice sync-package! It works very fine.
But today I discovered that openhab gets the wrong timezone (gmt +0) from my synology system, even at the synology admin gui everything is set right to gmt +1, Germany, german... sync with nap server.
I was since months wondering why the time stamp in the logs is wrong. But today i intodruced the astro-binding and found that openhab has the wrong timezone:
2016-01-26 18:18:13.174 [INFO ] [.service.AbstractActiveService] - NTP Refresh Service has been started
2016-01-26 18:18:13.185 [INFO ] [.b.a.internal.bus.AstroBinding] - AstroConfig[latitude=51.28756,longitude=6.846684,interval=disabled,systemTimezone=GMT (GMT +0000),daylightSavings=false]
Interestingly when login in to my syno with ssh as root the
the date command gives correct time
but locale command says this:
Server1> locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8
Thus i supposes the locale is not set right by the system.
Has anybody the same behavior? Can I Set the default timezone for Openhab-core or the openhab-syno package? Didn't find something like this at the config files.
I also wrote to synology!
Openhab 1.8.0, Java 1.7_60, DSM 5.2-5644 Update 3
My DiskStation got updated to DSM 6.0 and I found previously installed openHAB package 1.7.1 "stopped" in Package Center. Therefore I decided to upgrade it to release OpenHAB-1.8.2-DSM6-RC-syno-noarch-0.001.spk.
Unfortunately I got message as below:
Model name: DS414
CPU: MARVELL Armada XP MV78230
DSM version: DSM 6.0-7321
Java: 1.8.0_077
I have also tried OpenHAB-1.8.1-DSM6-beta-syno-noarch-0.001.spk. It installs without problems but does not start. Attempting to "Run" it from Package Center does not work - it is shown as "stopped". There are no messages in "View Log".
How can I troubleshoot this issue?
Krzysztof
Hi there,
it's probably not a bug, but I don't get the OH2 2.0b3 to communicate with my Z-Wave stick on the Synology DS214play (DSM 6.x).
It worked in all previous version since 1.7 without problems. Now I keep getting "Port /dev/ttyACM0 not found". It works only if I start OH2 from the bash with root.
My port and also /var/lock should be accessible for the openhab2 user:
root@DiskStation:/dev# ll ttyACM0
crwxrwxrwx 1 root dialout 166, 0 Jul 9 10:22 ttyACM0
The openhab2 user is member of the dialout group, also is the permission set to 777 just to be sure. I also checked that the binaries run with the openhab2 user if started via package manager.
As I said, it worked in alle previous versions if I set the permissions/ownerships for the port and /var/lock accordingly, but not with OH2.
Any tips or suggestions what I am doing wrong?
//edit:
I tried the current version of Domoticz with OpenZWave, and this worked instantly without any modifications. So it seems it's really an OpenHAB issue only
I am getting an error when trying to install the package "There was a problem downloading openhab-offline-2.0.0.SNAPSHOT....". I think this is due to this announcement (https://community.openhab.org/t/a-single-distro-from-now-on/19903) of a move to a singe distro so there is no offline distro any more.
Installing OpenHAB-2.1.0.002-SNAPSHOT-DSM6-syno-noarch-0.001.spk on a DS214Play no user openhab was created on install. Although the package claims to be running it has permission issues.
Error message:
Failed to install "openHAB2".
Java is not installed or not properly configured. Download and install as described on
The Synology provided Java may not work with OpenHAB
(italics mine)
Target machine is DS1513+
The suggested Java fix at the tinyURL in the message did not work satisfactorily.
Will try again when the next release is pulled at GitHub.
In the meantime, back to work on the RPi deployment. :)
Thanks.
Hi,
I'm having the same problem as described in #24. None of the DSM 6 packages is working for me. I'm running DSM 6.0.2-8451 Update 2 and I've tried
Error message is "Port undefined configured for this package is either used by another service or reserved for system. Please disable or modify the conflicting service, or contact the developer to modify the package configuration".
Port 8080 is not in use:
root@ds412:/usr/local/etc/services.d# netstat -an | grep 8080
root@ds412:/usr/local/etc/services.d#
That's written in the synopkg.log:
2016/11/06 20:13:50 (system) trigger :
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 INFO --no-same-owner
2016/11/06 20:13:50 (system) trigger :
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 INFO --no-same-owner ret=[0]
2016/11/06 20:13:50 (system) trigger :
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 conf --no-same-owner
/bin/tar: conf: Not found in archive
/bin/tar: Exiting with failure status due to previous errors
2016/11/06 20:13:50 (system) trigger :
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 conf --no-same-owner ret=[2]
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/start-stop-status --no-same-owner --no-same-permissions
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/start-stop-status --no-same-owner --no-same-permissions ret=[0]
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/preinst --no-same-owner --no-same-permissions
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/preinst --no-same-owner --no-same-permissions ret=[0]
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/postinst --no-same-owner --no-same-permissions
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/postinst --no-same-owner --no-same-permissions ret=[0]
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/preuninst --no-same-owner --no-same-permissions
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/preuninst --no-same-owner --no-same-permissions ret=[0]
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/postuninst --no-same-owner --no-same-permissions
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/postuninst --no-same-owner --no-same-permissions ret=[0]
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/preupgrade --no-same-owner --no-same-permissions
/bin/tar: scripts/preupgrade: Not found in archive
/bin/tar: Exiting with failure status due to previous errors
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/preupgrade --no-same-owner --no-same-permissions ret=[2]
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
Begin: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/postupgrade --no-same-owner --no-same-permissions
/bin/tar: scripts/postupgrade: Not found in archive
/bin/tar: Exiting with failure status due to previous errors
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
End: /bin/tar xf /volume1/@tmp/upload_tmp.319140 -C /volume1/@tmp/581F80EE0 scripts/postupgrade --no-same-owner --no-same-permissions ret=[2]
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
Begin: /bin/rm -rf /volume1/@tmp/581F80EE0
2016/11/06 20:13:50 (system) trigger OpenHAB 1.8.3-001:
End: /bin/rm -rf /volume1/@tmp/581F80EE0 ret=[0]
Any ideas??
Thanks,
Harry
Hi Christian,
Timezone is wrong again. I suppose they changed the Strukturen of file /usr/share/zoneinfo/Timezone/tzlist. Could you send me this file beim DSM 5.2, so i could compare. I think we have to stick to the file synotztable.json. Nur the Strukture is different. Are you familiar with sed? I have an idea what to grep and to sed in this file to debug.
I am encountering the following problem on my DS213j:
/volume1/public/Openhab
.$ ls -al /volume1/public/OpenHAB/
total 20
drwxrwxrwx 4 openhab users 4096 Jul 13 17:57 .
drwxrwxrwx 4 root root 4096 Jul 29 14:26 ..
drwxrwxrwx 2 openhab users 4096 Aug 4 22:16 addons
drwxrwxrwx 7 openhab users 4096 Aug 4 22:18 configurations
start_runtime.sh
inside /volume1/@appstore/OpenHAB
from the command line as root everything work perfectly. The default sitemap is recognised, etc.ps aux | grep java
) but shows me an error that the sitemap default
could not be found. Trying to reach the sitemap with ?sitemap=
results in an identical error.I have been trying different approaches (copying the configuration files in /volume1/public/OpenHAB/
, chown as openhab/chgrp as users, etc.) but so far no luck.
This means that I have to run OpenHAB every time it stops (reboot, power failure,...) manually from the console, plus I have to run OpenHAB as root, which I don't like at all.
Anyone any ideas how to fix this?
https://bintray.com/artifact/download/openhab/bin
This link is targeted in every .spk I've downloaded.
Error 404...
Tried downloading the runtime zip to Diskstation public directory but the package can still not find the file.
Any chance of correcting the link to working one?
https://dl.bintray.com/openhab/bin/
Or explain to me how I can regenerate the .spk myself so it works?
Mark S.
Hi,
When trying to install the new package for OpenHAB 1.8, I've got the following error on Synology DSM6 Beta1:
"The User Home Service is not enabled. Please activate ..."
But the User Home Service is activated on my NAS :-(
Any idea how to solve this package installation issue?
Regards
Yann
Hello,
this is a suggestion.
The idea of being able to manage configuration from a share is great but I would suggest the following approach in the spk installer (since you are creating the user openhab2)
Test if conf is found under /volume1/homes/openhab2/
If yes link to it
if not try /volume1/public/openhab2/
if yes link to it
otherwise keep it to /volume1/@appstore/openHAB2
Same procedure for addons
Lastly,
during uninstallation, do not remove the user openhab2
Hi Guys and girls,
I installed openhab2 on my DS411j using the instructions on the website. Everything went smooth.
I was able to start the software using package center. but the webaddress remained inaccesible.
as the logs in package center don't really give me any info, and log:tail doesn't either, I'm at a loss to wat to do next. I tried installing the latest release, the beta3, all of these:
all give me the same error :(
with one package, running sudo ./start in terminal did change the "inaccesible" status to a 404. but still unable to use the package.
Support update for the package
Hello,
introducing OpenHab2 is a big step forward and I really appreciate your efforts.
I installed it and as already pointed it is working well.
Except it is confusing or impossible to configure.
There are several folders with configurations :
/volume1/public/OpenHAB2 - has conf, addon and configuration folder
/var/packages/OpenHAB2/target = /volume1/@appstore/OpenHAB2
has conf, addon and configuration folder
I tried to run demo sitemap - but no success.
I tried putting it in all the folders, delete some - result no demo sitemap.
I also tried adding HABMIN in all the addons folders but it was not running.
Any instruction or simplification will be appreciated.
Correct uninstalling the package
It would be great if someone (@cniweb?) could provide a PR for the page http://docs.openhab.org/installation/synology.html, so that Synology is covered in the official documentation as well.
Please see https://github.com/openhab/openhab-docs/blob/gh-pages/README.md#contributing-to-the-documentation on how to do this.
I needed to investigate to find out which port is used by openHAB within your SPK.
I would suggest to make it configurable during setup, that would add much of comfort and control to it.
It should be possible to use the user credentials from Synology in openhab. This way users can use openhab using their synology credentials. It should also be possible to limit access to openhab from the synology user configuration.
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30867086-user-management-integration?utm_campaign=plugin&utm_content=tracker%2F19715072&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F19715072&utm_medium=issues&utm_source=github).I am trying to run OpenHAB2 from the Syno-package (2.1.0.001-SNAPSHOT-DSM6 currently, but the same issue for other 2.* packages exists) on my DS214.
I followed the guide on (http://docs.openhab.org/installation/synology.html), then set the whole userdata folder read and writeable.
2017-01-29 12:03:42.787 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.ArrayIndexOutOfBoundsException: 0
at sun.nio.cs.UTF_8$Decoder.decode(UTF_8.java:441)
at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:153)
at java.lang.StringCoding.decode(StringCoding.java:193)
at java.lang.String.<init>(String.java:426)
at java.lang.String.<init>(String.java:491)
at sun.security.x509.AVA.toRFC2253CanonicalString(AVA.java:909)
at sun.security.x509.RDN.toRFC2253StringInternal(RDN.java:443)
at sun.security.x509.RDN.toRFC2253String(RDN.java:423)
at sun.security.x509.X500Name.getRFC2253CanonicalName(X500Name.java:729)
at sun.security.x509.X500Name.equals(X500Name.java:415)
at sun.security.pkcs.SignerInfo.getCertificateChain(SignerInfo.java:274)
at sun.security.pkcs.SignerInfo.getTimestamp(SignerInfo.java:557)
at sun.security.util.SignatureFileVerifier.getSigners(SignatureFileVerifier.java:559)
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:300)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:268)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:316)
at java.util.jar.JarVerifier.update(JarVerifier.java:228)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)
at java.util.jar.JarFile.getInputStream(JarFile.java:450)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:162)
at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:238)
at org.apache.karaf.main.Main.loadFrameworkFactory(Main.java:425)
at org.apache.karaf.main.Main.launch(Main.java:252)
at org.apache.karaf.main.Main.main(Main.java:177)
cat /proc/cpuinfo
Processor : Marvell PJ4Bv7 Processor rev 2 (v7l)
java -version
java version "1.8.0_121"
Java(TM) SE Embedded Runtime Environment (build 1.8.0_121-b13, headless)
Java HotSpot(TM) Embedded Client VM (build 25.121-b13, mixed mode)
Hello,
First I installed JAVA SE Embedded 8 (Version 1.8.0_6-0034)
Then I installed manually 2.0.0-beta2-DSM6-RC from https://github.com/openhab/openhab-syno-spk/releases
Went to SSH and created both /volume1/public/OpenHAB2/addons and /volume1/public/OpenHAB2/conf ( I tried even with /volume1/public/OpenHAB2/configurations) .
gave permissions to these folders to openhab:users
Then from Package Center => Action => Run
But always the Status remains Stopped
I don't know what I am not doing as expected and what I have to do...
Any advice?
I'm running this on Synology DSM 5.2-5644 Update 5 (XPenology DS3615xs).
When I start the package from synology web interface it will not start properly as long as openhab is the daemon_user, if I change to root as the daemon_over then it starts.
second thing is that the your timezone fix does not check for summer time, so all log entries is 1 hour wrong for me.
Hi!
for some reason the stop button is not working correctly. I debugged it a bit and noticed that openHAB does not react to the normal kill signal.
I did a workaround but it's not a good idea to do it like that I think (stop_runtime.sh):
#!/bin/sh
PID=$(cat ~/.daemon.pid)
rm -f ~/.daemon.pid
kill $PID
sleep 12
kill -9 $PID
I let OH 12 seconds before killing but I think that does not change anything...
Probably one should send stop commands directly to the osgi framework?
Just found something strange in the installer.sh:
https://github.com/openhab/openhab-syno-spk/blob/2.0-beta1/scripts/installer.sh#L89
I'm currently working on getting OH2 working on my QNAP and just found these lines..
You are symlinking a directory called "configurations" but since OH2 there is "conf". Additionally I don't know whether it would be also save to symlink "userdata".
Minor issue: In start-stop-status.sh, $PIDFILE is referenced a couple of times to check if openhab is running. It seems that $PIDFILE is never created, though. On my synology, /var/services/homes/openhab2 does not contain such a file even when openhab is running.
Nonetheless, everything works fine ...
Hi,
I have some issues trying to use the RRD graphs. They just not show up.
The Exception was:
java.lang.NullPointerException: null openhab.log: at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264) ~[na:1.8.0_60] openhab.log: at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219) ~[na:1.8.0_60] openhab.log: at sun.awt.FontConfiguration.init(FontConfiguration.java:107) ~[na:1.8.0_60] openhab.log: at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:776) ~[na:1.8.0_60] openhab.log: at sun.font.SunFontManager$2.run(SunFontManager.java:431) ~[na:1.8.0_60]
And also, at the console show:
Fontconfig error: Cannot load default config file
At the end (after a lot of troubleshooting), I realise that the standard linux fonts is not present on the Sinology.
What I did (is not recommended) was copy 2 folders from my raspberry, with the follow content:
etc/fonts/
etc/fonts/conf.d/
etc/fonts/conf.d/10-scale-bitmap-fonts.conf
etc/fonts/conf.d/20-unhint-small-vera.conf
etc/fonts/conf.d/30-metric-aliases.conf
etc/fonts/conf.d/30-urw-aliases.conf
etc/fonts/conf.d/40-nonlatin.conf
etc/fonts/conf.d/45-latin.conf
etc/fonts/conf.d/49-sansserif.conf
etc/fonts/conf.d/50-user.conf
etc/fonts/conf.d/51-local.conf
etc/fonts/conf.d/60-latin.conf
etc/fonts/conf.d/65-fonts-persian.conf
etc/fonts/conf.d/65-nonlatin.conf
etc/fonts/conf.d/69-unifont.conf
etc/fonts/conf.d/80-delicious.conf
etc/fonts/conf.d/90-synthetic.conf
etc/fonts/conf.d/README
etc/fonts/fonts.conf
usr/share/fonts/
usr/share/fonts/liberation/
usr/share/fonts/liberation/LiberationMono-Bold.ttf
usr/share/fonts/liberation/LiberationMono-BoldItalic.ttf
usr/share/fonts/liberation/LiberationMono-Italic.ttf
usr/share/fonts/liberation/LiberationMono-Regular.ttf
usr/share/fonts/liberation/LiberationSans-Bold.ttf
usr/share/fonts/liberation/LiberationSans-BoldItalic.ttf
usr/share/fonts/liberation/LiberationSans-Italic.ttf
usr/share/fonts/liberation/LiberationSans-Regular.ttf
usr/share/fonts/liberation/LiberationSerif-Bold.ttf
usr/share/fonts/liberation/LiberationSerif-BoldItalic.ttf
usr/share/fonts/liberation/LiberationSerif-Italic.ttf
usr/share/fonts/liberation/LiberationSerif-Regular.ttf
usr/share/fonts/liberation/fonts.dir
usr/share/fonts/liberation/fonts.scale
After that, the RRD graphics show up as expect. I'm reporting because someone else can have the same issue, and at least have an idea what can be the problem.
My system version was:
uname -a
Linux ds-nas 3.2.40 #7393 SMP PREEMPT Thu Jun 2 19:47:23 CST 2016 i686 GNU/Linux synology_evansport_415play
org.openhab.persistence.rrd4j-1.8.3.jar
name -a
Linux OpenELEC2 4.1.18 #1 SMP Mon Feb 29 20:48:22 CET 2016 armv7l GNU/Linux
Regards,
Model name: DS414
CPU: MARVELL Armada XP MV78230
DSM version: DSM 6.0-7321
Java: 1.8.0_077
Hi @cniweb,
The package 1.8.2-DSM6-RC does not start automatically after installation.
It does not start as well after pressing "Run".
There are no messages in "View Log".
Please find attached synopkg.log - synopkg.log.txt
Using ssh I have attempted to run start.sh manually. The result is as below.
root@NaszDysk:/volume1/@appstore/OpenHAB# ls -l
total 68
lrwxrwxrwx 1 openhab root 30 Mar 28 17:17 addons -> /volume1/public/OpenHAB/addons
lrwxrwxrwx 1 openhab root 38 Mar 28 17:17 configurations -> /volume1/public/OpenHAB/configurations
drwxrwxrwx 2 openhab users 4096 Mar 28 17:17 contexts
drwxrwxrwx 2 openhab users 4096 Mar 28 17:17 etc
-rwxrwxrwx 1 openhab users 11232 Mar 21 20:44 LICENSE.TXT
drwxr-xr-x 2 openhab users 4096 Mar 28 17:18 logs
-rwxrwxrwx 1 openhab users 652 Mar 21 20:44 README.TXT
drwxrwxrwx 6 openhab users 4096 Mar 28 17:17 server
drwxrwxrwx 2 openhab users 4096 Mar 28 17:17 sounds
-rwxrwxrwx 1 openhab users 996 Mar 21 20:44 start.bat
-rwxrwxrwx 1 openhab users 1146 Mar 21 20:44 start_debug.bat
-rwxr-xr-x 1 openhab root 1132 Nov 17 2013 start_debug_runtime.sh
-rwxrwxrwx 1 openhab users 1132 Mar 21 20:44 start_debug.sh
-rwxr-xr-x 1 openhab root 930 Nov 17 2013 start_runtime.sh
-rwxrwxrwx 1 openhab users 969 Mar 21 20:44 start.sh
-rwxr-xr-x 1 openhab root 65 Nov 17 2013 stop_runtime.sh
drwxrwxrwx 4 openhab users 4096 Mar 28 17:17 webapps
root@NaszDysk:/volume1/@appstore/OpenHAB# ./start.sh
Launching the openHAB runtime...
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at sun.nio.cs.UTF_8$Decoder.decode(UTF_8.java:441)
at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:153)
at java.lang.StringCoding.decode(StringCoding.java:193)
(...)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
root@NaszDysk:/volume1/@appstore/OpenHAB#
The OpenHAB was running correctly with previous DSM 5.2 package.
Now It looks like I am missing something with new DSM 6.0.
What can I do to troubleshoot this issue?
Krzysztof
Hi there.
I am about to purchase a DS415+.
Will the 1.7 spk install and work correctly, despite being tested on the 214play, 209 and 101j?
https://github.com/cniweb/openhab-syno-spk/releases
Thanks in advance!
See: openhab/openhab-distro#318
TODO:
Would be cool to get 2.0.0-beta 1
package of openhab since it's publicly available. Since new runtime is used it may involve extra work.
Installing OH2 with configurable mounting folder "conf", "logs" and "addons"
Hi,
I downloaded the lastest release version (https://github.com/openhab/openhab-syno-spk/releases/tag/2.0.0.009-SNAPSHOT-DSM6) and tried to install it on my ds214. But there is a error at the download part.
The problem is, that the download link is brocken (404 error, Not Found)
this link works fine:
thanks
When I try to install the latest version, after uploading the 2.1.0.001 file it says: "Port undefined configured for this package is either used by another service or reserved for system use. Please disable or modify the conflicting service, or contact the developer to modify the package configuration"
I can't find any port number in the configuration files of the package, so I wonder why it complains (or does it because there is no port configuration, so "undefined"?).
The syno installation log doesn't help. I tried rebooting the DS, no change. I am surprised because at least beta3 worked flawlessly. Any idea anyone?
Hi,
great thing this packet. The installation finish good.
But the service doesn't start and with console it give me this error:
ash-4.3# sh start_runtime.sh
find: `server': No such file or directory
Launching the openHAB runtime...
ash-4.3# Error: Unable to access jarfile 5555
Do you have an idea for starting the app?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.