tomaae / homeassistant-openmediavault

OpenMediaVault integration for Home Assistant
Apache License 2.0
109 stars 15 forks source link

[Bug] Entities unavailable #147

Closed eric1905 closed 6 months ago

eric1905 commented 8 months ago

All my OMV entities are unavailable. When I activate debug log I see the following:

2024-02-19 00:20:50.563 DEBUG (SyncWorker_41) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.3.5 query response: {'response': {'ts': 1708298449, 'time': 'Mo 19 Feb 2024 00:20:49 CET', 'hostname': 'omv.eee.de', 'version': '6.9.11-1 (Shaitan)', 'cpuModelName': 'Intel(R) Celeron(R) CPU N3150 @ 1.60GHz', 'cpuUtilization': 23.316062176165804, 'cpuCores': '4', 'cpuMhz': '898.159', 'memTotal': '7785861120', 'memFree': '535461888', 'memUsed': '4443467776', 'memAvailable': '2921119744', 'memUtilization': '0.62481', 'kernel': 'Linux 6.1.0-0.deb11.13-amd64', 'uptime': 4978099.55, 'loadAverage': {'1min': 1.35, '5min': 1.12, '15min': 1.19}, 'configDirty': False, 'dirtyModules': [], 'rebootRequired': False, 'availablePkgUpdates': 24, 'displayWelcomeMessage': False}, 'error': None} 2024-02-19 00:20:50.564 DEBUG (SyncWorker_41) [custom_components.openmediavault.apiparser] Processing source [{'ts': 1708298449, 'time': 'Mo 19 Feb 2024 00:20:49 CET', 'hostname': 'omv.eee.de', 'version': '6.9.11-1 (Shaitan)', 'cpuModelName': 'Intel(R) Celeron(R) CPU N3150 @ 1.60GHz', 'cpuUtilization': 23.316062176165804, 'cpuCores': '4', 'cpuMhz': '898.159', 'memTotal': '7785861120', 'memFree': '535461888', 'memUsed': '4443467776', 'memAvailable': '2921119744', 'memUtilization': '0.62481', 'kernel': 'Linux 6.1.0-0.deb11.13-amd64', 'uptime': 4978099.55, 'loadAverage': {'1min': 1.35, '5min': 1.12, '15min': 1.19}, 'configDirty': False, 'dirtyModules': [], 'rebootRequired': False, 'availablePkgUpdates': 24, 'displayWelcomeMessage': False}] 2024-02-19 00:20:50.564 DEBUG (SyncWorker_41) [custom_components.openmediavault.apiparser] Processing entry {'ts': 1708298449, 'time': 'Mo 19 Feb 2024 00:20:49 CET', 'hostname': 'omv.eee.de', 'version': '6.9.11-1 (Shaitan)', 'cpuModelName': 'Intel(R) Celeron(R) CPU N3150 @ 1.60GHz', 'cpuUtilization': 23.316062176165804, 'cpuCores': '4', 'cpuMhz': '898.159', 'memTotal': '7785861120', 'memFree': '535461888', 'memUsed': '4443467776', 'memAvailable': '2921119744', 'memUtilization': '0.62481', 'kernel': 'Linux 6.1.0-0.deb11.13-amd64', 'uptime': 4978099.55, 'loadAverage': {'1min': 1.35, '5min': 1.12, '15min': 1.19}, 'configDirty': False, 'dirtyModules': [], 'rebootRequired': False, 'availablePkgUpdates': 24, 'displayWelcomeMessage': False} 2024-02-19 00:20:50.568 DEBUG (SyncWorker_41) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.3.5 query: FileSystemMgmt, enumerateFilesystems, {}, {'updatelastaccess': True} 2024-02-19 00:20:50.852 WARNING (SyncWorker_41) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.3.5 unable to fetch data (500)

I saw there was a similar error with https://github.com/tomaae/homeassistant-openmediavault/issues/143

I tried to switch my repository to master. But this did not work. The url was not correct 2024-02-19 00:18:38.393 ERROR (MainThread) [custom_components.hacs] Download failed - Got status code 404 when trying to download https://github.com/tomaae/homeassistant-openmediavault/releases/download/master/openmediavault.zip Traceback (most recent call last): File "/config/custom_components/hacs/base.py", line 730, in async_download_file raise HacsException( custom_components.hacs.exceptions.HacsException: Got status code 404 when trying to download https://github.com/tomaae/homeassistant-openmediavault/releases/download/master/openmediavault.zip

So I downloaded it directly from github and copied the openmediavault folder to custom_components.

But the sensors are still unavailable

tomaae commented 8 months ago

master from HACS wont work anymore, HACS developers decided to change its behavior. Your issue is different from #143. In your case OMV is not replying to simple enumerateFilesystems query. Seems like an issue on your OMV side.

johny-inc commented 8 months ago

Having the same issue. OMV is fine. Hope this can be fixed.

eric1905 commented 8 months ago

For me it IS resolved. I Had a Problem with my filesystem

johny-inc commented 8 months ago

What was wrong with your filesystem? Everything seems fine with mine, but maybe I'm missing something.

tomaae commented 8 months ago

Are you sure its the same issue? But yea, OMV is very sensitive system. API can go haywire on any internal issues.

johny-inc commented 7 months ago

I think you are correct. I've added my OMV backup setup to HA and it's working fine. Also created test OMV which is fine as well. All three instance are running on version 7.0-32. Any ideas how I could troubleshoot API without full system reinstall?

tomaae commented 7 months ago

You can check OMV logs. I seen OMV API break for example when you add docker integration but you wont set up default disk in it. So could be pretty much anything.

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 6 months ago

This issue was closed because it has been stalled for 5 days with no activity.