Bug 6357 - Jive & Ray are unable to complete setup if connecting to SqueezeNetwork
: Jive & Ray are unable to complete setup if connecting to SqueezeNetwork
Status: CLOSED FIXED
Product: SB Controller
Classification: Unclassified
Component: Browser
: unspecified
: Other Other
: P1 blocker (vote)
: 7.0
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-13 18:46 UTC by Dan Evans
Modified: 2008-02-15 01:10 UTC (History)
10 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Evans 2007-12-13 18:46:01 UTC
During Support's testing on Dec. 12th, 5 out of 5 attempts to setup via SqueezeNetwork failed.  We do not have logs from those attempts, but we will try to generate some with more tests.

We tested and confirmed that the wireless router we were connecting to had solid internet access.  We tried 4 wireless attempts and 1 wired.
Comment 1 Richard Titmuss 2007-12-17 01:05:11 UTC
This may have be a glitch in the jive service for SN. Can you recreate now, if not I suggest this bug is closed?
Comment 2 Blackketter Dean 2007-12-27 08:51:50 UTC
Dan or QA: can you reproduce?
Comment 3 Ross Levine 2008-01-03 11:54:39 UTC
I was able to reproduce this problem on the first try. It appears Ray connected just fine but Jive says problem connecting and prompts to try again or skip the step but trying again won't work since Ray is no longer in setup mode; skip this step shows no players. 

Sorry if I'm wrongly presuming that this bug is specific to Jive & Ray connecting to SN and not just Jive. 
Comment 4 Blackketter Dean 2008-01-21 20:00:59 UTC
Is this a dup of bug 6709?
Comment 5 Ross Levine 2008-01-21 20:02:47 UTC
*** Bug 6709 has been marked as a duplicate of this bug. ***
Comment 6 Richard Titmuss 2008-01-22 04:44:48 UTC
Ross, I know Andy was working on this last week. Can you please retest with both the MP firmware and the latest nightly. If it is still broken Andy or myself will take a look. Cheers.
Comment 7 Ross Levine 2008-01-22 12:39:49 UTC
This still doesn't work for me with r15, Problem Connecting, Try again doesn't work just shows connecting to 16:06:23 for 15 minutes.  

Note this blocks Rhapsody certification. 
Comment 8 Andy Grundman 2008-01-22 12:51:02 UTC
r15?  Isn't MP r18?
Comment 9 Ross Levine 2008-01-22 12:53:15 UTC
I'm sorry I meant to say r1547 (Jive).
Comment 10 Wallace Lai 2008-01-22 13:41:49 UTC
I am having problem also.
Here are the steps:
1.  Delete the Ray from SqueezeNetwork.
2.  Downgrade Jive to 1 r1220 (the MP FW).
3.  Perform factory reset on both Jive and Ray.
4.  Setup both Jive and Ray.
5.  Connect to SqueezeCenter directly without going through SqueezeCenter on a PC.
6.  A PIN shows up on the Jive.
7.  Go to www.squeezeCenter.com on a PC and add the PIN and player's name to SN.
8.  After a few seconds, this Palyer becomes part of the Players list on the SN.
9.  Go back to Jive.  Tried to listen to BBC through internet radio.  Unable to find the Internet Radio item at all.
10.  This user was listening to different stations yesterday on the same hardwares.   Plus, the SqueezeBox using the same netework setup is playing songs through SqueezeNetwork directly right now.

Is there a spec on how Jive and Ray are supposed to connected to SN?  Are there any specified steps like "click this button, that windows shoud pop up" type of deal.
Comment 11 Andy Grundman 2008-01-22 13:53:02 UTC
Err, you are going to http://www.squeezenetwork.com:3000 when you are adding the PIN right?  Do not use the prouduction SN at all!
Comment 12 Wallace Lai 2008-01-22 14:10:18 UTC
Tried both.  The player's name is 000420160276.  It is on both the beta server and the production server.
By the way, when a user is logged onto the production server, he is also logged onto the beta server.  Is this expected behavious?
Comment 13 Wallace Lai 2008-01-22 14:12:47 UTC
Yesterday, I went to the SN beta on my PC through the link inside SQueezeCenter.  There is a link there labeled as SqueezeNetwork Beta.
Comment 14 Andy Grundman 2008-01-22 14:14:25 UTC
Yes they share the same database, but you cannot setup anything related to Jive on production.  I will run through testing this again.
Comment 15 Wallace Lai 2008-01-22 14:20:00 UTC
Hi, Andy,

