Can't update plex plugin after wget upgrade

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
Hi I am running the plex plugin on my TrueNAS server. I originally installed plex via the plugin section of FreeNAS (now TrueNAS) and I have been updating it using the PMS_Updater script from github


I recently ran a pkg update & pkg upgrade -y on the jail where plex is installed in and I noticed it updated wget. Now when I try to update plex via the PMS_Updater script. I get this error:

/lib/libc.so.7: version FBSD_1.6 required by /usr/local/bin/wget not found

how can I fix this?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
What release is your jail? maybe you need to upgrade it to 12.2-RELEASE.

My version is still working after pkg upgrade with no additional intervention (and is already 12.2-RELEASE).
 
Last edited:

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
I am running TrueNAS-12.0-U1.1 currently? Is there already a 12.2-RELEASE? My jail is version 11.2-RELEASE-p6. How do I upgrade my jail?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
My jail is version 11.2-RELEASE-p6. How do I upgrade my jail?
This is what I'm talking about.

You need to run iocage upgrade -r 12.2-RELEASE <jailname>

After that (really long) process completes, you then need to also do a pkg update/upgrade in the jail to get the right versions of things.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
I am trying upgrade my plex jail but iut fails with a python error:

Code:
Last login: Mon Jan 25 09:57:19 on pts/6
FreeBSD 12.2-RELEASE-p2 663e6b09467(HEAD) TRUENAS

        TrueNAS (c) 2009-2020, iXsystems, Inc.
        All rights reserved.
        TrueNAS code is released under the modified BSD license with some
        files copyrighted by (c) iXsystems, Inc.

        For more information, documentation, help or support, go here:
        http://truenas.com
Welcome to FreeNAS

Warning: settings changed through the CLI are not written to
the configuration database and will be reset on reboot.

root@freenas:~ # iocage upgrade -r 12.2-RELEASE plex
Snapshotting plex...
Snapshot already exists
Updating plugin INDEX...
Traceback (most recent call last):
  File "/usr/local/bin/iocage", line 10, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/iocage_cli/upgrade.py", line 40,in cli
    ioc.IOCage(jail=jail, skip_jails=skip_jails).upgrade(release)
  File "/usr/local/lib/python3.8/site-packages/iocage_lib/iocage.py", line 2101, in upgrade
    new_release = ioc_plugin.IOCPlugin(
  File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_plugin.py", line 1309, in upgrade
    shutil.copy(
  File "/usr/local/lib/python3.8/shutil.py", line 415, in copy copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/local/lib/python3.8/shutil.py", line 261, in copyfile with open(erc, 'rb') as fsrc open(dst, 'wb') as fdst:
    FileNotFoundError: [Errno 2] No such file or directory: '/mnt/freenaspool/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git/plex.json'
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, so you have the plugin... I think that the plugin might still be based on 12.1-RELEASE.

As a general rule, I have not seen upgrades of the plugins do too well.

Consider reinstalling the plugin if it doesn't go smoothly. Make sure you get your data out of the jail (if you're not using the external mounted DB approach already, switch to it now).
 

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
Yes, the plugin is installed. The error seems to be that it can't find the plex.json file. Looking at the github page it seems like plex it called plexmediaserver now as a plugin. How to I fix that?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
 

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
Thanks for the link. Seems to describe my issue with my plex plugin. I tried to rename the plex.json file to plexmediaserver.json located in /mnt/freenaspool/iocage/jails/plex/ but after renaming and running iocage upgrade I get this error now

jail 'plexmediaserver' not found!

my jail is still called plex.
 
Top