[slim] Re: Can't connect to Internet Radio
My SB3's timeout when trying to load a radio stream, but when I click on the URL in the Slimserver UI, Windows Media Player pops up and plays them just fine. This tells me the firewall and network are just fine, and the problem must lie between the SS SB? Running on an Infrant by the way with 6.5.1 -- wodehouse wodehouse's Profile: http://forums.slimdevices.com/member.php?userid=9389 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
I've been having the same problem when using AlienBBC since I upgraded to slimserver 6.5.0. This is also on a Mac running OS X 10.4. When booting or waking from sleep, it takes several seconds to acquire a wireless signal and get networking configured. During this time, /etc/resolv.conf is not present. If slimserver starts during this time, it cannot find a working DNS server. After a few seconds, DNS lookups work fine for other applications, but slimserver cannot resolve URLs unless it is restarted. The workarounds suggested by ringerrr are really helpful, but not ideal. Can anyone suggest a way of delaying slimserver booting, or getting slimserver to refresh its choice of nameserver when it fails to resolve a name? (Or failing that, enabling a local nameserver so that lookup requests to localhost will succeed. Or even a way to restart slimserver remotely?) Many thanks... Richard e.g. Booted at 2006-11-25 14:39:10 2006-11-25 14:39:43.1852 Async Networking init... 2006-11-25 14:40:14.0001 Aysnc: No DNS servers responded, you may have trouble with network connections. Please check your network settings. ... 2006-11-25 16:35:17.9555 ERROR: Async: Couldn't resolve IP address for: www.bbc.co.uk 2006-11-25 16:35:17.9561 ERROR: scanRemoteURL: Can't connect to remote server to retrieve playlist: Couldn't resolve IP address for: www.bbc.co.uk. -- rew1000 rew1000's Profile: http://forums.slimdevices.com/member.php?userid=8249 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
A-ha! Thanks...that worked great. Here's the output (which again looks fine now since stopping and restarting SlimServer): 2006-08-13 09:45:51.4384 AsyncHTTP: Verifying if we can use nameserver 212.42.1.68... 2006-08-13 09:45:51.4385 Testing lookup of www.google.com 2006-08-13 09:45:51.4767 Lookup successful, using 212.42.1.68 for DNS lookups ...all of which implies to me it's still something to do with rebooting the Mac (something I rarely have to do) and SlimServer starting up automatically before the resolv.conf file had been correctly populated. Based on the contents of this thread, I think the resolution is to either: 1) start SlimServer manually (rather than automatically) from System Preferences once the OS is fully up, or, 2) make a static copy of the current, valid resolv.conf file (assuming that those settings are unlikely to change) in my ~ directory (called .resolv.conf) Thanks very much once again Andy for your help - you've been incredible. Regards, Huw -- Ringerrr Ringerrr's Profile: http://forums.slimdevices.com/member.php?userid=6906 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
Don't mean to sound stupid, but ..errr.. how do I start Slimserver with the --d_http_async setting from a Mac? Because launching Slimserver is done through a System Preferences dialog, there doesn't appear to be any way of modifying the way it is invoked. ...and when I change the parameter in Slimserver settings, it is apparently lost/reset when I stop/restart the service duh. -- Ringerrr Ringerrr's Profile: http://forums.slimdevices.com/member.php?userid=6906 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
Open up a Terminal window. cd ~/Library/PreferencePanes/SlimServer.prefPane/Contents/server/ ./slimserver.pl --d_http_async -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
We use SqueezeNetwork to store the list of Shoutcast stations, so your SlimServer is just trying to download a small file from there to get this list. That error means it's having some problem downloading the file. You can try downloading it with a web browser to make sure your connection is OK. If this works and SlimServer still doesn't work, you may need to set a proxy server in SlimServer settings. http://content.us.squeezenetwork.com:8080/shoutcast/index.opml -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
Andy, Thanks for the response. Yes, I can access the file fine through a web browser, but not through slimserver (either using the Squeezebox itself, or using the web interface), for some reason. You mention that changing a proxy server setting might resolve the issue - please advise how to go about doing this (particularly because I don't use a proxy server on my local network, to the best of my knowledge). Thanks in advance -- Ringerrr Ringerrr's Profile: http://forums.slimdevices.com/member.php?userid=6906 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
Does your firewall let SlimServer access the Internet? -- Mark Lanctot Mark Lanctot's Profile: http://forums.slimdevices.com/member.php?userid=2071 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
U. Can't see why not. Like I say, it was working fine up until like a week or so ago, when it suddenly stopped working. I have ports 3483 open for both TCP UDP and 9000 open for TCP traffic only - both on my Mac's own firewall and the one built into my Linksys ADSL Router -- Ringerrr Ringerrr's Profile: http://forums.slimdevices.com/member.php?userid=6906 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
FYI, looking in log.txt reveals the following: 2006-08-11 19:26:44.2403 ERROR: AsyncHTTP: Couldn't resolve IP address for: content.us.squeezenetwork.com Any ideas why it can't resolve the IP address? -- Ringerrr Ringerrr's Profile: http://forums.slimdevices.com/member.php?userid=6906 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
No, but you could try increasing your radio station timeout. Also, running with --d_http_async will provide more information about DNS lookups. -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
Thanks again Andy. Increasing the radio station timeout parameter just means it takes longer to return the same error. Adding --d_http_async logging revealed the following diagnostic information: 2006-08-11 19:26:44.2403 ERROR: AsyncHTTP: Couldn't resolve IP address for: content.us.squeezenetwork.com 2006-08-11 20:02:56.9404 SimpleAsyncHTTP: GETing http://content.us.squeezenetwork.com:8080/shoutcast/index.opml 2006-08-11 20:02:56.9409 AsyncHTTP: Starting async DNS lookup for [content.us.squeezenetwork.com] using server [127.0.0.1] [timeout 30] 2006-08-11 20:03:26.9427 ERROR: AsyncHTTP: Couldn't resolve IP address for: content.us.squeezenetwork.com 2006-08-11 20:03:26.9613 SimpleAsyncHTTP(http://content.us.squeezenetwork.com:8080/shoutcast/index.opml) destroy called. Any ideas why SlimServer is using the locahost for DNS lookups rather than the gateway address (192.168.1.1) that it should be/was using? -- Ringerrr Ringerrr's Profile: http://forums.slimdevices.com/member.php?userid=6906 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
Ah OK, so check your DNS settings to make sure 127.0.0.1 is not listed as a DNS server in /etc/resolv.conf. -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
Nice suggestion Andy! Unfortunately, looking at /etc/resolv.conf reveals the following: domain WAG54GX2 nameserver 212.42.1.68 nameserver 212.42.1.60 ...where WAG54GX2 is the name of my Linksys router and 212.42.1.68 and 212.42.1.60 are the correct DNS entries supplied by my ISP that have been programmed into the router (which has a LAN address of 192.168.1.1). Hso why is it that SlimServer is looking to 127.0.0.1 to resolve the content.us.squeezenetwork.com domain? Incidentally, I wonder if this issue may be to do with upgrading to 6.3.1 - everything worked fine under 6.2 (from memory). -- Ringerrr Ringerrr's Profile: http://forums.slimdevices.com/member.php?userid=6906 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
Hmm I need to look into how Net::DNS finds nameservers, there may be a bug in there. When you run with --d_http_async, there is a message right at startup and looks like this: 2006-08-11 20:09:19.9237 Async: Verifying if we can use nameserver 192.168.100.1... 2006-08-11 20:09:19.9238 Testing lookup of www.google.com 2006-08-11 20:09:19.9525 Lookup successful, using 192.168.100.1 for DNS lookups Does this check fail for you? The reason this problem didn't exist in 6.2 was because it used the gethostbyname call. The reason we can't use that anymore is because it blocks SlimServer for many seconds when it can't resolve something. See bugs 1627 and 3309. -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Can't connect to Internet Radio
So here is how Net::DNS finds a DNS server. The default is 127.0.0.1 so if it can't find another server using any of these methods it will use localhost. /etc/resolv.conf ~/.resolv.conf (home dir) ./.resolv.conf (current dir) RES_NAMESERVERS environment variable These are all read from top to bottom, with anything found overwriting a previously found item. So if you have the environment variable RES_NAMESERVERS set, it'll overwrite your normal resolv.conf value. You could use this variable to manually set the DNS server if all else fails. -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=26294 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss