-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
wrong file permissions in openhab-runtime from apt-repo #1429
Comments
Hi Klaus, thanks for investigating this! I will have a detailed look tonight or tomorrow. Best, Thomas E.-E. |
sorry @hoedlmoser, but i didn't find the time yet … any chance that you could provide your findings as a Pull Request? Thanks, Thomas E.-E. |
no problem at all @teichsta , but neither I'm the expert in git nor in maven, not now. :-) but I've had a look into some details and I'm sure it has something todo with c6c5f51 and #1195 but, let me doublecheck, from what I've seen for now in the distribution/pom.xml there are just missing to set permissions for /var/lib/openhab/workspace, /var/lib/openhab/webapps/static and /var/log/openhab/ (its wrongly set for /var/log), as it was done before the commit mentioned above. |
I too am experiencing this (runtime 1.5.1 from apt-repo). I must comment that although the new daemon start script with telnet based OSGi console sounds/looks pretty nice; not having a mechanism to at lease spit out some debugging/verbose log messages is a pain for troubleshooting. Perhaps a future version of /etc/init.d/openhab could include a DEBUG=0 sort of mechanism for quickly improving verbosity. |
I have this issue as well on Rasperian with OpenHAB 1.6.1 from apt-repo listed in the Wiki |
any proposal how to fix that? |
I think this happens if you start openHAB as root using the start.sh script and afterwards use the init-script for starting. |
I've started to work on this issue. systemd support will also be available (debian 8 is around the corner). Hope I have a PR ready in a few days. |
Hi! I have a similar issue with file permissions here too. OS version installed, if that matters:
Regards, |
Fixed with 1.7. |
Hey guys, has this been really fixed? Fresh (apt-get) install of 1.7.1 on my raspbian jessie:
|
Hi mastix, could you please check the permissions of the webapps/static folder: Regards, |
Hi, the webapps folder has been created with rwx for my user:
but the static folder within the webapps folder has been created with rwx for the openhab user:
That might be the problem. So I changed the group from all files to openhab:
And gave the group write access to the files and folders:
Now it seems to work. But I had to do this manually... Thanks for the hint! |
Was this the first installation of openHAB on this host or have you purged an older one before reinstalling openHAB? |
Fresh installation on a Raspberry Pi 2 (Debian Jessie). |
OK. I will try if I can reproduce this. |
On my Pi2 with raspbian (wheezy) I don't see this bug with OpenHab 1.7.1 |
I've tested this with jessie and can't reproduce it:
We'll have to wait if this ever comes up again. |
Hi, wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' |sudo apt-key add - and get the following when OH is run up; 2016-06-21 20:21:23.706 [INFO ] [penhab.io.rest.RESTApplication] - Stopped REST API |
hi!
as I reported already on [email protected]
after successfull fresh (!) install of openhab-runtime 1.5.1 from
apt-repo it didn't start. no error, nothing. then I started it the same
way the init.d script does, but removed the option --background from
start-stop-deamon. and voila ...
uh, oh, wrong permissions on /var/lib/openhab/workspace? lets check.
indeed. lets fix it.
oh no, next error.
next try.
now its running.
to compare I've purged openhab-runtime 1.5.1 cleaned up all openhab
files and directories (just removed them) and installed openhab-runtime
1.5.0. have a look on the permissions.
can someone of you please fix?
btw, if you are upgrading from 1.5.0 you will not face that wrong
permissions. let's call it workaround for now.
in the group also Samuel Lorette reported that he needed to fix permissions:
gre3tings, Klaus
The text was updated successfully, but these errors were encountered: