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

Migration error #2195

Closed
5 tasks done
hackex opened this issue Apr 10, 2024 · 14 comments
Closed
5 tasks done

Migration error #2195

hackex opened this issue Apr 10, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@hackex
Copy link

hackex commented Apr 10, 2024

System Health details

System Information

version core-2024.2.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 6.1.73-haos-raspi
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1400
Downloaded Repositories 5
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.1
update_channel stable
supervisor_version supervisor-2024.04.0
agent_version 1.6.0
docker_version 24.0.7
disk_total 27.8 GB
disk_used 26.2 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.4.0), File editor (5.8.0), WireGuard (0.10.2), Duck DNS (1.15.0), InfluxDB (5.0.0), Grafana (9.1.3), ESPHome (2024.2.1)
Dashboards
dashboards 1
resources 0
views 1
mode storage
Recorder
oldest_recorder_run 13. Februar 2024 um 12:33
current_recorder_run 10. April 2024 um 14:41
estimated_db_size 11445.90 MiB
database_engine sqlite
database_version 3.44.2

Checklist

  • I have read the FAQ to see if there is a known solution to my problem.
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

I noticed that all my powercalc sensor show the notification of an "migration error".

How can I fix this?

Reproduction steps

Debug logs

-

Diagnostics dump or YAML config

No response

@hackex hackex added the bug Something isn't working label Apr 10, 2024
@bramstroker
Copy link
Owner

I'm not sure what you are talking about.
Any logs / screenshots?

@hackex
Copy link
Author

hackex commented Apr 10, 2024

I'm not sure what you are talking about. Any logs / screenshots?

migrationerror_powercalc

@bramstroker
Copy link
Owner

Never seen this I have no clue sorry.
Maybe the logs provide some insights as to the exact reason?

@hackex
Copy link
Author

hackex commented Apr 10, 2024

I have added "custom_components.powercalc: debug" to my configuration, but I don't know where do download the log file.

@bramstroker
Copy link
Owner

Settings -> System -> Logs.

I doubt powercalc debug logging would provide further insights.
Issue should probably be logged as error already by some HA core logging.

@hackex
Copy link
Author

hackex commented Apr 10, 2024

I only have some hdd space issues:
2024-04-10 14:39:57.046 WARNING (SyncWorker_0) [supervisor.host.sound] Can't update PulseAudio data: Failed to connect to pulseaudio server
2024-04-10 14:39:57.052 WARNING (MainThread) [supervisor.host.network] Requested to update interface end0 which does not exist or is disabled.
2024-04-10 14:40:08.403 WARNING (MainThread) [supervisor.jobs] 'PluginCli.update' blocked from execution, not enough free space (0.4GB) left on the device
2024-04-10 14:40:08.403 ERROR (MainThread) [supervisor.plugins.manager] Can't update cli to 2024.03.1, the Supervisor healthy could be compromised!
2024-04-10 14:40:08.406 WARNING (MainThread) [supervisor.jobs] 'PluginDns.update' blocked from execution, not enough free space (0.4GB) left on the device
2024-04-10 14:40:08.407 ERROR (MainThread) [supervisor.plugins.manager] Can't update dns to 2024.04.0, the Supervisor healthy could be compromised!
2024-04-10 14:40:08.410 WARNING (MainThread) [supervisor.jobs] 'PluginMulticast.update' blocked from execution, not enough free space (0.4GB) left on the device
2024-04-10 14:40:08.410 ERROR (MainThread) [supervisor.plugins.manager] Can't update multicast to 2024.03.0, the Supervisor healthy could be compromised!
2024-04-10 14:40:12.955 INFO (MainThread) [main] Running Supervisor

@bramstroker
Copy link
Owner

What happens when you click three dots and "Reload"?

@hackex
Copy link
Author

hackex commented Apr 10, 2024

nothings happens...that it after I clicked on reload

@bramstroker
Copy link
Owner

Nothing in the logs than also? Could you download diagnostics, also by clicking three dots.

@hackex
Copy link
Author

hackex commented Apr 10, 2024

Now an error shows up:

Logger: homeassistant.config_entries
Source: config_entries.py:701
First occurred: 15:29:56 (4 occurrences)
Last logged: 15:29:56

Error migrating entry PV Ostdach for powercalc
Error migrating entry Electricity Imp for powercalc
Error migrating entry Electricity Exp for powercalc
Error migrating entry Gasleistung EG for powercalc

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 701, in async_migrate
result = await component.async_migrate_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/powercalc/init.py", line 406, in async_migrate_entry
hass.config_entries.async_update_entry(config_entry, data=data, version=3)
TypeError: ConfigEntries.async_update_entry() got an unexpected keyword argument 'version'

@bramstroker
Copy link
Owner

ah ok, at least we have an error now, will have a look next friday or saturday. I'm planning to work for a few hours on Powercalc than.

@bramstroker
Copy link
Owner

bramstroker commented Apr 10, 2024

Upgrading HA to more recent version will fix your problem btw. You'll need HA version 2024.3 or higher
I will see if I can I can make things backwards compatible so I can also support a little older version of HA, which you are running.

@hackex
Copy link
Author

hackex commented Apr 10, 2024

No need to make it backwards compatible. I try to update after cleaning the sqlite database because it's way too huge with 11GB :/

@hackex
Copy link
Author

hackex commented Apr 10, 2024

PowerCalc works again after updating HomeAssistant. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants