petro-kushchak / homebridge-homepod-radio

MIT License
39 stars 2 forks source link

Error: spawn atvremote ENOENT #15

Closed pryed closed 2 years ago

pryed commented 2 years ago

Hey,

when I click on the speaker in "Home" I get an error: Error: spawn atvremote ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:478:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) [4/2/2022, 6:45:24 PM] Got SIGTERM, shutting down Homebridge... [4/2/2022, 6:45:24 PM] [HomepodRadioPlatform] Platform: shutdown... [4/2/2022, 6:45:24 PM] Error: ENOENT: no such file or directory, open '/root/.homebridge/HomepodRadioPlatform-925c8068-03f2-473a-b4f6-15dc4075b9a0.status.json' [4/2/2022, 6:45:29 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [4/2/2022, 6:45:34 PM] [HB Supervisor] Restarting Homebridge... [4/2/2022, 6:45:34 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules

Ffmpeg and ate are installed

Pls help me Best regards

petro-kushchak commented 2 years ago

Hi, never seen this kind of error - do you have pyatv installed and can run atvremote command from terminal?

pryed commented 2 years ago

Hey , yes of course , the command: „atvremote scan“ works great in my SSH Terminal.

petro-kushchak commented 2 years ago

Weird - looks like plugin can not run "atvremote" command from user which runs homebridge service...

I'm working on plugin improvements which should install "local" copy of pyatv&atvremote with plugin (so there won't be need to install it separately), but its not ready yet.

For now can you try to create symlink (ln -s) to your atvremote available for all users?

pryed commented 2 years ago

Of course , but I don’t know the command . which is it ?

pryed commented 2 years ago

reinstall bullseye had fix this problem

petro-kushchak commented 2 years ago

Sorry for late replay - great that reinstall helped, looks like it fixed some broken permissions