A user, Jacob69, reports that some PDF files on their self-hosted Discourse forum can no longer be opened, displaying a ‘page does not exist or is private’ error. This issue began suddenly without any updates or changes to the system. The files are in the file system but not accessible in their original posts, though they work when re-uploaded in new posts. The user cannot provide access due to the closed nature of their community. Other users suggest checking if the files are in tombstone and using the ‘recover from tombstone’ rake task, or rebaking the posts with problematic PDFs using the ‘Rebuild HTML’ feature. Jacob69 explains the issue and limitations, while omarfilip offers a potential solution via rebaking posts.
We are using Discourse as a knowledge base with a lot of documents. Since yesterday, not all PDF-files can be opened anymore. When clicking the link to download the PDF-file, a new page opens with the notification ‘Oops! That page does not exist or is private.’.
This is not for all PDF-files we have on the forum. We already looked at file size, file name, different applications to change/save PDF-files, as well as creating new posts, but unfortunately we could not find the problem. Strange thing is everything worked last week, there was no update of anything at all (including plugins etc.).
We are self-hosting and used the official installation guide. Thing is, we did that two years ago and had no problems up to a month ago without updating or anything else.
Sorry. You don’t offer any clues as to why they might be the case. No one else has reported having the same issue. If you really did nothing and the issue started without your even doing an update it’s even harder to propose a course of action.
Are the files that you’re getting errors for in the file system? Are they somehow in tombstone? You might try the recover from tombstone rake task and see if it helps.
I make my living helping self hosters. I could take a look for a fee, but can’t make any promises as I have absolutely no idea what might have caused the problem or if it’s possible to fix it.
I know I can’t provide any clues, we’ve been looking for them for a couple of weeks now but there seems nothing to have happened what might have caused it.
The files are in the file system. The strange thing is that when we upload the files again in a new post, they can be opened and downloaden, but not in the original post. Due to the structure of our website, it is not possible to create all new kinds of posts. We are a closed community with management board members globally who use the website on a daily base, so unfortunately I cannot give you access.
Thank for thinking with me, I think we might have to think of another solution. Thanks!