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

No Service created after installation #35

Closed
Skostrub opened this issue Oct 5, 2016 · 58 comments
Closed

No Service created after installation #35

Skostrub opened this issue Oct 5, 2016 · 58 comments
Assignees
Projects
Milestone

Comments

@Skostrub
Copy link

Skostrub commented Oct 5, 2016

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!

@Skostrub Skostrub changed the title No Service creaated after installation No Service created after installation Oct 5, 2016
@cniweb cniweb added this to the 2.0-SNAPSHOT milestone Oct 9, 2016
@cniweb
Copy link
Member

cniweb commented Oct 9, 2016

Hi @Skostrub

I create this days a new release for 2.0-SNAPSHOT.
Can you testing, please?

Thanks,
Chris

@Skostrub
Copy link
Author

Yes, sure!

Thanks for your efforts a lot.

BR, Sergei

Christian Häussler notifications@github.com 9 октября 2016 г. 22:51:50
написал:

Hi @Skostrub

I create this days a new release for 2.0-SNAPSHOT.
Can you testing, please?

Thanks,
Chris

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#35 (comment)

@Baumi1245
Copy link

2.0-SNAPSHOT-DSM6 not working at all
only 3 files are installed at /volume1/@appstore/OpenHAB2 (start_debug_runtime.sh, start_runtime.sh, stop_runtime.sh)

To get beta3 running i had to set the rights to r/w of the public folder for openHAB2 and also set the owner of the files there to openHAB2.

@Skostrub
Copy link
Author

A can also confirm that 2.0-SNAPSHOT-DSM6 is not alive yet.

No start.sh file installed

Start/stop in GUI shows "Running" but it is far from truth.
Log folder is not created due to permissions restrictions.

In terminal mode:
root@DS:~# su -s /bin/sh - openhab -c "/var/packages/OpenHAB2/target/start_runtime.sh"

