Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error creating device. DB system error due to db system #150

Closed
maidiries opened this issue Dec 12, 2023 · 21 comments
Closed

Unexpected error creating device. DB system error due to db system #150

maidiries opened this issue Dec 12, 2023 · 21 comments

Comments

@maidiries
Copy link

maidiries commented Dec 12, 2023

image

After Login, always this error: Unexpected error creating device.

Have deleted from HA and try to reinstall got this error now.
Previous HA versions it works.

Unexpected error creating device
Traceback (most recent call last):
  File "/config/custom_components/panasonic_cc/config_flow.py", line 60, in _create_device
    devices = await self.hass.async_add_executor_job(api.get_devices)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 207, in get_devices
    self.login()
  File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 106, in login
    self._create_token()
  File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 164, in _create_token
    raise ResponseError(response.status_code, response.text)
custom_components.panasonic_cc.pcomfortcloud.session.ResponseError: Invalid response, status code: 500 - Data: {"code":5001,"message":"DB system error due to db system"}

Similar issue:
#147


Home Assistant:
Core 2023.12.1
Supervisor 2023.11.6
Operating System 11.2
Interfície d'usuari 20231208.2

@maidiries maidiries changed the title Unexpected error creating device Unexpected error creating device. DB system error due to db system Dec 12, 2023
@sybri
Copy link

sybri commented Dec 12, 2023

the same

@mchacher
Copy link

same for me. I don't think it is a regional issue. I am in France.
My account was banned yesterday, now only the mobile app is ok

@Strohhutpat
Copy link

same for me.

@jellewie
Copy link

Same error for me (The Netherlands).

I can still control them using the OEM android app

Logger: homeassistant.config_entries
Source: config_entries.py:402
First occurred: 19:01:07 (5 occurrences)
Last logged: 22:26:54

Error setting up entry for panasonic_cc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/panasonic_cc/init.py", line 79, in async_setup_entry
devices = await hass.async_add_executor_job(api.get_devices)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 207, in get_devices
self.login()
File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 106, in login
self._create_token()
File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 164, in _create_token
raise ResponseError(response.status_code, response.text)
custom_components.panasonic_cc.pcomfortcloud.session.ResponseError: Invalid response, status code: 500 - Data: {"code":5001,"message":"DB system error due to db system"}

@bboyblank
Copy link

Same issue, I did find after updating HA to 2023.12.1 it broke after this.

@kavetheman
Copy link

I have the same problem with latest version of ha

@mstendah
Copy link

Now I cannoy even add the integration back. Eariel it asked me for my credentials and failed after that. Now it does not even ask for credentials. It simply throws me back to the integration repository.

@lpmitbenji
Copy link

I have the same problem. is after the HA update to 2023.12.1

@jawilczek
Copy link

I have the same problem. fresh installation of HA 2023.12.1.

@acailley
Copy link

acailley commented Dec 13, 2023

same here :

2023-12-13 00:50:47.585 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry  for panasonic_cc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/panasonic_cc/__init__.py", line 79, in async_setup_entry
    devices = await hass.async_add_executor_job(api.get_devices)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 207, in get_devices
    self.login()
  File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 106, in login
    self._create_token()
  File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 164, in _create_token
    raise ResponseError(response.status_code, response.text)
custom_components.panasonic_cc.pcomfortcloud.session.ResponseError: Invalid response, status code: 500 - Data: {"code":5001,"message":"DB system error due to db system"}

@TimBE1989
Copy link

Same issue for me.

@syepes
Copy link

syepes commented Dec 13, 2023

Same issue with 2023.12.2

@djmaxim1981
Copy link

same issue for me.

This error originated from a custom integration.

Logger: custom_components.panasonic_cc.config_flow
Source: custom_components/panasonic_cc/config_flow.py:60
Integration: Panasonic Comfort Cloud (documentation, issues)
First occurred: 1:18:27 PM (1 occurrences)
Last logged: 1:18:27 PM

Unexpected error creating device
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/config_flow.py", line 60, in _create_device
devices = await self.hass.async_add_executor_job(api.get_devices)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 207, in get_devices
self.login()
File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 106, in login
self._create_token()
File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 164, in _create_token
raise ResponseError(response.status_code, response.text)
custom_components.panasonic_cc.pcomfortcloud.session.ResponseError: Invalid response, status code: 500 - Data: {"code":5001,"message":"DB system error due to db system"}

@mstendah
Copy link

Is downgrading some HA components a workaround for this?

@eriklook-prog
Copy link

eriklook-prog commented Dec 14, 2023

Is downgrading some HA components a workaround for this?

An update is available. It works like a charm...

@hanselot76
Copy link

The update fixed the issue here as well :)

@MetalOctopus
Copy link

What was the fix for this in the end?

@MetalOctopus
Copy link

For people on Home Assistant where this update hasn't yet come through on HACS:

Find session.py by:
pip show pcomfortcloud
will get something like: /usr/local/lib/python3.11/site-packages/

nano /usr/local/lib/python3.11/site-packages/pcomfortcloud/session.py
find "language": "0" on line 125.
Replace with "language": 0

save, reboot, you should be back online.

@dardour7
Copy link

Yes @MetalOctopus it's works thank you

@jellewie
Copy link

With a new version (from HACS) and a reboot. My issues are solved again.

@codyc1515
Copy link

codyc1515 commented Jan 9, 2024

Fixed by 3570551. Please close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests