HomarrH
Homarr11mo 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)
}
Solution
Set AUTH_PROVIDERS to credentials and try again (see https://homarr.dev/docs/advanced/single-sign-on)
Was this page helpful?