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

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

Closed
igorrobertifoc opened this issue Mar 25, 2016 · 31 comments
Closed

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

igorrobertifoc opened this issue Mar 25, 2016 · 31 comments
Assignees
Milestone

Comments

@igorrobertifoc
Copy link

igorrobertifoc commented Mar 25, 2016

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?

@cniweb
Copy link
Member

cniweb commented Mar 28, 2016

Hi @igorrobertifoc,

under what firmware your package runs?
This SPK Package is for DSM <= 5.2!

What a DS model you use?

Thank you for your involvement!

Chris

@cniweb cniweb modified the milestones: 2.0-beta2, DSM 6 Mar 28, 2016
@cniweb cniweb self-assigned this Mar 28, 2016
@igorrobertifoc
Copy link
Author

Hello,
Is it impossible to run 2.0Beta on DSM 6?

Thank you very much

@gittela
Copy link

gittela commented Apr 2, 2016

It's a bug with the installer. 7zip has replaced unzip with a slightly different syntax. I've added a suggested fix to installer.sh.

@cniweb
Copy link
Member

cniweb commented Apr 3, 2016

Sorry, but the openhab:2.0-beta1 branch is only for DSM 4 or 5!
A new branch for openhab 2.0 and DSM 6 is still needed...
In the DSM-6.0-beta branch is 7zip already implemented:
https://github.com/openhab/openhab-syno-spk/blob/DSM-6.0-beta/scripts/installer.sh#L79

@cniweb
Copy link
Member

cniweb commented Apr 3, 2016

I have released a new OpenHab 2.0 DSM 6 release:
https://github.com/openhab/openhab-syno-spk/releases/tag/2.0.0-beta2-DSM6-RC
Try it, please!

@gittela
Copy link

gittela commented Apr 4, 2016

I tried the beta and it installs fine, but it will not run. I can start it from by running start.sh in cli, but not from gui. It simply won't start with no error message. If I run start_runtime.sh from cli I get this:
find: `server': No such file or directory
Launching the openHAB runtime...
Error: Unable to access jarfile 5555

find -name "org.eclipse.equinox.launcher__.jar"
returns nothing, however
find -name "org.eclipse.equinox_.jar" returns
./runtime/karaf/system/de/maggu2810/p2redist/org.eclipse.equinox.registry/3.6.0.v20150318-1503/org.eclipse.equinox.registry-3.6.0.v20150318-1503.jar
./runtime/karaf/system/de/maggu2810/p2redist/org.eclipse.equinox.common/3.7.0.v20150402-1709/org.eclipse.equinox.common-3.7.0.v20150402-1709.jar
./runtime/karaf/system/de/maggu2810/p2redist/org.eclipse.equinox.supplement/1.6.0.v20141009-1504/org.eclipse.equinox.supplement-1.6.0.v20141009-1504.jar

Maybe we're missing something?

@cniweb
Copy link
Member

cniweb commented Apr 4, 2016

Hi @gittela,

another user had the same problem and could solve it by he had reinstalled Java.
Try it once, I hope it helps.

Chris

@gittela
Copy link

gittela commented Apr 6, 2016

Unfortunately that did not help. Same error. It must be noted that I'm running this on a PPC-based Synology, the DS413 and from what I can tell the latest available jre8 is 1.8.0_06. Seems that it is not being updated anymore.

If I do this on my Ubuntumachine:
howard@openhab:/opt$ locate org.eclipse.equinox.launcher | sort | tail -n 1
I get this:
/usr/lib/jvm/java-8-oracle/lib/missioncontrol/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar

This jar is not present in the OpenHAB/runtime/karaf/system/de/maggu2810/p2redist/ folder

Should it have been downloaded during install? I can always try to copy it and see...

@cniweb
Copy link
Member

cniweb commented Apr 6, 2016

Can you even look to see if the server directory actually exists?

@gittela
Copy link

gittela commented Apr 7, 2016

Yes it does. It runs if I use start.sh, it's the start_runtime.sh script that fails.

@cniweb
Copy link
Member

cniweb commented Apr 7, 2016

If you manually start the start_runtime.sh script, what is to come exactly for errors?

@mro10
Copy link

mro10 commented Apr 11, 2016

Hi @cniweb

not sure if that helps, but the output of start_runtime.sh is:

find: `server': No such file or directory
Launching the openHAB runtime...
Error: Unable to access jarful 5555

I´m not sure, but
eclipsehome="server"
seems to expect a folder "server" inside the openhab folder which does´t exist.

@Veance
Copy link

Veance commented Apr 16, 2016

Hi,

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

Have a look at /usr/local/etc/services.d/
There might be an old "OpenHAB.sc" that reserve 5555, 8081, 8443 ports, delete it and try to start openhab.

Regards

@cniweb
Copy link
Member

cniweb commented Apr 18, 2016

Can you look this:
netstat -an | grep 5555

Chris

@nikolay-nikonov
Copy link

Hello,

I have the same problem: Synology DS 214 play
DSM 6.0-7321 Update 2
Java version 1.8.0_60

ash-4.3# ./start_runtime.sh
find: `server': No such file or directory
Launching the openHAB runtime...
Error: Unable to access jarfile 5555

netstat -an | grep 5555

shows nothing, I'm sure that this port is not occupied.

/usr/local/etc/services.d/* files does not contain anything about this port. I have a fresh installation of openHAB

By doing:
ls runtime/karaf/system/de/maggu2810/p2redist/
I see no org.eclipse.equinox.launcher directory. Is this a part of OpenHab package or it should be in Java?

@dmihhailov
Copy link

dmihhailov commented Apr 21, 2016

I also have the same issue.
Running DSM 6 update 2. Installed Java 8, OpenHAB2 2.0.0-beta2-DSM6-RC

[update]
Resolved by manually downloading equinox, copying it to the the OpenHAB folder, renaming equinox folder to server and changing start_runtime.sh to have:
eclipsehome="server/plugins";

however now I am stuck with the fact that web ui is not available, netstat shows no open ports

@igorrobertifoc
Copy link
Author

Hello dmihhailov,
can you explain? Where did you download equinox?

@igorrobertifoc
Copy link
Author

Ok,
if I use start.sh instead of start_runtime.sh then it work.
How to use this command from the UI of synology

@siberski
Copy link

siberski commented Jun 1, 2016

seems that start_runtime.sh has not been adapted to OpenHAB2. It should probably start runtime/karaf/bin/server, but still tries to find equinox.

@crystollic
Copy link

crystollic commented Jun 2, 2016

A while ago I changed start_runtime.sh as below and it stops/starts from the Synology UI. I fiddled with other stuff too and was't sure what else I changed to get it working.

DIRNAME=dirname "$0"
${DIRNAME}/runtime/karaf/bin/karaf "${@}" > logs/openhab.stdout &

i commented out the PROGRAM=java bit!

@cniweb
Copy link
Member

cniweb commented Jun 2, 2016

OK, I think, we must use start.sh.
Can anyone try it, please?
Then I change the command in start-stop-status.sh script.

Thanks,
Chris

@siberski
Copy link

siberski commented Jun 3, 2016

What @crystollic wrote looks good. I'll try during the next few days. Not sure if we can directly use start.sh, because that starts the OpenHAB terminal. I'm new to OpenHAB, but assume that there is some 'headless' mode (i.e., without input options). Also, not sure how to stop OpenHAB when starting it with start.sh.

@igorrobertifoc
Copy link
Author

If you close the ssh terminal you terminate openhab if started on command
line. I think if you link this command to synology all will work (hope so )

Bye and thanks
Il 03/Giu/2016 21:13, "Wolf Siberski" notifications@github.com ha scritto:

What crystolic wrote looks good. I'll try during the next few days. Not
sure if we can directly use start.sh, because that starts the OpenHAB
terminal. I'm new to OpenHAB, but assume that there is some 'headless' mode
(i.e., without input options). Also, not sure how to stop OpenHAB when
starting it with start.sh.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#17 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA972f8GGSV-d5DUPn1Xij0u-hjTfzTpks5qIHzPgaJpZM4H4-nF
.

@cniweb
Copy link
Member

cniweb commented Jun 8, 2016

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

@cniweb
Copy link
Member

cniweb commented Jun 8, 2016

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

@cniweb
Copy link
Member

cniweb commented Jun 9, 2016

Hi @igorrobertifoc,

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

@igorrobertifoc
Copy link
Author

Hi, is changed only the port. But the system don't work very well

@cniweb
Copy link
Member

cniweb commented Jun 10, 2016

Hi @igorrobertifoc,

this project only support the installation of openHAB an a Synology Diskstation.
What works "very well" exactly?

Thanks for your feedback,
Chris

@igorrobertifoc
Copy link
Author

igorrobertifoc commented Jun 12, 2016

Hello,
i'm sorry for the last short reply and I tank you for your work.
the problem is it very slow on 216play and all servicies are not up. After 15 minutes of start, the start page doesn't show all options. I don t know what happen, If there is a log file I can send to you.

Thanks

@cniweb
Copy link
Member

cniweb commented Jun 15, 2016

Hi @igorrobertifoc,

I think you must de install the package complete and re install it.
A log file can you found in /volume1/@appstore/OpenHAB/logs/

Chris

@cniweb cniweb modified the milestones: 2.0-SNAPSHOT, 2.0-beta2 Oct 17, 2016
@cniweb
Copy link
Member

cniweb commented Oct 17, 2016

Hi,

we fix the logfile path: #28
and update to 2.0-SNAPSHOT release of OpenHAB2.

Chris

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

No branches or pull requests

9 participants