Closed DJay-X closed 4 years ago
4/14/2020, 11:10:13 PM] Error: Plugin /usr/local/Cellar/node/12.12.0/lib/node_modules/homebridge-music requires a HomeBridge version of ~0.4.53 which does not satisfy the current HomeBridge version of 0.4.50. You may need to upgrade your installation of HomeBridge.
As you can see from the stack trace, this error is generated by Homebridge itself. It thinks it's v0.4.50. Homebridge Music simply gets the Homebridge version from Homebridge, through its API. I don't know where Homebridge Config UI X gets the version from. Are you running it standalone? Did you check for multiple installations of Homebridge on your server?
Thanks. I am just running one Homebridge on my iMac. And as shown in my log also reinstalled 0.4.53 again.
% sudo npm install -g --unsafe-perm homebridge@latest
Password:
/usr/local/Cellar/node/12.12.0/bin/homebridge -> /usr/local/Cellar/node/12.12.0/lib/node_modules/homebridge/bin/homebridge
+ homebridge@0.4.53
@iMac ~ % npm list -g --depth=0
/usr/local/Cellar/node/12.12.0/lib
+-- homebridge@0.4.53
+-- homebridge-config-ui-x@4.15.1
+-- homebridge-music@0.2.18
+-- n@6.3.1
`-- npm@6.14.4
Unfortunately I have no idea what else to do than this. If you have any suggestions I'm happy to follow your advise. Thanks.
You have a rather unusual path where you installed node, and, consequently, homebridge. Normally it's installed under /usr/local
. Also note that the path suggests node v12.12.0, where you're running v12.16.1 according to Homebridge Config UI X. What does node -v
report?
See my previous question: Are you running Homebridge Config UI X in standalone mode? It would seem in runs in a different environment than Homebridge.
How do you start homebridge?
which homebridge
.which node
and which homebridge
as the user running the service. @iMac ~ % which homebridge
/usr/local/bin/homebridge
@iMac ~ % which node
/usr/local/bin/node
For the installation on macOS I just followed this step-by-step instructions. https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-macOS
Homebridge is starting automatically by
launchctl load ~/Library/LaunchAgents/com.homebridge.server.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.homebridge.server</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/homebridge</string>
<string>-I</string>
</array>
<key>StandardOutPath</key>
<string>/Users/daniel/.homebridge/homebridge.log</string>
<key>StandardErrorPath</key>
<string>/Users/daniel/.homebridge/homebridge.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<key>HOME</key>
<string>/Users/daniel</string>
</dict>
</dict>
</plist>
When I start homebridge in the terminal it is starting like this.
@iMac ~ % homebridge
[4/15/2020, 9:47:33 AM] Loaded config.json with 0 accessories and 2 platforms.
[4/15/2020, 9:47:33 AM] ---
[4/15/2020, 9:47:33 AM] Loaded plugin: homebridge-config-ui-x
[4/15/2020, 9:47:33 AM] Registering platform 'homebridge-config-ui-x.config'
[4/15/2020, 9:47:33 AM] ---
[4/15/2020, 9:47:33 AM] Loaded plugin: homebridge-music
[4/15/2020, 9:47:33 AM] Registering platform 'homebridge-music.Music'
[4/15/2020, 9:47:33 AM] ---
[4/15/2020, 9:47:33 AM] Loading 2 platforms...
[4/15/2020, 9:47:33 AM] [iTunes] Initializing Music platform...
[4/15/2020, 9:47:33 AM] [iTunes] homebridge-music v0.2.18, node v12.16.1, homebridge v0.4.50, macOS v10.15
[4/15/2020, 9:47:33 AM] [Config] Initializing config platform...
[4/15/2020, 9:47:33 AM] [Config] Spawning homebridge-config-ui-x with PID 12804
[4/15/2020, 9:47:33 AM] Loading 0 accessories...
[4/15/2020, 9:47:34 AM] [iTunes] waiting 25 seconds for Music to start
[4/15/2020, 9:47:37 AM] [Config] Homebridge Config UI X v4.15.1 is listening on :: port 8080
[4/15/2020, 9:47:59 AM] [iTunes] Initializing platform accessory 'iTunes'...
[4/15/2020, 9:47:59 AM] [iTunes] Initializing platform accessory 'Computer'...
[4/15/2020, 9:47:59 AM] [iTunes] Initializing platform accessory 'Apple TV 4K'...
[4/15/2020, 9:47:59 AM] [iTunes] Initializing platform accessory 'Schlafzimmer'...
[4/15/2020, 9:47:59 AM] [iTunes] Initializing platform accessory 'Schlafzimmer(Audio)'...
[4/15/2020, 9:47:59 AM] [iTunes] Initializing platform accessory 'Triby'...
[4/15/2020, 9:47:59 AM] [iTunes] Initializing platform accessory 'Wohnzimmer'...
[4/15/2020, 9:47:59 AM] [iTunes] Initializing platform accessory 'ZIPP 2'...
Setup Payload:
X-HM://00XXXXXXXXXXX
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ xxx-xx-xxx │
└────────────┘
[4/15/2020, 9:47:59 AM] Homebridge is running on port 51843.
I don't know how multiple instances are created in the past. Definitely not with intention. How can I get rid of it? Sorry for my ignorance.
% which homebridge /usr/local/bin/homebridge
So that is a different installation. And if you do sudo which homebridge
?
How can I get rid of it? Sorry for my ignorance.
I'd say sudo rm -rf /usr/local/Cellar/node/12.12.0
, but I don't know what else depends on that. I'd also check what else is under /usr/local/Cellar
.
And if you do sudo which homebridge?
@iMac ~ % sudo which homebridge Password: /usr/local/bin/homebridge
And when I do sudo rm -rf /usr/local/Cellar/node/12.12.0
you think "the other" node 12.16.1 would take place automatically? It's showing when I do node -v
v12.16.1 at the moment.
Do I have to reinstall Homebridge or any other? Just being prepared. :)
Homebridge seems to be running fine from the command line. It’s probably the service definition that’s wrong, or has the wrong environment. I don’t know the details of your installation. I’m sorry, but this is not related to Homebridge Music, I cannot help you any further.
Thanks for your time and patience. With your suggestions I'll try to delete some folders and maybe more or less, start from scratch installing node and the rest. Thanks again.
Hope you are well @ebaauw
I'm already running homebridge@0.4.53 a while now. Today I noticed that I can update your homebridge-music @0.2.18 -> @0.2.19, so I did.
Unfortunately homebridge was not running afterwards. Log is claiming I have not installed 0.4.53.
After going back to -music@0.2.18 everything is working again. However the log is still showing that I use hb 0.4.50
I hope you can help. Thx.