tomaae / homeassistant-openmediavault

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

[Bug] Logger: custom_components.openmediavault.omv_api Source: custom_components/openmediavault/omv_api.py:302 Integration: OpenMediaVault (documentation, issues) First occurred: 30 kwietnia 2023 22:18:17 (2 occurrences) Last logged: 13:40:09 OpenMediaVault 192.168.1.66:66 unable to fetch data (504) #117

Closed Shinigami777 closed 1 year ago

Shinigami777 commented 1 year ago

Describe the issue

Soon after configurated integration, all entities become inaccessible until the next re-loading of integration

How to reproduce the issue

Steps to reproduce the behavior:

  1. Integration configuration
  2. Connection with OMV
  3. After some time, all entities are unavailable

Software versions

tomaae commented 1 year ago

error 504 is Gateway Timeout. that means omv backend didnt reply in time and its web server cut the session. I dont thing this has anything to do with integration, but you may try to capture the issue with debug on for more details.

Shinigami777 commented 1 year ago

I already have a debug file but I don't know how to send or share it?

tomaae commented 1 year ago

just upload it here

tomaae commented 1 year ago

that is not debug, but HA diagnostic report.

tomaae commented 1 year ago

I need to see what was before that error too. That will be the lead.

tomaae commented 1 year ago

you forgot to enable debug. otherwise yea, I need to see what is before "[custom_components.openmediavault.omv_api] OpenMediaVault 192.168.1.66:66 unable to fetch data (504)" in debug. we will see what was requested and failed and what happened before that.

tomaae commented 1 year ago

no, debug is not turned on

Shinigami777 commented 1 year ago

I don't know what I'm doing wrong anymore 😑. I go to Settings -> Devices -> Integrations ->I click 3 dots enable debugging on opemnediavault integration. I re-load integration and stop debugging when integration stopped working. What else or what should I do differently?

tomaae commented 1 year ago

hmm, I didnt even knew they added such option. I will have to check how it works later. Normally you add entry to configuration and restart HA: https://github.com/tomaae/homeassistant-openmediavault#enabling-debug

Shinigami777 commented 1 year ago

Thank you for the instructions, I will do it and send it. 😁👍 Sorry for the trouble but I'm new to Home Assistant.

I know it's probably a stupid question, but where will I find these logs later?

tomaae commented 1 year ago

same place as before, there will just be more info

Shinigami777 commented 1 year ago

Will that be enough? Or should I share even earlier logs? error_log 03.txt

Edit. Is something wrong? If you can please help my fix this issue.

tomaae commented 1 year ago

Sorry, I missed the reply. You error is error 504 on smart query. Assuming that OMV responds with correct code, it would mean OMV backend is having some kind of trouble. Check smart interface in OMV, if that is working reliably. also check OMV logs at time of failure, maybe you can get more info there.

github-actions[bot] commented 1 year 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 1 year 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 1 year ago

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