openhab / openhab-syno-spk

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

Synology DS213+ and OpenHab 2.0.0.002-beta2 not running #21

Closed erkobg closed 8 years ago

erkobg commented 8 years ago

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?

erkobg commented 8 years ago

When I run sudo sh start_runtime.sh I receive :

Launching the openHAB runtime... Error: Unable to access jarfile 5555

pedeho commented 8 years ago

Hello erkobg Having the same problem on my DS212j. Replaced 1.8 with 2.0.0-beta2-DSM6-RC. Could not start from package manager but could start with start_runtime.sh. Tried to reinstall the RC but ended up with not able to run it at all. Wonder if DS212j and DS213+ have something missing since it seems to run on some other stations

cniweb commented 8 years ago

Hi @pedeho,

can please look at your, if the port is not already in use 5555? netstat -an | grep 5555

Chris

bytedealer commented 8 years ago

Hi,

same problem: DSM 6, openhab 2, same message as @erkobg.

No port in use after executing netstat (as above mentioned).

bytedealer commented 8 years ago

Ok, some more info.

I also get the error: find: `server': No such file or directory

Call coming from startruntime.sh: `cp=$(find $eclipsehome -name "org.eclipse.equinox.launcher*.jar" | sort | tail -n 1);`

The call coming from start.sh is okay: exec "${DIRNAME}/runtime/karaf/bin/karaf" "${@}"

So my assumption is that the call from startruntime.sh does not find any org.eclipse.equinox.launcher*.jar Is there a library like this anymore?

igorrobertifoc commented 8 years ago

Yes, if I use start.sh all is working

cniweb commented 8 years ago

OK, thanks. I change it in the start-stop-status.sh script in the next release!

cniweb commented 8 years ago

Hi @erkobg,

can you try /volume1/@appstore/OpenHAB/start.sh, too?

Chris

erkobg commented 8 years ago

Hello, thanks for the updates. I downloaded the latest release and manually installed.

Then started it through Package Center. Port 8443 was in use so uninstalled the app which was using it and the run OpenHab again from Package Center - and it is with status Running!!!!!!

accessing the website it says : Problem accessing /openhab.app. Reason: Sitemap 'default' could not be found

which shows that OpenHab is running!

Thanks!

cniweb commented 8 years ago

Can you try Release 2.0.0-beta3-DSM6, please? And it´s OK, then I can close this Issue?

erkobg commented 8 years ago

Installed the beta - status is running - but strange thing it was saying that service is running on port 8082 accessing the URL http://myip:8082/openhab.app - says site can't be reached

Any idea why?

cniweb commented 8 years ago

Try Port 8081, please?

erkobg commented 8 years ago

Already did : http://myip:8081/openhab.app This site can’t be reached

cniweb commented 8 years ago

hmm, OK, Port 8080 ? https://github.com/openhab/openhab-distro/blob/4c94da3f45b5ca414bbe49da23a6ac81b761f84f/distributions/distribution-resources/src/main/resources/bin/setenv#L57 Show netstat -an

erkobg commented 8 years ago

Yes it was 8080 was redirected to : http://myip:8080/start/index which gave me Welcome to openHAB 2.0

cniweb commented 8 years ago

OK, I is a Environment variables OPENHAB_HTTP_PORT. It is not set, then 8080 is default! I change the Port it in the INFO file from package, OK?

erkobg commented 8 years ago

Yes - I think default to 8081 will be better... ( old one was like this by default)

cniweb commented 8 years ago

I change the Port in the INFO file from package to 8080, this is default!

Here is a another Issue for a Port definition in the Package Admin UI: https://github.com/openhab/openhab-syno-spk/issues/15

cniweb commented 8 years ago

Hi @erkobg,

I released a new Package: https://github.com/openhab/openhab-syno-spk/releases/tag/2.0.0-beta3-DSM6

Try please and give me feedback, then I can close this Issue.

Thanks

erkobg commented 8 years ago

Hello @cniweb, downloaded and installed :

Cheers!

cniweb commented 8 years ago

Thanks

dikkedimi commented 7 years ago

I installed 2.0.0-beta3.spk on a DS411j and I'm also getting the "Site can't be reached" error. Already tried starting using ./start.sh, returns the following:

admin@dev:/volume1/@appstore/OpenHAB2$ ./start.sh Launching the openHAB runtime... Unable to update instance pid: /volume1/@appstore/OpenHAB2/runtime/karaf/instances/instance.properties (Permission denied) /volume1/@appstore/OpenHAB2/userdata/logs/openhab.log (Permission denied) Unable to update instance pid: /volume1/@appstore/OpenHAB2/runtime/karaf/instances/instance.properties (Permission denied) admin@dev:/volume1/@appstore/OpenHAB2$

dikkedimi commented 7 years ago

after running sudo ./start.sh, the server started up. It was still giving the "Site can't be reached error". After that I ran it again through the package center interface, and now the error has changed to a 404, as is visible in this image this