openhab / openhab-syno-spk

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

openhab user not created OpenHAB-2.1.0.005-syno-noarch-0.001.spk #71

Closed HeikoB closed 7 years ago

HeikoB commented 7 years ago

Installing OpenHAB-2.1.0.005-syno-noarch-0.001.spk on a DS412+ no user openhab was created on install.

cniweb commented 7 years ago

I released a new version: https://github.com/openhab/openhab-syno-spk/releases/tag/2.1.0.006 Can you try it, please.

Thanks, Chris

HeikoB commented 7 years ago

Hi Chris,

i will try, thank you! Can I upgrade or must do a clean install?

Von unterwegs gesendet

Am 11.07.2017 9:40 nachm. schrieb Christian Häussler notifications@github.com:

I released a new version: https://github.com/openhab/openhab-syno-spk/releases/tag/2.1.0.006 Can you try it, please.

Thanks, Chris

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/openhab/openhab-syno-spk/issues/71#issuecomment-314549934, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGhVvFjfMCwINx6rxNBA8MuOJNlQG0aYks5sM8-PgaJpZM4ONqI0.

HeikoB commented 7 years ago

Hi,

i try and it makes no difference. No download at installation process and no folders after finish. Tried update and new install.

thx

Von: Christian Häussler [mailto:notifications@github.com] Gesendet: Dienstag, 11. Juli 2017 21:40 An: openhab/openhab-syno-spk openhab-syno-spk@noreply.github.com Cc: Bien, Heiko heiko.bien@dff-solutions.de; Author author@noreply.github.com Betreff: Re: [openhab/openhab-syno-spk] openhab user not created OpenHAB-2.1.0.005-syno-noarch-0.001.spk (#71)

I released a new version: https://github.com/openhab/openhab-syno-spk/releases/tag/2.1.0.006 Can you try it, please.

Thanks, Chris

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/openhab/openhab-syno-spk/issues/71#issuecomment-314549934, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGhVvFjfMCwINx6rxNBA8MuOJNlQG0aYks5sM8-PgaJpZM4ONqI0.

ghost commented 7 years ago

I have same issues... :( OpenHAB interface will not start I just get black screen and no user is made. I made the folders /volume1/public/OpenHAB/conf and /Volume1/public/OpenHAB/addons

SchoppAx commented 7 years ago

Hi,

i think there is an error in the installer.sh at line 6 (download path). You have to remove the last slash. https://bintray.com/openhab/mvn/download_file?file_path=org/openhab/distro/openhab/2.1.0//openhab-2.1.0.zip

ghost commented 7 years ago

How do I do that? I'm using Synology version there is only one file I need to run from the package center.

SchoppAx commented 7 years ago

Also line 83 and 84 return addgroup: command not found but the script seems running.

@DanNielsen: Hi, I'm running the Script manually in the shell to see what happens. @cniweb has to change the installer.sh and release a new .spk, so you can easily reinstall. Just wait :-)

Now openHAB2 can started by shell or package center: image image

ghost commented 7 years ago

@SchoppAx Thanks for your answer. i will wait then :) Thanks for working on a fix!!! NICE! :) 👍

BClark09 commented 7 years ago

Nice find @SchoppAx, I think the only major problem is the last slash as you have found. The addgroup lines will need to be changed in order to get openHAB working "out-of-the-box" with serial devices but isn't a blocker for installing the package.

More specifically line 83 and 84 should use the synogroup command instead of addgroup. i.e. from:

addgroup ${DAEMON_USER} dialout
addgroup ${DAEMON_USER} uucp

to

synogroup --member dialout ${DAEMON_USER}
synogroup --member uucp ${DAEMON_USER}

If you're feeling up to it, can you make a PR to help @cniweb out?

SchoppAx commented 7 years ago

@BClark09 I can do it tomorrow in the evening.

If nothing has happened before :P

SchoppAx commented 7 years ago

Yeah, WLAN inside the train.

Pull request created. Hope that fixes the issues.

cniweb commented 7 years ago

@SchoppAx Thanks!

New release: https://github.com/openhab/openhab-syno-spk/releases/tag/2.1.0.008

bcrippsy38 commented 7 years ago

for some reason I still can't get the folders and scripts to populate in the openHAB2 folder. I get these errors when i try to run the start_runtime.sh scripts: capture

any thoughts?

SchoppAx commented 7 years ago

Sorry, I'm not familiar with the .spk install logic. The installer.sh script is not be executed by the "Manuel Install" process. So the runtime script can't start/call the daemon.pid, because it will be created by the installer.sh.

After the .spk installation:

I stopped the openHAB2 instance via package center and run the installer.sh manually (clean install): https://github.com/SchoppAx/openhab-syno-spk/blob/SchoppAx-patch-1/scripts/manuel_install.sh

Then I started the openHAB2 package via package center and after 8-10 minutes openHAB2 was started.

What can we do to get the .spk running instantly?

dmorri18 commented 7 years ago

I have the same issue as SchoppAx above, although I'm not much of a linux guy so I don't know how to do the manual install.. Until then, I'm patiently waiting! :)

Thanks!

ghost commented 7 years ago

I tryed "2.2.0.002-SNAPSHOT" same problem....:disappointed_relieved: Does not make a user and only make a folder (volume1/@appstore/openHAB2/OpenHAB2) with: start_debug_runtime.sh, start_runtime.sh and stop_runtime. I made the patch volume1/public/openHAB2/conf and volume1/public/openHAB2/addons.

cniweb commented 7 years ago

Sorry guys, but I do not understand why the installation does not work anymore. After some comparisons with previous versions, I noticed nothing.

bcrippsy38 commented 7 years ago

did any of the permissions change? seems odd how I can't even install now without using the public folder for config. any chance the additional code for the public folder is causing the issue? because ever since that was introduced I haven't been able to install.

SchoppAx commented 7 years ago

Seems that there are some permission problems. The openhab2 user will be created now, but then the script fails again.

@cniweb and I will look for a fix this weekend or the next week.

cniweb commented 7 years ago

@SchoppAx Thanks for your PR #74 I left some comments as a review.

cniweb commented 7 years ago

New releases: https://github.com/openhab/openhab-syno-spk/releases/tag/2.1.0.005-DSM6

SchoppAx commented 7 years ago

There is a issue at the 7z command. I created a PR and released a new Version.

https://github.com/SchoppAx/openhab-syno-spk/releases/tag/2.1.0.006-DSM6

bcrippsy38 commented 7 years ago

Thanks SchoppAx, everything installs fine from a clean install. Only thing i noticed was I'm still not getting the /public/openHAB2/conf folder to populate. Is there a specific syntax that I don't have right for the hierarchy?

SchoppAx commented 7 years ago

Hi @bcrippsy38,

released a new version 5 min. ago :-) https://github.com/SchoppAx/openhab-syno-spk/releases/tag/2.1.0.007-DSM6

ghost commented 7 years ago

