Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openHAB 2 not starting on Synology NAS 209 #83

Closed
mistermaek opened this issue Jul 27, 2017 · 23 comments
Closed

openHAB 2 not starting on Synology NAS 209 #83

mistermaek opened this issue Jul 27, 2017 · 23 comments
Labels

Comments

@mistermaek
Copy link

mistermaek commented Jul 27, 2017

Hi there,
i tried also via ssh to start the runtime by the script start.sh but it failed with the following error:

../start.sh: exec: line 6: ../runtime/bin/karaf: not found

Aferwards i check the folder runtime/bin and there is no karaf at all, there is only a contrib folder!

Any ideas?
Thx in advance for your help.

@cniweb
Copy link
Member

cniweb commented Jul 27, 2017

Hi @mistermaek What version of DSM are you using and which package version do you use?

@mistermaek
Copy link
Author

Hi, the DSM Version is 4.2 and the package version is 2.2.0.005-SNAPSHOT.

@mistermaek
Copy link
Author

anyone an idea why it doesn't work?

@SchoppAx
Copy link
Collaborator

Hi @mistermaek,

at the moment we are testing the new prerelease 2.2.0.006, which will include a install.log file. We hope that this new implementation will help us to analyze your problem.

You are welcome to join the tests: https://github.com/SchoppAx/openhab-syno-spk/releases/tag/2.2.0.006-SNAPSHOT

Post the new logfile located in /var/packages/openHAB2/install.log (check the log before you close the install wizard)

@Kondratiy
Copy link

Same bug DSM 5.2-5967

@SchoppAx
Copy link
Collaborator

SchoppAx commented Aug 1, 2017

@mistermaek and @Kondratiy,

please use the new release and post your /var/log/openHAB2-install.log content.

@mistermaek
Copy link
Author

Hi,
i tried with the new release but still the same behaviour. Installation done successful but not possible to startup the application. I attached the logfile you asked for.

grafik

@SchoppAx
Copy link
Collaborator

SchoppAx commented Aug 5, 2017

Yeah, there is an bug by getting the share location on < DSM 6. We have a fix for that coming soon ;-)

@mistermaek
Copy link
Author

Hi there,
sounds great. Can you saiy approx. when it will be?
If it'll take longer i try to get the whole thing running on a raspberri.
Thx.

@SchoppAx
Copy link
Collaborator

SchoppAx commented Aug 6, 2017

@mistermaek
Copy link
Author

Hi SchoppAx,
please find attached the log file after trying to run the application.

grafik

@SchoppAx
Copy link
Collaborator

SchoppAx commented Aug 7, 2017

Oh, i forgot the exit after the error message.

I changed the container file back to .zip, because the tar command doesn't extract all files under <= DSM 5.2. So you need a tool to extract a .zip container like unzip or 7z. The .spk will check for these two commands. If none of the two is found you become this error.

Do you have unzip installed? Then please open a terminal session and run these command: echo "$(command -v unzip)" and post the output.

Or tell me which tool your syno use ;-)

@mistermaek
Copy link
Author

mistermaek commented Aug 7, 2017

Hi,
it is both installed. unzip and 7z. See the version info of 7z attached.

grafik
It is located under /usr/syno/bin/7z

Also unzip is installed.

grafik

@cniweb
Copy link
Member

cniweb commented Aug 7, 2017

I can confirm this (on DSM 4.2 and 5.2)

The 7zip on DSM 5.2 is the following version:

7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_US.utf8,Utf16=on,HugeFiles=on,1 CPU)

@SchoppAx
Copy link
Collaborator

SchoppAx commented Aug 7, 2017

Ok, this is strange. Can you please run the following commands:
if [ -x "$(command -v unzip)" ]; then echo "unzip is executable." fi
and
if [ -x "$(command -v 7z)" ]; then echo "7z is executable" fi

These are the conditions to extract the container.

thx

@mistermaek
Copy link
Author

Hi,
i tried to run the coomands you send, but it seems that it is not working correctly as the entry pointer ">" is directly appearing after i press return. I attached also the screenshot. Have i done anything wrong?

grafik

@SchoppAx
Copy link
Collaborator

SchoppAx commented Aug 8, 2017

Sorry, you have to write it line by line

if [ -x "$(command -v unzip)" ]; then
  echo "unzip is executable."
fi

or add a semicolon

if [ -x "$(command -v unzip)" ]; then echo "unzip is executable."; fi

@SchoppAx
Copy link
Collaborator

SchoppAx commented Aug 8, 2017

The command command is unknown on DSM 4, 5.

We fixed it, but still get the karaf not found error. It seams there is a problem by executing the bash script. We will look for a fix.

@mistermaek
Copy link
Author

@SchoppAx Any news about this issue with the karaf not found error?

@SchoppAx
Copy link
Collaborator

SchoppAx commented Sep 5, 2017

Hi @mistermaek,

please check out my new pre-release: https://github.com/SchoppAx/openhab-syno-spk/releases/tag/2.2.0.007-SNAPSHOT

I installed this version on my virtual DSM 5 machine. karaf is now there.
Now I get the error that the Port 8080 is already in use. At the moment I haven't time to check the VM.

So please run the package on your DS :-)

@SchoppAx
Copy link
Collaborator

SchoppAx commented Sep 5, 2017

Ok,

openHAB is running on DSM 5, but this line https://github.com/SchoppAx/openhab-syno-spk/blob/a616c0107486e6c0d4042ad1ed66c844b5c6d201/scripts/start-stop-status.sh#L84 doesn't work on DSM 5.
ps | grep "openhab2.*java" | awk '{print $1}' will work 😒

@SchoppAx
Copy link
Collaborator

SchoppAx commented Sep 6, 2017

@mistermaek
Copy link
Author

Hi SchoppAx,
thanks a lot. It works now. The only thing left is that i do not reach the configuration under http://myip:8080.
But this can also be that some program on the nas is blocking this port already.

@cniweb cniweb closed this as completed Sep 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants