I am trying o run AirSonos (https://github.com/stephen/airsonos) in a jail (on FreeNAS-9.2.1.9-RELEASE-x64). With this application you can stream music to Sonos systems with the AirPlay protocol.
I have been able to install AirSonos with npm version v.2.13.4, running on node v0.12.7.
(version 0.10 of node do not find network interfaces).
I have installed avahi and dbus in the jail and both of them are running.
When AirSonos starts it tries to find Sonos systems, and if found it will publish them on the network.
Finding the Sonos systems works, but registering them on the network not.
I have tried to use mdns instead of avahi but get the same error in AirSonos.
Has anyone an idea how to sole this?
Below I have posted some of my logs below.
AirSonos displays the following logging when it is started:
In /var/log/messages the following is logged:
Processes in the jail (with avahi-daemon and dbus)
Note: To compile AirSonos on Freenas you need
I have been able to install AirSonos with npm version v.2.13.4, running on node v0.12.7.
(version 0.10 of node do not find network interfaces).
I have installed avahi and dbus in the jail and both of them are running.
When AirSonos starts it tries to find Sonos systems, and if found it will publish them on the network.
Finding the Sonos systems works, but registering them on the network not.
I have tried to use mdns instead of avahi but get the same error in AirSonos.
Has anyone an idea how to sole this?
Below I have posted some of my logs below.
AirSonos displays the following logging when it is started:
Code:
root@airsonos:/ # airsonos --verbose Unexpected result while probing for avahi: { [Error: dns service error: unknown error code] errorCode: -65563 } Searching for Sonos devices on network... Setting up AirSonos for Kitchen {192.168.xxx.xxx:1400} nodetunes:server starting nodetunes server (Kitchen (AirSonos)) +0ms /usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns/lib/advertisement.js:56 dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name, ^ Error: dns service error: unknown error code at Error (native) at new Advertisement (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns/lib/advertisement.js:56:10) at Object.create [as createAdvertisement] (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/node_modules/mdns/lib/advertisement.js:64:10) at NodeTunes.<anonymous> (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/server.js:74:21) at Server.g (events.js:199:16) at Server.emit (events.js:104:17) at net.js:1171:12 at process._tickCallback (node.js:355:11)
In /var/log/messages the following is logged:
Code:
Aug 19 15:24:36 airsonos node: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1 Aug 19 15:24:37 airsonos node: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2 Aug 19 15:24:38 airsonos node: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3 Aug 19 15:24:39 airsonos node: dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mdnsd Socket:14 Err:-1 Errno:38 Socket operation on non-socket Aug 19 15:24:41 airsonos node: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1 Aug 19 15:24:42 airsonos node: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2 Aug 19 15:24:43 airsonos node: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3 Aug 19 15:24:44 airsonos node: dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mdnsd Socket:18 Err:-1 Errno:38 Socket operation on non-socket
Processes in the jail (with avahi-daemon and dbus)
Code:
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 57704 0.0 0.0 12076 1668 ?? SsJ 3:18PM 0:00.02 /usr/sbin/syslogd -s root 57741 0.0 0.1 18632 3080 ?? INJ 3:18PM 0:00.08 /bin/sh /usr/local/sbin/pbid messagebus 57805 0.0 0.1 14340 2212 ?? IsJ 3:18PM 0:00.00 /usr/local/bin/dbus-daemon --system avahi 57809 0.0 0.1 28232 2624 ?? IJ 3:18PM 0:00.02 avahi-daemon: running [airsonos.local] (avahi-daemon) root 57838 0.0 0.0 14176 1636 ?? IsJ 3:18PM 0:00.01 /usr/sbin/cron -s root 60542 0.0 0.0 3812 1300 ?? INJ 3:38PM 0:00.00 sleep 300 root 58623 0.0 0.1 17564 3180 0 I+J 3:19PM 0:00.06 tcsh root 58603 0.0 0.1 17564 3140 1 SJ 3:18PM 0:00.08 tcsh
Note: To compile AirSonos on Freenas you need
- copy dns_s.h and mpg123.h from /usr/local/include to /usr/incliude/ (or add /usr/local/include to the include path for the compiler)
- Create a file config.h in /usr/include with
Code:
#define HAVE_STRERROR #define ieee754_float32_t float
- To install airsonos use the following command:
# npm install -g airsonos --mpg123_backend=alsa - An error message can be shown by gyp that /root/.node-gyp cannot be written to
Chmod 777 -R /root/.node-gyp