Internal Server Error

Upgraded Homarr last night and didn't notice before I got to my work PC that it just says "Internal server error". On my phone and home PC it works but on the work PC it just says Internal Server Error. Curl says 301 moved. Uptime-kuma also says it's offline Logs: 2023-06-08T06:51:29.222702058Z TypeError: Cannot read properties of undefined (reading '_nextI18Next') 2023-06-08T06:51:29.222746418Z at AppWithTranslation (/app/node_modules/next-i18next/dist/commonjs/appWithTranslation.js:92:29) 2023-06-08T06:51:29.222760251Z at Wc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44) 2023-06-08T06:51:29.222772775Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253) 2023-06-08T06:51:29.222791698Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89) 2023-06-08T06:51:29.222803651Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:481) 2023-06-08T06:51:29.222815134Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89) 2023-06-08T06:51:29.222826291Z at $c (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98) 2023-06-08T06:51:29.222838161Z at bd (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:77:404) 2023-06-08T06:51:29.222849338Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:217) 2023-06-08T06:51:29.222861141Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:479)
44 Replies
Manicraft1001
Manicraft10012y ago
Hi, is that the development version?
Spillebulle
SpillebulleOP2y ago
yes
Manicraft1001
Manicraft10012y ago
What browser do you use on all of your devices? What language? Have you tried clearing cache on your work device?
Spillebulle
SpillebulleOP2y ago
Same chromium Vivaldi, English, yes Tried in edge now, also Internal server error Tried on another machine and same thing
Spillebulle
SpillebulleOP2y ago
Manicraft1001
Manicraft10012y ago
Is the i18n error from Homarr or your browser? Any messages previous to that? @meierschlumpf I think the upgrade yesterday broke it. Seems like it doesn't effect all machines though
Spillebulle
SpillebulleOP2y ago
i18n is from docker homarr logs that message keeps coming up constantly and can't find any other messages. Only goes back so far Actually more of it I forgot to copy
2023-06-08T12:14:55.144738022Z TypeError: Cannot read properties of undefined (reading '_nextI18Next')
2023-06-08T12:14:55.144762382Z at AppWithTranslation (/app/node_modules/next-i18next/dist/commonjs/appWithTranslation.js:92:29)
2023-06-08T12:14:55.144771064Z at Wc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
2023-06-08T12:14:55.144778643Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
2023-06-08T12:14:55.144786216Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
2023-06-08T12:14:55.144793532Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:481)
2023-06-08T12:14:55.144800951Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
2023-06-08T12:14:55.144808262Z at $c (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
2023-06-08T12:14:55.144815968Z at bd (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:77:404)
2023-06-08T12:14:55.144823465Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:217)
2023-06-08T12:14:55.144830852Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:479)
2023-06-08T12:15:55.230328870Z Error: Initial locale argument was not passed into serverSideTranslations
2023-06-08T12:15:55.230408362Z at _callee$ (/app/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:174:19)
2023-06-08T12:15:55.230442623Z at tryCatch (/app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)
2023-06-08T12:15:55.230450215Z at Generator.<anonymous> (/app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)
2023-06-08T12:15:55.230457985Z at Generator.next (/app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)
2023-06-08T12:15:55.230464671Z at asyncGeneratorStep (/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
2023-06-08T12:15:55.230471259Z at _next (/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
2023-06-08T12:15:55.230477863Z at /app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
2023-06-08T12:15:55.230484238Z at new Promise (<anonymous>)
2023-06-08T12:15:55.230490709Z at /app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12
2023-06-08T12:15:55.230497204Z at serverSideTranslations (/app/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:275:17)
2023-06-08T12:14:55.144738022Z TypeError: Cannot read properties of undefined (reading '_nextI18Next')
2023-06-08T12:14:55.144762382Z at AppWithTranslation (/app/node_modules/next-i18next/dist/commonjs/appWithTranslation.js:92:29)
2023-06-08T12:14:55.144771064Z at Wc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
2023-06-08T12:14:55.144778643Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
2023-06-08T12:14:55.144786216Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
2023-06-08T12:14:55.144793532Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:481)
2023-06-08T12:14:55.144800951Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
2023-06-08T12:14:55.144808262Z at $c (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
2023-06-08T12:14:55.144815968Z at bd (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:77:404)
2023-06-08T12:14:55.144823465Z at Z (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:217)
2023-06-08T12:14:55.144830852Z at Zc (/app/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:479)
2023-06-08T12:15:55.230328870Z Error: Initial locale argument was not passed into serverSideTranslations
2023-06-08T12:15:55.230408362Z at _callee$ (/app/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:174:19)
2023-06-08T12:15:55.230442623Z at tryCatch (/app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)
2023-06-08T12:15:55.230450215Z at Generator.<anonymous> (/app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)
2023-06-08T12:15:55.230457985Z at Generator.next (/app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)
2023-06-08T12:15:55.230464671Z at asyncGeneratorStep (/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
2023-06-08T12:15:55.230471259Z at _next (/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
2023-06-08T12:15:55.230477863Z at /app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
2023-06-08T12:15:55.230484238Z at new Promise (<anonymous>)
2023-06-08T12:15:55.230490709Z at /app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12
2023-06-08T12:15:55.230497204Z at serverSideTranslations (/app/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:275:17)
That again and again for at least 1000 lines
Manicraft1001
Manicraft10012y ago
Hmm weird It's normal that there's a warning or error... But not sure if it's normal that there are that many You said, that it works in other browsers?
Spillebulle
SpillebulleOP2y ago
It works in the browsers I use most often, so those that are cached. If I delete cache it doesn't work anymore
Manicraft1001
Manicraft10012y ago
Okay I will investigate it, thanks @spillebulle the dev image should be updated. I wasn't able to reproduce, but can you check if this still happens?
Spillebulle
SpillebulleOP2y ago
Yeah I saw, works fine now. Plex integration too
Manicraft1001
Manicraft10012y ago
Awesome, thanks
Spillebulle
SpillebulleOP2y ago
❤️ @manicraft1001 Actually, just tried on my phone. Still Internal server error. Uptimekuma still says 301 PC started working, then one I deleted cache on earlier Delete cache again and stops working
Manicraft1001
Manicraft10012y ago
It's very weird how it displays the internal server error Full log?
Spillebulle
SpillebulleOP2y ago
2023-06-10T01:06:22.877346427Z Listening on port 7575 url: http://7723f0d303a6:7575
2023-06-10T11:45:38.213427079Z ℹ Requested frontend content of configuration 'default'
2023-06-10T11:45:39.619228372Z
2023-06-10T11:45:39.619257507Z WARN Unexpected response: Request failed with status code 403
2023-06-10T11:45:39.619267170Z
2023-06-10T11:45:39.643784609Z Retrieving media requests from 1 apps
2023-06-10T11:45:39.712369398Z
2023-06-10T11:45:39.712440103Z WARN Unexpected response: Request failed with status code 403
2023-06-10T11:45:39.712456370Z
2023-06-10T11:45:39.741018928Z
2023-06-10T11:45:39.741059425Z WARN Unexpected response: Request failed with status code 401
2023-06-10T11:45:39.741068659Z
2023-06-10T01:06:22.877346427Z Listening on port 7575 url: http://7723f0d303a6:7575
2023-06-10T11:45:38.213427079Z ℹ Requested frontend content of configuration 'default'
2023-06-10T11:45:39.619228372Z
2023-06-10T11:45:39.619257507Z WARN Unexpected response: Request failed with status code 403
2023-06-10T11:45:39.619267170Z
2023-06-10T11:45:39.643784609Z Retrieving media requests from 1 apps
2023-06-10T11:45:39.712369398Z
2023-06-10T11:45:39.712440103Z WARN Unexpected response: Request failed with status code 403
2023-06-10T11:45:39.712456370Z
2023-06-10T11:45:39.741018928Z
2023-06-10T11:45:39.741059425Z WARN Unexpected response: Request failed with status code 401
2023-06-10T11:45:39.741068659Z
Manicraft1001
Manicraft10012y ago
Hmm I don't see any hint, that Homarr would be the problem If there was a crash, there should be more information
Spillebulle
SpillebulleOP2y ago
Pulled new image again and seems fine so far Cleared cache again and seems to be working
Manicraft1001
Manicraft10012y ago
Weird I don't want to fully exclude Homarr from any fault, but you you have a proxy in front of it? Usually, internal server errors should look differently than what you showed here....
Spillebulle
SpillebulleOP2y ago
NPM
Manicraft1001
Manicraft10012y ago
Can you check if NPM has any errors? I don't wanna blame it on a different app, but the error message doesn't look like it comes from Homarr
Spillebulle
SpillebulleOP2y ago
Just errors from some old SSL certificates I haven't cleaned up, nothing else from the timeframe
Manicraft1001
Manicraft10012y ago
Hmm okay If you can find out, when the error happens, I can try to fix it But otherwise, that will be very hard
Spillebulle
SpillebulleOP2y ago
@manicraft1001 Just got a notification from Uptime-kuma that homarr is down. I see this when I go to it
Spillebulle
SpillebulleOP2y ago
This keeps coming up again and again in the logs:
2023-06-16T05:04:57.048906292Z TypeError: Cannot read properties of null (reading 'useMemo')
2023-06-16T05:04:57.048913180Z at exports.useMemo (/app/node_modules/react/cjs/react.production.min.js:25:208)
2023-06-16T05:04:57.048920521Z at Object.useDehydratedState (file:///app/node_modules/@trpc/react-query/dist/createHooksInternal-a6562110.mjs:531:29)
2023-06-16T05:04:57.048927704Z at WithTRPC (/app/.next/server/chunks/9989.js:69:40)
2023-06-16T05:04:57.048934526Z at Ge (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:114:273)
2023-06-16T05:04:57.048941707Z at Z (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:120:91)
2023-06-16T05:04:57.048948987Z at Ge (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:119:95)
2023-06-16T05:04:57.048956301Z at Z (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:120:91)
2023-06-16T05:04:57.048963429Z at Ge (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:115:9)
2023-06-16T05:04:57.048970406Z at Z (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:120:91)
2023-06-16T05:04:57.048978616Z at Ge (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:115:9)
2023-06-16T05:04:57.048906292Z TypeError: Cannot read properties of null (reading 'useMemo')
2023-06-16T05:04:57.048913180Z at exports.useMemo (/app/node_modules/react/cjs/react.production.min.js:25:208)
2023-06-16T05:04:57.048920521Z at Object.useDehydratedState (file:///app/node_modules/@trpc/react-query/dist/createHooksInternal-a6562110.mjs:531:29)
2023-06-16T05:04:57.048927704Z at WithTRPC (/app/.next/server/chunks/9989.js:69:40)
2023-06-16T05:04:57.048934526Z at Ge (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:114:273)
2023-06-16T05:04:57.048941707Z at Z (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:120:91)
2023-06-16T05:04:57.048948987Z at Ge (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:119:95)
2023-06-16T05:04:57.048956301Z at Z (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:120:91)
2023-06-16T05:04:57.048963429Z at Ge (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:115:9)
2023-06-16T05:04:57.048970406Z at Z (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:120:91)
2023-06-16T05:04:57.048978616Z at Ge (/app/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js:115:9)
Nothing else than that for the last 1000 lines
Manicraft1001
Manicraft10012y ago
🤔
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Manicraft1001
Manicraft10012y ago
I assume on dev?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Manicraft1001
Manicraft10012y ago
Ok, @meierschlumpf do you have an idea?
Thomas
Thomas2y ago
It’s so weird because everyone should have the same server.js file I don’t understand how it can not work for some people and work for others
Manicraft1001
Manicraft10012y ago
Not sure if we did test the production image. Might be build related...
Meierschlumpf
Meierschlumpf2y ago
I've got the same issue locally
Manicraft1001
Manicraft10012y ago
Okay. Can you fix it? If not, I will do so tomorrow 🙂
Meierschlumpf
Meierschlumpf2y ago
I'll try I have absolutely no plan why this happens. I've tried to update tanstack and trpc, nextjs and my node version to 20. But I still get the same issue
Manicraft1001
Manicraft10012y ago
Is it a known issue in one of our dependencies?
Meierschlumpf
Meierschlumpf2y ago
I've found something similar but nothing exactly like that: https://github.com/TanStack/query/issues/5371 https://github.com/vercel/next.js/issues/49261
Manicraft1001
Manicraft10012y ago
hmm Can you pinpoint the problem causing dependency update?
Meierschlumpf
Meierschlumpf2y ago
no not really
Meierschlumpf
Meierschlumpf2y ago
Reverting it to this commit works, but not sure which upgrade is the issue
Manicraft1001
Manicraft10012y ago
Okay Good progress though
Thomas
Thomas2y ago
Hey guys can someone test the dev image ? @nicole98 @spillebulle I might've fixed it At least it works locally now...
Spillebulle
SpillebulleOP2y ago
Works for me. I auto update with watchtowerr and it started working a few days ago
Thomas
Thomas2y ago
Nice What So it fixed itself a few days ago ?
Spillebulle
SpillebulleOP2y ago
yup
Want results from more Discord servers?
Add your server