YunoHost-Apps / shaarli_ynh

Shaarli package for YunoHost
GNU General Public License v3.0
20 stars 13 forks source link

Insufficient permissions: #49

Closed thsfo closed 4 years ago

thsfo commented 4 years ago

i tried to install shaarli in new server yunohost... but: Insufficient permissions: "data/log.txt" file is not writable

is it a bug ?

alexAubin commented 4 years ago

To be able to help you, please provide the full installation log as it should be advised in the error message ..

thsfo commented 4 years ago

Hello @alexAubin

Thanks you for you're help: https://paste.yunohost.org/raw/lanemudotu

alexAubin commented 4 years ago

Well this log shows that the installation worked, so what do you mean exactly by "I tried to install ... but"

Where does that message about insufficient permission comes from ?

thsfo commented 4 years ago

On continue en français camarade ? Tu peux jeter un oeil ici : https://liens.orties.net/

J'ai fais un

/var/www/shaarli/data$ sudo chmod 777 log.txt Et du coup ça avance.

GannonTdW commented 4 years ago

salut

chmod 644 /var/www/shaarli/data/log.txt && chown shaarli: /var/www/shaarli/data/log.txt

C'est quand même mieux qu'un 777.

arthurlutz commented 4 years ago

getting same bug when installing shaarli on buster branch of yunohost

lapineige commented 4 years ago

It's still there ? This is supposed to be fixed, I think :thinking:

the log.txt file is present ?

pipointzero commented 4 years ago

Hi, yes it is still like that today ;)

lapineige commented 4 years ago

Is your yunohost instance up-to-date ?

pipointzero commented 4 years ago

Well actually not completely: yunohost: repo: now version: 3.6.5.3 yunohost-admin: repo: now version: 3.6.5.1 moulinette: repo: now version: 3.6.4.1 ssowat: repo: now version: 3.6.4

I am running the upgrade now.

lapineige commented 4 years ago

Ok, so the fix in Yunohost core should be there… I don't know what's going on :(

TheNomad11 commented 4 years ago

same issue here with newest yunohost

tituspijean commented 4 years ago

The issue appears because the following command is done after setting the rights. So the file belongs to root: https://github.com/YunoHost-Apps/shaarli_ynh/blob/250cdad37520796c4d8bfa9f5b7c24d2d162d88e/scripts/install#L156

https://github.com/YunoHost-Apps/shaarli_ynh/blob/250cdad37520796c4d8bfa9f5b7c24d2d162d88e/scripts/install#L134-L135

lapineige commented 4 years ago

Oh, good point ! Thanks :)