ajnart / homarr

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

Suddenly Dash. struggles through domain, works fine through local IP #971

Closed janaxhell closed 1 year ago

janaxhell commented 1 year ago

Environment

Docker

Version

0.12.2

Describe the problem

I have an Open Media Vault 6+Docker+Portainer running on a Orange Pi 3 LTS with Armbian lite. I also have a Pihole installed bare metal outside Docker running on the same machine, IP is 192.168.1.168. I noticed Homarr takes some time to load. This didn't happen until a few days ago. It is reverse proxied with NPM to a Cloudflare domain, usually no problem and all my other services work fine. What seems to slow down Homarr is Dash., but only if I open Homarr from my .com domain. If I open it from local IP, it loads fine and quick. The difference is that the .com version shows an empty slot in place of Dash. If I hover with mouse, the words CPU and RAM appear, but the tiles are invisible. While this happens, Homarr log says:

ℹ Requested frontend content of configuration '2023-04-01'
Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ERROR  Unexpected error: connect ECONNREFUSED 192.168.1.158:443
 ERROR  Unexpected error: connect ECONNREFUSED 192.168.1.94:493
 WARN  Unexpected response: Request failed with status code 403
 WARN  Unexpected response: Request failed with status code 401
 WARN  Unexpected response: Request failed with status code 404

Those 2 IPs are 192.168.1.158 = second Pihole bare metal on Orange Pi Zero 2, but port is uses is 8883, not 443 192.168.1.94 = an x86 Open Media Vault machine where most of my services run, no idea what port 493 is, I did not set that for any service.

Dash. runs on the same machine with Homarr (192.168.1.168) and log says this:

    type: 'Wired',
    publicIp: ''
  },
  gpu: { layout: [] },
  config: {
    port: 3001,
    running_in_docker: true,
    accept_ookla_eula: false,
    use_network_interface: undefined,
    speed_test_from_path: undefined,
    fs_device_filter: [],
    fs_type_filter: [
      'cifs',
      '9p',
      'fuse.rclone',
      'fuse.mergerfs',
      'nfs4',
      'iso9660',
      'fuse.shfs'
    ],
    fs_virtual_mounts: [],
    disable_integrations: false,
    show_dash_version: undefined,
    show_host: false,
    custom_host: undefined,
    page_title: 'dash.',
    use_imperial: false,
    always_show_percentages: false,
    widget_list: [ 'os', 'cpu', 'storage', 'ram', 'network' ],
    os_label_list: [ 'os', 'arch', 'up_since' ],
    cpu_label_list: [ 'brand', 'model', 'cores', 'threads', 'frequency' ],
    storage_label_list: [ 'brand', 'type', 'size', 'raid' ],
    ram_label_list: [ 'brand', 'type', 'size', 'frequency' ],
    network_label_list: [ 'type', 'speed_up', 'speed_down', 'interface_speed' ],
    gpu_label_list: [ 'brand', 'model', 'memory' ],
    os_widget_grow: 2.5,
    os_widget_min_width: 300,
    enable_cpu_temps: false,
    cpu_widget_grow: 4,
    cpu_widget_min_width: 500,
    cpu_shown_datapoints: 20,
    cpu_poll_interval: 1000,
    storage_widget_items_per_page: 3,
    storage_widget_grow: 3.5,
    storage_widget_min_width: 500,
    storage_poll_interval: 60000,
    ram_widget_grow: 4,
    ram_widget_min_width: 500,
    ram_shown_datapoints: 20,
    ram_poll_interval: 1000,
    speed_test_interval: 240,
    network_widget_grow: 6,
    network_widget_min_width: 500,
    network_shown_datapoints: 20,
    network_poll_interval: 1000,
    gpu_widget_grow: 6,
    gpu_widget_min_width: 700,
    gpu_shown_datapoints: 20,
    gpu_poll_interval: 1000,
    override: {
      os: undefined,
      arch: undefined,
      cpu_brand: undefined,
      cpu_model: undefined,
      cpu_cores: undefined,
      cpu_threads: undefined,
      cpu_frequency: undefined,
      ram_brand: undefined,
      ram_size: undefined,
      ram_type: undefined,
      ram_frequency: undefined,
      network_type: undefined,
      network_speed_up: undefined,
      network_speed_down: undefined,
      network_interface_speed: undefined,
      network_public_ip: undefined,
      storage_brands: {},
      storage_sizes: {},
      storage_types: {},
      gpu_brands: [],
      gpu_models: [],
      gpu_memories: []
    }
  }
}
Running speed-test (this may take a few minutes)...
First measurement [CPU]: [
  { load: 77.01748486886348, temp: 0, core: 0 },
  { load: 68.71937275400197, temp: 0, core: 1 },
  { load: 74.30436276193748, temp: 0, core: 2 },
  { load: 70.9532523706538, temp: 0, core: 3 }
]
First measurement [Network]: { up: 0, down: 0 }
First measurement [Storage]: [ 10042712064, 5140328448, 0, 0, 9292210176 ]
First measurement [RAM]: 1103822848
Speed-test completed successfully [speedtest-cli] {
  speedDown: 178520952.22912505,
  speedUp: 99204239.35138471,
  publicIp: undefined
}

Logs

same as above Homarr:

ℹ Requested frontend content of configuration '2023-04-01'
Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ERROR  Unexpected error: connect ECONNREFUSED 192.168.1.158:443
 ERROR  Unexpected error: connect ECONNREFUSED 192.168.1.94:493
 WARN  Unexpected response: Request failed with status code 403
 WARN  Unexpected response: Request failed with status code 401
 WARN  Unexpected response: Request failed with status code 404

Dash.

    type: 'Wired',
    publicIp: ''
  },
  gpu: { layout: [] },
  config: {
    port: 3001,
    running_in_docker: true,
    accept_ookla_eula: false,
    use_network_interface: undefined,
    speed_test_from_path: undefined,
    fs_device_filter: [],
    fs_type_filter: [
      'cifs',
      '9p',
      'fuse.rclone',
      'fuse.mergerfs',
      'nfs4',
      'iso9660',
      'fuse.shfs'
    ],
    fs_virtual_mounts: [],
    disable_integrations: false,
    show_dash_version: undefined,
    show_host: false,
    custom_host: undefined,
    page_title: 'dash.',
    use_imperial: false,
    always_show_percentages: false,
    widget_list: [ 'os', 'cpu', 'storage', 'ram', 'network' ],
    os_label_list: [ 'os', 'arch', 'up_since' ],
    cpu_label_list: [ 'brand', 'model', 'cores', 'threads', 'frequency' ],
    storage_label_list: [ 'brand', 'type', 'size', 'raid' ],
    ram_label_list: [ 'brand', 'type', 'size', 'frequency' ],
    network_label_list: [ 'type', 'speed_up', 'speed_down', 'interface_speed' ],
    gpu_label_list: [ 'brand', 'model', 'memory' ],
    os_widget_grow: 2.5,
    os_widget_min_width: 300,
    enable_cpu_temps: false,
    cpu_widget_grow: 4,
    cpu_widget_min_width: 500,
    cpu_shown_datapoints: 20,
    cpu_poll_interval: 1000,
    storage_widget_items_per_page: 3,
    storage_widget_grow: 3.5,
    storage_widget_min_width: 500,
    storage_poll_interval: 60000,
    ram_widget_grow: 4,
    ram_widget_min_width: 500,
    ram_shown_datapoints: 20,
    ram_poll_interval: 1000,
    speed_test_interval: 240,
    network_widget_grow: 6,
    network_widget_min_width: 500,
    network_shown_datapoints: 20,
    network_poll_interval: 1000,
    gpu_widget_grow: 6,
    gpu_widget_min_width: 700,
    gpu_shown_datapoints: 20,
    gpu_poll_interval: 1000,
    override: {
      os: undefined,
      arch: undefined,
      cpu_brand: undefined,
      cpu_model: undefined,
      cpu_cores: undefined,
      cpu_threads: undefined,
      cpu_frequency: undefined,
      ram_brand: undefined,
      ram_size: undefined,
      ram_type: undefined,
      ram_frequency: undefined,
      network_type: undefined,
      network_speed_up: undefined,
      network_speed_down: undefined,
      network_interface_speed: undefined,
      network_public_ip: undefined,
      storage_brands: {},
      storage_sizes: {},
      storage_types: {},
      gpu_brands: [],
      gpu_models: [],
      gpu_memories: []
    }
  }
}
Running speed-test (this may take a few minutes)...
First measurement [CPU]: [
  { load: 77.01748486886348, temp: 0, core: 0 },
  { load: 68.71937275400197, temp: 0, core: 1 },
  { load: 74.30436276193748, temp: 0, core: 2 },
  { load: 70.9532523706538, temp: 0, core: 3 }
]
First measurement [Network]: { up: 0, down: 0 }
First measurement [Storage]: [ 10042712064, 5140328448, 0, 0, 9292210176 ]
First measurement [RAM]: 1103822848
Speed-test completed successfully [speedtest-cli] {
  speedDown: 178520952.22912505,
  speedUp: 99204239.35138471,
  publicIp: undefined
}

Context

From Cloudflare domain:

image

From local IP

image

Please tick the boxes

ajnart commented 1 year ago

We will most likely rework or remove the dashdot integration in future updates, please read the following : https://github.com/ajnart/homarr/issues/1503