Upgrading transmission plugin

mpfusion

Contributor
Joined
Jan 6, 2014
Messages
198
I have issues upgrading my transmission plugin. All non-plugin jails upgraded fine but transmission, the single plugin jail I have, just doens't. Currently it's running 12.1-RELEASE-p13. The other jails are on 12.2-RELEASE-p6. As far as I understand this can't be done through the GUI.

The command I used is iocage upgrade transmission -r 12.2-RELEASE. The output:

Code:
Snapshotting transmission... 
Snapshot already exists
Updating plugin INDEX... 
Running upgrade... 
[…]
[transmission] [4/14] Deinstalling bittorrent-libutp-0.20130514_1...
[transmission] [4/14] Deleting files for bittorrent-libutp-0.20130514_1: .......... done
[transmission] [5/14] Deinstalling ca_root_nss-3.63...
[transmission] [5/14] Deinstalling ca_root_nss-3.63...
pkg: Failed to execute lua script: [string "-- args: etc/ssl/cert.pem.sample..."]:12: attempt to call a nil value (field 'filecmp')
[transmission] [5/14] Deinstalling ca_root_nss-3.63...
pkg: lua script failed
pkg: lua script failed
[transmission] [5/14] Deleting files for ca_root_nss-3.63: ....... done
pkg: lua script failed
pkg: lua script failed
pkg: lua script failed
[…]
[transmission] [14/14] Deleting files for transmission-web-3.00_1: .......... done
pkg: lua script failed
Snapshotting transmission... 
Updating plugin INDEX... 
Updating plugin artifact... 
Cloning git repository

Branch 12.2-RELEASE does not exist at https://github.com/freenas/iocage-plugin-transmission.git!
Using "master" branch for plugin, this may not work with your RELEASE
Installing new pkgs... 
Repo: iocage-plugins already exists, skipping!
[…]
Branch 12.2-RELEASE does not exist at https://github.com/freenas/iocage-plugin-transmission.git!
Using "master" branch for plugin, this may not work with your RELEASE

transmission successfully upgraded!


The last line doesn't seem to be quite true as “Jails → Release” still lists 12.1-RELEASE-p13 for this jail.

Why is this failing and how to successfully upgrade the plugin?

TrueNAS-12.0-U2
Intel(R) Xeon(R) CPU L3426
12GiB RAM
 

nopro

Dabbler
Joined
Apr 7, 2019
Messages
11
Is the same for me,
Code:
root@freenas[~]# iocage list
+-----+--------------+-------+--------------+-----------------+
| JID |     NAME     | STATE |   RELEASE    |       IP4       |
+=====+==============+=======+==============+=================+
| 8   | jackett      | up    | 12.2-RELEASE | 192.168.0.63    |
+-----+--------------+-------+--------------+-----------------+
| 10  | radarr       | up    | 12.2-RELEASE | 192.168.0.62/24 |
+-----+--------------+-------+--------------+-----------------+
| 9   | sonarr       | up    | 12.2-RELEASE | 192.168.0.61/24 |
+-----+--------------+-------+--------------+-----------------+
| 7   | transmission | up    | 12.1-RELEASE | 192.168.0.60/24 |
+-----+--------------+-------+--------------+-----------------+
| 5   | unifi        | up    | 12.2-RELEASE | 192.168.0.5     |
+-----+--------------+-------+--------------+-----------------+

maybe it's a maintaining thing https://github.com/freenas/iocage-plugin-transmission/issues/6
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
transmission plugin
There it is right there...

Plugins control the release which they will use, not you.

You can upgrade only if the plugin supports the version you are upgrading to.
 

ddaenen1

Patron
Joined
Nov 25, 2019
Messages
318
I have the same with Plex. I guess at one point int time it will be fixed.
 

mpfusion

Contributor
Joined
Jan 6, 2014
Messages
198
Plugins control the release which they will use, not you.

You can upgrade only if the plugin supports the version you are upgrading to.
As 12.1 is EOL'd and therefore unsupported and all other jails sucessfully upgraded to 12.2 I assumed there's something wrong with this jail as I don't think it'll be designed to run on an unsupported EOL'd release. But apparently that's what's happened here.

Thanks for the resposes. I guess the only thing to do is wait until an update shows up.
 

D-7

Dabbler
Joined
Apr 8, 2017
Messages
14
Hi,

I have the same problem. iocage upgrade transmission -r 12.2-RELEASE seems to have worked but iocage and the TrueNAS UI show the old version. I see that the json files for the jail are showing the old release version, too.

Code:
sudo iocage list                   
+-----+--------------+-------+--------------+------+
| JID |     NAME     | STATE |   RELEASE    | IP4  |
+=====+==============+=======+==============+======+
| 9   | transmission | up    | 12.1-RELEASE | DHCP |
+-----+--------------+-------+--------------+------+


Code:
cat /mnt/tank/iocage/jails/transmission/config.json     
{
    "basejail": 1,
    "boot": 1,
    "bpf": 1,
    "dhcp": 1,
    "host_hostname": "transmission",
    "host_hostuuid": "transmission",
    "jail_zfs_dataset": "iocage/jails/transmission/data",
    "last_started": "2021-05-02 09:35:12",
    "nat_forwards": "tcp(9091:9091)",
    "plugin_name": "transmission",
    "plugin_repository": "https://github.com/ix-plugin-hub/iocage-plugin-index.git",
    "release": "12.1-RELEASE-p13",
    "type": "pluginv2",
    "vnet": 1,
    "vnet0_mac": "xxxxx xxxx"
}                                          

Code:
cat /mnt/tank/iocage/jails/transmission/transmission.json
{
    "name": "Transmission",
    "plugin_schema": "2",
    "release": "12.1-RELEASE",
    "artifact": "https://github.com/freenas/iocage-plugin-transmission.git",
    "official": false,
    "properties": {
        "nat": 1,
        "nat_forwards": "tcp(9091:9091)"
    },
    "pkgs": [
        "transmission-daemon",
        "transmission-web"
    ],
    "packagesite": "http://pkg.FreeBSD.org/${ABI}/latest",
    "fingerprints": {
        "iocage-plugins": [
            {
                "function": "sha256",
                "fingerprint": "xxxxxx"
            }
        ]
    },
    "revision": "0"
}


uname inside the jail shows the new release:
Code:
root@transmission:~ # uname -a
FreeBSD transmission 12.2-RELEASE-p6 FreeBSD 12.2-RELEASE-p6 f2858df162b(HEAD) TRUENAS  amd64


This file has "release": "12.2-RELEASE", listed.

Shouldn't iocage pull this? Is it safe to just edit the config files? Will this break anything?

Thanks!
 

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
@D-7 Maybe you should file a bug report. Looks like the upgrade path is supposed to be there, but in reality it's still blocked.
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
that's why I switched to manual installs instead of using plugins .. just easier to maintain/keep up to date with both the jail itself and whatever I install in that jail
 
Top