-
Notifications
You must be signed in to change notification settings - Fork 334
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
When pictrs cant fetch site logo, entire site breaks #2211
Comments
Having the same issue on a fresh install of lemmy version 0.19.1 with pictrs version 0.4.7. This error happens every time the server is restarted while a site icon is set. |
I've done a quick write up on how to circumvent it. Now that I think of it I should probably not have tagged it as "solved" as it's not a code change, but it honestly is solved from my perspective as a sysadmin. |
A simpler workaround I followed is to remove the images/banner for a bit until pict-rs comes back. First point them to some external image (here's I'm using the Haidra logo) UPDATE site SET banner = 'https://aihorde.net/assets/img/logo.png' WHERE id = 1;
UPDATE site SET icon = 'https://aihorde.net/assets/img/logo.png' WHERE id = 1; then restart your UI. Once it comes back, go to your settings and remove banner and icon |
I can't believe this is still an issue. I thought for sure a huge increase in users would have spured more interest from the developer community. At this point I've moved on to new obsession but it appears maybe others have as well. Hopefully this finally gets fixed whenever 0.19.6 drops. |
Working on this now. When this error occurs, do the lemmy-ui logs show an error like this?:
If so, I think I'm on the right track for reproducing the issue. |
Yep I believe it does. Or any sharp error. |
Requirements
Summary
Sometimes pictrs fails for many reasons, mostly because its not 100% perfect, to give a valid response to the logo call from lemmy-ui then the entire lemmy site no longer loads. This can be resolved by removing the site logo and uploading a new one again, without having to restart anything at all. Then lemmy-ui can get the logo again and the site functions normally once more.
A better solution to the entire site breaking would be to display a broken image icon or something as the logo so that the site continues to operate when this happens.
you can also remove the site logo directly from the postgres DB by using update site set icon = null where id = 1; and this also fixes the site again and then you can upload a new one.
Would make lemmy more reliable if this could be fixed, as pictrs cant be relied upon to be 100% reliable in every case every time until the end of the universe, as its just written by a normal human and so on. Bugs happen.
Steps to Reproduce
Technical Details
Docker build with pictrs, same as 99% of lemmy servers.
Lemmy Instance Version
0.18.5
Lemmy Instance URL
https://lemmy.myserv.one/
The text was updated successfully, but these errors were encountered: