mstinaff / PMS_Updater

Shell script for updating the Plex Media Server inside the FreeNAS Plex plugin
MIT License
439 stars 91 forks source link

Issues updating jail containing plex plugin #48

Closed afettouhi closed 1 year ago

afettouhi commented 4 years ago

I am using your script to update plex on my 11.2 Freenas server and I am having conflict issues with the openldap-client-2.4.48 package that won't install due to a conflict openldap-sasl-client-2.4.48. I don't have much experience with FreeBSD pkg package manager. So I was hoping you could give me some pointers on how to resolve this issue.

jbeez commented 4 years ago

Are you running the script inside of the jail or on the host system?

afettouhi commented 4 years ago

Inside the jail.

jbeez commented 4 years ago

Ok so these scripts pull down a tgz file and just unpack them, there's not really a package management function going on.

Can you go through your process and when you're getting the error? Is this a new jail or have you been upgrading it internally for a long time? I'm trying to get a feel for maybe it being out of sync or if you've manually done things in the jail. There are package commands to force package installs but sometimes even that fails. OpenLDAP is a directory service which shouldn't have anything to do with plex so I definitely need more information.

afettouhi commented 4 years ago

It is an old jail and I have been upgrading plex inside the jail for some time now. The conflict arises when I call

pkg update

and then

pkg upgrade -y

jbeez commented 4 years ago

As always make a backup before you try anything, quick snapshot should do you... but, try pkg upgrade -f to force it over and see how that goes.

Honestly I would make a new plex jail in the new iocage system and migrate everything over. Also if you go this route double check but I remember there being a gui bug for duplicate jails so you may need to create it in the cmd line. I tend to treat jails as disposable, I have a backup plex jail configured but just not on, if something goes horribly wrong I can just turn that jail on and redo my main plex jail but I haven't had to use it yet.

afettouhi commented 4 years ago

The jail is already an iocage jail. You mentioned earlier that OpenLDAP doesn't have anything to do with plex but it got installed into the jail when I had to install wget and perl5. This was when I first started using your script again for iocage jails.

jbeez commented 4 years ago

I forked this script so I didn't need to use wget and perl5 so I wouldn't have to deal with any pkg nonsense :) You can find my fork here https://github.com/jbeez/PMS_Updater

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.