Bug 15025 - bad proxy setting causes "connect timed out" message (was: Unable to login to mysqueezebox.com through squeezeserver)
: bad proxy setting causes "connect timed out" message (was: Unable to login to...
Status: RESOLVED DUPLICATE of bug 15432
Product: Logitech Media Server
Classification: Unclassified
Component: SqueezeNetwork Integration
: 7.4.2
: Other Ubuntu Linux
: P3 normal (vote)
: 7.5.0
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-02 12:36 UTC by toby
Modified: 2010-03-02 22:31 UTC (History)
2 users (show)

See Also:
Category: Bug


Attachments
server.log (12.43 KB, text/plain)
2009-11-02 14:40 UTC, toby
Details
strace of squeezeboxserver while failing to login to SN (30.87 KB, text/plain)
2009-11-11 00:40 UTC, toby
Details

Note You need to log in before you can comment on or make changes to this bug.
Description toby 2009-11-02 12:36:48 UTC
Ive just installed
Version: 7.4.2 - r29092 @ Sat Oct 31 04:00:55 PDT 2009
on a fresh install of kubuntu 9.10

I can log on to www.mysqueezebox.com through a browser, however not through squeezeserver.

After entering email and password in squeezecenter and pressing apply I immediately see "Invalid mysqueezebox.com username or password." error message.

In server.log (attached) I see corresponding entries
[09-11-02 20:22:31.8605] Slim::Networking::SqueezeNetwork::_error (447) Unable to login to SN: Connect timed out:
[09-11-02 20:23:54.7050] Slim::Networking::SqueezeNetwork::_error (447) Unable to login to SN: Connect timed out:
[09-11-02 20:31:01.0495] Slim::Networking::SqueezeNetwork::_error (447) Unable to login to SN: Connect timed out:

"timed out" seems unlikely to be accurate - the log entry (and then error message) appear instantly.

The mysqueezebox.com user name is squeeze@tarind.com
Comment 1 toby 2009-11-02 12:49:20 UTC
Could be this:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/417757
?
Comment 2 toby 2009-11-02 14:39:36 UTC
No difference after switching to a local resolver, which I believe eliminates that ubuntu bug.
Comment 3 toby 2009-11-02 14:40:30 UTC
Created attachment 6255 [details]
server.log
Comment 4 Chris Owens 2009-11-09 09:16:43 UTC
Andy notes that this is often due to network problems.  He wants to fix the error message.
Comment 5 toby 2009-11-11 00:40:51 UTC
Created attachment 6293 [details]
strace of squeezeboxserver while failing to login to SN

Ive tried using strace on the squeezeboxserver process while submitting this form. Output attached. A couple of things stand out:

1. It reads the whole of /etc/services. I wonder what it is looking for?

2. There is no outgoing network activity during this period. I wonder if it has cached some error from a previous access?
Comment 6 James Richardson 2009-11-11 06:56:09 UTC
Michael/Andy: does the attached trace log help at all?  Please let me know what testing you would like me to do.

I was able to log in from my ubuntu VM just fine, so am unable to replicate this issue yet.

Toby: when you installed SBS, did you install in the 'default' location or choose a different install location?
Comment 7 Andy Grundman 2009-11-11 07:24:21 UTC
Try enabling network.asyncdns and network.asynchttp debug logging.
Comment 8 toby 2009-11-11 13:19:39 UTC
Aha!

With network.asyncdns and network.asynchttp debug logging enabled, the log showed it was trying to use a proxy. Sure enough, there is a web proxy set in the server settings, but in hostname:port format, not the xx.xx.xx.xx:yyyy format as suggested in the help.

I'm not sure how the proxy setting got there; I dont remember doing that manually :-(

mysqueezebox login works after changing that hostname to ip address, or after blanking this setting (I dont really need squeezeboxserver to be using the proxy).

Thanks for your help
Comment 9 Andy Grundman 2009-11-11 13:24:00 UTC
Great, we definitely need to improve the error messages there...
Comment 10 Michael Herger 2010-03-02 22:31:27 UTC

*** This bug has been marked as a duplicate of bug 15432 ***