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.

[Bug] Music Assistant fails to load in 2022.7.x

See original GitHub issue

What version of Music Assistant has the issue?

2022.7.x

The problem

When setting up the integration in the latest beta versions, it is failing with an error.

How to reproduce

Add a new instance of the Music Assistant integration.

Relevant log output

This error originated from a custom integration.

Logger: custom_components.mass
Source: custom_components/mass/__init__.py:138
Integration: Music Assistant (documentation, issues)
First occurred: 9:07:59 AM (14 occurrences)
Last logged: 9:15:08 AM

Setup failed of provider spotify: Login failed for user drinfernoo
Setup failed of provider spotify:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/spotify.py", line 75, in setup
    int(self.config.username)
ValueError: invalid literal for int() with base 10: 'drinfernoo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music/__init__.py", line 385, in _register_provider
    if await provider.setup():
  File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/spotify.py", line 80, in setup
    raise LoginFailed(f"Login failed for user {self.config.username}")
music_assistant.models.errors.LoginFailed: Login failed for user drinfernoo

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/mass/__init__.py", line 138, in async_setup_entry
    await mass.setup()
  File "/usr/local/lib/python3.10/site-packages/music_assistant/mass.py", line 84, in setup
    await self.music.setup()
  File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music/__init__.py", line 62, in setup
    await self._register_provider(prov_cls(self.mass, prov_conf), prov_conf)
  File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music/__init__.py", line 388, in _register_provider
    raise SetupFailedError(
music_assistant.models.errors.SetupFailedError: Setup failed of provider spotify: Login failed for user drinfernoo

Additional information

No response

What version of Home Assistant Core are your running

2022.7.0b3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marcelveldtcommented, Jul 5, 2022

Maybe I’m asking the obvious here but you do know that free Spotify accounts are NOT supported ?

1reaction
OzGavcommented, Jul 4, 2022

I think maybe @erkr meant go into the MA config and uncheck the Spotify source and confirm MA now starts?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Update: Dec. 22] YouTube bugs/issues & pending ...
Here we are tracking all the bugs and problems found on YouTube and their status as well as any pending improvements that are...
Read more >
2022.4: Groups! Groups! Groups! - Home Assistant
Welcoming new helpers to the UI, including groups! Helpers for switches with an identity crisis, updates, backups, performance improvements, ...
Read more >
Waves bug with Pro Tools 2022.9.0 - Gearspace.com
Using Waves V10 thru V14. I did have Waveshell V11 crash PT on 1st loading after installation of 2022.9 but loaded fine since...
Read more >
Turn your Home Assistant instance into a jukebox, hassle free ...
This is the first beta release for our 2022.7 July version of Music Assistant. Although not yet very visible, it contains all foundations...
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