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.

Add support for running MA on FreeBSD/TrueNAS

See original GitHub issue

What version of Music Assistant has the issue?

2022.6.4

The problem

When adding the Music Assistant integration into HA for the first time and adding my Spotify credentials, the following error is raised in the Integrations Screen of the WebUI:

“Retrying setup: Setup failed of provider spotify: Unable to locate Libespot for platform FreeBSD”

Is there a dependency on Libespot that requires installation which isn’t outlined in the documentation? 😃

How to reproduce

Install Music Assistant on HA Core on a FreeBSD system with the Spotify option included

Relevant log output

`2022-06-21 15:54:31 ERROR (MainThread) [custom_components.mass] Setup failed of provider spotify: Unable to locate Libespot for platform FreeBSD Traceback (most recent call last): File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/controllers/music/init.py”, line 372, in _register_provider if await provider.setup(): File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/music_providers/spotify.py”, line 71, in setup token = await self.get_token() File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/music_providers/spotify.py”, line 485, in get_token tokeninfo = await asyncio.wait_for(self._get_token(), 5) File “/usr/local/lib/python3.9/asyncio/tasks.py”, line 479, in wait_for return fut.result() File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/music_providers/spotify.py”, line 511, in _get_token await self.get_librespot_binary(), File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/music_providers/spotify.py”, line 717, in get_librespot_binary raise RuntimeError( RuntimeError: Unable to locate Libespot for platform FreeBSD

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

Traceback (most recent call last): File “/home/homeassistant/homeassistant/custom_components/mass/init.py”, line 106, in async_setup_entry await mass.setup() File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/mass.py”, line 84, in setup await self.music.setup() File “/usr/local/share/homeassistant/lib/python3.9/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/share/homeassistant/lib/python3.9/site-packages/music_assistant/controllers/music/init.py”, line 375, in _register_provider raise SetupFailedError( music_assistant.models.errors.SetupFailedError: Setup failed of provider spotify: Unable to locate Libespot for platform FreeBSD`

Additional information

No response

What version of Home Assistant Core are your running

2022.6.6

What type of installation are you running?

Home Assistant Core

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
skellycodecommented, Jun 23, 2022

@marcelveldt if you navigate to the “Plugins” page on TrueNAS you’ll be able to get a HA jail up and running with only a couple of clicks 😊

1reaction
marcelveldtcommented, Jun 21, 2022

@marcelveldt : Shall we convert this to a discussion then? E.g. “Support Music Assistant on FreeBSD”

Leave here for now, maybe there is an easy fix. I will check. if it’s not an easy fix, it should be a feature request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Will there be a TrueNAS 13 based on FreeBSD 13? Or should ...
Hi guys - Long time FreeNAS/TrueNAS user; thanks for the fantastic product. I'm building out a new NAS for my home lab and...
Read more >
Chapter 33. Advanced Networking - FreeBSD Documentation
Advanced networking in FreeBSD: basics of gateways and routes, CARP, how to configure multiple VLANs on FreeBSD, etc.
Read more >
Need help running Teslamate in a jail : r/truenas - Reddit
I've been working through the instructions on installing in a FreeBSD jail at https://docs.teslamate.org/docs/installation/freebsd/ (I'm ...
Read more >
TrueNAS Core Software Review – GUI, Design & Storage ...
TrueNAS Core Software Review – Part I, Design, the Interface & Storage Management. Have you been considering a NAS for a few years, ......
Read more >
Setting up OctoPrint on TrueNAS 12 server inside iocage Jails
I have a FreeNAS server setup which I use to run a lot of services and use it to run my OctoPrint instances...
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