Giter VIP home page Giter VIP logo

openhab-syno-spk's Introduction

openhab-syno-spk - Synology DSM Software Package

This project build a Synology DiskStation SPK install package for openHAB (Home Automation Server).

Comments, suggestions and contributions are welcome!

License

These packaging files are licensed as follows: LICENSE Please inform yourself of the other licenses used by the software which come with openHAB and openHAB itself. While using these packaging files and all contents of resulting software package, you agreee with all licenses included.

Download

Download the SPK package from the releases section and follow the instructions below.

Documentation

Prerequirements

  • Download the SPK from our project package. You will find per OpenHAB release one download. The package comes with all required software.
  • (Backup and) uninstall the previous installation based on our old package. You can identify the old package by it's icon.
    image

Installation

  1. Open your "Package Center" and click on the "Manual Install" button to start the install using the SPK file you have downloaded.
    Screenshot_20210104_194226

  2. Click on the "Browse" button and select the SPK file you wish to install.
    Screenshot_20210104_194650

  3. Configure your installation by making adjustments on the following pages. Generally we recommend to keep the default settins. Especially on the expert pages.

  4. Confirm the installation

  5. Optional: Register the Z-Wave script to be executed on system start. It is required to give OpenHAB permissions to access your dongle.

    1. Open your "Control Panel"
      Screenshot_20210126_204910
    2. Choose "Task Scheduler"
      Screenshot_20210126_212029
    3. Create a new "Triggered Task" based on a "User-defined script".
      Screenshot_20210126_212128
    4. Call the rule "openHAB Enable serial", choose as user root and ensure the event "Boot-up" is selected.
      Screenshot_20210126_212319
    5. Continue in the "Task Settings" tab and insert 'bash /var/packages/openHAB/target/helper/serial-enable.sh' as user-defined script.
      Screenshot_20210126_212343
    6. You can find the content of the script for technical details here in the repo.

Troubleshooting

The openHAB log files can be found here:

  • /var/log/packages/openHAB.log - Made by Synology's software center
  • /var/packages/openHAB/userdata/logs/ - General logs made by openHAB instance
  • /var/packages/openHAB/openHAB.log - Log made by the service management

Contributing

GitHub issues GitHub forks GitHub stars

Contribution guidelines

Useful links:

openhab-syno-spk's People

Contributors

andre2308 avatar b4dt0bi avatar cniweb avatar filipcynarski avatar gitter-badger avatar hilmarf avatar ingof avatar jaghatei avatar petermorlion avatar rkrausen avatar schoppax avatar thopiekar avatar tknaller avatar tosa27 avatar wborn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openhab-syno-spk's Issues

Cannot install 2.1.0.001 on DS213

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?

Startup error on DS214+ (Karaf)

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)

No Service created after installation

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!

DSM 6 and OpenHAB-2.0.0-beta2-syno-noarch-0.001.spk

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?

2.0b3: Can't get OH2 to communicate with the Z-Wave stick

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

"Invalid file format" for 1.8.2-DSM6-RC

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:
capture

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

site can't be reached

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.
sad

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:
packages

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.

openhab user not created

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.

1.8.1 Package unstoppable

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?

RRD does not work - java null exception

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:

  • Sinology:
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
  • RRD library:
org.openhab.persistence.rrd4j-1.8.3.jar
  • Raspberry:
name -a

Linux OpenELEC2 4.1.18 #1 SMP Mon Feb 29 20:48:22 CET 2016 armv7l GNU/Linux

Regards,

Support a DSM 6 package

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

Installation of 2.0.0-beta2-DSM6-RC fails

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

User management integration

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).

Add OpenHab 2.0-beta package

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.

version 1.8.3

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.

The package 1.8.2-DSM6-RC does not start

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

Unable to install OpenHAB-1.8.2 on Diskstation with DSM 5.2-5664 Update 8

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

Make links to 'conf' 'addons' 'logs'

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 

Synology DS213+ and OpenHab 2.0.0.002-beta2 not running

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?

Make Port configurable

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.

Installation on DSM 6.0.2 fails

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

Could we have a master?

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?

PIDFILE never defined ?

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 ...

link addons and conf data to /volume1/homes/openhab2/

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

openHAB2 conf at /volume1/openHAB2/conf does not work

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.

Wrong Timezone in DSM 6.0

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.

karaf console not running on OH2

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]

install error with lastest version (2.0.0.009-SNAPSHOT-DSM6)

1.8.3-DSM6 sitemap 'default' unreachable by user 'openhab'

I am encountering the following problem on my DS213j:

  • my configuration and addons folders are placed in /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

  • when I run start_runtime.sh inside /volume1/@appstore/OpenHAB from the command line as root everything work perfectly. The default sitemap is recognised, etc.
  • when I start the service form the DSM6 interface, the service starts (confirmed by a 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?

Invalid File Format

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

Wrong timezone in openhab on synology

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

Installation on DSM6.0.2 fails with 'Port undefined configured...'

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

  • OpenHAB-2.0.0-beta3-DSM6-syno-noarch-0.001.spk
  • OpenHAB-2.0.0.007-SNAPSHOT-DSM6-syno-noarch-0.001.spk
  • OpenHAB-1.8.3-DSM6-syno-noarch-0.001.spk

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

Failed to install "openHAB2"

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.

2.0.0-beta3-DSM6 - confusing for configuration

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.

2.0.0-beta2-DSM6-RC not starting via package manager

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.