1.1.17 Error after update
See original GitHub issueI get the following error in the logs after updating:
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/mass/__init__.py:105
Integration: Music Assistant (documentation, issues)
First occurred: 12:50:41 PM (1 occurrences)
Last logged: 12:50:41 PM
Error setting up entry Music Assistant for mass
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/mass/__init__.py", line 112, in async_setup_entry
raise exc
File "/config/custom_components/mass/__init__.py", line 105, in async_setup_entry
await mass.setup()
File "/usr/local/lib/python3.9/site-packages/music_assistant/mass.py", line 81, in setup
await self.database.setup()
File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/database.py", line 45, in setup
await self._migrate()
File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/database.py", line 221, in _migrate
await db.execute(f"ALTER TABLE {TABLE_ALBUMS} DROP COLUMN artist;")
File "/usr/local/lib/python3.9/site-packages/databases/core.py", line 170, in execute
return await connection.execute(query, values)
File "/usr/local/lib/python3.9/site-packages/databases/core.py", line 295, in execute
return await self._connection.execute(built_query)
File "/usr/local/lib/python3.9/site-packages/databases/backends/sqlite.py", line 128, in execute
await cursor.execute(query_str, args)
File "/usr/local/lib/python3.9/site-packages/aiosqlite/cursor.py", line 37, in execute
await self._execute(self._cursor.execute, sql, parameters)
File "/usr/local/lib/python3.9/site-packages/aiosqlite/cursor.py", line 31, in _execute
return await self._conn._execute(fn, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/aiosqlite/core.py", line 129, in _execute
return await future
File "/usr/local/lib/python3.9/site-packages/aiosqlite/core.py", line 102, in run
result = function()
sqlite3.OperationalError: near "DROP": syntax error
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
XPS 8930, BIOS installer 1.1.17 crashes - Dell Community
Solved: The drivers page for my 8930 says there's a new BIOS and it's urgent. My machine currently has 1.1.16 so upgrading to...
Read more >[1.1.17] Tracker locked in startup screen / emergency update ...
What happened: I powered off my computer after a session ... anemlife changed the title [1.1.17] Fatal Error => Tracker is now locked...
Read more >September 2022 Cumulative Security Update fails to install ...
Windows 10's latest update appears to be failing to install for some folks, and is purportedly causing serious trouble for a handful of...
Read more >"Your device is missing important security and quality fixes ...
Flat 10% Off on all software. ... you how to fix Fix: "Your device is missing important security and quality fixes" Error in...
Read more >[MCL-21596] Unable to install/run Minecraft Bedrock Edition
After clicking the "Install" button, a non-clickable "Play" ("Играть") button appears. I thought it was installing, just without a loading ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK I found out that DROP column was introduced in sqlite 3.35.0 a year ago so the explanation is that Alpine (on which the Home Assistant image is based on) has an old version… I will provide a hotfix soon
I’ve provided version 1.1.18 which prevents this issue from happening but if it already impacted you, there’s no other way than to delete the music_assistant.db file in the config folder.