ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
5.83k stars 268 forks source link

Boards page crashes #2088

Open Dragonsys opened 1 month ago

Dragonsys commented 1 month ago

Environment

Docker

Version

0.15.3

Describe the problem

When clicking on the Boards page from the management I get an error that the page has crashed. When i click on the "Detailed error information" box nothing is displayed. I do find the included log snip though.

I am also unable to select a container from docker and have it automatically added to the board, as the board selection is empty.

Logs

TypeError: Cannot read properties of undefined (reading 'some')
    at getConfig (/app/.next/server/chunks/6892.js:68:31)
    ... 8 lines matching cause stack trace ...
    at async callRecursive (file:///app/node_modules/@trpc/server/dist/index.mjs:456:32) {
  code: 'INTERNAL_SERVER_ERROR',
  name: 'TRPCError',
  [cause]: TypeError: Cannot read properties of undefined (reading 'some')
      at getConfig (/app/.next/server/chunks/6892.js:68:31)
      at getFrontendConfig (/app/.next/server/chunks/7828.js:87:80)
      at /app/.next/server/chunks/8521.js:61:125
      at Array.map (<anonymous>)
      at /app/.next/server/chunks/8521.js:59:40
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async resolveMiddleware (file:///app/node_modules/@trpc/server/dist/index.mjs:420:30)
      at async callRecursive (file:///app/node_modules/@trpc/server/dist/index.mjs:456:32)
      at async outputMiddleware (file:///app/node_modules/@trpc/server/dist/index.mjs:301:24)
      at async callRecursive (file:///app/node_modules/@trpc/server/dist/index.mjs:456:32)
}
ℹ Local icons repository directory exists and contains 0 icons

Context

Screenshot 2024-07-22 201325

Please tick the boxes

github-actions[bot] commented 1 month ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

manuel-rw commented 1 month ago

Hi, did you manually tamper with the configuration files? Migrated from a previous version?

Dragonsys commented 1 month ago

No, this is a fresh, brand new install. I did not manually edit the config files

manuel-rw commented 1 month ago

Can you provide the compose / run, the os that you use and reproduction steps?

Dragonsys commented 1 month ago
services:
  homarr:
    image: ghcr.io/ajnart/homarr:latest
    container_name: homarr
    environment:
      - TZ=America/Chicago
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /media/NAS/docker/Homarr/configs:/app/data/configs
      - /media/NAS/docker/Homarr/icons:/app/public/icons
      - /var/lib/docker/volumes/homarr_data/_data:/data
    ports:
      - 7575:7575
    restart: unless-stopped

using a Portainer Stack OS: Ubuntu 22.04.4 LTS

Steps: Deploy container Launch Website Configure Admin Account Goto Management & click on Boards

I did delete everything and then rebuilt the container, and now it is working as expected. So I'm not sure what happened the first time.

sunny5055 commented 1 month ago

I have the same issue. Board crashes. Issue seems to be related to json config. Once I remove it , it works. I havent made any changes lately so trying to figure out what exactly is causing this issue.

Dragonsys commented 1 month ago

I have the same issue. Board crashes. Issue seems to be related to json config. Once I remove it , it works. I havent made any changes lately so trying to figure out what exactly is causing this issue.

I deleted everything (DB & config files) and redeployed, and this fixed it for me. But I had not done any configuration or customization yet so I didn't lose anything but a little time. The config JSON was recreated, so maybe something went funky during my first deploy and that file had some corruption.

manuel-rw commented 1 month ago

I'm pinning this in case it's a more widespread issue. Can you provide information on what hardware you use? What steps did you take for setting Homarr up?

sunny5055 commented 1 month ago

Can you provide information on what hardware you use? What steps did you take for setting Homarr up?

I have been using homarr for a long time now with no changes. My home page is working fine. But only when I click the broads it crashes. Once i deleted the config it works fine. Is there way to check what part of the config has the issue ?

manuel-rw commented 1 month ago

Can you provide information on what hardware you use? What steps did you take for setting Homarr up?

I have been using homarr for a long time now with no changes. My home page is working fine. But only when I click the broads it crashes. Once i deleted the config it works fine. Is there way to check what part of the config has the issue ?

No, there isn't much we could use to debug. If you have a crashing instance, you could send the config json to this post (censor credentials), before you delete it. I will look into this issue.

sunny5055 commented 1 month ago

Can you provide information on what hardware you use? What steps did you take for setting Homarr up?

I have been using homarr for a long time now with no changes. My home page is working fine. But only when I click the broads it crashes. Once i deleted the config it works fine. Is there way to check what part of the config has the issue ?

No, there isn't much we could use to debug. If you have a crashing instance, you could send the config json to this post (censor credentials), before you delete it. I will look into this issue.

Sorry for delay. Here is the config

https://pastebin.com/1ZE98Cri