Can you let us know the steps after your testing?  We will confirm those steps really work.  After that, we can just tell users these steps and be done with.

Thanks
Wallace
Comment 16 Andy Grundman 2008-01-22 14:38:34 UTC
These are the steps I took, I got different results than you did but it did fail, sort of.

Ray fw 19, factory reset.
Jive fw 1220, factory reset.

Setup network.
Choose Ray to setup.
Choose SqueezeNetwork music source.
Got "Your Squeezebox is now setup" message on Jive after a second or two.
Jive prompts for firmware update, clicked Begin Update.
After reboot, Jive displays Activate Account screen.
Went to http://www.squeezenetwork.com:3000/player/viewPlayers and added the PIN with player name "Jive".
Note that after you do this you get *TWO* new players listed on SN: the Jive and the Ray.  I will be fixing this so the Jive doesn't actually show up as a "player".
Clicked the center button to confirm I have activated the account.
Main menu is displayed for player "Squeezebox" (the default name given to a new Ray).

I did notice that after this step the wireless icon turned blue and Jive had disconnected from SN.  Could not get it to reconnect properly... I think this is a new bug introduced in the last few days that I have also seen with SC.

If I reboot Jive I am able to control the Ray on SN OK.
Comment 17 Andy Grundman 2008-01-22 14:39:05 UTC
Sorry, that should read Ray fw 21.
Comment 18 Ross Levine 2008-01-22 15:08:52 UTC
Andy are you removing Ray from your SN account before this test? I've never connected my Ray successfully and I'm still not able to. However Steven managed to successfully connect his Ray once nearly 2 weeks ago and he's been able to connect to SN with current firmware and V7, until he removed Ray from his account. Now Steven is also seeing the failure Anoop and I are seeing. Could this be the difference between our testing and the results you're seeing Andy?
Comment 19 Andy Grundman 2008-01-22 15:45:09 UTC
Yeah I removed the Ray and Jive from my account prior to testing.
Comment 20 Spies Steven 2008-01-22 16:02:05 UTC
(In reply to comment #19)
> Yeah I removed the Ray and Jive from my account prior to testing.
> 
Andy, did you try deleting your Jive and Ray from SN using the admin tool or just your account?  Is it the same thing?
Comment 21 Ross Levine 2008-01-22 16:04:52 UTC
Andy have you tested at all with r1425 or r1547?
Comment 22 Andy Grundman 2008-01-22 16:05:47 UTC
I used the Players page, not the admin tool.
Comment 23 Andy Grundman 2008-01-22 16:06:42 UTC
r1547 is current, but I think it's buggy.  1425 is ancient history and no one should be using that.
Comment 24 Ross Levine 2008-01-22 18:47:01 UTC
Andy Jive v7 shows up as r1425, according to Mickey this is MP. Per Dean I've done some testing with v6 r1220. 

My setup: Ray fw21 wireless, Jive r1220 connecting to Squeeze Test. Jive connects to wireless network, sees Ray I select my Ray and as time goes on the led turns blue, Jive prompts to connect to QA-server or Squeeze Network, I choose SN and wait 2 minutes for Jive to show "Problem Connecting, try again or skip this step" Try again no longer works because Ray is not in discoverable mode, and skip this step shows various players but of course not my Ray. I reproduced this exactly 3 times. 

I will take a closer look with v7 as well tomorrow. 
Comment 25 Andy Grundman 2008-01-22 19:48:54 UTC
Ah, MP 7, I have not done any testing with that one.

Note that your Jive must have a UUID in order to use SN.  What you described could be either a network error or a missing UUID.  Do you have a log from the SD card?
Comment 26 Wallace Lai 2008-01-23 10:57:23 UTC
Good news, I was able to connect Jive and Ray to SqueezeNetwork this morning using the initial setup steps.
I am trying the same steps 3 more times to make sure things are indeed OK.
Comment 27 Wallace Lai 2008-01-23 12:07:51 UTC
Tried 3 more times.  Jive and Ray connected to SqueezeNetwork just fine.  Internet radioes from Hong Kong came over nice and clear.  BBC Comedy/Drama station sounds great too.
Can other people please try the initial setup steps with their own network settings?  I was using standard wireless, and connected to SN directly.
Comment 28 Ross Levine 2008-01-23 16:39:57 UTC
Andy is right about the UUID I have several Jives without UUID's and they're useless for this test. 

However Steven is also right, forgetting the player isn't enough to accurately retest this setup. You must delete the player from the SN admin utility. 

Andy if you have a minute I'm confident you'll be able to reproduce the problem if you delete the player first. Seems to be the same issue from 1220 or 1425. 
Comment 29 Andy Grundman 2008-01-23 16:59:21 UTC
So if you delete the player via the admin tool you get a failure, but deleting from the normal players page works?  I think they do the exact same thing under the hood...
Comment 30 Ross Levine 2008-01-23 17:05:06 UTC
(In reply to comment #29)
> So if you delete the player via the admin tool you get a failure, but deleting
> from the normal players page works? 

Yes. We've reproduced it several times. 
Comment 31 Wallace Lai 2008-01-24 11:41:45 UTC
The same Jive and Ray cannot connect to SqueezeNetwork at all.  It makes no difference whether the player was deleted from www.squeezenetwork.com:3000 first.  Tried both ways.  No go.
Comment 32 Ross Levine 2008-01-24 12:47:03 UTC
Let us know if you need anything else from QA, this issue should be easy to reproduce.
Comment 33 Andy Grundman 2008-01-25 10:34:36 UTC
I've fixed a couple of bugs that could have caused this issue.  Please retest.
Comment 34 Andy Grundman 2008-01-25 11:28:53 UTC
FYI, I just found a Jive bug in today's build where after your enter your PIN, it won't reconnect properly to SN, so you'll get a blue wifi icon.
Comment 35 Ross Levine 2008-01-25 16:13:27 UTC
Tested again with 7.0 r1628 without removing my player from my account, worked fine. Removed the player and tried again, it failed 5/5 times. 
Comment 36 Andy Grundman 2008-01-25 16:20:36 UTC
You should also remove your Jive from your account as well to do a proper retest.  You will have to use the admin tool to do this.
Comment 37 Ross Levine 2008-01-25 17:08:05 UTC
So I used the admin tool and searched for mac of my Jive and my Ray, I factory reset both and deleted both then proceeded with my test. 3/5 times it failed outright, the other 2 times it connected! However it made no mention of pin, or my account. So they connected to SN, but didn't prompt me to link to an account, new bug?
Comment 38 Andy Grundman 2008-01-25 17:10:24 UTC
Hmm, that's strange.  Will have to check it next week.  What is the MAC of your Jive?
Comment 39 Ross Levine 2008-01-25 17:11:50 UTC
00:04:20:1A:04:70 my Jive
00:04:20:16:06:23 my Ray
Comment 40 Ross Levine 2008-01-28 13:07:52 UTC
*** Bug 6365 has been marked as a duplicate of this bug. ***
Comment 41 Andy Grundman 2008-01-30 11:48:33 UTC
A number of network fixes have been made recently.  I have no trouble setting up on SN.  Please retest.
Comment 42 Andy Grundman 2008-01-30 20:14:55 UTC
I found and fixed a race condition that could break SN setup with MP firmware, because it doesn't close connections properly during the firmware upgrade.
Comment 43 Blackketter Dean 2008-01-31 19:33:00 UTC
Andy:  Should we mark this fixed and have QA/Dan verify?
Comment 44 Blackketter Dean 2008-02-01 17:36:24 UTC
Ping Andy
Comment 45 Andy Grundman 2008-02-02 08:10:27 UTC
With as much testing as Richard has been doing lately I am inclined to mark it fixed.  Bug 6857 is the only remaining bug I think, and it doesn't relate to initial SN setup.
Comment 46 Ross Levine 2008-02-04 14:08:57 UTC
I was able to connect Jive and Ray to SN once successfully this morning. Since, I've failed 3 times. After deleting both Jive and Ray from the SN beta admin utility I factory reset both Jive and Ray and double check that their macs are not searchable from SN beta admin utility. Then I tried connecting them to SN with latest firmware on both, on Squeeze Test and my local network, both connect just fine but offer no pin, not linked. (Jive=00:04:20:1a:01:fc, Ray=00:04:20:16:06:23) 
Comment 47 Andy Grundman 2008-02-04 14:26:23 UTC
It would be really helpful if you could mention what time it was whenever you failed setup, so I can correlate with the log file.
Comment 48 Spies Steven 2008-02-04 15:40:18 UTC
What I am seeing today is that I get ray and jive to the point where I select a source.  I select SqueezeNetwork and ray immediately begins updating while jive waits.  About the time that ray has almost finished updating, jive times out with the option to try again or skip this step with neither option really working.  This is stating with ray FW 18 and jive FW 1425 and both removed from SqueezeNetwork using the admin tool.  00:04:20:16:06:3A and 00:04:20:1A:04:6C a couple of minutes ago.
Comment 49 Andy Grundman 2008-02-04 15:48:42 UTC
Could this be the low timeout value in MP firmware for waiting while Ray updates FW?  Richard?
Comment 50 Richard Titmuss 2008-02-04 15:55:20 UTC
It could be. It would be useful if you could time how long the ray firmware update takes. Is it always longer when it fails?
Comment 51 Ross Levine 2008-02-04 16:06:44 UTC
I just reproduced as I did in comment 46, 1 minute ago. 
Comment 52 Spies Steven 2008-02-04 16:17:12 UTC
(In reply to comment #50)
> It could be. It would be useful if you could time how long the ray firmware
> update takes. Is it always longer when it fails?
> 

I just tried again. Jive timed out at 1:25 while ray finished updating and reconnected at 1:45.
Comment 53 Andy Grundman 2008-02-04 16:18:22 UTC
Hmm, Ross I think you must have got to a PIN screen because I see polling of the 'islinked' request, which only happens when the PIN screen is displayed.
Comment 54 Ross Levine 2008-02-04 16:22:18 UTC
No pin screen yet. I did this setup before lunch, when I returned there was a pin on the Jive screen. 
Comment 55 Andy Grundman 2008-02-04 16:27:40 UTC
The log I was looking at was around 4:06pm.  It polled islinked for a while and then stopped.  I'm not sure what's wrong, could be something in the new PIN code.  So you say you see a PIN screen now?  If you press the center button does it give you an error message screen?
Comment 56 Blackketter Dean 2008-02-04 18:21:43 UTC
Can this be closed in light of bug 6948?
Comment 57 Ross Levine 2008-02-04 18:29:51 UTC
Andy and I worked on this in the engineering room on Campfire. He managed to reproduce the issue and filed bug 6948. I think 6948 blocks this bug, I think we should wait for it to be resolved to close this bug. 
Comment 58 Blackketter Dean 2008-02-04 21:19:47 UTC
See bug 6948.
Comment 59 Spies Steven 2008-02-14 16:38:42 UTC
I am reopening this bug as a place holder.  There are still a number of outstanding issues being investigated when connecting duet directly to SqueezeNetwork.
Comment 60 Spies Steven 2008-02-14 16:49:41 UTC
Adding Brandon to the cc list.
Comment 61 Richard Titmuss 2008-02-15 01:10:25 UTC
Closing this bug as it covers too many issues and is no longer useful for track specific problems. Opened Bug 7175 to cover the failure Steven is seeing now.