Category link failed after updating today

  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
    (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.

  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

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

Look for errors in /var/discourse/shared/standalone/log/
How long ago was your previous update?
Sometimes themes and theme components break, try following How to use Discourse Safe Mode and see if that helps.

2 Likes

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.

Sample page: 尚未分類 - StudyCamp 線上學習論壇

Meanwhile, the tag page loading works fine.
Sample page: 主題標籤 會議記錄

Please advice. Many thanks again.

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.

1 Like

Thaks again. Looks like nothing wrong.

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

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

Error message(image attached below):

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:
https://publichappinessmovement.com/t/topic/2544

Thanks for @ssvenn great help.

Some further testing:

  1. Set safe mode 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.