I started noticing that Pandora wasn't working anymore after I upgraded
my Ubuntu server with an SSD drive.  The super-fast bootup must be
outpacing the network acquisition, because doing a service restart
solves the issue as is mentioned here on this thread.

To get around having to do a manual restart every bootup, I modified
/usr/sbin/squeezeboxserver as follows:


Code:
--------------------
    
  sub init {
  ...
  $log->error("Starting Logitech Media Server (v$VERSION, $REVISION, 
$BUILDDATE) perl $]");
  
  ### BEGIN DNS HACK
  # Wait for mysqueezebox.com to be available to avoid a DNS issue that
  # otherwise requires a manual restart of the service to get Apps working.
  #
  # 
http://forums.slimdevices.com/showthread.php?86158-couldn-t-resolve-ip-address-for-mysqueezebox-com/page2
  #
  $log->error("Delaying to workaround DNS issue...");
  my $MAX_DNS_ATTEMPTS = 7;
  my $dnsRetryWait = 1;
  my $dnsAttemptCount = 0;
  for (;;) {
  $log->error("Pinging mysqueezebox.com...");
  system("ping", "-c", "1", "mysqueezebox.comm");
  if ($? == 0) {
  $log->error("mysqueezebox.com is there!");
  last;
  }
  $log->error("mysqueezebox.com isn't there");
  if (++$dnsAttemptCount == $MAX_DNS_ATTEMPTS) {
  $log->error("Proceed without mysqueezebox.com connectivity");
  last;
  }
  $log->error("Sleeping $dnsRetryWait seconds...");
  sleep $dnsRetryWait;
  $dnsRetryWait *= 2;
  }
  ### END DNS HACK
--------------------


I realize this thread is old, and SB is no longer supported, but maybe
this will help somebody.


------------------------------------------------------------------------
jpitt42's Profile: http://forums.slimdevices.com/member.php?userid=37147
View this thread: http://forums.slimdevices.com/showthread.php?t=86158

_______________________________________________
Touch mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/touch

Reply via email to