Posts tagged with “update”

Plex Update on Ubuntu 18.04.2 LTS

Introduction

So recently I've been having an issue with my Plex Media Server (PMS) where the Hama scanner plugin gets stuck in a constant loop maxing out one core of my cpu to endlessly scan my files. Not sure why this is, most likely cause is a corrupt media file somewhere. So While I'll probably eventually have to find that file at some point I thought I'd take the time to update plex and the Hama plugin at the same time.

Updating Plex

Because I have the Plex distribution package enabled I can simply use sudo apt update && sudo apt upgrade to update all packages including Plex. Then the service needs to be restarted with sudo service plexmediaserver stop

However, this did not fix the issue with the scanner, so I now have to update that separately because it's not a stock service but a plugin i added.

Updating Hama

Luckily there is a handy sequence of code that someone wrote up to install and update Hama and ASS easily and quickly. So I ended up plugging those into my system and they worked like a charm. I did have to sudo rm a file when it was getting stuck, but once that was finished everything else worked like it should.

sudo service plexmediaserver stop cd /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/Hama.bundle sudo git reset --hard && sudo git pull cd /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Scanners/Series/ wget -N https://raw.githubusercontent.com/ZeroQI/Absolute-Series-Scanner/master/Scanners/Series/Absolute%20Series%20Scanner.py && cd sudo chown -R plex:plex /var/lib/plexmediaserver sudo chmod 775 -R /var/lib/plexmediaserver sudo touch /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Data/com.plexapp.agents.hama/StoredValues sudo chmod 777 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Data/com.plexapp.agents.hama/StoredValues sudo chown plex:plex /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Data/com.plexapp.agents.hama/StoredValues sudo service plexmediaserver restart

Final Notes

It seems that everything is now working as it should. Looks like it wasn't a corrupt media file after all but rather a a corrupt file in the Hama scanner files. I should not that I also made sure to optimize the database and clean the bundles after most steps throughout this process.

Hopefully everything stays working from now on!

Quick Links

Plex Install Guide Hama and ASS Install Guide


Proxmox Error When Updating

Introduction

On my Proxmox box there is a daily apt-get update task run. However it has been erring out every time it has run since I installed Proxmox. So hopefully this will fix it.

Work Part

There are various package repositories for Proxmox and those are listed in File /etc/apt/sources.list

The listings in that file influence what is checked for during the update process.

My concern is that I have this listing when I run "apt-get update"

Err:8 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise amd64 Packages 401 Unauthorized W: The repository 'https://enterprise.proxmox.com/debian/pve stretch Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/stretch/pve-enterprise/binary-amd64/Packages 401 Unauthorized E: Some index files failed to download. They have been ignored, or old ones used instead.

Now this most likely have an issue with my /etc/apt/sources.list

I am currently running Proxmox 5.4-3 so ideally I should have the following in my sources.list:

deb http://ftp.debian.org/debian stretch main contrib # PVE pve-no-subscription repository provided by proxmox.com, # NOT recommended for production use deb http://download.proxmox.com/debian/pve stretch pve-no-subscription # security updates deb http://security.debian.org stretch/updates main contrib

However this is the case already so after some checking it looks like there is another file that is in another directory. This file is located at "/etc/apt/aources.list.d/pve-enterprise.list" This is an enterprise only sources list with a single entry deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise So I commented that out and saved the file.

I reran the command "apt-get update" and encountered no errors. So hopefully it should all be working correctly now.

Quick Links

Proxmox Package Repositoires