Page 1 of 1

error running as service

PostPosted: Fri Dec 16, 2016 11:29 am
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.

Re: error running as service

PostPosted: Fri Dec 16, 2016 11:36 am
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!