Error logs empty after upgrade

AI-generated summary

Users reported that after upgrading to Discourse version 3.1.0.beta3, their error logs became empty — both old entries and new events were missing. md-misko confirmed this on two separate instances and noted recurring console errors on the /logs page, including a 404 for messages.json. JammyDodger initially reported no issues on their test site, suggesting the logs appeared intact, possibly due to a different caching state or environment. david suspected a cached JavaScript file was causing the issue and advised a full browser restart. md-misko confirmed the fix: a hard refresh (Ctrl+Shift+R) or manually clearing Chrome’s cache (including on Android) resolved the problem, indicating the issue was client-side caching rather than a server or database error. This suggests the upgrade introduced a frontend asset change that older cached versions failed to handle correctly.

Version 3.1.0.beta3, all previous log entries are missing, new events are not logged.

Same issue on two updated instances.

I updated my test site to 3.1.0.beta3 this morning and my /logs history still appears to be intact? I think I also have some deprecation warnings from after the upgrade too.

Am I looking in the right spot?

I have lots of recurring console errors on the /logs page (no errors on the main forum page).

       GET https://forum.domain.name/logs/messages.json?filter=2_3_4_5 404
(anonymous) @ client-app.js:177
(anonymous) @ vendor.js:3856
e @ vendor.js:3856
l @ client-app.js:172
load @ client-app.js:209
reload @ client-app.js:212
setupController @ client-app.js:257
n @ vendor.js:1829
s.setup @ vendor.js:1352
s @ vendor.js:3769
n.routeEnteredOrUpdated @ vendor.js:3770
n.setupContexts @ vendor.js:3767
n.finalizeTransition @ vendor.js:3759
(anonymous) @ vendor.js:3752
y @ vendor.js:3835
g @ vendor.js:3833
t.invoke @ vendor.js:3368
t.flush @ vendor.js:3360
t.flush @ vendor.js:3374
n._end @ vendor.js:3437
_boundAutorunEnd @ vendor.js:3388
Promise.then (async)
r @ vendor.js:3344
flush @ vendor.js:2274
n._scheduleAutorun @ vendor.js:3451
n._ensureInstance @ vendor.js:3449
n.schedule @ vendor.js:3409
e.schedule @ vendor.js:2266
waitForDOMReady @ vendor.js:2026
init @ vendor.js:2025
n @ vendor.js:1829
v @ vendor.js:1733
e.create @ vendor.js:1746
(anonymous) @ client-app.js:297
forum.domain.name/:1 
        
       Uncaught (in promise) XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}
Promise.then (async)
r @ vendor.js:3344
flush @ vendor.js:2274
n._scheduleAutorun @ vendor.js:3451
n._end @ vendor.js:3438
_boundAutorunEnd @ vendor.js:3388
Promise.then (async)
r @ vendor.js:3344
flush @ vendor.js:2274
n._scheduleAutorun @ vendor.js:3451
n._end @ vendor.js:3438
_boundAutorunEnd @ vendor.js:3388
Promise.then (async)
r @ vendor.js:3344
flush @ vendor.js:2274
n._scheduleAutorun @ vendor.js:3451
n._end @ vendor.js:3438
_boundAutorunEnd @ vendor.js:3388
Promise.then (async)
r @ vendor.js:3344
flush @ vendor.js:2274
n._scheduleAutorun @ vendor.js:3451
n._end @ vendor.js:3438
_boundAutorunEnd @ vendor.js:3388
Promise.then (async)
r @ vendor.js:3344
flush @ vendor.js:2274
n._scheduleAutorun @ vendor.js:3451
n._end @ vendor.js:3438
_boundAutorunEnd @ vendor.js:3388
Promise.then (async)
r @ vendor.js:3344
flush @ vendor.js:2274
n._scheduleAutorun @ vendor.js:3451
n._ensureInstance @ vendor.js:3449
n.schedule @ vendor.js:3409
(anonymous) @ vendor.js:1586
m @ vendor.js:3831
(anonymous) @ vendor.js:3856
Ember.RSVP.Promise.o.onreadystatechange @ client-app.js:177
XMLHttpRequest.send (async)
(anonymous) @ client-app.js:177
(anonymous) @ vendor.js:3856
e @ vendor.js:3856
l @ client-app.js:172
load @ client-app.js:209
reload @ client-app.js:212
setupController @ client-app.js:257
n @ vendor.js:1829
s.setup @ vendor.js:1352
s @ vendor.js:3769
n.routeEnteredOrUpdated @ vendor.js:3770
n.setupContexts @ vendor.js:3767
n.finalizeTransition @ vendor.js:3759
(anonymous) @ vendor.js:3752
y @ vendor.js:3835
g @ vendor.js:3833
t.invoke @ vendor.js:3368
t.flush @ vendor.js:3360
t.flush @ vendor.js:3374
n._end @ vendor.js:3437
_boundAutorunEnd @ vendor.js:3388
Promise.then (async)
r @ vendor.js:3344
flush @ vendor.js:2274
n._scheduleAutorun @ vendor.js:3451
n._ensureInstance @ vendor.js:3449
n.schedule @ vendor.js:3409
e.schedule @ vendor.js:2266
waitForDOMReady @ vendor.js:2026
init @ vendor.js:2025
n @ vendor.js:1829
v @ vendor.js:1733
e.create @ vendor.js:1746
(anonymous) @ client-app.js:297
client-app.js:177 

Please can you try completely quitting your browser and then reopening? I think it’s likely that you have a cached version of the /logs javascript

That was it, thanks. Browser reopening didn’t work, but hard refresh did (and clearing Chrome cache on Android).