i used "openHAB-2.1.0.007-DSM6-syno-noarch-0.001.spk" and it worked. It made a user and i can run openHAB. it makes dir in volume1/public/openHAB2/conf and volume1/public/openHAB2/conf and places a readme file in volume1/public/openHAB2/conf and volume1/public/openHAB2/addons. But i cant finde files to change config files :( openhab - filestation openhab-2 1 0 007-dsm6-syno-noarch-0 001 spk

SchoppAx commented 7 years ago

I installed the IHC binding and got a file at conf/services/ihc.cfg

Please have a look at your folder.

ghost commented 7 years ago

Do you finde the file in "volume1/public/openHAB2/conf and volume1/public/openHAB2/conf". I can not finde the file you are talking about? As I understand the file should be there and not in the installation folder openhab - filestation services openhab-2 1 0 007-dsm6-syno-noarch-0 001 spk

SchoppAx commented 7 years ago

The binding has been successfully installed?

Please look at the event.log located in /volume1/@appstore/openHAB2/userdata/logs. Are there any errors?

ghost commented 7 years ago

I can not acces /volume/@appstore/ when i'm not home. I will look at the event.log when i get home.

ghost commented 7 years ago

no errors :( 2017-07-18 15:27:29.872 [ExtensionEvent ] - Extension 'package-standard' has been installed. 2017-07-18 15:27:39.643 [ExtensionEvent ] - Extension 'ui-basic' has been installed. 2017-07-18 15:27:39.648 [ExtensionEvent ] - Extension 'ui-habpanel' has been installed. 2017-07-18 15:27:39.659 [ExtensionEvent ] - Extension 'ui-paper' has been installed. 2017-07-18 15:44:11.093 [ExtensionEvent ] - Extension 'binding-onkyo' has been installed. 2017-07-18 17:48:24.075 [InboxAddedEvent ] - Discovery Result with UID 'onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c' has been added. 2017-07-18 17:48:30.782 [InboxRemovedEvent ] - Discovery Result with UID 'onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c' has been removed. 2017-07-18 17:48:30.825 [ThingAddedEvent ] - Thing 'onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c' has been added. 2017-07-18 17:48:30.892 [hingStatusInfoChangedEvent] - 'onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c' changed from UNINITIALIZED to INITIALIZING 2017-07-18 17:48:30.940 [hingStatusInfoChangedEvent] - 'onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c' changed from INITIALIZING to ONLINE 2017-07-18 17:48:30.964 [ItemChannelLinkAddedEvent ] - Link 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_power-onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c:zone1#power' has been added. 2017-07-18 17:48:30.973 [ItemChannelLinkAddedEvent ] - Link 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_input-onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c:zone1#input' has been added. 2017-07-18 17:48:31.005 [ItemChannelLinkAddedEvent ] - Link 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_volume-onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c:zone1#volume' has been added. 2017-07-18 17:48:31.011 [ItemChannelLinkAddedEvent ] - Link 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_mute-onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c:zone1#mute' has been added. 2017-07-18 17:48:31.021 [ItemChannelLinkAddedEvent ] - Link 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone2_power-onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c:zone2#power' has been added. 2017-07-18 17:48:31.026 [ItemChannelLinkAddedEvent ] - Link 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone2_input-onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c:zone2#input' has been added. 2017-07-18 17:48:31.043 [ItemChannelLinkAddedEvent ] - Link 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone2_volume-onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c:zone2#volume' has been added. 2017-07-18 17:48:31.050 [ItemChannelLinkAddedEvent ] - Link 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone2_mute-onkyo:TX-NR646:68b0d156-8cd1-56b9-02d8-56098cb9853c:zone2#mute' has been added. 2017-07-18 17:48:31.166 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_power changed from NULL to ON 2017-07-18 17:48:31.186 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_input changed from NULL to 16 2017-07-18 17:48:31.238 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_volume changed from NULL to 40 2017-07-18 17:48:31.280 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_mute changed from NULL to OFF 2017-07-18 17:48:31.332 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone2_power changed from NULL to OFF 2017-07-18 17:48:31.359 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone2_input changed from NULL to 5 2017-07-18 17:48:31.381 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone2_volume changed from NULL to UNDEF 2017-07-18 17:48:31.419 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone2_mute changed from NULL to OFF 2017-07-18 17:48:35.014 [ItemCommandEvent ] - Item 'onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_power' received command OFF 2017-07-18 17:48:35.443 [ItemStateChangedEvent ] - onkyo_TX_NR646_68b0d156_8cd1_56b9_02d8_56098cb9853c_zone1_power changed from ON to OFF

ghost commented 7 years ago

In /volume1/@appstore/openHAB2/userdata/logs/openhab.log i found this: 2017-07-18 15:44:57.844 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-ihc1': Permission denied

SchoppAx commented 7 years ago

Can you install other bindings?

Please try to reinstall (uninstall, install) the package. If it doesn't work, please run sudo chown -hR openhab2 /volume1/@appstore/openHAB2 and try again.

ghost commented 7 years ago

Yes i can install all bindings including IHC but i cant finder The config file in public

cniweb commented 7 years ago

vindings cant der The

?

ghost commented 7 years ago

Yes i can install all bindings including IHC in PaperUI but i can't finder The config file in public.

If i go to Bindings in PaperUI IHC binding is blue as it is installed, but i do not know if it really is.

When i try to installe the IHC binding using PaperUI it keeps updating openhab - ihc binding install

When i update the page (F5) and search for "IHC binding" it seems to be installed openhab - ihc binding install2

I have tryed to uninstall and install again.

in /volume1/@appstore/openHAB2/userdata/logs/events.log i only see this: 2017-07-19 07:55:36.963 [ExtensionEvent ] - Extension 'package-standard' has been installed. 2017-07-19 07:55:53.059 [ExtensionEvent ] - Extension 'ui-basic' has been installed. 2017-07-19 07:55:53.072 [ExtensionEvent ] - Extension 'ui-habpanel' has been installed. 2017-07-19 07:55:53.081 [ExtensionEvent ] - Extension 'ui-paper' has been installed. 2017-07-19 08:06:38.660 [ExtensionEvent ] - Extension 'binding-ihc1' has been uninstalled.

in /volume1/@appstore/openHAB2/userdata/logs/openhab.log i see this line: 2017-07-19 08:01:10.388 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-ihc1': Permission denied

I tryed to run sudo chown -hR openhab2 /volume1/@appstore/openHAB2 and try again. openhab - putty

Still the same :(

i used my "admin" user, maybe i need to use the "openhab2" user but what are the password? to run sudo chown -hR openhab2 /volume1/@appstore/openHAB2

UPDATE!; It works... You have to go to user rights and give "Openhab2" user R/W rights to the Public folder. :)

SchoppAx commented 7 years ago

@DanNielsen we want to know why the user rights were not set during the installation. So can you tell us:

Thanks :-)

ghost commented 7 years ago

the user account is "openhab2" (all lower case)

I can try the command. Which username and password should i use (i don't know the password for the "openhab2" user?)

SchoppAx commented 7 years ago

Use your root pw, the command only return the path of your public folder ;-)

ghost commented 7 years ago

When i use "putty" it ask for a user and password as the first thing...? Is the a better way to run the command. Sorry but i am really a beginner :(

SchoppAx commented 7 years ago

Easily log in as admin like before ;-)

ghost commented 7 years ago

Okay. I will try tonight, when i get home :)

cniweb commented 7 years ago

The installation seems to work with the new release. Can we close this issue?

cniweb commented 7 years ago

The installation seems to work with the new release. Can we close this issue? You can open a new issue for other problems, Thanks!

ghost commented 7 years ago

YES!! 👍 THANKS!!! :)

ghost commented 7 years ago

I did the command you asked SchoppAx openhab - putty2

SchoppAx commented 7 years ago

Thx, we are working on a fix...coming soon 😄

ghost commented 7 years ago

Happy if I could help. Is really impressed with how helpful people are here. Thank you! :)

cniweb commented 7 years ago

@DanNielsen we are released a new version: https://github.com/openhab/openhab-syno-spk/releases/tag/2.2.0.005-SNAPSHOT Can you try it, please!

ghost commented 7 years ago

I will, but i cant see a file i can use for install? I need .SPK file

SchoppAx commented 7 years ago

@DanNielsen, take this one: https://github.com/openhab/openhab-syno-spk/releases ;-)