Attachment broken link even though attachment still exist in file system

I run into this issue, which has happened a few times but I cannot reproduce.

After I attached a file to a page for a while, it would become broken link and seems like xwiki cannot find it anymore. However, the attachment is still in the file system.

Screenshot%20from%202019-03-28%2014-40-02

Just to show the file is in the file system

Screenshot%20from%202019-03-28%2014-37-11

If you click on the attachment (to access that file directly in your browser) you should get a more detailed error I think. Any error in the log ?

When I click in the link, it redirects to the xwiki’s customised ‘not found’ page and says cannot find the page and then shows a bunch of suggestions of other pages.

In the log, the only line related to this is Screenshot%20from%202019-03-29%2010-14-52

But I don’t think this is the problem, as I see this warning for other pictures too. In my Nginx access.log, I see this:

access.log.1:172.18.25.90 - - [28/Mar/2019:14:35:07 -0700] “GET /bin/download/QualityManagement/QMS/QualityManagementDoc10065/WebHome/SoftwareLifeCycle.gif HTTP/1.1” 404 5636 “https://quality.corp.fortinet.com/bin/view/QualityManagement/QMS/QualityManagementDoc10065/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”

This is weird, 404 is supposed to mean that the attachment is not listed in the document but it’s listed for you obviously. If it was failing to load it for some reason you should get an error 500.

Yes the log you pasted is not linked to the 404.

And you have this issue only for specific attachments ? Not all ?