『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 2898|回复: 8

求助,mopidy报错,保持off,无法开启

[复制链接]

13

主题

333

帖子

1418

积分

金牌会员

Rank: 6Rank: 6

积分
1418
金钱
1085
HASS币
0
发表于 2019-1-10 09:18:36 | 显示全部楼层 |阅读模式
树霉派docker+hassio0.84.6
从addon安装mopidy,内config设置
{
  "local_scan": false,
  "options": [
    {
      "name": "local/media_dir",
      "value": "/share/mopidy/media"
    },
    {
      "name": "m3u/playlists_dir",
      "value": "/share/mopidy/playlists/"
    }
  ]
}


报错:
 File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/site-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/site-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/site-packages/mopidy/m3u/playlists.py", line 69, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/site-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/site-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/site-packages/mopidy/m3u/playlists.py", line 69, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/site-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/site-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/site-packages/mopidy/m3u/playlists.py", line 69, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/site-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/site-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/site-packages/mopidy/m3u/playlists.py", line 69, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/site-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/site-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/site-packages/mopidy/m3u/playlists.py", line 69, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/site-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/site-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/site-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/site-packages/mopidy/m3u/playlists.py", line 69, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'


界面显示播放器,但持续显示off,无法开启。
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2019-1-10 10:23:19 | 显示全部楼层
在 share 里面创建一下这个目录 /share/mopidy/playlists
docker exec -it homeassistant mkdir -p /share/mopidy/playlists
Nero
回复

使用道具 举报

13

主题

333

帖子

1418

积分

金牌会员

Rank: 6Rank: 6

积分
1418
金钱
1085
HASS币
0
 楼主| 发表于 2019-1-10 11:39:39 | 显示全部楼层
neroxps 发表于 2019-1-10 10:23
在 share 里面创建一下这个目录 /share/mopidy/playlists
docker exec -it homeassistant mkdir -p /share/ ...

谢谢,按照那个已经没报错了,但还是在hassio里开启不了mpd,只能在mopidy的web界面播歌。
不然mpd一直处于Off状态
starting version 3.2.2

(gst-plugin-scanner:19): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstdtls.so': Error relocating /usr/lib/gstreamer-1.0/libgstdtls.so: BIO_set_data: symbol not found
INFO     Starting Mopidy 2.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from /var/lib/mopidy/.config/mopidy/mopidy.conf
INFO     Loading config from command line options
INFO     Creating dir /root/.config/mopidy
INFO     Enabled extensions: mpd, http, moped, stream, m3u, softwaremixer, file, local, local-sqlite
INFO     Disabled extensions: gmusic
WARNING  Found gmusic configuration errors, the extension has been automatically disabled:
WARNING    gmusic/username must be set.
WARNING    gmusic/password must be set.
WARNING  Please fix the extension configuration errors or disable the extensions to silence these messages.
INFO     Found 1 files in media_dir.
INFO     Checking 1 tracks from library.
INFO     Removing 0 missing tracks.
INFO     Found 0 tracks which need to be updated.
INFO     Scanning...
INFO     Scanned 0 of 0 files in 0s.
INFO     Done scanning.
INFO     Starting Mopidy 2.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from /var/lib/mopidy/.config/mopidy/mopidy.conf
INFO     Loading config from command line options
INFO     Enabled extensions: mpd, http, moped, stream, m3u, softwaremixer, file, local, local-sqlite
INFO     Disabled extensions: gmusic
WARNING  Found gmusic configuration errors, the extension has been automatically disabled:
WARNING    gmusic/username must be set.
WARNING    gmusic/password must be set.
WARNING  Please fix the extension configuration errors or disable the extensions to silence these messages.
INFO     Starting Mopidy mixer: SoftwareMixer
INFO     Starting Mopidy audio
INFO     Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, LocalBackend
INFO     Audio output set to "autoaudiosink"
INFO     Loaded 1 local tracks using sqlite
INFO     Starting Mopidy core
INFO     Starting Mopidy frontends: MpdFrontend, HttpFrontend
INFO     MPD server running at [::ffff:0.0.0.0]:6600
INFO     HTTP server running at [::ffff:0.0.0.0]:6680
INFO     Starting GLib mainloop
INFO     New MPD connection from [::ffff:192.168.1.110]:58256
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2019-1-10 19:36:12 | 显示全部楼层
没有音频设备吧?
Nero
回复

使用道具 举报

13

主题

333

帖子

1418

积分

金牌会员

Rank: 6Rank: 6

积分
1418
金钱
1085
HASS币
0
 楼主| 发表于 2019-1-10 19:40:13 | 显示全部楼层
neroxps 发表于 2019-1-10 19:36
没有音频设备吧?

我用有线接了树霉派。可以进去web界面播本地歌,hassio会显示歌曲,但hassio就死活开启不了
回复

使用道具 举报

6

主题

148

帖子

384

积分

中级会员

Rank: 3Rank: 3

积分
384
金钱
236
HASS币
0
发表于 2019-9-15 15:17:19 | 显示全部楼层
ufonba 发表于 2019-1-10 11:39
谢谢,按照那个已经没报错了,但还是在hassio里开启不了mpd,只能在mopidy的web界面播歌。
不然mpd一直 ...

解决了吗,我也刚好遇到这个问题
回复

使用道具 举报

6

主题

148

帖子

384

积分

中级会员

Rank: 3Rank: 3

积分
384
金钱
236
HASS币
0
发表于 2019-9-15 18:56:51 | 显示全部楼层
顶起来   解决了吗,我也刚好遇到这个问题
回复

使用道具 举报

6

主题

148

帖子

384

积分

中级会员

Rank: 3Rank: 3

积分
384
金钱
236
HASS币
0
发表于 2019-9-15 19:00:15 | 显示全部楼层
选着源怎么搞啊
回复

使用道具 举报

4

主题

67

帖子

515

积分

高级会员

Rank: 4

积分
515
金钱
448
HASS币
0
发表于 2019-10-31 21:11:29 | 显示全部楼层
本帖最后由 AlanGreen 于 2019-11-4 13:22 编辑

Snipaste_2019-10-31_21-54-30.png
  • 我也是遇到了相同的问题,一直是保持 off 状态,并且不能手动开启
  • 但是,TTS 调用 MPD 也是能够正常播放出声音的,楼主也说了可以正常播放音乐
  • https://community.home-assistant.io/t/mpd-dont-turn-on/53192/11 发现了相同的问题,推测原因是:设计初衷就是这样,在待机状态下就是 OFF
  • 如果有最新进展,请纠正我。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 12:24 , Processed in 0.180539 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表