Closed nicofrand closed 7 years ago
Weird, https://github.com/YunoHost-Apps/wallabag2_ynh/blob/master/scripts/install#L65 should have set the user to www-data… Tried it but did not work. That works with the following rights (recursive) though but kind of dangerous I guess:
drwxrwxr-x 14 www-data wallabag2 4096 Apr 22 13:48 wallabag2
Actually you're not looking on the right branch, as you tried the ongoing PR #28 .
Thanks for reporting: I had induced a regression when using mktemp -d
here. We have to fix the rights on /var/www/wallabag2
which are only 600 by default.
It should be now fixed by commit 6f9e1ac.
Could you please test it?
New try:
Warning: The helper ynh_mkdir_tmp is deprecated.
. I do not know from where it comes: I checked the install script and it was uptodate (meaning it uses mktemp -d
as expected in here: https://github.com/YunoHost-Apps/wallabag2_ynh/blob/code_refactoring/scripts/install#L78)…Thanks a lot for all this great work !
Feel free to close my two tickets once the code_refactoring branch is merged into master !
Don't worry, provided the commit names include "fixes #...", they'll get automatically closed when the PR is merged ;-)
Actually, I am not sure but, could you test to enable the "import images locally" with this fix and check that the images are correctly downloaded ? Seems to me that there is still a permission issue…
Doesn't look like a permission issue for me; yet, you have to set the field "URL of your wallabag instance" to make it work (otherwise the images URL are wrong). Can you confirm that? I've completed install/upgrade with that setting in https://github.com/YunoHost-Apps/wallabag2_ynh/pull/28/commits/fd00882e7ca02d4c0eb1247b13405f5b294ddb48.
I tried setting chmod 777 and it then worked. So that is a permission issue
Le 28 avr. 2017 5:43 PM, JimboJoe notifications@github.com a écrit :
Doesn't look like a permission issue for me; yet, you have to set the field "URL of your wallabag instance" to make it work (otherwise the images URL are wrong). Can you confirm that? I've completed install/upgrade with that setting in fd00882.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Can't reproduce. Do you have the same permissions?
root@yunohost:~# ll /var/www/wallabag2/web/assets/
total 4
drwxr-xr-x 3 wallabag2 wallabag2 4096 Apr 28 15:55 images
I don't remember the rights but I had www-data
as owner (I probably left some errors from a previous install), nevermind.
Thanks for the help again
28 avril 2017 17:59 "JimboJoe" a écrit: Can't reproduce. Do you have the same permissions?
root@yunohost:~# ll /var/www/wallabag2/web/assets/ total 4 drwxr-xr-x 3 wallabag2 wallabag2 4096 Apr 28 15:55 images
—
You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/YunoHost-Apps/wallabag2_ynh/issues/31#issuecomment-298037203), or mute the thread (https://github.com/notifications/unsubscribe-auth/ADQrqhEfmlqJ7c9Sn_VGnoFQEGReZt2Zks5r0gzRgaJpZM4NFEFj).
I just installed the app and the first page I am redirected to is the quickstart page. The text is displayed but all the assets (JS, CSS, images, etc.) are not.
When I check the logs I have several errors about Permission denied:
Here are the permissions on the top directory (and it is always the same user and group everywhere I check):
I am not sure which user/group/chmod should be applied here ?