Sometimes My A540 Retrieves Files it Already Has

Topics related to delivering files to Set-top Boxes.

Sometimes My A540 Retrieves Files it Already Has

Postby Henry.G » Thu Jan 12, 2012 4:09 pm

I have a network of A540s all pulling their video files, metadata, etc. from an external FTP Server over the Internet. It looks like some of my A540s unnecessarily go through a cycle of retrieving all the files again...when it already has them. This is rare but I would like to figure it out. What could be causing this? What logs should I review?
Henry.G
 
Posts: 45
Joined: Mon Apr 25, 2011 12:54 pm

Re: Sometimes My A540 Retrieves Files it Already Has

Postby Cilutions Support » Mon Jan 16, 2012 4:25 pm

Can you log into the A540 (i.e., telnet into the box), go to the directory where logs reside (i.e., cd /PVR/pdreceiver) and look at the log_ftpc.txt file? This is the log file which records all the activity associated with pulling content from an external FTP Server down to the local A540. You can examine, say, the last 200 lines of this file by running this linux command:

tail -200 log_ftpc.txt

It should tell you what the A540 was doing and when; like "Getting file ...". And it records errors there as well.

This log file is the first place to start when reviewing file retrieval activity and possible errors.
Cilutions Support
Site Admin
 
Posts: 139
Joined: Mon Feb 07, 2011 3:03 pm

Re: Sometimes My A540 Retrieves Files it Already Has

Postby Henry.G » Mon Jan 16, 2012 6:09 pm

I have looked at /PVR/pdreceiver/log_ftpc.txt and found some error messages. What could be causing these messages? Note that I have changed the domain name to mycompany in the excerpt below because I don't want to publish the name of my FTP Server. But everything else is just as it appears in log_ftpc.txt:

12/31/1999 19:00:28.126:Getting "ftp://ftp.mycompany.net:21/Content/" (0 bytes) from offset 0
12/31/1999 19:00:38.134:ERROR: 6 ("Couldn't resolve host name")
12/31/1999 19:00:38.134:Getting "ftp://ftp.mycompany.net:21/Content/GF3111D0022712/" (0 bytes) from offset 0
12/31/1999 19:00:48.136:ERROR: 6 ("Couldn't resolve host name")
12/31/1999 19:00:48.137:Getting "ftp://ftp.mycompany.net:21/Content/upgrade/" (0 bytes) from offset 0
12/31/1999 19:00:54.707:"ftp://ftp.mycompany.net:21/Content/upgrade/" received.
12/31/1999 19:00:54.732:Getting "ftp://ftp.mycompany.net:21/Content/GF3111D0022712/upgrade/" (0 bytes) from offset 0
12/31/1999 19:00:54.895:ERROR: 9 ("Access denied to remote resource")
12/31/1999 19:00:54.961:Deleting file "/PVR/tmp/video1.mpg".
11/28/2011 06:36:59.563:Deleting file "playlist.pl".
11/28/2011 06:36:59.607:Deleting file "video2.mpg".
Henry.G
 
Posts: 45
Joined: Mon Apr 25, 2011 12:54 pm

Re: Sometimes My A540 Retrieves Files it Already Has

Postby Cilutions Support » Tue Jan 17, 2012 5:55 pm

These errors show that your DNS Server (probably the router on your local LAN - supplied automatically by your router if the A540 has DHCP enabled) is failing to resolve your FTP domain name the first few times the A540 tries to connect. Then it works OK. So the A540 gets confused thinking that the main set of files should be removed from the local /PVR directory. Then later, when the DNS lookup succeeds, the A540 loads the files again.

Note that newer versions of the A540 image, dated January 2012 or later, will refrain from removing the files in /PVR when this error condition occurs. Meanwhile, you should probably change your FTP Server settings to use an explicit IP address instead of a domain name. The initial source of the problem looks to be your DNS Server and its inability to resolve the domain name sometimes.
Cilutions Support
Site Admin
 
Posts: 139
Joined: Mon Feb 07, 2011 3:03 pm


Return to STB-Specific Content Distribution

Who is online

Users browsing this forum: No registered users and 0 guests

cron