# Sudden "The requested URL or resource could not be found."

**URL:** https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088
**Category:** Support
**Created:** [20.Февраль.2018 22:28:29 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088 "2018-02-20T22:28:29Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Geoffrey\_Challen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoffrey_challen/32/119637_2.png) [@Geoffrey\_Challen](https://meta.discourse.org/u/Geoffrey_Challen)
#### Post date: [20.Февраль.2018 22:28:29 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/1 "2018-02-20T22:28:29Z")

</div>

I’ve had a Discourse instance running happily for over a month, until just about an hour ago. Now I’m getting:

- frequent “The requested URL or resource could not be found.” when loading any page.
- periodic “you don’t have access to that category” errors
- random logouts
- random “You don’t have access to that topic errors”

Any clues how to debug or fix this? At least for me my forum is pretty unusable, and I suspect that this is also affecting other users…

Just confirmed that this is also affecting my other admin user.

---

<div class="post-metadata">

### Author: ![Geoffrey\_Challen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoffrey_challen/32/119637_2.png) [@Geoffrey\_Challen](https://meta.discourse.org/u/Geoffrey_Challen)
#### Post date: [20.Февраль.2018 22:48:31 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/2 "2018-02-20T22:48:31Z")

</div>

So at this point this seems related to my IP address. Switching to another router and things work again. Switch back and they are broken again.

One important note is that I accidentally ran a script that made a bunch of API calls right before this started. So I’m wondering if that triggered a per-IP ban somewhere…

---

<div class="post-metadata">

### Author: ![Geoffrey\_Challen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoffrey_challen/32/119637_2.png) [@Geoffrey\_Challen](https://meta.discourse.org/u/Geoffrey_Challen)
#### Post date: [21.Февраль.2018 00:12:03 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/3 "2018-02-21T00:12:03Z")

</div>

Apparently this is a widespread problem for my users.

I’m not sure what to do at this point. Are there some commands that I can run to check the database for issues, clear out state from various Discourse components, etc.?

---

<div class="post-metadata">

### Author: ![Geoffrey\_Challen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoffrey_challen/32/119637_2.png) [@Geoffrey\_Challen](https://meta.discourse.org/u/Geoffrey_Challen)
#### Post date: [21.Февраль.2018 04:43:53 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/4 "2018-02-21T04:43:53Z")

</div>

As another follow up, this seems to be related to logout and suspend functionality. At some point today one of my scripts broke, which caused all users to be suspend and logged out using the API functionality. Somehow that seems to have borked the session state causing the problems I described above.

Deleting all user sessions using the API seems to have cleared things up… I hope. Not sure what caused the initial problem however, since it seems reasonable to expect the suspend and logout APIs to _not_ cause this problem…

---

<div class="post-metadata">

### Author: ![Geoffrey\_Challen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoffrey_challen/32/119637_2.png) [@Geoffrey\_Challen](https://meta.discourse.org/u/Geoffrey_Challen)
#### Post date: [21.Февраль.2018 15:31:52 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/5 "2018-02-21T15:31:52Z")

</div>

Spoke too soon—this is still happening. Seems confined to my user at this point. Now it is manifesting itself as sudden logouts after just a minute or two.

Any help with this? It’s super confusing and disconcerting. Note that this still has the strange IP address dependency that it did previously, in case that’s helpful. Moving to a different subnet solves the problem.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [21.Февраль.2018 22:08:56 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/6 "2018-02-21T22:08:56Z")

</div>

> [@Geoffrey\_Challen](#):
>
> One important note is that I accidentally ran a script that made a bunch of API calls right before this started. So I’m wondering if that triggered a per-IP ban somewhere…

Have you checked the screened IPs list? It’s available at [example.com/admin/logs/screened\_ip\_addresses](http://example.com/admin/logs/screened_ip_addresses).

---

<div class="post-metadata">

### Author: ![Geoffrey\_Challen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoffrey_challen/32/119637_2.png) [@Geoffrey\_Challen](https://meta.discourse.org/u/Geoffrey_Challen)
#### Post date: [21.Февраль.2018 22:13:29 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/7 "2018-02-21T22:13:29Z")

</div>

> [@zogstrip](#):
>
> Have you checked the screened IPs list?

Yup, did that. Nothing unusual there.

What’s so weird about this is how episodic it is. Right now I’m logged in to my forum and things are working fine. But in a few minutes, I’ll suddenly be logged out. (Somehow this always happens right in the midst of a hugely enlightening post, of course.)

I’ve seen notes from @sam about the session coherency protocol, so I’m wondering if I’m triggering some instability or corner case there…

---

<div class="post-metadata">

### Author: ![dena\_blaze](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dena\_blaze](https://meta.discourse.org/u/dena_blaze)
#### Post date: [20.Апрель.2018 15:20:51 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/8 "2018-04-20T15:20:51Z")

</div>

Am having the same problem also. This is a recent issue for me since I have been running discourse for close to 6 months with no problem. Also after getting logged out once I try to log in again I get

> The requested URL or resource could not be found.

After this once I reload the site everything returns to normal for a while.

---

<div class="post-metadata">

### Author: ![Geoffrey\_Challen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoffrey_challen/32/119637_2.png) [@Geoffrey\_Challen](https://meta.discourse.org/u/Geoffrey_Challen)
#### Post date: [21.Апрель.2018 14:16:54 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/9 "2018-04-21T14:16:54Z")

</div>

Sorry about this! It’s very frustrating.

I wish I could remember what I did that solved the problem. I think there was some stale data stuck in a cache somewhere, but it was far from clear how to fix it. If you’re really stuck let me know and I’ll try digging into our server logs in case there’s anything useful…

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [14.Май.2018 20:05:21 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/10 "2018-05-14T20:05:21Z")

</div>

Just got this on the homepage and have never seen this before. Didn’t do anything recently to cause this (i.e. update)

Any ideas yet what’s caused this?

P.S. I have also experienced your referenced “you don’t have access to that category” errors randomly in the past, when a reload (maybe 2 or 3) loads fine.

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [14.Май.2018 20:05:46 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/11 "2018-05-14T20:05:46Z")

</div>

Now it’s back 5 minutes later…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [14.Май.2018 21:17:13 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/12 "2018-05-14T21:17:13Z")

</div>

Any thoughts on this @sam? Ideas for troubleshooting is fine.

---

<div class="post-metadata">

### Author: ![Bryan\_Underwood\_CA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryan_underwood_ca/32/95427_2.png) [@Bryan\_Underwood\_CA](https://meta.discourse.org/u/Bryan_Underwood_CA)
#### Post date: [31.Май.2018 01:31:51 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/13 "2018-05-31T01:31:51Z")

</div>

I am not sure if this totally applies, but I just had something like this happen to me. I am running through a script I wrote with the Discourse API. I changed one of my SSO settings which incidentally changed my discourse admin username to something else. Since I have to make API calls with my API key and my API username, I started receiving this message after a happy day of scripting. Since my discourse api\_username changed, the calls were rejected.

If anyone has this problem, here are your two simple options:  
A) Change the api\_username to the new discourse username in your script  
B) Change the discourse username in the site front-end to match the api\_username you are sending.

Again, this may not help @jesselperry but might help others since I landed on this thread during troubleshooting.

---

<div class="post-metadata">

### Author: ![tobia](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tobia](https://meta.discourse.org/u/tobia)
#### Post date: [07.Июнь.2018 09:40:54 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/14 "2018-06-07T09:40:54Z")

</div>

I suddenly had the same problem.

Fortunately it’s a development instance and I happened to have an api key, so I solved it by logging out all users with curl:

`url=http://...; key1=api_key=...; key2=api_username=...; curl -sS $url/admin/users/list/active.json?$key1\&$key2 | pcregrep -o1 '"id":(\d+)' | while read id; do echo -n $id$'\t'; curl -sS $url/admin/users/$id/log_out -F$key1 -F$key2; echo; done`

Any users still on the platform see this:

 ![logout](https://global.discourse-cdn.com/meta/original/3X/a/0/a09bf7a5bc19d7b0386bac38f138793451651ac1.png)

---

<div class="post-metadata">

### Author: ![citadelgrad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/citadelgrad/32/121003_2.png) [@citadelgrad](https://meta.discourse.org/u/citadelgrad)
#### Post date: [18.Октябрь.2019 02:13:38 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/15 "2019-10-18T02:13:38Z")

</div>

Эта проблема начала возникать после обновления с Discourse 1.9 до 2.3.

Мы всегда использовали системную учётную запись под названием MealMentor. Я потратил часы на изучение настроек и смену ключей, но ничего не помогало исправить сообщение «Запрошенный URL или ресурс не найден». Тогда я решил изменить api\_username на мою личную учётную запись администратора Scott\_Team\_MM, и это сразу же решило проблему.

---

<div class="post-metadata">

### Author: ![leighfarrell](https://avatars.discourse-cdn.com/v4/letter/l/7bcc69/32.png) [@leighfarrell](https://meta.discourse.org/u/leighfarrell)
#### Post date: [18.Май.2020 19:08:35 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/16 "2020-05-18T19:08:35Z")

</div>

Мы начали сталкиваться с той же проблемой в нашем приложении в прошлую среду, после того как оно работало в продакшене несколько месяцев. Мы используем версию Discourse 2.8. Перезапуск контейнеров Docker временно решил проблему, но она возникла снова сегодня утром. Мы используем SSO в Discourse и не хотим менять какие-либо имена пользователей, пока не будем уверены: а) что это исправит проблему, и б) в том, _почему_ это её исправит. Я понимаю, что это старая тема, но это единственное место, где описаны точные симптомы, с которыми мы столкнулись.

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [12.Октябрь.2020 14:02:35 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/17 "2020-10-12T14:02:35Z")

</div>

Мои пользователи тоже начали сталкиваться с этой проблемой. Она возникает, когда они пытаются **отредактировать существующий пост** , и после 5–10 минут попыток редактирование удаётся сохранить.

Я использую последнюю версию Discourse и перезапустил Docker-контейнер.

Есть ли какие-то обновлённые рекомендации по смягчению этой проблемы? Мне нечего больше сказать пользователям, кроме как «пробуйте снова». 🙁

---

<div class="post-metadata">

### Author: ![kbtonmoy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kbtonmoy/32/223008_2.png) [@kbtonmoy](https://meta.discourse.org/u/kbtonmoy)
#### Post date: [04.Июнь.2021 05:16:03 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/18 "2021-06-04T05:16:03Z")

</div>

Сталкиваюсь с той же проблемой. Даже пробовал ./launcher app rebuild, но безрезультатно. Есть ли способ это исправить?

---

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [24.Декабрь.2025 10:15:56 UTC](https://meta.discourse.org/t/sudden-the-requested-url-or-resource-could-not-be-found/81088/20 "2025-12-24T10:15:56Z")

</div>

> [@Geoffrey\_Challen](#):
>
> «Запрашиваемый URL или ресурс не найден» при загрузке любой страницы

Одной из возможных причин менее серьёзных сбоев с похожими симптомами является:

> [@SSO Broken - The requested URL or resource could not be found](https://meta.discourse.org/t/sso-broken-the-requested-url-or-resource-could-not-be-found/231230/9?u=rokejulianlockhart):
>
> I’m afraid this problem is back and now removing the tag that was causing the problem is not working. How do I identify the tag id 842 that I see in the logs? Thanks! ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "idx\_tag\_users\_ix1" DETAIL: Key (user\_id, tag\_id, notification\_level)=(8118, 842, 0) already exists. ) play_button Logs from attempted user login

Также создана новая тема для одного из симптомов, поэтому, если это актуально, следите за ней:

> **[Forum Email Validation shows URL error](https://forum.manjaro.org/t/forum-email-validation-shows-url-error/151170?u=beedellrokejulianloc)**
>
> I don’t need to log into the forums often, but last few times I kept getting an error message from the site on email validation: You can't log in yet. We previously sent an activation email to you at r\[REDACTED\].com. Please follow the...

Хотя также был случай:

> [@Can't rename tag: The requested URL or resource could not be found](https://meta.discourse.org/t/cant-rename-tag-the-requested-url-or-resource-could-not-be-found/169683/12?u=rokejulianlockhart):
>
> Deleting was fixed at the same time. The commit is here for reference:

…что ещё больше запутывает ситуацию.
