The discussion revolves around a bug where oneboxed image links are not updating to locally downloaded images after being downloaded. Oni reports that remote images are no longer being downloaded, despite the disk not being full and Sidekiq running. After a rebuild, errors appear in the logs related to duplicate key violations, but the issue persists. David investigates and identifies that thumbnails are being generated, indicating images were downloaded, but the onebox links still point to the original source. David confirms the issue and provides a fix, which is further refined after Oni reports it’s still not working. David releases another update, and Oni confirms the issue is resolved.
Suddenly remote images aren’t downloaded on my server anymore even though I didn’t change anything on my config and disk space is also good.
I tried to look in the logs but I don’t see anything suspicious.
The only thing is that I don’t see sidekiq process for the image download in the sideqik queue job.
But I don’t think that’s the problem here because many others images aren’t downloaded and I don’t see the errors concerning these.
EDIT: Ok so there’s something odd but might be helpful. The thumbnails are generated for the images. Has there been a change in the code recently where pasted image url just generate a thumbnail with a link to the original source ?
Hi @Oni - please can you share an example post which isn’t working? (via PM is fine, if you prefer not to share publicly)
^^ this suggests that the images were downloaded - we can’t generate thumbnails from remote images. So it’s strange that the images are still appearing hotlinked in the post
Directly oneboxed images will now be rewritten as markdown images. This was the old behaviour, before my recent refactoring. As before, there is a ~10min delay before the rewrite happens.
Here’s a hotlinked image onebox - it should be re-written as an image in the next 10 mins or so (https://pbs.twimg.com/media/FRdPEnnX0AIy0V8?format=jpg&name=large)