-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picture display broken after upgrade to v0.11.5 : folder rights issue #4275
Comments
Fixed in 22da264 |
Great, that was fast, thanks a lot ! 🚀 |
I tried manually using this commit (or rather a later one #4276), it still fails. Example : https://photo.lapineige.fr/i/web/post/548958694320755247 |
Just a random try of getting this fixed can you try running php artisan storage:link |
|
How can I help to better diagnose this ? |
I’m sorry that you haven’t received a response yet meanwhile I can suggest small steps try restarting your server / or php artisan cache:clear you can also check if horizon is running on admin dashboard horizon active or inactive if inactive try php artisan horizon:publish hope you will get this fixed soon |
It's only been 3 days, no worries :) Restart + cache:clear, no difference. |
It's highly likely a permissions issue. Would you mind creating a account for me on your instance? |
What do you mean by permissions ? |
I'm talking about file permissions. Go to /var/www/pixelfed/public/storage and go deeper... |
If I'm correct newly created folders should be owned by root. Create a user account on your instance and give me credentials. |
Everything is owned by pixelfed user. No change since the (working) state before the upgrade.
Why is that ? Pixelfed user would not be able to access them ? 🤔 |
Yeah .. That's the problem .. You need to modify config/filesystems.php to fix it. Set Dir public permissions to 0755 or 0775 and Dir Private Permission to 0770. For public files set permission to 0644 or 0664 and private files permission to 0660. |
How/why ? 🤔 What I don't understand is why it was working perfectly since that upgrade with folder and files owned by pixelfed users, and no longer since that upgrade. I don't understand why it should be owner by root. edit:
You mean exactly as in this commit ? 22da264 … This is something very strange indeed: But I upgraded to that precise commit, it should be included 🤔 |
So… for some reason the patch wasn't applied. But… it still doesn't work even with new media : https://photo.lapineige.fr/i/web/post/551045866359640065 |
Nor do I 😶 .. But this is how I fixed it. Take a look at this: laravel/framework#42586 |
Do you know where those files are stored so I can check manually before messing with all files rights and permissions ? 😅 |
And it is only |
No. You have to go to |
I mean if I upload a new image its URL is in |
No, the url is not wrong. Your root directory is set to /public . That's why it won't show up in the URL. |
Can you confirm that the permission of the directory that contains the actual image preview isn't set to 0700? |
works for me also to Mastodon |
Can you share the image (and its folder) rights and owners ? (I can provide instructions) |
|
Thanks ! Is it a newly installed instance (post v0.11.7) ? |
Version: 0.11.8-ynh1 not reinstalled but since 0.11.3-ynh1 only always updated |
just made an update to version: 0.11.8-ynh2 and now I also have the error.
|
Backup back to version: 0.11.8-ynh1. Now also here the error. |
That's is realllllly strange 🤔 I don't understand why you didn't have the issue but have it since the upgrade. The only thing it touches here is making theses folders rights equals to 750 🤔 Could you explain what this does ? (what's the equivalent XXX rights ?)
|
I can't explain it either. I have the command from here YunoHost-Apps/pixelfed_ynh#211 (comment) and it also seems to work only with version: 0.11.8-ynh1 |
You mean it doesn't work with another version ? Which one ? |
I just tested it with Version 0.11.8-ynh3.
I give the folder read and verbose permissions with public permissions
the images are displayed So it seems the wrong permissions are set when the folders are created |
From Mastodon and so on you mean ? Thanks for investigating.
This should have been solved :( |
Yes also from Mastodon, Calckey, Friendica etc. and also in Pixelfed where before only "No Preview Available" was displayed. |
Ok… so we might have some permissions to change 🤔 |
I did some tests today and with the following change in filesystems.php it works for me also with version 0.11.8-ynh3
|
In my case for some reason with 0.11.8~ynh3 file owner are pixelfed:pixelfed and not pixelfed:www-data… I don't know why it was reverted to this 🤔 |
Yep, that update re-broke mine as well, no previews any more. I am not in a
position to go in with a terminal right now to mess with configs and
permissions so my instance will be broken until there's another update :-(
…On Sat, Jun 17, 2023 at 11:43 PM lapineige ***@***.***> wrote:
In my case for some reason with 0.11.8~ynh3 file owner are
pixelfed:pixelfed and not pixelfed:www-data…
Changing it solves the issue.
I don't know why it was reverted to this 🤔
—
Reply to this email directly, view it on GitHub
<#4275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKOFE73YBO2FGRD3EH2353XLYXHVANCNFSM6AAAAAAWRYKTAY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
*Simon Phipps*
*Office:* +1 (415) 683-7660 *or* +44 (238) 098 7027
*Signal/Telegram/Mobile*: +44 774 776 2816
|
the same here all new folders and files are pixelfed:pixelfed and no longer pixelfed:www-data and although I set the permissions of the folders in filesystems.php to 0775 the permissions are now at 0755 |
I don't understand why… |
Ok, found it, it's was the conversion to packaging v2 in Yunohost that forgot the setting. I will close this all fallback to Yunohost own repository: YunoHost-Apps/pixelfed_ynh#223 |
…ult permissions. Fixes pixelfed#4273, pixelfed#4275. Closes pixelfed#3825
For the record, this issue reappeared now with the Instagram import feature : https://forum.yunohost.org/t/pixelfed-0-11-9-instagram-import-no-preview-after-import/26071/10 Should I open a separate issue ? |
For the record, the issue with normal upload was a configuration mistake, it is now solved. But not imports. Any idea ? 🙏 |
I installed PixelFed (v0.11.13) on my home server and faced the same problem. folder flags
what can I do now until you solve the problem? |
Hello,
On Yunohost installations, since version 0.11.5 new uploaded pictures are broken. They are not shown, neither the preview is. Even in compose view.
Alternative text is working.
I don't really know how to debug this. No horizon failed job, no supervisor issue, I can't find laravel log, no web console error…
No other error to report.
You can see an example here : https://photo.lapineige.fr/i/web/post/548580903387685397
Is that a know Pixelfed bug ?
How can I diagnose this ?
Thank you
Pixelfed : 0.11.5
Postgres: 13.9
PHP: 8.1 - recently upgraded, before Pixelfed 0.11.5 we were using php 8.0
Laravel : 9.52.4
The text was updated successfully, but these errors were encountered: