home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.56k stars 30.74k forks source link

Unexpected error during setup #81843

Closed 011V32 closed 1 year ago

011V32 commented 2 years ago

The problem

I want to setup the integration of the Synology DSM for the first time. I added a new user on the Synology NAS which has all rights. (But I have no surveillance station installed.) During setup I get the Information "Unexpected error". The log see below. Use SSL certificate or Verify SSL certificate has no effect.

What version of Home Assistant Core has the issue?

2022.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Synology DSM

Link to integration documentation on our website

https://www.home-assistant.io/integrations/synology_dsm

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.synology_dsm.config_flow
Source: components/synology_dsm/config_flow.py:301
Integration: Synology DSM (documentation, issues)
First occurred: 10:11:15 (7 occurrences)
Last logged: 10:12:00

{'api': 'SYNO.Core.System.Utilization', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}
{'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'}

Additional information

No response

home-assistant[bot] commented 2 years ago

Hey there @hacf-fr, @quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration (synology_dsm) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `synology_dsm` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign synology_dsm` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


synology_dsm documentation synology_dsm source (message by IssueLinks)

mib1185 commented 2 years ago

Hi @011V32

please enable debug logging, restart HA and provide the home-assistant.log after you tried to add the NAS To do so add the following to your configuration.yaml:

logger:
  default: info
  logs:
    homeassistant.components.synology_dsm: debug
    synology_dsm: debug

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

011V32 commented 1 year ago

Hello @mib1185.

Sry for late response. I missed your comment. In the meantime I have the same issue but a newer system:

I removed all from log except the synology ones: home-assistant_2023-01-13T08-03-12.444Z_Synology_Login2.log

Thx.

mib1185 commented 1 year ago

the used user does not have the needed permissions on your NAS

2023-01-13 09:02:47.874 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': 'SYNO.Core.System.Utilization', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}

see section "Separate User Configuration" in the docs