Bugzilla – Bug 9623
squeezecenter tried to download firmwares to Firmware dir
Last modified: 2009-07-31 10:30:30 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.
Carl, we'd like to understand why it's so important to you to have the firmware directory read-only. Andy to follow up.
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).
Targeting for 7.2.1 in case there is some urgency for the original poster.
(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.
Will possibly fix this for 7.3.
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.
(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.
(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.
> 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.
Created attachment 4131 [details] download firmware images to cache folder
change 23546 - download player firmware to cache folder instead of Firmware folder
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.
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.
change 24498 - thanks!
Carl: can you verify this has been address in SqueezeCenter 7.3.2 r24695
Verified in 7.3.2 - 24695, firmware is now in /var/lib/squeezecenter/cache.
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.
Correction: SqueezeCenter version is 7.3.2
Reduce number of active targets for SC