OpenHAB2 installation issue on Synology DSM 6.2.1

Hi,
I start the installation of OpenHAB2 ( 2.3.0.005 on my new DS119j running DSM 6.2.1.
After the installation following https://www.youtube.com/watch?v=ZsoxQfre-yI, my system becomes crazy (permanent disk access).
Now looking at the release notes I see that the latest supported DSM version is 6.0.
I couldn’t find currently the way to downgrade the DSM version, so I am trying to reinstall everything from scratch to confirm this issue on DSM 6.2.1.
In the mean time, does somebody knows if DSM 6.2.1 could be an issue?

Thanks in advance
Robert

it was never an issue for me. make sure you have the right java

2nd trial same problem.
No way to install it (following the procedure openHAB2 on Sysnology DS119J DMS 62.1)
After 2 houses my disk is still running as crazy (good disk test …) .
OpenHAB Here are some logs if this may help

 Robert@Home_Server:/var/log$ more  openHAB-install.log
#### S T A R T  -  o p e n H A B  S P K ####
2018-12-26:17:35:35

Set instance variables...
  public:    true
  smarthome: false
  home:      false
  TMPFS:     false
  Z-Wave:    false
  port:    8443
  tmp:    /volume1/@tmp
  share:  
  oh:     /openHAB
  backup: -backup-201812
done
User that exec the Installation
root
Start preinst...
  Found java executable in PATH
  Java version 1.8.0_161
  Version is more than 1.8
  The User Home service is enabled. UH_SERVICE=yes
  ERROR:
  A shared folder called '' could not be found - note this name is case-sensitive. 
  Please create this using the Shared Folder DSM Control Panel and try again.
#### S T A R T  -  o p e n H A B  S P K ####
2018-12-26:17:39:01

Set instance variables...
  public:    true
  smarthome: false
  home:      false
  TMPFS:     false
  Z-Wave:    false
  port:    8443
  tmp:    /volume1/@tmp
  share:  
  oh:     /openHAB
  backup: -backup-201812
done
User that exec the Installation
root
Start preinst...
  Found java executable in PATH
  Java version 1.8.0_161
  Version is more than 1.8
  The User Home service is enabled. UH_SERVICE=yes
  ERROR:
  A shared folder called '' could not be found - note this name is case-sensitive. 
  Please create this using the Shared Folder DSM Control Panel and try again.
#### S T A R T  -  o p e n H A B  S P K ####
2018-12-26:17:47:16

Set instance variables...
  public:    false
  smarthome: true
  home:      false
  TMPFS:     false
  Z-Wave:    false
  port:    8443
  tmp:    /volume1/@tmp
  share:  /volume1/SmartHome
  oh:     /volume1/SmartHome/openHAB
  backup: -backup-201812
done
User that exec the Installation
root
Start preinst...
  Found java executable in PATH
  Java version 1.8.0_161
  Version is more than 1.8
  The User Home service is enabled. UH_SERVICE=yes
  The shared folder '/volume1/SmartHome' exists.
  Get new version
  Processing openhab-2.3.0.zip
done
#### S T A R T  -  o p e n H A B  S P K ####
2018-12-26:17:47:30

Set instance variables...
  public:    false
  smarthome: true
  home:      false
  TMPFS:     false
  Z-Wave:    false
  port:    8443
  tmp:    /volume1/@tmp
  share:  /volume1/SmartHome
  oh:     /volume1/SmartHome/openHAB
  backup: /volume1/@appstore/openHAB-backup-201812
done
User that exec the Installation
root
Start postinst...
  Create 'openhab' daemon user
  Install new version
    Extract openhab-2.3.0.zip
    Move files to /volume1/@appstore/openHAB
No TMPFS Install needed
  Fix permissions
done
No Z-Wave Wanted


Robert@Home_Server:/var/log$ more openHAB-start_stop.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.

I start the installation over and over again even (different directories) after a full reset of my server. If the installation looks ok (i can open and stop openHAB). The disk activity is constant and I can’t acess the web interface. I know that Openhab likes to log a lot, but I couln’t find any relevant log files egarding this problem.
Any ideas how I should be able to debug this issue?
Robert

Looking at the log file after the installation (without running it) everything looks OK see log file below
Note that I am using Java: 8.0.161-0015.
First thing I don’t understands is that in my case the file: SmartHome/openHAB is empty, while the data files are actually copied to /volume1/@appstore/openHAB

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

2018-12-29:10:39:40

Set instance variables…
public: false
smarthome: true
home: false
TMPFS: false
Z-Wave: false
port: 8443
tmp: /volume1/@tmp
share: /volume1/SmartHome
oh: /volume1/SmartHome/openHAB
backup: /volume1/@appstore/openHAB-backup-201812
done
User that exec the Installation
root
Start postinst…
Create ‘openhab’ daemon user
Install new version
Extract openhab-2.3.0.zip
Move files to /volume1/@appstore/openHAB
No TMPFS Install needed
Fix permissions
done
No Z-Wave Wanted

Starting OpneHAB in debug mode gives
Robert@Home_Server:/volume1/SmartHome/openHAB$ ./start_debug.sh
Launching the openHAB runtime…
Listening for transport dt_socket at address: 5005

and then nothing unless 100% disk activity

Hey tramlaan,

when you chose the configpath at installation to public or smarthome, you must create these folders before installation:

for Public:
public/openHAB/addons
public/openHAB/conf
public/openHAB/userdata

for SmartHome:
SmartHome/openHAB/addons
SmartHome/openHAB/conf
SmartHome/openHAB/userdata

as the above guy said, make those folders.

also, can you ssh to the machine when it’s going bonkers?

Thanks guys, but theses files are created (have a careful readings of the Log file) and I have tried all the different installation possibilities with different packages versions), even by copying manually the OpenHAB files in the correct directory and started it manually (note that I have already some experience with OPENHAB 1 since 2 years on my Raspberry PI without major issue).
My purpose is to move from Raspberry to Synology (and unfortunately have to install OpenHAB2 on a stripped down UNIX system)

