Coder Social home page Coder Social logo

Comments (20)

cniweb avatar cniweb commented on June 8, 2024

I guess the upgrade is not working properly yet. Should I take it out again? Unfortunately I can not test it myself, because I have no DiskStation with DSM6

from openhab-syno-spk.

jhlweb avatar jhlweb commented on June 8, 2024

I don't know if its the fix .. but it worked for me on a DS1511+ with DSM 6.0.2-8451 Update 9
the files postupgrade en postuninst are missing "> $SYNOPKG_TEMP_LOGFILE" and the conf and addons directories are removed by the postinst() but not copied to the plubic conf / addons directory only a link is made. and it should be checked if the update gives new files in these directories.

from openhab-syno-spk.

cniweb avatar cniweb commented on June 8, 2024

I fix the install.sh, can you try?

from openhab-syno-spk.

cplpro227 avatar cplpro227 commented on June 8, 2024

I would try it... Installed it 20 minutes ago and it doesn't show up the start/index/ page.

from openhab-syno-spk.

jhlweb avatar jhlweb commented on June 8, 2024

@cplpro227 do you have the conf and addons folder on the public share? if so fill them with the files of the conf and addons folder in the zip https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.1.0-SNAPSHOT.zip then it will start up.
The problem is that the script on a new install or upgrade will remove all files in the folders @appstore/openHAB2/conf or @appstore/openHAB2/addons.

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on June 8, 2024

I tried the OpenHAB-2.1.0.002-SNAPSHOT-DSM6-syno-noarch-0.001 to day and have the same problem that there are NO subfolders in it. Just start stop scripts. OH does not work.

openHAB-2.0.0.001-DSM6-syno-noarch-0.001 does work. But not the conf subfolder on public. Have to do symlink myself.

from openhab-syno-spk.

cniweb avatar cniweb commented on June 8, 2024

I fix the update: d2872e2
Can you review it?

from openhab-syno-spk.

jhlweb avatar jhlweb commented on June 8, 2024

There is also a problem with the rights to public folder .. i have it revoked on the standard users group and added it a some user profiles..
There are no subfolder in it because the clean installation is not coping those addons / conf files only removing them and than linking to the public folder.

ill try a new install on a DS713+ tomorrow.

from openhab-syno-spk.

JackyColo avatar JackyColo commented on June 8, 2024

I think the install.sh do not download the openhab2.1.0.snapshot file. If I install it, it is finished after a 2 seconds and so there is no folder and no file in the folder "/volume1/@appstore/openHAB2". Only the 3 files:
start_debug_runtime.sh
start_runtime.sh
stop_runtime.sh

from openhab-syno-spk.

cniweb avatar cniweb commented on June 8, 2024

OK, do you a fresh install or do a update?

from openhab-syno-spk.

JackyColo avatar JackyColo commented on June 8, 2024

I tested both. Both with the same effect.

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on June 8, 2024

from openhab-syno-spk.

GorillaImNebel avatar GorillaImNebel commented on June 8, 2024

Same issue here. No folders in /volume1/@appstore/openHAB2 only 3 files:

start_debug_runtime.sh
start_runtime.sh
stop_runtime.sh

The folder /volume1/public/openHab2/conf and /volume1/public/openHab2/addons/ both exist but are empty after the installation.

Java 8 is working fine on my DSM

Modell: DS213+
DSM version: DSM 6.0.2-8451 Update 9
Used: OpenHAB-2.1.0.002-SNAPSHOT-DSM6-syno-noarch-0.001.spk

from openhab-syno-spk.

jhlweb avatar jhlweb commented on June 8, 2024

Same issue here.

In general the postupgrade en postuninst files are missing some code this prohibits them to output an echo. "> $SYNOPKG_TEMP_LOGFILE"
I manually untarred the 002 spk and changed the install.sh file so it matched the given changes. And tarred the spk again.

I have question about line 111 where openhab.log is created. Why not do this for events.log?

This changed packages I used here.

FRESH INSTALL------------------------
First check if the /volume1/public/ folder has read/write rights for the USERS group. (in my case it had not and this gave problem with installing. After installing you can reset this and give the openhab2 user rights to the folder /volume1/public/.

With a fresh install and /volume1public/openHAB2/conf and addons exists.
The /volume1/@appstore/openHAB2/conf and addons folders are removed and not copied when public/conf and addons are empty. This is 1 problem to be solved.

Is it an idea to move the userdata folder to /volume1public/openHAB2/? Then these files can also be easily being modified. Now this must be done by SSH.

The download link in the install.sh is working with the Firefox browser on my windows system or when doing the gwet under admin privileges on my synology.
I could not find out how to switch to the openhab2 user. I got "su: failed to execute /sbin/nologin: No such file or directory".

But downloading is manually and putting it in the /volume1/public/ folder works.
After that for a fresh install copy the conf and addons folder from the zip to the /volume1public/openHAB2/ and it will run properly.

UPGRADE--------------------
Doing an upgrade gave the same download link problems.
After putting it local in the /volume1/public/ it worked.

Also the backup file under /volume1/@appstore/ has no openhab2 user as owner but a owner number. (1043 in my case) Is this correct or should the owner be user openhab2?

Java 8 is working.
NAS: DS1511+(upgrade) and DS713+(new install)
DSM version: 6.1-15047
Used: OpenHAB-2.1.0.002-SNAPSHOT-DSM6-syno-noarch-0.003.spk

from openhab-syno-spk.

jhlweb avatar jhlweb commented on June 8, 2024

Oh i found out that the upgrade is not putting back the userdata folder from the archive.
I had to add all the addons manually and what triggered me was that de login of the karaf console failed.

Maybe this is caused by not stopping the openhab package first. -oeps-
Oh and i saw that the user that's doing the backup is not openhab2 it's a numeric user of the group "root"

drwxr-xr-x 6 1043 root 4096 Feb 7 12:22 openHAB2-backup-20170207_123928
drwxr-xr-x 4 1045 root 4096 Feb 7 13:36 openHAB2-backup-20170227_171614

And can't the Installer script stop the package and start it after installation?

from openhab-syno-spk.

jhlweb avatar jhlweb commented on June 8, 2024

@cniweb, there is also something wrong with the postupgrade() after upgrading it is not coping the usersdata. The simlinks are added .. the logs file is done.. and the chown is also done..

Can this be because of the -avr options in the command? ill try -ar when upgrading to > build 826

from openhab-syno-spk.

cniweb avatar cniweb commented on June 8, 2024

@jhlweb Can you make a PR with your changes?

from openhab-syno-spk.

cniweb avatar cniweb commented on June 8, 2024

Can you try my new version:
https://github.com/openhab/openhab-syno-spk/releases/tag/2.1.0.004-SNAPSHOT-DSM6

from openhab-syno-spk.

cniweb avatar cniweb commented on June 8, 2024

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

from openhab-syno-spk.

gorzan14 avatar gorzan14 commented on June 8, 2024

from openhab-syno-spk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.