Bug 9623 - squeezecenter tried to download firmwares to Firmware dir
: squeezecenter tried to download firmwares to Firmware dir
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 7.2
: Other Debian Linux
: -- minor (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-01 13:08 UTC by Carl Fürstenberg
Modified: 2009-07-31 10:30 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments
download firmware images to cache folder (3.20 KB, patch)
2008-10-13 06:26 UTC, Michael Herger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Fürstenberg 2008-10-01 13:08:20 UTC
Instead of downloading to the cache dir, squeezecenter tries to download the plugins to the Firmware directory, which possible is on an readonly partition.
Comment 1 Chris Owens 2008-10-06 09:11:13 UTC
Carl, we'd like to understand why it's so important to you to have the firmware directory read-only.  Andy to follow up.
Comment 2 Mark Miksis 2008-10-06 09:15:30 UTC
I've been meaning to file this bug for a while.  IMO, this is important for anyone who wants to distribute their own Linux package.  It should be assumed that the firmware dir will be somewhere under /usr and that /usr might be ro as per the FHS.  If there's no firmware in the firmware dir, it should be downloaded to the cachedir (as it is with jive).
Comment 3 Chris Owens 2008-10-06 10:20:08 UTC
Targeting for 7.2.1 in case there is some urgency for the original poster.
Comment 4 Carl Fürstenberg 2008-10-06 11:27:57 UTC
(In reply to comment #3)
> Targeting for 7.2.1 in case there is some urgency for the original poster.
> 

It's not too urgent, solved it by symlinking it from /var/lib/squeezecenter as a workaround.
Comment 5 Andy Grundman 2008-10-07 12:35:32 UTC
Will possibly fix this for 7.3.
Comment 6 Michael Herger 2008-10-08 07:58:05 UTC
For 7.3 on custom installations this can easily be fixed using a Slim::Utils::OS::Custom module overwriting dirsFor() for firmware. IMHO no fix on our side needed.
Comment 7 Carl Fürstenberg 2008-10-08 10:50:23 UTC
(In reply to comment #6)
> For 7.3 on custom installations this can easily be fixed using a
> Slim::Utils::OS::Custom module overwriting dirsFor() for firmware. IMHO no fix
> on our side needed.
> 

Depending on how static the .version files are, it might feel wrong to put static files in a variable directory.
Comment 8 Mark Miksis 2008-10-08 12:25:29 UTC
(In reply to comment #7)
> Depending on how static the .version files are, it might feel wrong to put
> static files in a variable directory.
> 

I agree.  It would be nice to be able to build a package with the .version files in /usr/share/squeezecenter/Firmware but still download the firmware to the cachedir which would be under /var.

Comment 9 Michael Herger 2008-10-08 23:35:04 UTC
> Depending on how static the .version files are, it might feel wrong to put
> static files in a variable directory.

I see, you're right. We might want to be able to return more than one folder, of which one might be our existing read-only, another one might be in some writable folder. This needs changes in Slim::Utils::Firmware, which only accepts one folder returned.
Comment 10 Michael Herger 2008-10-13 06:26:18 UTC
Created attachment 4131 [details]
download firmware images to cache folder
Comment 11 Michael Herger 2008-10-14 05:14:31 UTC
change 23546 - download player firmware to cache folder instead of Firmware folder
Comment 12 James Richardson 2008-12-15 12:08:02 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 13 Carl Fürstenberg 2009-01-02 07:05:12 UTC
Even though it does download now to the cache dir, it fails to read from it; Following is logs and such:

Current directory layout:

bubba:~# ls -l /usr/share/squeezecenter/Firmware/ /var/lib/squeezecenter/cache/
/usr/share/squeezecenter/Firmware/:
total 20
-rw-r--r-- 1 root root 250 2008-12-29 15:07 boom.version
-rw-r--r-- 1 root root 132 2008-12-29 15:08 receiver.version
-rw-r--r-- 1 root root 129 2008-12-29 15:07 squeezebox2.version
-rw-r--r-- 1 root root 434 2008-10-01 14:01 squeezebox.version
-rw-r--r-- 1 root root 126 2008-12-29 15:07 transporter.version

/var/lib/squeezecenter/cache/:
total 12192
drwxr-xr-x 3 squeezecenter nogroup    4096 2010-01-01 20:26 Artwork
-rw-r--r-- 1 squeezecenter nogroup  655360 2008-12-12 16:59 boom_30.bin
-rw-r--r-- 1 squeezecenter nogroup  655360 2008-12-18 17:44 boom_41.bin
-rw-r--r-- 1 squeezecenter nogroup      17 2010-01-01 20:26 cookies.dat
drwxr-xr-x 2 squeezecenter nogroup    4096 2010-01-01 20:30 DownloadedPlugins
drwxr-xr-x 7 squeezecenter nogroup    4096 2010-01-01 20:30 FileCache
-rw-r--r-- 1 squeezecenter nogroup  110086 2010-01-01 20:30 fontcache
drwxr-xr-x 2 squeezecenter nogroup    4096 2010-01-01 20:30 icons
drwxr-xr-x 2 squeezecenter nogroup    4096 2010-01-01 20:30 InstalledPlugins
-rw-r--r-- 1 squeezecenter nogroup 8703697 2010-01-01 20:31 jive_7.3_r3476.bin
-rw-r--r-- 1 squeezecenter nogroup      56 2010-01-01 20:30 jive.version
-rw-r--r-- 1 squeezecenter nogroup   20310 2010-01-01 20:30 plugin-data.yaml
-rw-r--r-- 1 squeezecenter nogroup  589824 2008-12-18 17:44 receiver_56.bin
-rw-r--r-- 1 squeezecenter nogroup   88889 2008-12-12 16:59 squeezebox_10.bin
-rw-r--r-- 1 squeezecenter nogroup  655360 2008-12-18 17:44 squeezebox2_121.bin
-rw-r--r-- 1 squeezecenter nogroup  122833 2008-12-12 16:59 squeezebox_40.bin
-rw-r--r-- 1 squeezecenter nogroup  141598 2010-01-01 20:28 stringcache
-rw-r--r-- 1 squeezecenter nogroup  655360 2008-12-18 17:44 transporter_71.bin

Downloading firmwares:


2010-01-01 20:27:52 squeezecenter_safe started.
[10-01-01 20:28:28.2473] Slim::Utils::Misc::msg (1126) Warning: [20:28:28.2417] Downloading firmware from http://update.squeezenetwork.com/update/fi
rmware/7.3.1/boom_30.bin, please wait...
[10-01-01 20:28:36.2292] Slim::Utils::Firmware::download (390) Warning: Successfully downloaded and verified /var/lib/squeezecenter/cache/boom_30.bi
n.
[10-01-01 20:28:36.2402] Slim::Utils::Misc::msg (1126) Warning: [20:28:36.2351] Downloading firmware from http://update.squeezenetwork.com/update/fi
rmware/7.3.1/squeezebox2_121.bin, please wait...
[10-01-01 20:28:42.4952] Slim::Utils::Firmware::download (390) Warning: Successfully downloaded and verified /var/lib/squeezecenter/cache/squeezebox
2_121.bin.
[10-01-01 20:28:42.5057] Slim::Utils::Misc::msg (1126) Warning: [20:28:42.5009] Downloading firmware from http://update.squeezenetwork.com/update/fi
rmware/7.3.1/squeezebox_40.bin, please wait...
[10-01-01 20:28:44.1857] Slim::Utils::Firmware::download (390) Warning: Successfully downloaded and verified /var/lib/squeezecenter/cache/squeezebox
_40.bin.
[10-01-01 20:28:44.1963] Slim::Utils::Misc::msg (1126) Warning: [20:28:44.1913] Downloading firmware from http://update.squeezenetwork.com/update/fi
rmware/7.3.1/squeezebox_10.bin, please wait...
[10-01-01 20:28:45.7070] Slim::Utils::Firmware::download (390) Warning: Successfully downloaded and verified /var/lib/squeezecenter/cache/squeezebox
_10.bin.
[10-01-01 20:28:45.7178] Slim::Utils::Misc::msg (1126) Warning: [20:28:45.7129] Downloading firmware from http://update.squeezenetwork.com/update/fi
rmware/7.3.1/transporter_71.bin, please wait...
[10-01-01 20:28:48.9295] Slim::Utils::Firmware::download (390) Warning: Successfully downloaded and verified /var/lib/squeezecenter/cache/transporte
r_71.bin.
[10-01-01 20:28:48.9400] Slim::Utils::Misc::msg (1126) Warning: [20:28:48.9350] Downloading firmware from http://update.squeezenetwork.com/update/fi
rmware/7.3.1/receiver_56.bin, please wait...
[10-01-01 20:28:51.9463] Slim::Utils::Firmware::download (390) Warning: Successfully downloaded and verified /var/lib/squeezecenter/cache/receiver_5
6.bin.
[10-01-01 20:28:51.9568] Slim::Utils::Misc::msg (1126) Warning: [20:28:51.9518] Downloading firmware from http://update.squeezenetwork.com/update/fi
rmware/7.3.1/boom_41.bin, please wait...
[10-01-01 20:29:12.9297] Slim::Utils::Firmware::download (390) Warning: Successfully downloaded and verified /var/lib/squeezecenter/cache/boom_41.bi
n.
(END) 


Boom wants firmwares (shows in it's window "Cant donwload firmware, cant connect to internet etc..."):

[10-01-01 20:49:21.9069] Slim::Player::Squeezebox::needsUpgrade (274) Reading firmware version file: /usr/share/squeezecenter/Firmware/boom.version
[10-01-01 20:49:21.9173] Slim::Player::Squeezebox::needsUpgrade (341) boom v. 33 could be upgraded to v. 41 if the file existed.
[10-01-01 20:49:21.9587] Slim::Player::Boom::sendBDACFrame (656) Updating the BDAC bass_eq volume table
[10-01-01 20:49:21.9687] Slim::Player::Boom::sendBDACFrame (660) Updating the BDAC bass_eq volume table for the subwoofer
[10-01-01 20:49:21.9809] Slim::Player::Squeezebox::needsUpgrade (274) Reading firmware version file: /usr/share/squeezecenter/Firmware/boom.version
[10-01-01 20:49:21.9910] Slim::Player::Squeezebox::needsUpgrade (341) boom v. 33 could be upgraded to v. 41 if the file existed.

Comment 14 Michael Herger 2009-01-05 02:53:11 UTC
change 24498 - thanks!
Comment 15 James Richardson 2009-01-19 13:39:48 UTC
Carl: can you verify this has been address in

SqueezeCenter 7.3.2 r24695
Comment 16 Ross Levine 2009-01-19 17:26:25 UTC
Verified in 7.3.2 - 24695, firmware is now in /var/lib/squeezecenter/cache. 
Comment 17 James Richardson 2009-01-22 09:58:11 UTC
Fixed - Closed Message (SC)

This bug has been fixed in the 7.3.3 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 18 James Richardson 2009-01-22 13:53:32 UTC
Correction: SqueezeCenter version is 7.3.2
Comment 19 Chris Owens 2009-07-31 10:30:30 UTC
Reduce number of active targets for SC