Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to play on Mopidy from media browser #334

Open
akarpych opened this issue Aug 17, 2022 · 22 comments
Open

Error when trying to play on Mopidy from media browser #334

akarpych opened this issue Aug 17, 2022 · 22 comments
Labels
bug Something isn't working mopidy mopidy Addon mpd mpd Addon

Comments

@akarpych
Copy link

Which addon?
Mopidy

Describe the bug
When trying to play audio from the media browser, an error appears

To Reproduce

  1. Go to 'media browser'
  2. Click on 'Text to Speech-Google-Play'
  3. See error
Source: components/mpd/media_player.py:474
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 13:53:46 (1 occurrences)
Last logged: 13:53:46

[139941019247872] [50@0] {add} directory or file not found
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/mpd/media_player.py", line 474, in async_play_media
    await self._client.add(media_id)
  File "/usr/local/lib/python3.10/site-packages/mpd/asyncio.py", line 309, in __run
    await result._feed_from(self)
  File "/usr/local/lib/python3.10/site-packages/mpd/asyncio.py", line 45, in _feed_from
    line = await mpdclient._read_line()
  File "/usr/local/lib/python3.10/site-packages/mpd/asyncio.py", line 395, in _read_line
    raise CommandError(error)
mpd.base.CommandError: [50@0] {add} directory or file not found

Screenshots

System

  • Supervisor version: 2022.08.3
  • Host system version: 2022.8.5
@akarpych akarpych added the bug Something isn't working label Aug 17, 2022
@Poeschl Poeschl added mopidy mopidy Addon mpd mpd Addon and removed mpd mpd Addon labels Aug 17, 2022
@Poeschl
Copy link
Owner

Poeschl commented Aug 17, 2022

Are you able to play local files from HA on mopidy? It seems that the connection between HA and Mopidy does not exist.

@akarpych
Copy link
Author

akarpych commented Aug 17, 2022

No. The same error appears. I tried it on a completely new installation - the problem is the same. I also thought that there is no connection HA with MPD. Everything works through the web page.

@akarpych
Copy link
Author

2022-08-17_21-05-17

@Poeschl Poeschl changed the title Error when trying to play on MPD from media browser Error when trying to play on Mopidy from media browser Aug 17, 2022
@Poeschl Poeschl added the mpd mpd Addon label Aug 17, 2022
@Poeschl
Copy link
Owner

Poeschl commented Aug 17, 2022

I can reproduce the issue, but right no clue how to solve it :/

Will look at it again.

@akarpych
Copy link
Author

How to install a previous version?

@Poeschl
Copy link
Owner

Poeschl commented Aug 18, 2022

@akarpych
Copy link
Author

Unfortunately, I didn't have any backups.

@cheehuei
Copy link

cheehuei commented Aug 18, 2022

Hi, just want to report that I am facing the same issue. I am not able to call media player service to play a local mp3 file nor a tts. The service can be called successfully, but no is music produced. Seems like the issue happens after upgrading to HA Core 2022.8.5. Downgrading to 2022.8.3, issue persists.
Thank you for looking into it.

@shinyshoes16
Copy link

I have this issue as well. Is there anything I can do to help troubleshoot or test a fix? This has a big impact on my Home Assistant implementation

@Llntrvr
Copy link

Llntrvr commented Aug 22, 2022

@shinyshoes16 / @cheehuei / @akarpych my work around was to completely remove Poeschi repo and i found a recent fork of it on version 2.1.1

aka https://github.com/2468171796/Hassio-Addons-mpd and installed this version of Mopidy and it works again for me

@Llntrvr
Copy link

Llntrvr commented Aug 22, 2022

or you can just take my 2.1.1 version of just Mopidy

https://github.com/Llntrvr/Hassio-Addons

@akarpych
Copy link
Author

@Poeschl
Copy link
Owner

Poeschl commented Aug 23, 2022

Unfortunately, I'm not able to develop a fix this or next week.

@Llntrvr so the version 2.1.1 still works?

@Llntrvr
Copy link

Llntrvr commented Aug 23, 2022

@Poeschl yeah sadly the newest version just does not want to play sound

@cheehuei
Copy link

Thank you, @Llntrvr . Version 2.1.1 works for me.

@Olegz73
Copy link

Olegz73 commented Aug 28, 2022

Have the same problem mpd 2.2.0 , ha 2022.8.7

@Poeschl
Copy link
Owner

Poeschl commented Sep 11, 2022

Short update:

Looked into it for a bit, it seems mopidy has issues to load the audio files via the link HA provides. It is available via the
commandline inside of the addon, but mopidy trips somewhere.

@stale
Copy link

stale bot commented Sep 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 28, 2022
@Poeschl
Copy link
Owner

Poeschl commented Sep 28, 2022

It's still not fixed for mpd and mopidy

@stale stale bot removed the stale label Sep 28, 2022
@whakru
Copy link

whakru commented Oct 6, 2022

Точно такая же проблема.

@stale
Copy link

stale bot commented Oct 22, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 22, 2022
@Poeschl Poeschl removed the stale label Oct 22, 2022
@Olegz73
Copy link

Olegz73 commented Jan 11, 2023

Still not fix at now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mopidy mopidy Addon mpd mpd Addon
Projects
None yet
Development

No branches or pull requests

7 participants