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.45k stars 252 forks source link

OMV7 not showing system health monitoring #2060

Closed unimonkiez closed 1 month ago

unimonkiez commented 1 month ago

Environment

Docker

Version

0.15.2

Describe the problem

Can't see system health monitoring, it's stuck loading. image Added an app (you can see next to it) of openmediavault, set up the URL it needs to request the data from: image with the integration as specified in the docs: image

Tried so far: setting up proxy to catch GET to http://nas:7575/api/trpc/openmediavault.fetchData and pass it to http://nas/api/trpc/openmediavault.fetchData (which is where OMV is accessible) but got CORS denial.

Logs

image image

Context

OMV vesion: 7.1.0-2 (Sandworm) set up Homarr on http://nas:7575 using docker compose:

name: media

services:
  qbittorrent:
    restart: unless-stopped
    image: linuxserver/qbittorrent:libtorrentv1-release-4.6.4_v1.2.19-ls26
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Jerusalem
      - WEBUI_PORT=8080
      - TORRENTING_PORT=6881
    volumes:
      - /config/qbittorrent:/config
      - /media/downloads:/downloads
    ports:
      - 8080:8080
      - 6881:6881
      - 6881:6881/udp
  qbittorrent-bot:
    restart: unless-stopped
    depends_on:
      - qbittorrent
    image: 0one2/qbittorrent-bot:latest
    volumes:
      - /config/qbittorrent-bot/config.toml:/app/config.toml
  prowlarr:
    restart: unless-stopped 
    image: linuxserver/prowlarr:1.17.2
    environment: 
      - PUID=0
      - PGID=0
      - TZ=Asia/Jerusalem
    volumes: 
      - /config/prowlarr:/config 
    ports: 
      - 9696:9696 
  radarr:
    restart: unless-stopped
    image: linuxserver/radarr:5.6.0
    ports:
      - 7878:7878
    volumes:
      - /config/radarr:/config
      - /media/movies:/movies
      - /media/downloads:/downloads
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Jerusalem
  sonarr:
    restart: unless-stopped
    image: linuxserver/sonarr:4.0.4
    ports:
      - 8989:8989
    volumes:
      - /config/sonarr:/config
      - /media/shows:/shows
      - /media/downloads:/downloads
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Jerusalem
  jellyseerr: 
    restart: unless-stopped 
    image: fallenbagel/jellyseerr:1.8.1 
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Jerusalem
    ports: 
      - 5055:5055 
    volumes: 
      - /config/jellyseerr:/app/config 
    depends_on: 
      - sonarr 
      - radarr
  jellyfin:
    restart: unless-stopped
    image: linuxserver/jellyfin:10.9.1
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Jerusalem
    volumes:
      - /config/jellyfin:/config
      - /media/shows:/shows
      - /media/movies:/movies
      - /opt/vc/lib:/opt/vc/lib #optional
    ports:
      - 8096:8096
    devices:
      - /dev/dri:/dev/dri #optional
  bazarr:
    restart: unless-stopped
    image: linuxserver/bazarr:1.4.2
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Jerusalem
    volumes:
      - /config/bazarr:/config
      - /media/movies:/movies
      - /media/shows:/shows
    ports:
      - 6767:6767
  homarr:
    restart: unless-stopped
    image: ghcr.io/ajnart/homarr:0.15.2
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /config/homarr/configs:/app/data/configs
      - /config/homarr/icons:/app/public/icons
      - /config/homarr/data:/data
    ports:
      - 7575:7575

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.

SeDemal commented 1 month ago

You need to point the address to your nas, not homarr. Basically the address you use to access OMV's GUI.

unimonkiez commented 1 month ago

You need to point the address to your nas, not homarr. Basically the address you use to access OMV's GUI.

I did, as you can see here image

OMV: 80 HOMARR: 7575

SeDemal commented 1 month ago

Oh nvm I got confused since the error in the logs listed :7575 but that's the trpc route... my bad. There is a possibility that a container cannot reach it's host without bridging the network or setting network: host. (Since you're using homarr's default port, the later option shouldn't cause an issue) Try to curl/wget your host address from homarr's container's shell.

unimonkiez commented 1 month ago

Oh nvm I got confused since the error in the logs listed :7575 but that's the trpc route... my bad. There is a possibility that a container cannot reach it's host without bridging the network or setting network: host. (Since you're using homarr's default port, the later option shouldn't cause an issue) Try to curl/wget your host address from homarr's container's shell.

Tried, seems to be ok

root@d1f3820da44f:/app# curl http://nas
<!DOCTYPE html><html lang="en"><head>
  <meta charset="utf-8">
  <title>openmediavault Workbench</title>

  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">

  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <link rel="apple-touch-icon" href="favicon_180x180.png">
  <link rel="icon" href="favicon.svg" sizes="any" type="image/svg+xml">
...

also tried network: host, still nothing.

Where are the logs kept? tried this but got minimal logs

root@nas:~# docker logs media-homarr-1
Exporting hostname...
Migrating database...
yarn run v1.22.19
$ ts-node ./migrate.ts
Done in 5.41s.
Starting production server...
Listening on port 7575 url: http://d1f3820da44f:7575
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Saving updated configuration of 'default' config.
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Saving updated configuration of 'default' config.
ℹ Detected credential change of private secret. Value will be overwritten in configuration
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Local icons repository directory exists and contains 0 icons
ℹ Saving updated configuration of 'default' config.
unimonkiez commented 1 month ago

Ok, updated to 0.15.3, and seems to be working, no need for network_mode: "host". Thanks! image