mkdir: cannot create directory ‘logs’: Permission denied
find: `server': No such file or directory
Launching the openHAB runtime...
/var/packages/OpenHAB2/target/start_runtime.sh: line 25: /var/services/homes/openhab/.daemon.pid: Permission denied

@Baumi1245
Copy link

Looks like there is a "/" to much in the download-path (the last one):
DOWNLOAD_PATH="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-offline/target/"

But i still can´t get it running - maybe because of the rights, owner and group within the .sbk?!
Who is "travis"??? ;-)

CU

@Baumi1245
Copy link

Yes, that did it - just extrakt the .sbk from the zip and install it....

OpenHAB-2.0-SNAPSHOT_a-DSM6-syno-noarch-0.002.zip

@Skostrub
Copy link
Author

Installed!

But still not working.
Any help is much appreciated.

Do I need to copy manually addons and conf?
This folders are empty now.

@Baumi1245
Copy link

Baumi1245 commented Oct 12, 2016

You need the Folders
/volume1/public/OpenHAB2/conf
/volume1/public/OpenHAB2/addons
to work with i.e. openHab Designer.

No need to install addons manualy - they can be installed from the Paper UI.
Copy your old config - maybe it already works, maybe not - im new at openHab. I added Things/Items with the Paper UI and created rules with the Designer.

  1. uninstall OpenHAB
  2. create folders
  3. install OpenHAB
  4. stop OpenHAB
  5. give OpenHAB the rights to R/W the folder public
  6. start OpenHAB
  7. wait one or two minutes
  8. make OpenHAB the Owner of /volume1/public/OpenHAB2 - maybe you don´t have to, then please tell me

@Skostrub
If this doesn´t help, tell what exactly is not working.
Please with a screenshot, so others can learn.... THX

BTW: @cniweb
Why "public" and nothing like "/volume1/SmartHome/OpenHAB2"?

@cniweb
Copy link
Member

cniweb commented Oct 13, 2016

Hi @Baumi1245

public comes from DSM <= 5.2
I update the DSM 6 package to /volume1/SmartHome/OpenHAB2,
and I fix the DOWNLOAD_PATH with no / at end,
and I fix the start-script to start_runtime.sh, OK?

Thanks,
Chris

@Baumi1245
Copy link

Baumi1245 commented Oct 14, 2016

Hallo Chris und erstmals danke für deine Bemühungen!

Ich glaube irgendwo gelesen zu haben, daß du keine Syno hast....
ich schreib dir jetzt mal auf deutsch - in englisch krieg ich die Menge
nicht hin ;-)

In meiner Installations-Anleitung habe ich natürlich was vergessen!
aber von vorne:

Installiere ich ohne die Ordner in "public" werden "addons" und "conf"
in "@appstore" installiert - mit allen Dateien und Ordnern die
mitgeliefert werden.

Installiere ich mit den Ordnern "/volume1/public/OpenHAB2/conf" und
"/volume1/public/OpenHAB2/addons" wird bei der installation auf diese
Ordner verlinkt aber dort keine weiteren Daten abgelegt, da ja OpenHab
noch keine Rechte hat, dort was reinzuschreiben.
Jetzt sind die Ordner natürlich leer - und das wäre das, was ich
vergessen habe - ich hab den inhalt dort nochmal gelöscht um von 0 zu
beginnen - OH läuft, aber man steht halt wirklich mit 0 da und kann
garnichts mit dem Desinger machen, da dieser seine Dateien braucht.

Könnte man bei der Installation nicht einfach noch in "homes/openhab2"
diese dateien speichern lassen, damit der "Anfänger" diese dann auch hat?
Da dieses Verzeichnis OH gehört sollten dort im Laufe der Installation
Daten beschrieben werden dürfen; nach einer Deinstallation von OH
verschwindet dieses Verzeichnis wieder - ist also nicht für die
dauerhafte Auslagerung geeignet.

  1. uninstall OpenHAB -wegen der korrekten Verlinkung, ansonsten mit 2
    beginnen
  2. create folders
  3. install OpenHAB
  4. stop OpenHAB
  5. give OpenHAB the rights to R/W the folder public - jetzt sollte
    dann ein Anfänger die Daten vom home-ordner kopieren, damit er auf
    den gleichen Stand wie andere Anfänger auf anderen Systemen ist.
  6. start OpenHAB
  7. wait one or two minutes

das wäre jetzt vermutlich der einfachste weg zum Programmieren -
alternativ: bei start von OH (punkt 6) den Inhalt der ordner in "public"
prüfen und gegebenenfalls die fehlenden daten vom script reinkopieren
lassen.

I update the DSM 6 package to *|/volume1/SmartHome/OpenHAB2|*,
Danke - ich hoffe in diesem Stadium stört das noch keinen - wenn ich
mich recht an "public" erinner, war das der Ordner, wo jeder ohne
Rechtevergabe was reinschreiben konnte - aber der Vorteil ist eh dahin.
Die pfade dann auch in der Programmbeschreibung mit aufnehmen -
vielleicht kriegst du ja auch obige kurzanleitung rein - ich hab ne
menge gegooglet um auf das alles zu kommen.

and I fix the *|DOWNLOAD_PATH|**with no **|/|*at end,
super - der "travis" darf aber dann auch nicht mehr der besitzer der
dateien sein!

and I fix the start-script to *|start_runtime.sh|*
da weiß ich jetzt nicht, für was das gut ist, aber ich werde es schon
sehen :-)

Das größte Problem momentan sehe ich darin, daß die Config, die von der
PaperUI erstellt wird, nicht in diesen Ordnern landet....

LG Tom

Sorry for writing in german - it´s only about an easy way to install OH.

@Baumi1245
Copy link

@cniweb
Another problem that could be caused by the start-script...

OH has the wrong time - my Synology has the correct one.
If i run this:
rule "zeit2" when Time cron "0 35 11 * * ?" then pushover ("es sollte 11:35 sein", "Baumi") end
it comes at 13:35

Thank you.... and sorry for hijacking this thread for general installation-problems

@cniweb
Copy link
Member

cniweb commented Oct 16, 2016

Hallo @Baumi1245,

deutsch ist mir auch lieber! 👍
Also bevor ich eine neue Version baue, mal zur Erklärung:
Ich habe nur eine DS mit DSM 5.2 KEIN DMS 6, kann also DSM 6 Packages nicht testen!
Deshalb gibt es mehrere Branches und Versionen, einmal 1.8.3 und 2.0 und einmal für DSM 6 und einmal für frühere Versionen.

Nun zum eigentlich Problem 2.0 mit DSM 6 oder DSM 5.2?
Ich würde erst einmal 2.0 mit DSM 5.2 fixen, denn dass kann ich auch selbst testen.
Wenn dieses Paket OK ist würde ich es in DSM 6 portieren.

Ist das OK so?

Viele Grüße,
Chris

@kaikreuzer
Copy link
Member

deutsch ist mir auch lieber!

Guys, please note that far more than 50% of our community do not understand German, so whenever possible, stick to English in the public conversations - what you do in private e-mails is of course completely up to you :-)

@Baumi1245
Copy link

hi @cniweb
it´s about DSM 6 here - OH 2.0 is running fine so far...
got only a time-problem and the installation is a little bit confusing if you do it the first time.
OH 2.0 points to a new user groupe - so installing should be as easy as possible.

go on with DSM 5.2 and if i can help you with DSM 6, just send me a mail...

cu Tom

@cniweb
Copy link
Member

cniweb commented Oct 17, 2016

Hi,

I think only the configuration folder is relevant with OpenHAB2.
Because the addons are already there or can be installed online.

Now only the question asks where the folder belongs.
You could already create the folder during the installation and assign the appropriate rights.

What do you think?

Chris

@cniweb cniweb self-assigned this Oct 17, 2016
cniweb added a commit that referenced this issue Oct 17, 2016
- Fix stop server in preuninst

Signed-off-by: Christian Häussler <c-n-i@web.de> (github: cniweb)
@cniweb
Copy link
Member

cniweb commented Oct 19, 2016

Hi @Baumi1245,

what is the different between my package file and yours:
OpenHAB-2.0-SNAPSHOT_a-DSM6-syno-noarch-0.002.zip ???

Chris

@Baumi1245
Copy link

there is a "/" to much in the download-path
owner and group within the .sbk is no longer travis

@cniweb
Copy link
Member

cniweb commented Oct 19, 2016

@Baumi1245
OK, how can I change owner and group?
How or in what do I have to change this?

@Baumi1245
Copy link

are you online with skype? - or check your mail pls

@Skostrub
Copy link
Author

Hi guys.

Stupid question:
What is the proper Java for OpenHAB in DSM 6.x:
package Java 8.0.101-011 by Synology inc.
or
package Java SE Embeded 8 8.0.101-041 by Oracle from custom repo?

My OpenHAB 1.8 in DSM 5.x was running on Java SE

@Baumi1245
Copy link

I use the one from synology:
screenshot 5

@Skostrub
Copy link
Author

Great. Thanks!

Java 8 SE installation was a bit tricky.
I was expecting this from Synology.

Will try to reproduce your installation steps now.
In step 5: give OpenHAB the rights to R/W the folder public
Do you mean give OpenHAB user R/W like: chown -R openhab.users /volume1/public/?

@Baumi1245
Copy link

A new version is coming up these days- safe your time and wait a little...

Am 20.10.2016 15:35 schrieb "Sergei" notifications@github.com:

Great. Thanks!

Java 8 SE installation was a bit tricky.
I was expecting this from Synology.

Will try to reproduce your installation steps now.
In step 5: give OpenHAB the rights to R/W the folder public
Do you mean give OpenHAB user R/W like: chown -R openhab.users
/volume1/public/
?


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

@Skostrub
Copy link
Author

Ok, thanks.

Btw, there could be sense to implement demo conf in the package
from

https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-offline/target/openhab-offline-2.0.0-SNAPSHOT.zip

Conf folder is 5.5 KB only

@Baumi1245
Copy link

no problem here - i´ve got a DS713 with 2GB extra RAM
screenshot 9
I had a RAM usage of 40% with the last version....

@Baumi1245
Copy link

Baumi1245 commented Oct 22, 2016

@cniweb
I just tried to create a folder in volume1 logged in with WinSCP as admin:

Befehl 'mkdir "Neuer Ordner"'
fehlgeschlagen mit Beendigungscode 1 und Fehlernachricht
mkdir: cannot create directory 'Neuer Ordner': Permission denied.

I don´t think that the installer-script is allowed to create the folder public or change persmissions.

@Baumi1245
Copy link

@cniweb found something interresting:

I downloaded beta4 for windows.
i extractet the zip.
i removed the content of conf.
i started oh - after 7 minutes no webUI.
screenshot 11

i extracted the zip again.
i started oh - webUI after 2 minutes

tried this two times - always the same.
putting the conf back und restarting oh helps, could be more tricky with linux cause of the user and group rights.
wonder how @Skostrub got it working without these files!

@Baumi1245
Copy link

Back to the Time-Zone problem:
/volume1/public/OpenHAB2$ cat /etc/synoinfo.conf | grep timezone | cut -f2 -d'"' Amsterdam
screenshot 12
So the script reads the time-zone correct.

I also found it here: /usr/share/zoneinfo/Timezone/synotztable.json
"Amsterdam": { "uistring": "(GMT+01:00) Amsterdam, Berlin, Rome, Stockholm, Vienna", "POSIX_TZ": "CET-1CEST,M3.5.0,M10.5.0/3", "gmtoff": 3600, "nameInTZDB": "Europe/Amsterdam" },

hope this helps

cniweb added a commit that referenced this issue Oct 23, 2016
Fix timezone issue and config folder issue #35

Signed-off-by: Christian Häussler <c-n-i@web.de> (github: cniweb)
@cniweb
Copy link
Member

cniweb commented Oct 23, 2016

Hi guys,

I create a new release without public folder create and timzone fix.

Chris

@cniweb
Copy link
Member

cniweb commented Oct 24, 2016

Hi @Baumi1245,

can you confirm, that in the new release the timezone correct work?

Thanks,
Chris

@Baumi1245
Copy link

yes, works fine now.

cniweb added a commit that referenced this issue Oct 24, 2016
Fix z-wave issue #30 and config folder issue #35

Signed-off-by: Christian Häussler <c-n-i@web.de> (github: cniweb)
@cniweb
Copy link
Member

cniweb commented Oct 24, 2016

OK, @Baumi1245 and @acseven,
I released a new release without public folder sym-link and z-wave fix:
https://github.com/openhab/openhab-syno-spk/releases/tag/2.0.0.007-SNAPSHOT-DSM6

@acseven
Copy link

acseven commented Oct 24, 2016

@cniweb Thanks for the update. I don't know if it was all of the install/uninstalls today, but it was a mess to get it back running. This latest SPK installs ok but doesn't make the port permissions fix.
Here's the permissions after install:

crw------- 1 root root 166, 0 Oct 24 22:00 /dev/ttyACM0

OpenHAB2 Thing status:

OFFLINE - COMMUNICATION_ERROR
Serial Error: Port /dev/ttyACM0 does not exist

Edit: in fact, it doesn't detect it even after I sudo chmod 777 /dev/ttyACM0

(sorry, should've post this in #30)

@Baumi1245
Copy link

yes, working fine!

2016-10-24 19:57 GMT+02:00 Christian Häussler notifications@github.com:

Hi @Baumi1245 https://github.com/Baumi1245,

can you confirm, that in the new release the timezone correct work?

Thanks,
Chris


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEkIqoAJzWG9uxt7K_SF0397wb-Xe7wKks5q3PGagaJpZM4KOkpV
.

cniweb added a commit that referenced this issue Nov 13, 2016
Fix download link #35

Signed-off-by: Christian Häussler <c-n-i@web.de> (github: cniweb)
@gooxbe
Copy link

gooxbe commented Nov 17, 2016

Which port are you using? is it on default port 8080? I can't get OH2 to work on my syno as this port is taken by another application...

@Baumi1245
Copy link

yes, default ist 8080.
sorry that i can´t help you more.

@cniweb
Copy link
Member

cniweb commented Nov 21, 2016

Hi all,

I released a new release with the new OH2 folder structur (#37), try it, please:
https://github.com/openhab/openhab-syno-spk/releases/tag/2.0.0.008-SNAPSHOT-DSM6

Thanks,
Christian

@Baumi1245
Copy link

After uninstalling 2.0.0.007 these folders have not been deleted:
screenshot 41
2.0.0.008 was installed, but it was not running. same problem from .006 to .007.

After uninstalling the latest version again, these folders have been deleted and OH2 was able to run.

@Baumi1245
Copy link

Had some troubles with the 2nd installation (restarting OH2 did not make a difference):
screenshot 42
screenshot 43

the 3rd installation is working fine now since about 7 hours....

@cniweb
Copy link
Member

cniweb commented Nov 22, 2016

Hi @Baumi1245,

thanks for testing!
I think the uninstall process is wrong.
In the next release I plan a update mechanisms, OK?

Chris

@Baumi1245
Copy link

@cniweb

Updating would be great - but i think uninstalling also has to work....

Thank you, Tom

@cniweb
Copy link
Member

cniweb commented Nov 23, 2016

OK, then I can close this issue?
I open two new issues, once for the uninstall and once for the update, OK?

@Baumi1245
Copy link

no, we have three: installing with mounting folder "conf" to public/ or elswhere

@gooxbe
Copy link

gooxbe commented Nov 24, 2016

Actually, It doesn't install. Can't download openhab-offline-2.0.0-SNAPHSOT.zip with the spk

@aurelio1
Copy link

Hello everyone. Will there be DSM 5.2 releases again? I still can't upgrade to DSM 6.0 because Zarafa doesn't work anymore on 6.0 and I still have to migrate it to another mail system. So I would need a DSM 5.2 version.
Besides that, I installed all my software on volume2. Most packages ask where to install something, so it might be useful to have this here too. Otherwise I (and others with the same situation) have to check the .spk and replace all volume1 with volume2; that is a bit annoying :-)

@Baumi1245
Copy link

@gooxbe
That can´t be; this code is from the install.sh:

DOWNLOAD_FILE="openhab-offline-2.0.0-SNAPSHOT.zip"
DOWNLOAD_PATH="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-offline/target"
DOWNLOAD_URL="${DOWNLOAD_PATH}/${DOWNLOAD_FILE}"

if you put this together you get:
https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-offline/target/openhab-offline-2.0.0-SNAPSHOT.zip

... so there must be another problem.
Did you check if there is no openHAB2 folder in /volume1/@appstore/ bevor installing?
if yes, this causes an issue.

@gooxbe
Copy link

gooxbe commented Nov 24, 2016

@Baumi1245
Yes, I checked in /volume1/@appstore and even restarted the syno a few times as I'm also playing on domoticz...
I might build it from the sources as I need to change the default http_port...

@cniweb
Copy link
Member

cniweb commented Nov 28, 2016

OK, I close this Issue, we have 4 new Issues:
#15
#40
#41
#42

@cniweb cniweb closed this as completed Nov 28, 2016
cniweb added a commit that referenced this issue Jan 30, 2017
* Change check status to PIDFILE

* Change unzip to 7z

* Update to Folder /volume1/public/OpenHAB2/

* Update INFO

* Create PKG_DEPS

* Update README.md

* Create CONTRIBUTING.md

* Update from GPL to EPL

* Change current timezone to synotztable.json

* Update to start.sh run script

* Update to default port 8080

* Update to start.sh run script

* Change configuration folder in conf

* Change stop of OH2

* Change PIDFILE to OH2

* Update to official openHAB spelling

* Fix wrong log path #28

* Update to start_runtime.sh run script

* Update to start.sh run script

* Fix download link #35

* Fix stop server in preuninst

* Fix "Serial Error: Port /dev/ttyACM0 does not exist" Z-Wave binding issue #30

* Update public folder condition

* Fix Issue #35

* Fix timezone problem

* Update tar command

* Remove create public configdir

* Fix timezone issue and config folder issue #35

* Remove public confdir

* Fix z-wave issue #30 and config folder issue #35

* Fix port already in use issue #15

* Update comments

* Updating paths for new OH2 folder layout #37

* Update for #37

* Update start-stop-status.sh

* Correct openHAB naming

* changed download-filename (#44)

* Changed URL

* Major rehaul for robustness (#48)

* Add badges

* Add upgrade package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

7 participants