Skip to main content

Plex

Ultra.ccOn your Ultra service, Plex Media Server requires Securethe secure connection to be at least set to Preferred in Plex Media Server settingssettings, or you will face the error "Can't connect securely". 

Plex Media Server is a proprietary media player suite that organizes video, audio, and photos from a user's collectionsmedia collection and online services,services. enabling theThe user tocan access and stream the content from the server fromto any device.device where Plex is offered.

YouMore information can learnbe more about the app infound this link.here.

In this section, we will be detailing the initial configuration of your Plex Media Server. This assumes that you have stored your media in ~/media. Our Plex installation automatically creates your media folders inside ~/media as follows: ~/media/Movies ~/media/TV\Shows ~/media/Music

No further step needed, although if you requirewould want to change your librarieslibrary pathpaths in PlexPlex, you can read a guide about it [here]here.

Prerequisites

  • A Plex account - you can makecreate one athere https://plex.tv.
  • A Ultra plan that supports media server(Plex)servers supported(any Ultra.ccexcept plan.Essential tier)

Initial UCP Configuration

Like all applications, Plex Media Server iscan be installed from the Ultra.cc Control Panel,UCP, this application, however, has one extra step. When you click on Install and are prompted with this screen, you will need to visit https://www.plex.tv/claim/claim.

If you have not done so already, sign in to your Plex account and copy the claim code provided. Paste this into the prompt and then click Install.Install.

Your Plex Media Server is alsocomes configured out of the box. Just connect to your Plex Media Server instance by following the link in the UCP - as is typical with all your otherofficial applications.

Plex Plug-inPlugin Installers

Listed below are scripts that install some of the popular Plex Plug-insplugins into your PMSPlex Media Server instance. To useinstall it,a justplugin, runconnect to your Ultra service via SSH and execute the commandsprovided ofcommand for the plug-ins thatplugin you needwould onwant yourto service's SSH terminal and access your Plex afterward.install. Some post-installation notes are detailed onfor each plug-in.plugin.

Absolute Series Scanner/Hama Bundle

curl https://scripts.usbx.me/main/Plex/Plex-Plugins/hama-ass.sh | bash
Post Installation

Extended Personal Media Shows

curl https://scripts.usbx.me/main/Plex/Plex-Plugins/epms.sh | bash
Post Installation

Trakt.tv Scrobbler

curl https://scripts.usbx.me/main/Plex/Plex-Plugins/trakt.sh | bash
Post Installation

Get SSL-URL for Plex Media Server

bash <(wget -qO- https://scripts.usbx.me/main/Plex/plex-ssl-url.sh)

Troubleshooting Information

How do I update Plex?

Our Upgrade/Repair Plex image is locked to a version/image that we have deemed asto stable.be Thisstable on our infrastructure. The newest version is duenot to some clients reporting issues onalways the newestbest version, as Plex releases.has a track record of deploying new releases with a lot of bugs.

To upgrade to the latest Plex,Plex version, you can do this via SSH. YouInstructions may refer here toon how to upgrade yourcan Plexbe tofound the newest version.here.

My Plex is down. What are some Troubleshootingtroubleshooting Stepssteps to resolve it?

Usual causes of this are Plex updates, or the server cannot read or write to the library, which is a common occurrence with rcloneRclone mounts. In these cases, the RAM usage of Plex would go up, and the system will kill your Plex instance.

It'sIt is also worth mentioningnoting that some of Plex's features, especially logins, Serverserver Claimingclaiming API, and Webweb apps, are centrally hosted by Plex.Plex Pleaseand checknot herelocally forattached anyto your Plex Media Server. Any outage announcements onwill theirbe system:posted here: https://status.plex.tv.

  • First, try to restart Plex from the Apps tab on the UCP, and wait at least 5 minutes to see if it returns after 5 minutes.starts.
  • Check if the container is not damaged. Try to use the upgrade/repair option from your UCP action menu under Installed Applicationstab -> Plex and wait for 5 minutes.
  • Try to claim your server again, as your server token is expired. Visit https://plex.tv/claim to get your claim code. Then, use the Claim option from your UCP action menu under Installed Applications -> Plex. Paste your code and click claim.
  • If it'sPlex still is not running, log in to your slot'sUltra service via SSH and runexecute the following command:
ps aux | grep [p]lex
  • If it returns any sort of "D"D state or <defunct>, something is holding the Plex process.
    • If Plex is Defunct, this is usually caused by a broken rcloneRclone mount. To fix that, you mayshould visitfollow thisthe guideinstructions provided here, and then restart Plex after.Plex. After restarting the mountsRclone mount and Plex, runexecute ps aux | grep [p]lex, and if it returns nothing, your Plex is running normally. If not, repeat the guide.
    • If it is still in D state, then another 3rd third-party appapplication is holding the process. Stop any application that is affiliated with your instancePlex ofMedia Plex.Server instance.
    • If grep returns normally, is not in a defunct state, but you cannot access Plex, your Plex database may be corrupted, and you may need to view the logs. You can either run the following command onvia SSH and look for any errors. You can also download yourthe logs viafrom https://app.plex.tvthe settings in yourthe Plex settings.webUI.
cat .config/plex/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log
  • Any SLOW QUERY and SQLite errors/warnings are signs of a corrupted database. You may attempt to repair your database,database as stated by the guidewith here.Plex SQLite .
  • If it doesn'tdoes not work, the last resort is to back up your old configuration to confirm that your database is corrupted and see if Plex comes online with a new configuration. Execute the following commands:
mv ~/.config/plex ~/.config/plex.bak
  • Then afterward, reinstall Plex. If it runs, you may need to do a fresh install of Plex.

Why is Plex producing a transcoder error?

The Plex Transcoder exited error is a general error for not playing back the media using the video player or transcoder, and you may need to view the logs. You can either run the following command on SSH and look for any errors. You can also download yourthe logs viafrom https://app.plex.tvthe settings in yourthe Plex settings.webUI.

cat .config/plex/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log

The

ERROR most- commonAn bugerror wasoccurred found recently is that we overlooked thatreading the installerfile
did

If notyou mount /transcode with .config/plex/transcode correctly, which results inencounter the following error inmessage: your log:

ERROR - Error creating directory "/transcode": Permission denied

This can be resolved by running the following command:

app-plex upgrade

ERROR - ERROR - An error occurred reading the file: /homeXX/username/SOMEMOUNT/path/to/File.mp4 (5).

Something is wrong with your Rclone mount, and thisit will need to be troubleshotinvestigated separately. In this case, it is usually Error 403: Rate Limit Exceeded, rateLimitExceeded, or a wholly dropped mount endpoint.


Extra Guides

Upgrading/Downgrading Plex by Specific Version

app-plex upgrade --plex-version=<version number>
  • This allows you to specify any version of Plex from v1.15 onward.
  • Take note that you have to put in the full version number of the build you want to install, or the command will fail.
  • For instance, if you want to install version 1.20.3.3483. After checking for the full version on the Docker Hub page, you will run the following
app-plex upgrade --plex-version=1.20.3.3483-211702a9f

Plex SQLite

The Plex SQLite binary is accessible from your Ultra.cc service, and can be useful for managing or repair a corrupted Plex database. To access the utility tool, follow the below instructions.

  • Connect to your Ultra.cc service via SSH.
  • Once connected, execute the below command for usage instructions:
plex-sqlite --help
  • Do note, this is an advanced utility tool, make sure to read up on how it works before use. More information can be found here.