Closed ifrenken closed 1 month ago
Please provide more information about the system, integration, screenshots, logs
Here is the logging from this night included home-assistant_2024-08-23T06-24-07.710Z.log
Please provide more information about the system, integration, screenshots, logs
I have added a log file, what do you need more?
Logger: homeassistant.components.recorder.migration Source: components/recorder/migration.py:2696 integration: Recorder (documentation, issues) First occurred: 1:04:50 PM (1 occurrences) Last logged: 1:04:50 PM
Error recreating SQLite table states Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context self.dialect.do_execute( File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 924, in do_execute cursor.execute(statement, parameters) sqlite3.OperationalError: database or disk is full
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/recorder/migration.py", line 2696, in rebuild_sqlite_table session.execute(text(f"DROP TABLE {orig_name}")) File "/usr/local/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2351, in execute return self._execute_internal( ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2245, in _execute_internal result = conn.execute( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute return meth( ^^^^^ File "/usr/local/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection return connection._execute_clauseelement( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement ret = self._execute_context( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context return self._exec_single_context( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context self._handle_dbapi_exception( File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2353, in _handle_dbapi_exception raise sqlalchemy_exception.with_traceback(exc_info[2]) from e File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context self.dialect.do_execute( File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 924, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database or disk is full [SQL: DROP TABLE states] (Background on this error at: https://sqlalche.me/e/20/e3q8)
database or disk is full
version | core-2024.8.3 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.12.4 |
os_name | Linux |
os_version | 6.6.46-haos |
arch | x86_64 |
timezone | Europe/Amsterdam |
config_dir | /config |
So as you can see I have free space.
You need more free space. The database is trying to do a migration and you need at least double the database size free
So the DB size is around 10 GB, so I need 20 GB free. Could this also be my issue that in the morning I have those failures?
I think it will probably run that code around that time
I resized the disk and with enough free space it solved the issue. Now running without any problems. Thanks for your help!
The problem
Sinds several days home-assistant stops viewing energy usage somewhere between 4-5 am. So the dashboard stays empty until I reboot the system and then it fills up again. Also I not notice that some integrations are not working anymore, also until the system is rebooted. This all started August 18, after I ran an update.
What version of Home Assistant Core has the issue?
core-2024.8.2
What was the last working version of Home Assistant Core?
core-2024.8.0
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response