error running as service

homebridge-indigo allows you to integrate Indigo with HomeKit and Siri
User avatar
Different Computers
Posts: 2610
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

error running as service

Post by Different Computers »

I have homeBridge running fine manually. Followed the instructions for using launchd to start and keep it running, and I get this strange combination:

If I quit the manually running version, then try

Code: Select all

Office-Mini:Documents macadmin$ launchctl load -w ~/Library/LaunchAgents/com.webdeck.homebridge.plist
I get

Code: Select all

/Users/macadmin/Library/LaunchAgents/com.webdeck.homebridge.plist: service already loaded
even though searching Activity Monitor shows nothing named homebridge running.

The homeBridgeLog shows a single entry:

Code: Select all

path.js:8
    throw new TypeError('Path must be a string. Received ' +
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:8:11)
    at Object.posix.join (path.js:479:5)
    at Function.User.storagePath (/opt/local/lib/node_modules/homebridge/lib/user.js:30:15)
    at Function.User.persistPath (/opt/local/lib/node_modules/homebridge/lib/user.js:38:25)
    at module.exports (/opt/local/lib/node_modules/homebridge/lib/cli.js:24:17)
    at Object.<anonymous> (/opt/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
 
I'm at a loss. Is it notable that the homeBridge log shows no dates or times? Just checked and that log hasn't changed in more than a month. The entry above is from Nov 8.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP
User avatar
Different Computers
Posts: 2610
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: error running as service

Post by Different Computers »

I may have figured this out.

looks like the launchctl command was looking for runhomebridge and mine was named runhomebridge.sh. Duh.

Yup, now the homeBridgelog is populating!
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP
Post Reply

Return to “WebDeck Software”