Changes

From Amahi Wiki
Jump to: navigation, search
2,881 bytes added ,  14:23, 10 November 2018
image =Warning.png|
heading =WARNING|
message = Manually upgrading <b>may break the Amahi 7/8 or greater Plex Media Server app</b> or your HDA.
<b>Amahi or Plex Inc. cannot provide support to help or correct any issues resulting from this upgrade if you chose to do it.</b>}}
 
= Recent "White Page" Issue =
There is an issue in recent releases of the Plex Media Server app. If reaching the server yields a white page, please access it with this work-around link until (Plex fixes the issue): [http://hda:32400/web http://hda:32400/web].
= Source Install =
<b>WARNING:</b> This is a user contributed tutorial. Proceed with this guide at your own risk. If it breaks your HDA or you need assistance, Amahi cannot provide support.
This is a quick guide on how to install manually the PlexMediaServer (not the Amahi web app) on Amahi 7/9 or greater (Fedora 19/21). Find out the latest version by checking '''<nowiki>https://plex.tv/downloads</nowiki>''' and copy the link under the Fedora icon.Note that PlexPass users occassionally have access to preview versions of Plex that may contain additional functionality not yet released to other users. Use the toggle to download the preview release if you have a PlexPass. * Install the current Plex server version from the link above, where x.x.x.x-xxxxxxx is the current version (1.2.2.2857-d34b464 at October 2017) 
* Install the Plex server
:<u>64-bit</u>
<pre>wget <nowiki>https://downloads.plex.tv/plex-media-server/0x.9x.12x.4.1192x-9a47d21xxxxxxx/plexmediaserver-0.9x.12x.4x.1192x-9a47d21xxxxxxx.x86_64.rpm</nowiki></pre> :''Fedora 19 or older'' sudo yum localinstall plexmediaserver-0x.x.x.x-xxxxxxx.x86_64.9rpm :''Fedora 21 or newer'' sudo dnf -y install plexmediaserver-x.12x.4x.1192x-9a47d21xxxxxxx.x86_64.rpm</pre> :<u>32-bit(Amahi 7 or older '''ONLY''')</u><pre>wget <nowiki>https://downloads.plex.tv/plex-media-server/0.9x.12x.4x.1192x-9a47d21xxxxxxx/plexmediaserver-0.9x.12x.4x.1192x-9a47d21xxxxxxx.i386.rpm</nowiki>sudo yum localinstall plexmediaserver-0.9x.12x.4x.1192x-9a47d21xxxxxxx.i386.rpm</pre>
* Start the service: Next up we actually have to start Plex, the following command will do just that as well as create a symlink to always start Plex at boot.
:<b>NOTE:</b> Don't forget if you are using Greyhole, that in this case you have always to use your files "inside" from the [[Mount_Shares_Locally|mounted local files]]
* Either by auto update (done so around midnight), or if you ask manually for updating the system, amahi Amahi will replace the original PlexMediaServer Plex Media Server package with it's own amahi-plex (webapp). In order to prevent that you have to exclude the auto-update in the amahi-Amahi repo. Edit (as root) ''/etc/yum/yum.conf '' (as rootAmahi 8 older) or ''/etc/dnf/dnf.conf'' (Amahi 9 or newer) and add the following at the bottom:
exclude=amahi-plex
If you want to enable this feature you should [[Mount_Shares_Locally|mount your shares locally]] on your HDA and point [http://www.amahi.org/apps/plex-media-server Plex Media Server] to these mount points instead. Otherwise deletes could cause orphan files in the storage pool since only the symlink would actually be deleted and not the actual file.
= Locally Mounted Shares (Ubuntu & FedoraONLY) =
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 as suggested above), you will need to change the permissions of your plex server user. The Plex Media Server is run by a special user <i>plex</i> who doesnt have access to the local shares by default.
for <b>Ubuntu</b>
To fix, open terminal as root user and type:
sudo usermod -a -G users plex
 
for <b>Fedora</b>
To fix, open terminal as root user and type:
sudo gpasswd -a plex users
You may need to restart Plex. Now when you want to add directories using the web interface all your shares should be accessible.
* If you have installed manually by source the PlexMediaServer, it now has the ability to update itself through the settings' webpage
* If you are using amahi-plex it will auto update itself as soos so as the developers push the new version into amahiAmahi's repo. Don't try to update the amahi-plex web app although in the setting's webpage it will inform you that a new version of PlexServer Plex Media Server is available. Most probably likely it will fail or it will brake down break your system !!!
= Troubleshooting =
 
== Request cannot be recognized -- treating a request as not-local ==
 
When the web app (http://plexms) is working but the server cannot be seen ... it could be due to some DNS issues. You can see the logs indicating that the requests arrive but the name (hda or plexms) is for some reason not recongnized as a local request, so it's labelled as a non-local request.
 
Request came in with unrecognized domain / IP 'plexms' in header Host; treating as non-local
 
To make it recognize requests as local, you can add your HDA's IP address mapping plexms to your HDA's IP and also plexms with full domain in /etc/hosts, for example (assuming 1.2.3.4 is your HDA IP):
 
1.2.3.4 plexms plexms.amahi.net
 
Then restart httpd as root or sudo with: <code>systemctl reload httpd</code>
 
You can see the logs (in both 32 and 64 bit machines) on the Linux side at this location:
 
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/
 
under these files
 
Plex Media Server.log
Plex Media Service.log
 
== Server Setup v Player Login ==
After install the Plex server still needs to be configured and logged into a [http://www.plex.tv Plex.tv] account. Before the Plex server has been named properly, going to [//plexms.amahi.net //PlexMS.Amahi.Net] from your LAN will bring you to a Plex.tv login then redirect you to a player-only page. To get around this, visit your [HDA's static IP]:32400/web/
example:<br /> 192.168.0.1:32400/web/ <br />
This should bring you to the same log in page, but redirect you to the server setup.
 
The default server name is LocalHostLocalDomain, change this to PlexMS. Now the address [//plexms.amahi.net //PlexMS.Amahi.Net] should bring you to the server page (with player too).
 
Also, visiting your Dynamic DNS name followed by port 32400 (example.yourhda.com:32400) will bring you to a player from anywhere on the internet. Port forwarding is required at your router's firewall.
== Data not shown with Main page login ==
Start by finding your ####-plexms.conf file in /etc/httpd/conf.d/ Open this file up in a text editor like vi or nano and remove (or comment out) the following two lines:
ProxyPass / <nowiki>http://hda:32400/manageweb/</nowiki> ProxyPassReverse / <nowiki>http://hda:32400/manageweb/</nowiki>
<u>Option 1</u><br />
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) <nowiki>http://%{HTTP_HOST}:32400/manageweb/</nowiki> [R,L]
:After completing the changes, restart httpd
<html>
<head><meta http-equiv="refresh" content="0; url=<nowiki>http://hda:32400/manageweb/</nowiki>" />
</head>
<body></body></hmtl>
The Plex Media server page should now load when you click on the icon or link in the dashboard.
 
== Looking For Servers ==
Can logon to the app, but displays "Looking for Servers" is the top left corner of screen.
 
Some users have reported that accessing the app by IP address resolves this issue.
 
:Example:
<pre>http://x.x.x.x:32400/web</pre>
 
 
[[Category:apps]]
12,424

edits