Closed ZeDima closed 1 year ago
Getting the same thing.... Could not find a FreeBSD download link on page https://plex.tv/api/downloads/5.json?channel=plexpass&X-Plex-Token=Ms7w5J6Nyu8Rp9ws4BxM
I have no problems downloading the 1.32.6.7371-b6a09ad81-FreeBSD-amd64.tar.bz2 version of Plex, but the plexmediaserver service is failing to start.
I see:
Aug 7 21:38:25 plex-3 root[33549]: /usr/local/etc/rc.d/plexmediaserver: WARNING: failed to start plexmediaserver
in /var/log/messages and no other errors.
I tried a manual update and ended up with the same problem you have harvimt
I had the same, rolled back to another snapshot of my plex jail and it worked again. After running the pms_updater.sh it once again failed to start. But then I noticed in my backup dir that there were 2 symlinks:
libpython2.7.so -> /usr/local/share/plexmediaserver/lib/libpython27.so
and
Plex_Media_Server -> /usr/local/share/plexmediaserver/Plex Media Server
So when I added those again, it managed to start again. Hope this helps.
Would the correct commands be:
ln -s libpython2.7.so /usr/local/share/plexmediaserver/lib/libpython27.so
ln -s Plex_Media_Server -> /usr/local/share/plexmediaserver/Plex Media Server
That is correct, depending on where you installed plex you should change your path ofc.
It's installed in a separate jail as a plugin. TrueNAS-13.0-U5.3 and jail is 13.0-RELEASE-p13. I'm getting this for some reason:
root@PLEX:/ # ln -s libpython2.7.so /usr/local/share/plexmediaserver/lib/libpython27.so
ln: /usr/local/share/plexmediaserver/lib/libpython27.so: File exists
Ah I'm sorry, it should be the other way around:
ln -s /usr/local/share/plexmediaserver/lib/libpython27.so libpython2.7.so
ln -s /usr/local/share/plexmediaserver/Plex\ Media\ Server Plex_Media_Server
run these in /user/local/share/plexmediaserver
I also have it installed in a truenas jail as a plugin btw
It looks like I was missing the Python one. Also I ran them in /usr/local/share/plexmediaserver
and it didn't help unfortunately.
I assume you did restart the service or jail? What does your /var/logs/messages say?
I actually did. Shouldn't I do it? I mean the PMS_Updater script does restart the service anyway, doesen't it?
Aug 8 15:12:01 PLEX pkg[12101]: libunwind-20211201_2 installed
Aug 8 15:12:01 PLEX pkg[12101]: argp-standalone-1.5.0 installed
Aug 8 15:12:02 PLEX pkg[12101]: libogg-1.3.5,4 installed
Aug 8 15:12:03 PLEX pkg[12101]: p11-kit-0.24.1_2 installed
Aug 8 15:12:03 PLEX pkg[12101]: fontconfig-2.14.2,1 installed
Aug 8 15:12:04 PLEX pkg[12101]: libx264-0.164.3095 installed
Aug 8 15:12:04 PLEX pkg[12101]: libva-2.19.0 installed
Aug 8 15:12:05 PLEX pkg[12101]: aom-3.6.1 installed
Aug 8 15:12:06 PLEX pkg[12101]: gnutls-3.7.9 installed
Aug 8 15:12:06 PLEX pkg[12101]: webp-1.3.1_1 installed
Aug 8 15:12:07 PLEX pkg[12101]: libv4l-1.23.0_2 installed
Aug 8 15:12:08 PLEX pkg[12101]: lame-3.100_4 installed
Aug 8 15:12:08 PLEX pkg[12101]: libass-0.17.1_1 installed
Aug 8 15:12:09 PLEX pkg[12101]: x265-3.4_2 installed
Aug 8 15:12:09 PLEX pkg[12101]: opus-1.4 installed
Aug 8 15:12:10 PLEX pkg[12101]: libvorbis-1.3.7_2,3 installed
Aug 8 15:12:10 PLEX pkg[12101]: svt-av1-1.6.0 installed
Aug 8 15:12:11 PLEX pkg[12101]: libplacebo-6.292.0 installed
Aug 8 15:12:11 PLEX pkg[12101]: dav1d-1.2.1_1 installed
Aug 8 15:12:12 PLEX pkg[12101]: libvpx-1.13.0 installed
Aug 8 15:12:12 PLEX pkg[12101]: libvdpau-1.5 installed
Aug 8 15:12:14 PLEX pkg[12101]: ffmpeg-6.0_1,1 installed
Aug 8 15:13:50 PLEX syslogd: exiting on signal 15
Aug 8 15:13:55 PLEX syslogd: kernel boot file is /boot/kernel/kernel
Aug 8 15:13:55 PLEX root[13740]: /etc/rc: WARNING: failed to start plexmediaserver
root@PLEX:/var/log #
Yea you should, so that's not the issue.
That looks exactly like what I had. could you maybe verify the permissions/ownership on the links?
Both are root|wheel.
I'm afraid I don't know what the issue is then. This is what solved it for me. Do you have any recent snapshots of your jail? Maybe rollback and start again from a working version
Well it looks like running the "Update" from TrueNAS plugins menu restores the functionality and downgrades the version to a working one. Thank you for your time anyway tho. Hope the script gets updated in the near future and restores it's former glory =) !
np! Glad you found a workaround for now at least :) and ye let's hope so
Hello all,
For me it worked to manually update the plex server with an earlier version:
root@Plex:~ # ./PMS_Updater.sh -v -a -l ./<Path_to_the_local_installer_file>
In my case: Path_to_the_local_file = 1.32.5.7349.8f4248874-FreeBSD-amd64.tar.bz2
I'm leaving a comment here to say I'm having the same problem as of this week too. Would I be wrong to say this script appears to be broken now? Like all of us here, I've loved having this script to keep my server on the latest version. If @mstinaff is no longer available to update/maintain it, is anyone with the right skills up for forking it or taking over? I wish I knew enough to be useful!
The script itself seems fine, the actual package from plex seems to be what's broken... the script can install the package, it's just that then it does not run.
There isn't an official TrueNAS plugin update for 1.32.6.7371-b6a09ad81 yet, they may add patches on top of what plex added.
So do we just wait for the next update and see if installing that package returns our servers to working condition? I went ahead and installed the plugin as a backup in the meantime. Downgrading via snapshot rollback didn't work for me.
As @harvimt said I assume plex broke something because it errors with a SIGSEGV. The script itsself is fine, it's just scraping the API, download and installs it.
To somewhat fix your install you can download PlexMediaServer-1.32.5.7349.8f4248874-FreeBSD-amd64.tar.bz2 which is a bit older and use the -l parameter to install it.
I did end up successfully downgrading. I followed some tutorial for a jail install when I originally used this script. Somehow I missed that it is designed to work for the plugin. I'm not sure what I thought was different exactly, or what benefit I thought I was getting, but it does in fact work for both.
I did find it strange that a simple rollback to a previous snapshot did not yield a working downgrade though.
Looks like this is actually a Plex problem and not a PMS problem. Downgrade is necessary. You can do this from PMS:
fetch https://downloads.plex.tv/plex-media-server-new/1.32.5.7349-8f4248874/freebsd/PlexMediaServer-1.32.5.7349-8f4248874-FreeBSD-amd64.tar.bz2
./PMS_Updater -l PlexMediaServer-1.32.5.7349-8f4248874-FreeBSD-amd64.tar.bz2
We will just have to wait and see if they fix 1.32.6 for FreeBSD. Until then they should really remove the DL link..
For me, I have found that if you hit "Update" in the TrueNAS GUI under Jails for plex that it will roll it back to whatever is in their database. I don't recall the version at the moment.
Has this been fixed? I still get the issue when I try to update using the script, and have to roll back to a snapshot to get Plex working again.
It's not that script issue, it's a Plex issue, nothing we can 'fix'
I see. Is there a workaround?
I think it is enough to just update/upgrade from the Plugin menu if you have installed it via plug-in menu.
@ZeDima unfortunately I changed over to a manual install in a jail...
@ZeDima unfortunately I changed over to a manual install in a jail...
You can use the method I posted above to manually downgrade from inside the jail instead of rolling the whole jail back. But I guess for now we all just disable whatever automation we use to call PMS and wait for Plex devs to fix the issue.
Does anyone know if the Plex devs actually know about this? Cause I didn't see anything on the support site, but I could've missed it
Lol so they haven’t even acknowledged it. Priceless.
On Tue, Aug 29, 2023 at 2:48 PM Peter @.***> wrote:
Well there's https://forums.plex.tv/t/plexmediaserver-1-32-6-7371-broken-on-freebsd/849348/38
— Reply to this email directly, view it on GitHub https://github.com/mstinaff/PMS_Updater/issues/67#issuecomment-1697960367, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJ63V6KZY2LU7VS7O5YCVLXXY2QPANCNFSM6AAAAAA3G2Z3ZY . You are receiving this because you commented.Message ID: @.***>
Plex forums are a mess, they don't really moderate or acknowledge things unless it somehow gets the attention of a dev, who might pop in and ask for logs and then never be heard from again
Lovely. Maybe I ought to rethink my Plex Pass subscription, especially considering I don’t really use any of the features it provides….
On Tue, Aug 29, 2023 at 3:50 PM Shlomo Friedman @.***> wrote:
Plex forums are a mess, they don't really moderate or acknowledge things unless it somehow gets the attention of a dev, who might pop in and ask for logs and then never be heard from again
— Reply to this email directly, view it on GitHub https://github.com/mstinaff/PMS_Updater/issues/67#issuecomment-1698037571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJ63VZU5KGKSSQW3MUS5DTXXZBWTANCNFSM6AAAAAA3G2Z3ZY . You are receiving this because you commented.Message ID: @.***>
Seems to be fixed now
After installing latest update PLEX fails to start. Manually triggering the update the following issue is displayed.