Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] TypeError: Cannot read properties of undefined (reading 'layout') #564

@farstrider

Description

@farstrider

Description

After the November 27th update, all the services on my homepage disappeared and the default layout is shown. I checked all the configuration files, and they are still the same as they were before the update.

Steps to reproduce

  1. Load homepage in browser
  2. See that the default layout/services is shown rather than my configured services

homepage version

v0.5.1 (f16bd91, Nov 27, 2022)

Installation method

Docker

Configuration

My services.yaml file looks like this:

- Admin:
    - pfSense:
        icon: pfsense.png
        href: http://192.168.10.1/

    - TrueNAS:
        icon: truenas-scale.png
        href: http://truenas.home.farstrider.eu

    - Aruba Instant On:
        icon: /icons/instanton.png
        href: https://portal.arubainstanton.com/#/login

    - Portainer:
        icon: portainer.png
        href: https://portainer.home.farstrider.eu
        server: docker
        container: portainer
        widget:
          type: portainer
          url: https://portainer.home.farstrider.eu
          env: 2
          key: <key>

    - Nginx Proxy Manager:
        icon: nginxproxymanager.png
        href: http://proxymgr.home.farstrider.eu
        server: docker
        container: NginxProxyManager
        widget:
          type: npm
          url: http://proxymgr.home.farstrider.eu
          username: <username>
          password: <password>

- Network:
    - ns01:
        icon: pihole.png
        href: http://ns01.home.farstrider.eu/admin
        widget:
          type: pihole
          url: http://ns01.home.farstrider.eu/

    - ns02:
        icon: pihole.png
        href: http://ns02.home.farstrider.eu/admin
        widget:
          type: pihole
          url: http://ns02.home.farstrider.eu/

    - phpIPAM:
        icon: phpipam.png
        href: http://ipam.home.farstrider.eu
        server: docker
        container: phpipam-phpipam-web-1

    - netbox:
        icon: netbox.png
        href: http://netbox.home.farstrider.eu
        server: docker
        container: netbox

- Media:
    - Sonarr:
        icon: sonarr.png
        href: http://sonarr.home.farstrider.eu
        server: docker
        container: sonarr
        widget:
          type: sonarr
          url: http://sonarr.home.farstrider.eu
          key: <key>

    - Radarr:
        icon: radarr.png
        href: http://radarr.home.farstrider.eu
        server: docker
        container: radarr
        widget:
          type: radarr
          url: http://radarr.home.farstrider.eu
          key: <key>

    - Prowlarr:
        icon: prowlarr.png
        href: http://prowlarr.home.farstrider.eu
        server: docker
        container: prowlarr
        widget:
          type: prowlarr
          url: http://prowlarr.home.farstrider.eu
          key: <key>

    - Bazarr:
        icon: bazarr.png
        href: http://bazarr.home.farstrider.eu
        server: docker
        container: bazarr
        widget:
          type: bazarr
          url: http://bazarr.home.farstrider.eu
          key: <key>

    - Jellyfin:
        icon: jellyfin.png
        href: http://jellyfin.home.farstrider.eu
        server: docker
        container: jellyfin
        widget:
          type: jellyfin
          url: http://jellyfin.home.farstrider.eu
          key: <key>

- Downloaders:
    - qbittorrent:
        icon: qbittorrent.png
        href: http://qbit.home.farstrider.eu
        server: docker
        container: qBittorrent
#        widget:
#          type: qbittorrent
#          url: http://192.168.50.6:8080
#          username: <username>
#          password: <password>

    - SABnzbd:
        icon: sabnzbd.png
        href: http://sabnzbd.home.farstrider.eu
        server: docker
        container: sabnzbd
        widget:
          type: sabnzbd
          url: http://sabnzbd.home.farstrider.eu
          key: <key>

- Development:
    - GitLab:
        icon: gitlab.png
        href: http://gitlab.home.farstrider.eu
        server: docker
        container: gitlab

    - Wordpress:
        icon: wordpress.png
        href: http://wordpress.home.farstrider.eu
        server: docker
        container: wordpress

- Data Visualization:
    - Grafana:
        icon: grafana.png
        href: http://grafana.home.farstrider.eu
        server: docker
        container: grafana

    - Chronograf:
        icon: chronograf.png
        href: http://db.home.farstrider.eu:8888

- Public Apps:
    - ownCloud:
        icon: owncloud.png
        href: <public url>
        server: docker
        container: owncloud_server

    - Bitwarden:
        icon: bitwarden.png
        href: <public url>
        server: docker
        container: VaultWarden

Container Logs

TypeError: Cannot read properties of undefined (reading 'layout')
at servicesResponse (/app/.next/server/chunks/8317.js:98:42)
at async handler (/app/.next/server/pages/api/services.js:56:12)
at async Object.apiResolver (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/api-utils/node.js:366:9)
at async NextNodeServer.runApi (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/next-server.js:481:9)
at async Object.fn (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/next-server.js:735:37)
at async Router.execute (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/router.js:247:36)
at async NextNodeServer.run (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:347:29)
at async NextNodeServer.handleRequest (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:285:20)
at async Server. (/app/server.js:19:5)

Browser Logs

No response

Other

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions