Difference between revisions of "Squeezebox Server"

From Amahi Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{NeedsUpdate}}
 +
<br />
 +
'''NOTE:'''  This guidance does not apply to Amahi 9 (Fedora 23) or newer.
 +
 
== App Fix for Squeezebox Server Upgrade ==
 
== App Fix for Squeezebox Server Upgrade ==
 
[[Category:Apps]]
 
[[Category:Apps]]
 
[http://www.amahi.org/apps/logitech-media-server Logitech Media Server] (formerly Squeezebox Server) may not work correctly.  If it shows the error message:
 
[http://www.amahi.org/apps/logitech-media-server Logitech Media Server] (formerly Squeezebox Server) may not work correctly.  If it shows the error message:
{{Text|The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.}}
+
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
  
 
'''The following steps resolve the issue:'''
 
'''The following steps resolve the issue:'''
  
[[Open_Terminal_as_root|Open terminal]] on the HDA enter the following commands and accept all defaults ('''DO NOT''' copy and paste):
+
[[Open_Terminal_as_root|Open terminal]] on the HDA enter the following commands and accept all defaults ('''DO NOT''' copy and paste):  
{{Code|cpan}}
+
cpan
  
 
'''NOTE:'''  At the cpan prompt type <code>force install CGI::Cookie</code> and followed by <code>quit</code> when finished.
 
'''NOTE:'''  At the cpan prompt type <code>force install CGI::Cookie</code> and followed by <code>quit</code> when finished.
  
 
Start squeezeboxserver:
 
Start squeezeboxserver:
{{Code|service squeezeboxserver start}}
+
service squeezeboxserver start
  
 
'''NOTE:'''  If you still receive the message above, a restart of the HDA may be required.
 
'''NOTE:'''  If you still receive the message above, a restart of the HDA may be required.
Line 19: Line 23:
 
== Playing AAC files on 64-bit installs ==
 
== Playing AAC files on 64-bit installs ==
 
Squeezebox server plays AAC files natively, but uses a 32-bit library.  On 64-bit machines you may get an error message on your squeezebox saying
 
Squeezebox server plays AAC files natively, but uses a 32-bit library.  On 64-bit machines you may get an error message on your squeezebox saying
{{Text|Problem: Can't open file for: [song title]}}
+
Problem: Can't open file for: [song title]
  
 
A simple fix for this problem is to install the 32-bit glib package.  [[Open_Terminal_as_root|Open terminal]] on your HDA and enter the following:
 
A simple fix for this problem is to install the 32-bit glib package.  [[Open_Terminal_as_root|Open terminal]] on your HDA and enter the following:
{{Code|yum install glib.i686}}
+
yum install glib.i686
 
Your AAC files should play on successful installation.
 
Your AAC files should play on successful installation.
  
 
(source: [[http://forums.amahi.org/viewtopic.php?f=14&t=2734|this forum post]])
 
(source: [[http://forums.amahi.org/viewtopic.php?f=14&t=2734|this forum post]])
  
== Workaround for unblock-us DNS problems with mysqueezebox.com ==
+
==Squeezebox and locally mounted shares==
 +
If you access your media files using [https://wiki.amahi.org/index.php/Mount_Shares_Locally locally mounted shares] (eg if you are a [https://wiki.amahi.org/index.php/Greyhole Greyhole] user), you will need to change the permissions of your squeezebox server user.  The squeezebox service is run by a special user <i>squeezeboxserver</i> who doesnt have access to the local shares by default.
 +
 
 +
To fix, open terminal and type:
 +
sudo usermod -a -G users squeezeboxserver
 +
 
 +
You may need to restart your squeezebox server.  Now when you want to add directories to your squeezebox using the web interface all your shares should be accessible.
 +
 
 +
 
 +
== unblock-us DNS issue with mysqueezebox.com Workaround (Fedora 19) ==
 
The unblock-us.com domain name servers do not resolve mysqueezebox.com subdomains properly (eg content.mysqueezebox.com, update.mysqueezebox.com).  This breaks the MySB network connection for squeezeboxes connected to the server and means they can't play pandora or other apps.
 
The unblock-us.com domain name servers do not resolve mysqueezebox.com subdomains properly (eg content.mysqueezebox.com, update.mysqueezebox.com).  This breaks the MySB network connection for squeezeboxes connected to the server and means they can't play pandora or other apps.
  
Line 36: Line 49:
  
 
(optional step 1a. You may wish to make a copy of the dnsmasq.conf file before editing.  Type in terminal:
 
(optional step 1a. You may wish to make a copy of the dnsmasq.conf file before editing.  Type in terminal:
{{Code|sudo cp /etc/dnsmasq.conf /etc/dnsmasq.conf.old}}}
+
sudo cp /etc/dnsmasq.conf /etc/dnsmasq.conf.old}
  
 
step 2. add a custom setting to your dnsmasq.conf file using terminal:
 
step 2. add a custom setting to your dnsmasq.conf file using terminal:
  
{{Code|sudo vi /etc/dnsmasq.conf}}
+
sudo vi /etc/dnsmasq.conf
  
 
Page down to the very end of the file, then press "i" to insert new text:
 
Page down to the very end of the file, then press "i" to insert new text:
Line 46: Line 59:
 
<code>server=/mysqueezebox.com/8.8.8.8</code>
 
<code>server=/mysqueezebox.com/8.8.8.8</code>
  
Press w to write to the file, q to save it and you're done!  I restarted the DNS server using the Amahi control panel as well.  You can test by directing your browser to update.mysqueezebox.com - it should show a directory.
+
Press esc to exit editing mode, then :w to write to the file, :q to save it and you're done!  I restarted the DNS server using the Amahi control panel as well.  You can test by directing your browser to update.mysqueezebox.com - it should show a directory.

Latest revision as of 03:54, 23 June 2020

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.


NOTE: This guidance does not apply to Amahi 9 (Fedora 23) or newer.

App Fix for Squeezebox Server Upgrade

Logitech Media Server (formerly Squeezebox Server) may not work correctly. If it shows the error message:

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

The following steps resolve the issue:

Open terminal on the HDA enter the following commands and accept all defaults (DO NOT copy and paste):

cpan

NOTE: At the cpan prompt type force install CGI::Cookie and followed by quit when finished.

Start squeezeboxserver:

service squeezeboxserver start

NOTE: If you still receive the message above, a restart of the HDA may be required.


Playing AAC files on 64-bit installs

Squeezebox server plays AAC files natively, but uses a 32-bit library. On 64-bit machines you may get an error message on your squeezebox saying

Problem: Can't open file for: [song title]

A simple fix for this problem is to install the 32-bit glib package. Open terminal on your HDA and enter the following:

yum install glib.i686

Your AAC files should play on successful installation.

(source: [forum post])

Squeezebox and locally mounted shares

If you access your media files using locally mounted shares (eg if you are a Greyhole user), you will need to change the permissions of your squeezebox server user. The squeezebox service is run by a special user squeezeboxserver who doesnt have access to the local shares by default.

To fix, open terminal and type:

sudo usermod -a -G users squeezeboxserver

You may need to restart your squeezebox server. Now when you want to add directories to your squeezebox using the web interface all your shares should be accessible.


unblock-us DNS issue with mysqueezebox.com Workaround (Fedora 19)

The unblock-us.com domain name servers do not resolve mysqueezebox.com subdomains properly (eg content.mysqueezebox.com, update.mysqueezebox.com). This breaks the MySB network connection for squeezeboxes connected to the server and means they can't play pandora or other apps.

Workaround: Amahi 7 uses dnsmasq for the domain name service, which has an option to use an alternative DNS for particular domains (see "using special servers" from the documentation here). We can specify that the Amahi DNS uses the Google or OpenDNS servers instead of unblock-us.com for MySB requests.

step 1. choose DNS server - I used GoogleDNS (8.8.8.8) but this should work with OpenDNS as well 208.67.222.222

(optional step 1a. You may wish to make a copy of the dnsmasq.conf file before editing. Type in terminal:

sudo cp /etc/dnsmasq.conf /etc/dnsmasq.conf.old}

step 2. add a custom setting to your dnsmasq.conf file using terminal:

sudo vi /etc/dnsmasq.conf

Page down to the very end of the file, then press "i" to insert new text:

server=/mysqueezebox.com/8.8.8.8

Press esc to exit editing mode, then :w to write to the file, :q to save it and you're done! I restarted the DNS server using the Amahi control panel as well. You can test by directing your browser to update.mysqueezebox.com - it should show a directory.