question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.1.17 Error after update

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marcelveldtcommented, May 26, 2022

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

0reactions
marcelveldtcommented, May 26, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found