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
Users are Unable to Follow Certain Users and Avatars/Media Are Not Updated #8983
Comments
Best as I can figure, it's trying to download the user's avatar and failing. According to this StackOverflow question, it seems to happen when it fails validation? https://stackoverflow.com/questions/49584973/why-is-paperclip-upload-giving-trying-to-link-error |
From what I can see by looking at the database, the remote avatar URL tends to be incorrect... but there's more to it than that... |
Means that paperclip couldn't open a tempfile it created itself. That's very strange. Are you out of disk space? Something with directory permissions? |
We've got a lot of disk space and use S3 for our media storage so it definitely shouldn't be a disk space issue. As far as directory permissions, we're running in docker, so I'm not sure where to look, but I definitely haven't touched anything that might effect that. Also strange that it seems to be per account. |
Some other logs/diagnostics that may be useful from the system side: All that being said my experience with application debugging encourages occams razor and suggests that if the file isn't there to be read the app never wrote it because it decided not to (and therefore your instincts around looking at the functioning of app components is probably a good one). |
mount-output.txt I'm not sure how to get the s3 api calls, I'm just doing it via mastodon. Regardless, I've not seen this occur with local users or media, only remote ones, which is another part of why I suspect it's not an issue with the files themselves. |
If you wanted to get S3 logs you have to use cloudtrail. The methodology is like so https://docs.aws.amazon.com/AmazonS3/latest/user-guide/enable-cloudtrail-events.html that'll get you log output like this in theory then you could then correlate your mastodon errors with S3 logs to see what was up from the backend perspective (IE ensure that the reason the error was occurring was because the file was not on S3 and was never created). Typically speaking when trying to diagnose something in a black-box fashion like this my next step would be tracing tools (try to find out what the app is doing) but I highly suspect that it'll tell us that it's trying to read a file that isn't there (unhelpful). I assume you haven't been able to replicate the issue by recreating aspects of an offending example? |
So, I actually was able to replicate it, by doing the following: This is as far as I've gotten in my digging. |
I had some ideas but they're all torpedoed by there being even 1 local examples. I'll reply back if I have a brainwave before you figure it out with your superior cranial horsepower :D |
Oh yeah, no, so far no local examples. ONLY remote media seems to cause this to occur. Something is failing but I haven't been able to trace what. |
The only other thing I can think of to narrow it down is whether it's related to a specific version or configuration on remotes or if it's just all remotes. Other than that I'm out of ideas right now. |
If it was all instances or all users, but it seems to be somewhat random. The only thing I've managed to confirm is that changing an avatar seems to get it 'stuck', but there's still plenty of media and I've still been able to follow other users so... I'm really baffled. |
I take it back: After moving off of S3 I had misconfigured our permissions, but when I fixed that everything worked again. So if anyone starts having this issue again I'd look at S3. It was just too inconsistent to nail down before. |
Glad you found the problem! |
This issue is back, even without AWS, which is very strange to me. It returned when I updated to 2.6.1... |
Ok, it seems this is an issue with Paperclip 6.1.0. I had unintentionally bumped the version when I had to rebuild the Gemfile.lock. It might be a good idea to lock the version at 6.0 unless you have a reason to update it since it's deprecated. |
You should definitely only ever use the Gemfile.lock that Mastodon ships with. |
My users have been reporting that they are unable to see/boost certain toots from certain users. Specifically, some avatars are out of date (I have run tootctl refresh) and media posts aren't showing. When I try to follow those users, I see the following error in our docker logs:
Any idea why this might be is appreciated.
master
(If you're a user, don't worry about this).The text was updated successfully, but these errors were encountered: