H
Homarr2mo ago
Noahh

Getting 500 error on clean Unraid install with v1.1.0

Hey! In trying to upgrade to v1.0.0 I got a 500 error on startup (clean Unraid app install, appdata deleted). Same thing is now happening with (again, clean install) v1.1.0. Let me know if I can provide any more details! The only environment variable I configured was the required secret.
Node.js v22.13.0
/app/apps/tasks/tasks.cjs:20849
throw result.error;
^

_ZodError: [
{
"code": "too_small",
"minimum": 1,
"type": "string",
"inclusive": true,
"exact": false,
"message": "String must contain at least 1 character(s)",
"path": []
}
]
at get error (/app/apps/tasks/tasks.cjs:20797:28)
at ZodDefault.parse (/app/apps/tasks/tasks.cjs:20849:22)
at Object.<anonymous> (/app/apps/tasks/tasks.cjs:452521:63)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
at Object..js (node:internal/modules/cjs/loader:1699:10)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5) {
issues: [
{
code: 'too_small',
minimum: 1,
type: 'string',
inclusive: true,
exact: false,
message: 'String must contain at least 1 character(s)',
path: []
}
],
addIssue: [Function (anonymous)],
addIssues: [Function (anonymous)],
errors: [
{
code: 'too_small',
minimum: 1,
type: 'string',
inclusive: true,
exact: false,
message: 'String must contain at least 1 character(s)',
path: []
}
]
}

Node.js v22.13.0
⨯ Error [ZodError]: [
{
"code": "too_small",
"minimum": 1,
"type": "string",
"inclusive": true,
"exact": false,
"message": "String must contain at least 1 character(s)",
"path": []
}
]
at get error (.next/server/chunks/3054.js:182:27205)
at ep.parse (.next/server/chunks/3054.js:182:28471)
at 22214 (.next/server/chunks/2750.js:1:10446)
at t (.next/server/webpack-runtime.js:1:143)
at 82750 (.next/server/chunks/2750.js:1:1406)
at t (.next/server/webpack-runtime.js:1:143)
at 23836 (.next/server/app/api/auth/[...nextauth]/route.js:1:4755)
at t (.next/server/webpack-runtime.js:1:143)
at 56573 (.next/server/chunks/6573.js:1:147)
at t (.next/server/webpack-runtime.js:1:143) {
issues: [Array],
addIssue: [Function (anonymous)],
addIssues: [Function (anonymous)]
}
Error [TRPCClientError]: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at tn.from (.next/server/src/middleware.js:16:3550)
at <unknown> (.next/server/src/middleware.js:16:33664) {
shape: undefined,
data: undefined,
meta: undefined,
[cause]: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at JSON.parse (<anonymous>)
at async t_ (.next/server/src/middleware.js:16:7668)
}
Node.js v22.13.0
/app/apps/tasks/tasks.cjs:20849
throw result.error;
^

_ZodError: [
{
"code": "too_small",
"minimum": 1,
"type": "string",
"inclusive": true,
"exact": false,
"message": "String must contain at least 1 character(s)",
"path": []
}
]
at get error (/app/apps/tasks/tasks.cjs:20797:28)
at ZodDefault.parse (/app/apps/tasks/tasks.cjs:20849:22)
at Object.<anonymous> (/app/apps/tasks/tasks.cjs:452521:63)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
at Object..js (node:internal/modules/cjs/loader:1699:10)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5) {
issues: [
{
code: 'too_small',
minimum: 1,
type: 'string',
inclusive: true,
exact: false,
message: 'String must contain at least 1 character(s)',
path: []
}
],
addIssue: [Function (anonymous)],
addIssues: [Function (anonymous)],
errors: [
{
code: 'too_small',
minimum: 1,
type: 'string',
inclusive: true,
exact: false,
message: 'String must contain at least 1 character(s)',
path: []
}
]
}

Node.js v22.13.0
⨯ Error [ZodError]: [
{
"code": "too_small",
"minimum": 1,
"type": "string",
"inclusive": true,
"exact": false,
"message": "String must contain at least 1 character(s)",
"path": []
}
]
at get error (.next/server/chunks/3054.js:182:27205)
at ep.parse (.next/server/chunks/3054.js:182:28471)
at 22214 (.next/server/chunks/2750.js:1:10446)
at t (.next/server/webpack-runtime.js:1:143)
at 82750 (.next/server/chunks/2750.js:1:1406)
at t (.next/server/webpack-runtime.js:1:143)
at 23836 (.next/server/app/api/auth/[...nextauth]/route.js:1:4755)
at t (.next/server/webpack-runtime.js:1:143)
at 56573 (.next/server/chunks/6573.js:1:147)
at t (.next/server/webpack-runtime.js:1:143) {
issues: [Array],
addIssue: [Function (anonymous)],
addIssues: [Function (anonymous)]
}
Error [TRPCClientError]: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at tn.from (.next/server/src/middleware.js:16:3550)
at <unknown> (.next/server/src/middleware.js:16:33664) {
shape: undefined,
data: undefined,
meta: undefined,
[cause]: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at JSON.parse (<anonymous>)
at async t_ (.next/server/src/middleware.js:16:7668)
}
Solution:
Set AUTH_PROVIDERS to credentials and try again (see https://homarr.dev/docs/advanced/single-sign-on)
Jump to solution
12 Replies
Cakey Bot
Cakey Bot2mo ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Manicraft1001
Manicraft10012mo ago
!qa required_data
Cakey Bot
Cakey Bot2mo ago
Thank you for your question. Our support team has noted that your request does not meet the minimum required data so we are unable to answer your question. Please provide: - your Homarr logs - your setup configuration (eg. docker compose, docker run, helm chart, screenshot, ...) - A detailed description of your problem or question with additional images where necessary - Your operating system - Version of Homarr (do not say latest! say 0.15.2, ...) Failure to comply with this will result in a permanent closure of your support request.
Manicraft1001
Manicraft10012mo ago
Please post screenshots of your environment variables. Censor the secret.
Noahh
NoahhOP2mo ago
No description
Solution
Manicraft1001
Manicraft10012mo ago
Set AUTH_PROVIDERS to credentials and try again (see https://homarr.dev/docs/advanced/single-sign-on)
Noahh
NoahhOP2mo ago
that did it!
Manicraft1001
Manicraft10012mo ago
Did you change anything after you clicked on "install" in the app catalogue? If not, I will go fix the template
Noahh
NoahhOP2mo ago
All I did was add the secret
Manicraft1001
Manicraft10012mo ago
Thanks, I will mark this as resolved then and will update the template.
Noahh
NoahhOP2mo ago
Thank you! Can't wait to use it :D

Did you find this page helpful?