# Attachments: Oops! That page doesn’t exist or is private

**URL:** https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947
**Category:** Self-hosting
**Tags:** uploads
**Created:** [April 7, 2023, 2:57pm UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947 "2023-04-07T14:57:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Amirk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amirk/32/301757_2.png) [@Amirk](https://meta.discourse.org/u/Amirk)
#### Post date: [April 7, 2023, 2:57pm UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947/1 "2023-04-07T14:57:34Z")

</div>

when Attachment link is clicked, error :  
Oops! That page doesn’t exist or is private.  
New to discourse, don’t know how to figure out.  
not too much settings tweaks, only  
toggle on Prevent anonymous users from downloading attachments.  
after installation, working for two weeks but suddenly stopped.  
any help? thanks.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [April 7, 2023, 3:52pm UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947/2 "2023-04-07T15:52:09Z")

</div>

Welcome Amirk 🙂

Is your install a [standard install](https://meta.discourse.org/t/142537?silent=true)?  
Did you try using the [safe mode](https://meta.discourse.org/t/53504?silent=true)?  
Do you have anything suspicious in your logs (Admin → Logs)?

---

<div class="post-metadata">

### Author: ![Amirk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amirk/32/301757_2.png) [@Amirk](https://meta.discourse.org/u/Amirk)
#### Post date: [April 8, 2023, 3:14am UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947/3 "2023-04-08T03:14:59Z")

</div>

Installed Discourse via standard, only thing I didn’t created docker user & every thing done via root user.  
[Safe mode](https://meta.discourse.org/t/53504?silent=true) didn’t help as using default theme with no plugin.  
No error log  
I increased max attachment size via

> [@Change the maximum attachment/upload size](https://meta.discourse.org/t/change-the-maximum-attachment-size/26435):
>
> bookmark This guide explains how to change the maximum attachment upload size for self-hosted Discourse instances. person_raising_hand Required user level: System Admin The default attachment upload size limit is 10MB If you are self-hosting Discourse and need to allow uploads larger than 10 MB, follow the steps below. Changing the upload size Connect to your server: Use SSH to access your server’s command line interface. Edit the configuration file: Navigate to the configurati…

After that no problem with large uploads.  
But now I also revert this change via backup file of app.yml, and rebuild app. but no help.  
upload new attachments, no old nor new attachments are working.  
One problem is uploaded files still exists on server, not being deleted along with post delete.

---

<div class="post-metadata">

### Author: ![Amirk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amirk/32/301757_2.png) [@Amirk](https://meta.discourse.org/u/Amirk)
#### Post date: [April 14, 2023, 7:03am UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947/4 "2023-04-14T07:03:12Z")

</div>

I completely removed discourse from server, prune all inactive docker images, reinstall discourse, upload attachments. at that time everything fine.  
to check whether again issue come back or not, I didn’t change any settings.  
wait for three days, and again check my attachments. now same problem came back.  
No attachments are being downloaded.  
Now I can confirm its a bug.  
Can any one help, why this happens automatically?

---

<div class="post-metadata">

### Author: ![Amirk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amirk/32/301757_2.png) [@Amirk](https://meta.discourse.org/u/Amirk)
#### Post date: [April 20, 2023, 10:43am UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947/5 "2023-04-20T10:43:29Z")

</div>

This problem was due to hitch & varnish proxy, as I already running other sites  
when I ran discourse alone without proxy, no problem.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [April 20, 2023, 12:08pm UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947/6 "2023-04-20T12:08:20Z")

</div>

`return(pipe);` works.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 20, 2023, 12:08pm UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947/7 "2023-05-20T12:08:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
