Bug 7467 - jive_url() doesn't use the current IP address
: jive_url() doesn't use the current IP address
Status: RESOLVED DUPLICATE of bug 6828
Product: Logitech Media Server
Classification: Unclassified
Component: Controller
: 7.0
: Macintosh MacOS X 10.5
: -- major (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-09 17:10 UTC by pjc
Modified: 2008-03-10 11:00 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pjc 2008-03-09 17:10:53 UTC
jive_url() returns a URL containing the IP address the computer had when the server was started.  If the machine has gotten a different address since then, jive_url() will return the old (wrong) IP address.  This causes the poor little Jive controller to get infinitely stuck trying to download the new firmware, from a server that doesn't exist (any more).

I only managed to figure out what was going on my sneaking into the Jive advanced settings before it got caught in the upgrade loop, enabling SSH, and watching /var/log/messages to see that it was trying to access an old IP address.  (Then I had to figure out that SC was the culprit.)
Comment 1 Andy Grundman 2008-03-10 11:00:45 UTC
Actually SC sends a relative URL now and Jive just uses the IP/port it already knows about to construct the URL.

	# always send the upgrade url this is also used if the user opts to upgrade
	if ( my $url = Slim::Utils::Firmware->jive_url() ) {
		# Bug 6828, Send relative firmware URLs for Jive versions which support it
		my ($cur_rev) = $firmwareVersion =~ m/\sr(\d+)/;
		if ( $cur_rev >= 1659 ) {
			$request->addResult( relativeFirmwareUrl => URI->new($url)->path );
		}
		else {
			$request->addResult( firmwareUrl => $url );
		}
	}

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