So as summary, in all the cases, OpenHAB is starting and a PID is created, but the log OpenHab log file is still empty.
The issue is that when started there is a 100% disk activity that doesn’t stop, and I have no clue which process is causing this activity (perhaps Java, because I see lot of JAVA processes coming in and out).

So currently I confirm that OpenHAb in is not working on my Synology station, perhaps:
the installation package is not correctly tested
or was not tested with the last Java version
Robert@Home_Server:~$ java -version
openjdk version “1.8.0_161”
OpenJDK Runtime Environment (IcedTea 3.7.0) (linux-gnu build 1.8.0_161-b12)
OpenJDK 64-Bit Server VM (build 25.161-b12, mixed mode)
or was not tested with DSM 6.2.1
DSM 6.2.1-23824 Update 2
or there is an issue with the new DS119j processor
CPU MARVELL Armada 3720 88F3720

Will that machine run docker?

As far as I can read from the Docker supported model, Ds119j is not supported … yet.
Why?

Hey… Iam use a Synology, too.


I think the Problem is the openjdk and 64Bit.

In the Forum are several Threads with isusse on 64Bit Java. Can you please install a 32bit Version?

The latest Oracle Java is 191.
in the synocomunity Repo for dsm Packagemanager is an Java 8 installer for 181. should run Fine, iam using it too, on a DS216play.

https://synocommunity.com/

Edit: can you Post the synopkg logfile when you Start openHAB?

Hi Andre,
Unfortunately I was not able to find another version of JAVA than the one proposed by the installation package.
I did reinstall openHAB from scratch, please find attached a document with the step by step approachSynology OpenHAB.pdf (591.4 KB)
and associated log files.
synopkg-after_start.log (25.3 KB)
synopkg-no_start.log (24.7 KB)
pid.log (24.5 KB)

Thankyou for the log and the pdf.

