PDA

View Full Version : Controller + SB Classic + SqueezeCenter



yoogie27
2009-04-01, 11:47
Hi all,

I have Squeezecenter 7.3.2 24695 installed on a quadcore HP server running on Debian Linux Etch. The network address is 10.0.0.0/24 and we have 2 x SB Boom and 2 x SB Classic in the network.

Server-Address is 10.0.0.1, rest in the same network.

Wireless LAN is Linksys WRT54GS with newest OpenWRT. Both WAN and LAN are set to bridge mode so all boxes access the server through the same network. Broadcasts are flying around.

Squeezeboxes are playing fine, most of them connected through LAN.

Now to the problem. I recently bought a SB Controller to smoothly administer all boxes, but can't get the black thing to find any players.

Controller version is: 7.0.1 r2448
Software update from within the controller fails. Syslog says:

Jan 1 05:07:22 (none) user.info jive: (SlimServer.lua:413) - SlimServer {yms}:disconnect()
Jan 1 05:07:22 (none) user.info jive: (SlimServer.lua:413) - SlimServer {SqueezeNetwork}:disconnect()
Jan 1 05:07:23 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY cometDisconnected: Comet {yms}, 0
Jan 1 05:07:23 (none) user.info jive: (SlimServer.lua:455) - SlimServer {yms} disconnected
Jan 1 05:07:23 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY serverDisconnected: SlimServer {yms}, 0
Jan 1 05:07:23 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY cometDisconnected: Comet {SqueezeNetwork}, 0
Jan 1 05:07:23 (none) user.info jive: (SlimServer.lua:455) - SlimServer {SqueezeNetwork} disconnected
Jan 1 05:07:23 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY serverDisconnected: SlimServer {SqueezeNetwork}, 0
Jan 1 05:07:29 (none) user.warn jive: (Upgrade.lua:91) - download Failed err=HTTP/1.1 302 Found
Jan 1 05:07:29 (none) user.info jive: (SlimServer.lua:397) - SlimServer {yms}:connect()
Jan 1 05:07:29 (none) user.info jive: (SlimServer.lua:397) - SlimServer {SqueezeNetwork}:connect()
Jan 1 05:07:30 (none) user.info jive: (AppletManager.lua:566) - Freeing: SetupFirmwareUpgrade
Jan 1 05:07:30 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY cometConnected: Comet {yms}
Jan 1 05:07:30 (none) user.info jive: (SlimServer.lua:434) - SlimServer {yms} connected
Jan 1 05:07:30 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY serverConnected: SlimServer {yms}
Jan 1 05:07:30 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY cometConnected: Comet {SqueezeNetwork}
Jan 1 05:07:30 (none) user.info jive: (SlimServer.lua:434) - SlimServer {SqueezeNetwork} connected
Jan 1 05:07:30 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY serverConnected: SlimServer {SqueezeNetwork}
Jan 1 05:07:30 (none) user.info jive: (SlimServer.lua:171) - SlimServer {SqueezeNetwork}: has no players!

anyway, while hanging around in the ssh session I tested the network connection to the server with netcat (nc) which was running absolutely fine. There is an iptables firewall running, but the device is unrestricted. I killed the firewall and it didn't make any difference.

The setup on the controller did not find anything and when I hold the left key an go to the serverlist, it shows SqueezeNetwork and YMS (my server), but when I click on them the screen shakes but nothing happens. In the log I can see that yms should have no players. But I can definately confirm that there are players connected. I can choose between them all from the webinterface and all are playing fine.
Here is the log:

Jan 1 05:12:13 (none) user.info jive: (AppletManager.lua:425) - Loaded: ChooseMusicSource
Jan 1 05:12:26 (none) user.err jive: (NetworkThread.lua:138) - network thread timeout for Task(SocketHttp {yms_Chunked}(R))
Jan 1 05:12:26 (none) user.err jive: (SocketHttp.lua:779) - SocketHttp {yms_Chunked}:t_rcvResponse.pump() error:inactivity timeout
Jan 1 05:12:26 (none) user.info jive: (Comet.lua:717) - Comet {yms}: _getEventSink error: inactivity timeout
Jan 1 05:12:26 (none) user.info jive: (Comet.lua:903) - Comet {yms}: handleAdvice state=CONNECTED
Jan 1 05:12:26 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY cometDisconnected: Comet {yms}, 0
Jan 1 05:12:26 (none) user.info jive: (SlimServer.lua:455) - SlimServer {yms} disconnected
Jan 1 05:12:26 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY serverDisconnected: SlimServer {yms}, 0
Jan 1 05:12:26 (none) user.info jive: (Comet.lua:944) - Comet {yms}: advice is retry, connect in 5 seconds
Jan 1 05:12:30 (none) user.info jive: (SlimServer.lua:171) - SlimServer {SqueezeNetwork}: has no players!
Jan 1 05:12:31 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY cometConnected: Comet {yms}
Jan 1 05:12:31 (none) user.info jive: (SlimServer.lua:434) - SlimServer {yms} connected
Jan 1 05:12:31 (none) user.info jive: (NetworkThread.lua:248) - NOTIFY serverConnected: SlimServer {yms}

Please give me a hint.

Cheers

yoogie27
2009-04-01, 11:56
I have to add the following:

I killed squeezecenter on the server and started a listening netcat on port 9000, then I started the scan on the controller:

GET /progress.html?_dc=1238611767412&type=importer&barlen=40&player=00%3A04%3A20%3xxxx&ajaxRequest=1 HTTP/1.1
Host: yms:9000
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://yms:9000/settings/server/status.html?player=00%3A04%3A20%3A1e%3Ae0%3A05&playerid=00%3A04%3A20%3xxxx
Cookie: SqueezeCenter-player=00%3A04%3A20%3A1xxx; SqueezeCenter-expandPlayerControl=true; SqueezeCenter-expanded-MY_MUSIC=1; SqueezeCenter-expanded-RADIO=0; SqueezeCenter-expanded-MUSIC_SERVICES=1; SqueezeCenter-expanded-FAVORITES=0; SqueezeCenter-expanded-PLUGINS=1; KWMS=bc6f491f3d013faa1f844ed8e98c0329; SqueezeCenter-playersettings=settings/player/basic.html?; SqueezeCenter-advancedsettings=plugins/JiveExtras/settings/basic.html?



Output of the GET-command is the following:

{
'scans':[

],
'message':'Fortschritts-Informationen des letzten Scans stehen nicht zur Verfügung.',
'total_time':''
}



What is wrong here?????




This came from the referer-URL



SqueezeCenter-Status
Version: 7.3.2 - 24695 @ Mon Jan 19 17:13:58 PST 2009
Hostname: yms
IP:
HTTP-Port: 9000
BS: Debian - DE - utf8
Plattform: i686-linux
Perl-Version: 5.8.8 - i486-linux-gnu-thread-multi
MySQL-Version: 5.0.32-Debian_7etch8-log
Anzahl erkannte Player: 3

Musiksammlungsstatistik
Anzahl Titel: xxx
Anzahl Alben: xxx
Anzahl Interpreten: xxx
Anzahl Stilrichtungen: xxx
Gesamte Spieldauer: xxx

Details zum Musik-Scan
( von )

( von )

( von )

( von )

( von )

( von )

( von )

( von )

( von )

( von )

( von )

Fortschritts-Informationen des letzten Scans stehen nicht zur Verfügung.

Player-Informationen
Informationen auf allen identifizierten mit SqueezeCenter verbundenen Geräten

Manu Boombox Schlafzimmer
Player-Modell: boom
Firmware: 43
IP-Adresse des Players: 10.0.0.xxx
MAC-Adresse des Players: 00:04:xxx

Manu WZ
Player-Modell: squeezebox3
Firmware: 123
IP-Adresse des Players: 10.0.0.xxx
MAC-Adresse des Players: 00:04:20:xxx
Stärke des drahtlosen Signals: 84%

Schlafzimmer
Player-Modell: boom
Firmware: 43
IP-Adresse des Players: 10.0.0.xxx
MAC-Adresse des Players: 00:04:20:xxx

Ordner

Zwischenspeicher-Ordner
/var/lib/squeezecenter/cache
Ordner für Einstellungen
/var/lib/squeezecenter/prefs
Ordner für Extras
/var/lib/squeezecenter/cache/InstalledPlugins/Plugins, /usr/sbin/Plugins, /usr/share/squeezecenter/Plugins
SqueezeCenter Logdatei
SqueezeCenter schreibt Logs aller relevanten Aktivitäten (Audio Streaming, Infrarot etc.) in folgende Datei:
/var/log/squeezecenter/server.log (100, 500, 1000 Zeilen)

