PDA

View Full Version : Squeezebox Radios and Touches fail to connect - 'can't resolve IP address'.



rmgalley
2018-09-13, 10:17
On Monday afternoon (10th) my Squeezebox radio was working normally. Later that day or in the early hours of Tuesday morning I received ‘Problem: can’t open file for: BBC Radio 4’. No other radio stations worked either. If I tried ‘Listen again’ the error message said ‘Couldn’t resolve IP address for: bbc.co.uk’. I have one other Squeezebox Radio and two Touch’s. All were affected by the inability to access BBC programmes using the BBC iPlayer plug-in from Triode/bpa.

On Tuesday and Wednesday, when time allowed, I did some more investigating. The LMS I was using was on a Netgear ReadyNAS Ultra 4 running firmware 6.9.3 and Logitech Media Server NT provided by NAStools (from https://apps.readynas.com/pages/?page_id=9%C2%A0). I tried restarting LMS, rebooting the NAS and finally rebooting the TP-Link VR900 modem router, but none of these helped. I can confirm the Wi-Fi icon on the radios is not red and I can access my music collection from the NAS on all devices without any problem.

There seemed to be some problem resolving IP addresses so I decided to temporarily install LMS on my PC running Windows 7 Pro 64-bit. I downloaded and installed ‘LogitechMediaServer-7.9.2-1536640725’ from the nightly builds.

I found I was unable to log in to my ‘mysqueezebox.com’ account. The error message says ‘Invalid mysqueezebox.com username or password. (Couldn’t resolve IP address for: www.mysqueezebox.com)'. Strangely, if I choose ‘I forgot my password’ and then ‘Already have an account? Log in here’, using the exact same log in details I can log in to my account without difficulty using the web gui. I have no difficulty accessing any other web page or service which requires internet connectivity.

Wondering if the problem was with the DNS nameservers I was using I changed these but the problem persists.

The components in common here are my TP-Link modem/router, my ISP and the ‘mysqueezebox’ site. I am now stumped as to what the problem is but I assume it is something at my end otherwise surely there would have already been posts on the forum. It is strange because everything was working normally but now, without my having made any changes (as far as I am aware), this is no longer the case. Would NAS and PC server logs help?

I also note 'downloads.sourceforge.com' and 'repos.squeezecommunity.org' cannot now be accessed so I cannot install the BBC iPlayer on the PC installation. Screenshots of the temporary Window LMS installation attached.

Any help would be much appreciated.

2561025611256122561325614

bpa
2018-09-13, 11:01
"Cannot resolve IP address" is usually a network problem - specifically DNS. There is no point reinstalling plugins or even LMS as that won't help unless you think something has got corrupted. You may also be experienncing a separate BBC problem where ther feed for "Listen Again" has broken. This should not affect live station.

What version is the LMS ? IIRC LMS used to use some specific DNS server to test network connection not necessarily the one confgured.

If the sourceforge and repos cannot be accessed - you have some sort of network issues. Usual starting point is to reboot all network devices to clear caches etc. - modem,router and LMS system. All off and then bring them up one ata time modem, router and finally LMS.

Do you have anything special in your network such as a VPN, dual network interface etc.

rmgalley
2018-09-13, 13:45
What version is the LMS ? IIRC LMS used to use some specific DNS server to test network connection not necessarily the one confgured.

If the sourceforge and repos cannot be accessed - you have some sort of network issues. Usual starting point is to reboot all network devices to clear caches etc. - modem,router and LMS system. All off and then bring them up one ata time modem, router and finally LMS.

Do you have anything special in your network such as a VPN, dual network interface etc.

Thank you very much for your quick reply.

The version of LMS temporarily installed on the Windows 7 PC is '7.9.2 – 1536640725', from the nightly builds downloaded 11.09.18.
The version of LMS on the NAS is via the Netgear site specifically for their OS6 firmware. It was from https://apps.readynas.com/pages/?page_id=9%C2%A0 and installed from 'nastools-logitechmediaserver_7.9.0~1477086729-nt1_amd64.deb'. It has given no trouble for over 6 months

Rather than just rebooting one item at a time, this time I have shut down the NAS, the combined TP-Link modem/router and the PC all at the same time for several minutes. I restarted the units in the order you suggested - modem/router, then the NAS with LMS installed. Finally the Win7 PC with the temporarily installed LMS.

There has been a change. On the NAS LMS I can log in to my 'mysqueezebox.com account'. I can also listen to all the BBC live streams I have checked. Unfortunately the 'listen again' initially gave me the error message 'There was an error loading the remote feed for: (Redirection limit exceeded)'. Now the error message has changed to 'There was an error loading the remote feed for: (404 not found).

Next I tried the LMS temporarily installed on the Win7 PC. Here I still cannot log in to my 'mysqueezebox.com' account. The error message is as before 'Invalid mysqueezebox.com username or password - couldn’t resolve IP address for: www.mysqueezebox.com'.

This is all very confusing. It is strange, of all the software on NAS & PC, it is only LMS apparently unable to access the BBC streaming sites. My inclination now is to perform a factory rest on the modem/router. Any other thoughts?

Paul Webster
2018-09-14, 06:22
Forget the BBC issue - that is a different problem (see other recent threads with BBC in the title).

bpa
2018-09-14, 06:40
This is all very confusing. It is strange, of all the software on NAS & PC, it is only LMS apparently unable to access the BBC streaming sites. My inclination now is to perform a factory rest on the modem/router. Any other thoughts?

There are separate BBC problems.
Live streams work OK both through LMS BBC App and through BBCiPlayer plugin (v1.5.*) .
"Listen Again" through BBCiPlayer plugin (v1.5.*) have a 404 due to a BBC problem. Nothing can be done to fix this.
Playing "Listen Again" program through BBCiPlayerExtra - a very small number of users have a "Redirection limit exceeded)" error. Clearing cach may fix this.

Regarding "couldn’t resolve IP address for" - can you play any internet stream under Radio menu "Staff Picks" ? - this may help determine if you have a separate network problem.

rmgalley
2018-09-14, 16:43
There are separate BBC problems.
Live streams work OK both through LMS BBC App and through BBCiPlayer plugin (v1.5.*) .
"Listen Again" through BBCiPlayer plugin (v1.5.*) have a 404 due to a BBC problem. Nothing can be done to fix this.
Playing "Listen Again" program through BBCiPlayerExtra - a very small number of users have a "Redirection limit exceeded)" error. Clearing cach may fix this.

Regarding "couldn’t resolve IP address for" - can you play any internet stream under Radio menu "Staff Picks" ? - this may help determine if you have a separate network problem.

Hi bpa

Thanks as ever for your input. I now realise others have been experiencing near enough the same problems as me - in particular agbagb in the 3rd party software forum. I have only recently looked at that but hadn't thought of posting there. I'd assumed the 'cannot resolve IP address' and the 'Listen again' issue were related because, for me, they both began at the same time - Monday of this week.

For clarification I now realise the '404 Not found' message was only when trying to play 'BBC iPlayer - Listen Again' and the 'redirection limit' message was only when trying to use the 'BBC iPlayer Extras'. Apologies for my confusion.

I have tried playing a selection from each of the 7 of the 'Staff Picks' members. I could get some of the selections from each staff member to play, but not all. When a failure occurred the error message variously said ' redirection limit exceeded', 'no items in playlist', 'connection reset by local host', 'timed out', '404 - couldn't resolve IP address'. From past recollection not all Staff Picks played in the past but I do not recall their error messages.

I'd like to try clearing the cache. My cumbersome way of restarting the LMS on the NAS was to temporarily enable one of the standard plug-ins. This necessitated a restart but I'd like to be able to shut down the LMS on the NAS to delete the cache.db file, accessing the NAS via WinSCP. 'Simple ' question - how do I shut down LMS rather than restart?

bpa
2018-09-15, 02:13
Hi bpa

Thanks as ever for your input. I now realise others have been experiencing near enough the same problems as me - in particular agbagb in the 3rd party software forum. I have only recently looked at that but hadn't thought of posting there. I'd assumed the 'cannot resolve IP address' and the 'Listen again' issue were related because, for me, they both began at the same time - Monday of this week.

For clarification I now realise the '404 Not found' message was only when trying to play 'BBC iPlayer - Listen Again' and the 'redirection limit' message was only when trying to use the 'BBC iPlayer Extras'. Apologies for my confusion.

I have tried playing a selection from each of the 7 of the 'Staff Picks' members. I could get some of the selections from each staff member to play, but not all. When a failure occurred the error message variously said ' redirection limit exceeded', 'no items in playlist', 'connection reset by local host', 'timed out', '404 - couldn't resolve IP address'. From past recollection not all Staff Picks played in the past but I do not recall their error messages.

I'd like to try clearing the cache. My cumbersome way of restarting the LMS on the NAS was to temporarily enable one of the standard plug-ins. This necessitated a restart but I'd like to be able to shut down the LMS on the NAS to delete the cache.db file, accessing the NAS via WinSCP. 'Simple ' question - how do I shut down LMS rather than restart?

1. Some "redirection" errors are due to a site moving over to https from http. IIRC A number of changes were made to LMS between 7.9.0 and 7.9.2 were to improve "https" support as new instances of its use became prevalent. If so, I would consider those errors as separate from other network errors.
2. "connection reset by local host" really means a network connection problem - it is as a result of TCP communication in one direction has broken down - look at all items in network: network interfaces/sockets, cables, routers. If using Wifi - look at neighbouring networks which although you may have a strong signal - a nearby strong signal on same/nearby channel can interfere with a strong signal. "timed out" would be similar to "reset" error.
3. 404 means network connection is OK but target of URL is no longer there - assuming no target host reconfig, you can do nothing about this. Similar any 5xx errors means network connection is OK but target server has a problem - assuming no target host reconfig, nothing can be done.
4. "no items in playlist" - this could be there are no items in playlist but otherwise no definitive answer except usually not a nertwork connection problem - it is a data returned content issue.
5. IIRC LMS cache has a 15min expiry timer. In theory leaving LMS shutdown should clear cache. In practice I prefer much longer say 30 mins. All NAS are different so simplest answer is to shut down NAS - perhaps overnight or when you are out for a while.

rmgalley
2018-09-15, 17:26
1. Some "redirection" errors are due to a site moving over to https from http. IIRC A number of changes were made to LMS between 7.9.0 and 7.9.2 were to improve "https" support as new instances of its use became prevalent. If so, I would consider those errors as separate from other network errors.
5. IIRC LMS cache has a 15min expiry timer. In theory leaving LMS shutdown should clear cache. In practice I prefer much longer say 30 mins. All NAS are different so simplest answer is to shut down NAS - perhaps overnight or when you are out for a while.

Thanks again bpa for your help. Returning to the 'redirection' problem, earlier this evening I shut down my NAS for 3½ hours but the problem persisted after restarting. Next I tied uninstalling LMS from the NAS and, for good measure, rebooting the NAS. I re-installed LMS and, following that, the latest versions of BBC iPlayer and BBC iPlayer Extras from http://downloads.sourceforge.net/project/bpaplugins/default-menu.opml.

As expected the 404 error on 'Listen Again' remained but so also did the 'redirection' error message when attempting to play any iPlayer Extras content. I am beginning to think the BBC also made some change here when they removed the working URLs for the 'Listen Again' content. They seemed to begin at the same time.

I next want to examine the temporary LMS on the Windows 7 PC. I'll begin by uninstalling the version I have now and try earlier ones as I've never been able to log in to my 'mysqueezebox.com' account. I'll report back.

bpa
2018-09-16, 01:51
Thanks again bpa for your help. Returning to the 'redirection' problem, earlier this evening I shut down my NAS for 3½ hours but the problem persisted after restarting. Next I tied uninstalling LMS from the NAS and, for good measure, rebooting the NAS. I re-installed LMS and, following that, the latest versions of BBC iPlayer and BBC iPlayer Extras from http://downloads.sourceforge.net/project/bpaplugins/default-menu.opml.

Unless you have disk corruption these sort of errors are rarely solved by reinstalling LMS or plugins. The version of BBCiPlayerExtra that matters is v2.0.0. Please use latest 7.9.* only - and do not test or use 7.7.* as its support of https is uncertain and so a waste of time when debugging.


As expected the 404 error on 'Listen Again' remained but so also did the 'redirection' error message when attempting to play any iPlayer Extras content. I am beginning to think the BBC also made some change here when they removed the working URLs for the 'Listen Again' content. They seemed to begin at the same time.
The 404 error will remain that way so no piint retesting unless you just want to prove your other network error ("cannot resolve") has gone away.

I think the "redirection" error is caused by BBC rediredcting a http request to a https one. If you are running LMS 7.7.* I think this did not support https fully. IIRC there was some bugs fixes for https applied restrospectivley to 7.7.5 onwards but I don't know if it is possible to confirm that on your system. I tested latest 7.7.5 for this https issue on BBCiPLayerExtra and it worked OK.

You can check this by
1. Going to a BBCiPlayerExtra Station A-Z Menu.
2. Enabling logging network.asynchttp to DEBUG
3. Click on a letter menu in the BBCiPlayerExtra (e.g. "A")
4. Disable logging by setting network.asynchttp to ERROR

Look at log file for messages from Asynchttp routines. Enabling network.asynchttp to DEBUG can generate a lot of message so the above method should results in small amount by ensuring it is enabled for a small amount.

rmgalley
2018-09-17, 16:52
Firstly some progress. I set up LMS 7.9.0 on a second Windows 7 Pro 64-bit PC. Everything installed as expected and I could successfully log in to my ‘mysqueezebox.com’ account. I was not getting any account validation problems. Nor was I getting any ‘bad repository’ messages at the top of the Plugins page. I was also able to install BBC iPlayer 1.5.3 and BBC iPlayer Extras 2.0.0 and the later, in particular, was able to access content without any ‘redirection’ errors. This seems to verify the integrity or merit of the modem/router and the broadband connection.

I returned to my normal Windows 7 Pro 64-bit PC. I uninstalled LMS and started over. I am not sure what was different this time, possibly something to do with Administrator privileges, but like the second PC everything worked correctly. I was able to log in to my ‘mysqueezebox.com’ account and install both BBC iPlayer plug-ins.

Since then LMS 7.9.1 was offered so that had been successfully installed on both Windows machines. Operation on both was normal with the exception of the ‘Listen Again’




I think the "redirection" error is caused by BBC rediredcting a http request to a https one. If you are running LMS 7.7.* I think this did not support https fully. IIRC there was some bugs fixes for https applied restrospectivley to 7.7.5 onwards but I don't know if it is possible to confirm that on your system. I tested latest 7.7.5 for this https issue on BBCiPLayerExtra and it worked OK.

You can check this by
1. Going to a BBCiPlayerExtra Station A-Z Menu.
2. Enabling logging network.asynchttp to DEBUG
3. Click on a letter menu in the BBCiPlayerExtra (e.g. "A")
4. Disable logging by setting network.asynchttp to ERROR

Look at log file for messages from Asynchttp routines. Enabling network.asynchttp to DEBUG can generate a lot of message so the above method should results in small amount by ensuring it is enabled for a small amount.

I then returned to my ‘normal’ LMS on the Netgear ReadyNAS.

LMS on the NAS is 7.9.0 from the Netgear site. I followed your guidance for generating an informative log file. There was a lot of content from many months ago in the Server.log file so I cleared the contents before following your instructions.

The generated log file contains 7 ‘Redirecting to https://www.bbc.co.uk/programmes/a-z/by/a/player.json’ requests before finally a ‘Failed to connect to http://www.bbc.co.uk:80/programmes/a-z/by/a/player.json (Redirection limit exceeded)’ line. You surmised correctly the cause of the failure to connect to the BBC iPlayer Extras content. This had not been a problem until about a week ago. The log file is attached.

As I do not have the expertise to interpret the log file maybe it will offer you the necessary clues to finding a solution. 25663

bpa
2018-09-18, 00:28
The generated log file contains 7 ‘Redirecting to https://www.bbc.co.uk/programmes/a-z/by/a/player.json’ requests before finally a ‘Failed to connect to http://www.bbc.co.uk:80/programmes/a-z/by/a/player.json (Redirection limit exceeded)’ line. You surmised correctly the cause of the failure to connect to the BBC iPlayer Extras content. This had not been a problem until about a week ago. The log file is attached.

I'll look a log file later (other BBC problems have taken up a lot of my time).

I have tested 7.7.5 and got no "redirection" problem with Perl 5.22 - I think full support of redirection requires a minimum level of Perl library. What version of Perl have you got installed ? If it older than 5.14.2 - then I think libraries may be too old.

bpa
2018-09-18, 03:42
The Extra "redirection" problem is a bit academic now since BBCiPlayer is working again - ensure you have V1.6.0 installed.

rmgalley
2018-09-18, 03:59
The Extra "redirection" problem is a bit academic now since BBCiPlayer is working again - ensure you have V1.6.0 installed.

Hi, thanks bpa,

I am much indebted to you for your time and expertise, as are so many others, including thanks to mrw for his/her sleuthing.

Just before hitting the sack last night I noticed v1.6.0 was being offered. I first verified it installed and worked as expected on the main Windows 7 PC then installed the new plug-in on the NAS. It was late and I didn't spent too much time evaluating but AFAICT functionality in all areas has been restored. Everything worked and there were no 'redirection' error messages.

Thank you so much once again.