As posted in #7 when you install the userdata in Public or smarthome, you Must create the folders ./openHAB with subdirectorys addons, conf and
userdata.
Sorry Postet the wrong repo.

I use this for Java https://pcloadletter.co.uk/2011/08/23/java-package-for-synology/
Please take care you use 32bit Version from Java!

Ok, I din’t payed attention of the need of creating subdirectories to the SmartHome/openHab one (which is not actually specified in the youtube installation guide Line) and because this is not the major issue.
I will try it tomorrow using the recommended version of Java and will keep you posted.
Thanks already for your support.
Robert

Unfortunately this is not working, the only package I can get (available from my MARVELL armada 3720 which is ARM/V8 ) from PCLoadLetter.co.uk is OpenRemote.
The only Java Version I can get is the one proposed by Synology
Robert

Hmm okay…

Today i found this… https://github.com/rednoah/java-installer. I havent it tested. Maybe this works.

How long did you wait after you started openHAB? At the first startup there are several files created and downloaded… (Bindings, etc…)

Have you tried to access the Dashboard?

Have you check the message file for errors when you Start?
Can be found in /var/log.

Andre,
In most of my trials I let the installation start the openHAB application (so nearly immediately after the installation).
In the last test described in my previous post, I started from the WEB interface few minutes after dumping all the log messages (system was quite, no pending activities).
From the Dashboard I see that openHAB is running, I can stop it and uninstall it, but I have no access on the WEB interface.
I event started from the command shell in debugging mode, openHAB starts without significant logging even in /var/log. Immediately after openHAB starts the disk activity goes to 100%, system becomes very slow and nothing happens (even after 2 hours). openhab.log and event.log are created but are empty.
I am convinced that the issue is JAVA, however on the JAVA site I couln’t find a version for ARM/V8. I see that the unofficial installer version proposed in your reply seems to support ARM/V8. I will try that one.
NB:
I have post this issue on the Synology forum, but without success for the time being.
Thanks for your support
Robert

Bad news, after installation of the new java version 8.191 ,the problem still the same.
Some progress however after creation of the subfoldesr under SamrHome/openHAB, the files are correctly copied.
Still that I have no log messages.

I don’t know if this is relevant, but when staring OH in debug mode I have (however changing the permission of these files didn’t help)

Robert@Home_Server:/volume1/@appstore/openHAB$ ./start_debug.sh
Launching the openHAB runtime...
Listening for transport dt_socket at address: 5005
Unable to update instance pid: /volume1/SmartHome/openHAB/userdata/tmp/instances/instance.properties (Permission denied)
java.lang.RuntimeException: Exception instantiating lock class org.apache.karaf.main.lock.SimpleFileLock
Karaf can't startup, make sure the log file can be accessed and written by the user starting Karaf : /volume1/SmartHome/openHAB/userdata/tmp/lock (Permission denied)
	at org.apache.karaf.main.Main.createLock(Main.java:490)
	at org.apache.karaf.main.Main.doMonitor(Main.java:388)
	at org.apache.karaf.main.Main.access$300(Main.java:75)
	at org.apache.karaf.main.Main$3.run(Main.java:379)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.apache.karaf.main.Main.createLock(Main.java:486)
	... 3 more
Caused by: java.lang.RuntimeException: Karaf can't startup, make sure the log file can be accessed and written by the user starting Karaf : /volume1/SmartHome/openHAB/userdata/tmp/lock (Permission denied)
	at org.apache.karaf.main.lock.SimpleFileLock.<init>(SimpleFileLock.java:55)
	... 8 more
Caused by: java.io.FileNotFoundException: /volume1/SmartHome/openHAB/userdata/tmp/lock (Permission denied)
	at java.io.RandomAccessFile.open0(Native Method)
	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
	at org.apache.karaf.main.lock.SimpleFileLock.<init>(SimpleFileLock.java:53)
	... 8 more

Okay now this looks like your problem…

I’am sure you allready tryed this:
chmod -R 777 on openhab root directory and on your conf path (smartHome)

run in debug as root via sudo.

what brings java -version back?