Scanner Logdatei
SqueezeCenter schreibt Logs der Aktivitäten im Zusammenhang mit dem Scanner (Musikdateien, iTunes, MusicIP) in folgende Datei:
/var/log/squeezecenter/scanner.log (100, 500, 1000 Zeilen)

snarlydwarf
2009-04-01, 12:05
I have to add the following:

I killed squeezecenter on the server and started a listening netcat on port 9000, then I started the scan on the controller:

GET /progress.html?_dc=1238611767412&type=importer&barlen=40&player=00%3A04%3A20%3xxxx&ajaxRequest=1 HTTP/1.1
Host: yms:9000
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3A

? That isn't the controller: it is a web browser (firefox 3.1b3a running on Windows...) loading a status panel.

Your remote isn't talking to SC.

It does -not- talk to players: it talks to SC, which talks to players.

yoogie27
2009-04-01, 12:15
? That isn't the controller: it is a web browser (firefox 3.1b3a running on Windows...) loading a status panel.

Your remote isn't talking to SC.

It does -not- talk to players: it talks to SC, which talks to players.

Oops you are right :)).
Redid the test:

POST /cometd HTTP/1.1
User-Agent: Jive/7.0.1 r2448
Content-Length: 84
Host: 10.0.0.1:9000
Content-Type: text/json
Accept-Language: de

[{"clientId":"c478e1c2","connectionType":"streaming","channel":"\/meta\/reconnect"}]

yoogie27
2009-04-01, 12:49
It talks to the SqueezeCenter, because I see it in the list of music sources. But when I click on my server, it is not able to enumerate the players....

I stick on the screen for hours without finding any player.

Last time I killed the server, Controller showed me 2 players, but of course it was not able to enumerate, because the server was gone...

Really funny, as soon as I stop squeezecenter, the controller ist showing my players...

snarlydwarf
2009-04-01, 13:06
Really funny, as soon as I stop squeezecenter, the controller ist showing my players...

Are your players connected to SqueezeNetwork?

yoogie27
2009-04-01, 13:27
No, to the server. I play music from my local archive...
The controller only sees my players when I turn off squeezecenter.

It looks to me if there is a thread or whatever blocking anything inside Squeezecenter. I tried with 7.4 and with 7.3.3, but same situation. I disabled a lot of plugins, but no success

snarlydwarf
2009-04-01, 14:03
No, to the server. I play music from my local archive...
The controller only sees my players when I turn off squeezecenter.

It looks to me if there is a thread or whatever blocking anything inside Squeezecenter. I tried with 7.4 and with 7.3.3, but same situation. I disabled a lot of plugins, but no success

You said you have two booms and two sb3's. But the info page you posted only lists one sb3.

Do they all have unique names?

The controller gets its list of players from SC... so it has to get that list and be stuck processing it until you kill SC, at which point the dropped connection translates as "this list is done".

It sounds to me like SC is sending some of the list and then getting stuck: which is why it seems relevant that the list of players only shows 1 SB3.

yoogie27
2009-04-01, 15:20
You said you have two booms and two sb3's. But the info page you posted only lists one sb3.

Do they all have unique names?

The controller gets its list of players from SC... so it has to get that list and be stuck processing it until you kill SC, at which point the dropped connection translates as "this list is done".

It sounds to me like SC is sending some of the list and then getting stuck: which is why it seems relevant that the list of players only shows 1 SB3.

Well, one is switched off. But Controller is logging that there are no players connected. Connecting to SqueezeNetwork fails as well with the same message.

I have flashed the stock Linksys firmware from 2005, because I read somewhere that this would help... well, it doesn't

yoogie27
2009-04-01, 15:21
Oh and yes, they have unique names

yoogie27
2009-04-01, 15:29
Another reboot after flashing the Linksys did it. Thanks a lot for your help

cheers

snarlydwarf
2009-04-01, 15:45
Another reboot after flashing the Linksys did it. Thanks a lot for your help

cheers

bizarre.

I hate routers.