# Category link failed after updating today

**URL:** https://meta.discourse.org/t/category-link-failed-after-updating-today/194558
**Category:** Support
**Created:** [June 21, 2021, 1:59pm UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558 "2021-06-21T13:59:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [June 21, 2021, 1:59pm UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558/1 "2021-06-21T13:59:35Z")

</div>

1. The system becomes very slow after updating\* this morning.  
The post can display without problem, but the category page loading failed.  
The time counting of loading in admin doesn’t show.

2. I restore the whole system by VPS daily backup image.

3. After restoring, discourse shows 502 error.

4. Putty login and rebuild the app  
PS: I saw a warning message:  
“MaxMind IP database updates require a license  
Please set DISCOURSE\_MAXMIND\_LICENSE\_KEY to one you generated at [https://wwww.maxmind.com](https://wwww.maxmind.com)”  
(update) Check the app.yml and found it’s remarked for DISCOURSE\_MAXMIND\_LICENSE\_KEY setting

5. The “Custom Header Links” display from horizontal change to vertical. Can’t login with correct ID/PW any more.

 ![Custom Header Links error 0621](https://global.discourse-cdn.com/meta/original/3X/6/c/6c2def1db1a7c6ac9109f70dea4fded9e62e259d.jpeg)

1. Restore the system by VPS daily backup image again. And 502 error again…

How can I get out of the loop and make the discourse work again?

Please advice. Many thanks in advance.

\*Updating list

```plaintext
https://github.com/discourse/discourse/compare/c659e3e9...44aa46ca

https://github.com/discourse/discourse-calendar/compare/f5cb5a2...14a7649

https://github.com/discourse/discourse-solved/compare/fe4d0c0...ca0dbd6

```

---

<div class="post-metadata">

### Author: ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)
#### Post date: [June 21, 2021, 3:34pm UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558/2 "2021-06-21T15:34:29Z")

</div>

Look for errors in /var/discourse/shared/standalone/log/  
How long ago was your previous update?  
Sometimes themes and theme components break, try following [Using Safe Mode to troubleshoot issues with themes and plugins](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504) and see if that helps.

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [June 21, 2021, 3:56pm UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558/3 "2021-06-21T15:56:28Z")

</div>

> [@ssvenn](#):
>
> How long ago was your previous update?

Thanks for advice. Normally I update 2 to 3 times per week.

**UPDATE** : I did the same process mentioned above for the 3rd times and the problem 5(“Custom Header Links” and login error) won’t happen again. And the admin page loading time appear again as well. Weird, I just repeat the same process for the 3rd time.

However, the category page loading failure still exist.

 ![Category page loading error](https://global.discourse-cdn.com/meta/original/3X/5/8/5891b5ccd08c5be31b66d85841b211df3987ab29.jpeg)

Sample page: [尚未分類 - StudyCamp 線上學習論壇](https://vip.studycamp.tw/c/uncategorized/1)

Meanwhile, the tag page loading works fine.  
Sample page: [Topics tagged 會議記錄](https://vip.studycamp.tw/tag/%E6%9C%83%E8%AD%B0%E8%A8%98%E9%8C%84)

Please advice. Many thanks again.

---

<div class="post-metadata">

### Author: ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)
#### Post date: [June 21, 2021, 4:09pm UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558/4 "2021-06-21T16:09:01Z")

</div>

It looks like your page gives a javascript error `TypeError: undefined is not an object (evaluating 'e[t]')` but I’m not sure what causes it.

I would disable all your plugins in app.yml then turn them back on one by one until you find which plugin does it. You should also look at the meta discussion page for each plugin you are using to see if any of them are known to be broken recently.

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [June 21, 2021, 4:10pm UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558/5 "2021-06-21T16:10:37Z")

</div>

> [@ssvenn](#):
>
> Look for errors in /var/discourse/shared/standalone/log/

Thaks again. Looks like nothing wrong.

 ![log 0621](https://global.discourse-cdn.com/meta/original/3X/f/c/fc7cb11ce4e2d9bfeb014232602ba84febb7e137.jpeg)

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [June 21, 2021, 4:13pm UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558/6 "2021-06-21T16:13:55Z")

</div>

> [@ssvenn](#):
>
> I would disable all your plugins in app.yml then turn them back on one by one until you find which plugin does it.

Got it. I will try “calendar” and “solved” first since they are what I update today. Thanks again.

```plaintext
https://github.com/discourse/discourse/compare/c659e3e9...44aa46ca

https://github.com/discourse/discourse-calendar/compare/f5cb5a2...14a7649

https://github.com/discourse/discourse-solved/compare/fe4d0c0...ca0dbd6

```

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [June 21, 2021, 4:41pm UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558/7 "2021-06-21T16:41:46Z")

</div>

Error message(image attached below):

```plaintext
send @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:26
ajax @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:26
window.onerror @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:36
(anonymous) @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:36
(anonymous) @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:36

```

And when I use the keyword above to search on net, found similar problem in another discourse site:

> **[Updating Docuss to work with new Discourse](https://publichappinessmovement.com/t/topic/2544)**
>
> You were right @syl, Docuss isn’t working with the new version of Discourse. What skillset would you recommend for someone coming in to update it, and i’ll start looking for them? A real shame we weren’t able to help anyone during the pandemic...

 ![error js](https://global.discourse-cdn.com/meta/original/3X/5/3/53443e0be11f7a83ea4ca2ab42d71ed9ce1398fc.jpeg)

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [June 22, 2021, 6:04am UTC](https://meta.discourse.org/t/category-link-failed-after-updating-today/194558/8 "2021-06-22T06:04:22Z")

</div>

Thanks for @ssvenn great help.

Some further testing:

1. Set [safe mode](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504) then works fine.

2. Edit app.yml to have Docker manager plugin only and rebuilt the app.  
**RESULT:** works fine

3. Edit app.yml to remove onebox plugin\* only and rebuilt the app.  
**RESULT** : works fine  
\*The only unofficial plugin I installed

4. edit app.yml to have all plugins before modification and rebuilt the app.  
**RESULT** : works fine

Well, finally this issue was gone. But I didn’t do anything, just rebuild the app again and again.

* * *

All apps building yesterday failed in category link.

All apps building this morning, Taiwan time, works fine on category link.

I think there are some updating code fix this issue during this period. But I still don’t know why.
