bestlibre / hassio-addons

173 stars 110 forks source link

Mopidy addon HassOs 64 bit #80

Open kegra opened 5 years ago

kegra commented 5 years ago

When i try to restore this add-on i constantly get the following errors, also i tried installing it from scratch and the error is the same.:

18-07-17 23:57:44 INFO (MainThread) [hassio.snapshots] Partial-Restore cdbe31f4 start 18-07-17 23:57:49 INFO (MainThread) [hassio.snapshots] Restore cdbe31f4 old add-ons 18-07-17 23:57:51 INFO (MainThread) [hassio.addons.addon] Restore config for addon 53caca22_mopidy 18-07-17 23:57:53 INFO (MainThread) [hassio.addons.addon] Restore image for addon 53caca22_mopidy 18-07-17 23:57:53 INFO (SyncWorker_11) [hassio.docker.interface] Pull image bestlibre/aarch64-mopidy tag 0.2.4. 18-07-17 23:57:56 ERROR (SyncWorker_11) [hassio.docker.interface] Can’t install bestlibre/aarch64-mopidy:0.2.4 -> 404 Client Error: Not Found (“manifest for bestlibre/aarch64-mopidy:0.2.4 not found”). 18-07-17 23:57:56 INFO (MainThread) [hassio.addons.addon] Restore data for addon 53caca22_mopidy 18-07-17 23:57:56 ERROR (SyncWorker_15) [hassio.docker] Can’t create container from addon_53caca22_mopidy: 404 Client Error: Not Found (“No such image: bestlibre/aarch64-mopidy:latest”) 18-07-17 23:57:56 ERROR (MainThread) [hassio.snapshots.snapshot] Can’t restore snapshot for 53caca22_mopidy 18-07-17 23:58:28 INFO (MainThread) [hassio.snapshots] Partial-Restore cdbe31f4 done

tjorim commented 5 years ago

Latest release for 64bit Raspi3 (aarch64) is 0.1.2. Looks like Mopidy 0.2.4 is not available on Docker Hub: https://hub.docker.com/r/bestlibre/aarch64-mopidy/tags/. Because of this, it won't install. I would recommend installing 32bit HassOS, as there is no real advantage and only incompatibilities like this.

robferrero commented 5 years ago

I'm trying a fresh version of hassio on RPi https://github.com/home-assistant/hassos/releases/download/1.9/hassos_rpi-1.9.img.gz and I've comfirm the problem : download only version 0.1.2 that won't start

someone can show me how take the latest version?

tjorim commented 5 years ago

I noticed there being two versions of the add-on which use the same slug.

  1. https://github.com/bestlibre/hassio-addons/tree/master/mopidy
  2. https://github.com/bestlibre/hassio-addons/tree/master/mopidy_alpine

The latter still mentions 0.1.2 as version in the config.json, this should probably best be removed. You should still be able to get the add-on by manually downloading this repo, and placing the mopidy-folder in /addons on your pi using samba.

robferrero commented 5 years ago

I want to try this evening manual install. If I understand right

  1. create a mopidy-folder in /addons on my pi using samba.
  2. copy inside the dir all 6 files from : https://github.com/bestlibre/hassio-addons/tree/master/mopidy
  3. launch (but how???) the manual installation of the docker

can you give hint on point 3?

tjorim commented 5 years ago

Correct, to install the add-on, go to the 'Add-on Store' and click the little refresh button in the top right. Then you will find a 'local' repository with the mopidy entry.

If that still doesn't do it you can always edit the config.json file and remove the "image": "bestlibre/{arch}-mopidy", line. Hit the refresh button once again. When you install the add-on like that, it should build it locally on your system, and not rely on the Docker Hub images.

robferrero commented 5 years ago

I've edited config.json writing "image": "bestlibre/armhf-mopidy", and I've followed your instruction. It's now installed and started.

Thanks You !!!! a lot!

I hope that someone fix the original in repository for the future

Now I'll try to use it starting with add in configuration.yaml

media_player:
  - platform: mpd
    host: MYIP_ADDRESS
robferrero commented 5 years ago

mpd unavaible :(
dosn't work .. need other work....

tjorim commented 5 years ago

Did you try host: localhost?

robferrero commented 5 years ago

I've tried host : 192.168.1.133 <-- the IPaddress of my raspberry (but MPD remain unavaible at the start) but the strange things is that mopidy goes off after a variable amout of type. ...still investigating ...

robferrero commented 5 years ago

info mopidy found here : https://community.home-assistant.io/t/help-with-locating-mopidy/51597

and possible workaround for mp3 here : https://community.home-assistant.io/t/pi-audio-component/17266/31

I need to try both....

robferrero commented 5 years ago

update after my trial: I cannot use mopidy, still dosn't start :( but the workaround of Pantomax using addon "de3cd379_audio_player" allow me to create TTS sound! :)

ndarilek commented 5 years ago

Kind of a meta question, but is this still being maintained? It mostly works for me but has a handful of issues, and the entire repo of addons hasn't been updated in over a month.

I'm considering taking it on, but is anyone else potentially interested?

And I'm happy to contribute PRs here, but we have two addons with the same slug, and for some of us that makes it entirely unusable without building locally. That seems like an easy thing to leave unfixed for a long time, which makes me ask the question about continued maintenance.

ndarilek commented 5 years ago

FWIW, I forked this addon and am working on it here. I can't guarantee absolute stability just yet, but it launches whereas this one doesn't, so there is that. :) It also uses audio: true to allow configuring an output device. I also hard-coded PULSE_SERVER for possible future integration with the PulseAudio addon I built, but I haven't tested that yet so it isn't recommended.

So IOW, it's going in a bit of another direction, but for the moment it works (on ARMHF at least, I hit some issues building for other architectures and disabled those for now. Restoring that is next on the todo list.)

robferrero commented 5 years ago

my try was'n luck

I've added your address to the list of addon and tried the install, but I get this error

18-09-06 11:21:13 ERROR (SyncWorker_3) [hassio.docker.interface] Can't install nolan/hassio-mopidy-armhf:2.1.0.9 -> 404 Client Error: Not Found ("no such image: nolan/hassio-mopidy-armhf:2.1.0.9: No such image: nolan/hassio-mopidy-armhf:2.1.0.9"). 18-09-06 11:30:07 INFO (MainThread) [hassio.api.security] /supervisor/logs access from core_ssh

ndarilek commented 5 years ago

Odd.

$ docker pull nolan/hassio-mopidy-armhf:2.1.0.9
2.1.0.9: Pulling from nolan/hassio-mopidy-armhf
...
Digest: 
sha256:e85441fd6503125dd514771025f71971cf8bb654b3ce844427286a39d35f9699
Status: Downloaded newer image for nolan/hassio-mopidy-armhf:2.1.0.9

Works on both my RPi and desktop.

tjorim commented 5 years ago

Check if you have enough space, apparently docker gives 404 errors when there isn't.

robferrero commented 5 years ago

maybe you are right! I've deleted some snapshot and now it's installed. but I continue to have something strange, only one time I've saw the green dots near 2.1.0.9. and I can't open the web UI page

I can't find nothing in ssh -> hassio ha logs and hassio su logs. can I look somewhere other?

tjorim commented 5 years ago

The add-on logs itself? It's on the bottom of the page with add-on options etc.

Please don't continue this conversation over here, since all other users in this thread probably get notifications for this as well. Furthermore, it's completely off topic. Open an issue in the repo of the fork.

bestlibre commented 5 years ago

I don't know why I haven't seen this issue before. Sorry about that !

I have a bunch of addons which don't work on aarch64, I will have to work on them... Any help welcome since I don't have a lot of time available

bf8392 commented 2 years ago

I think the issue still persists...is there a workaround to use the speaker of an rpi4?