Pkg Not Updating

Andre Clarke

Dabbler
Joined
Dec 4, 2015
Messages
48
Stopping radarr.
root@Radarr:~ # pkg update
Updating FreeBSD repository catalogue...
pkg: An error occured while fetching package
pkg: An error occured while fetching package
repository FreeBSD has no meta file, using default settings
pkg: An error occured while fetching package
pkg: An error occured while fetching package
Unable to update repository FreeBSD
Error updating repositories!

this is happening for all jails.... dns is set
 
Joined
Oct 22, 2019
Messages
3,641
What version of FreeBSD are these jails based on? Maybe you need to upgrade the jails?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
12.2 is EOL since January 2022. You need to run a supported release to install packages.
The current supported FreeBSD release for jails on TrueNAS CORE is 13.3. You need to run TN CORE 13.0 for that.
 

Andre Clarke

Dabbler
Joined
Dec 4, 2015
Messages
48
Thanks for replying…..Ok..I totally forgot how to upgrade the jails, is there a tread that can guide me how to
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Code:
iocage fetch -r 13.3-RELEASE
iocage upgrade -r 13.3-RELEASE <jailname>


For a bulk upgrade of all jails:
Code:
iocage list -h | awk '{ printf "iocage upgrade -r 13.3-RELEASE %s\n", $2 }' | sh
 
Last edited:
Joined
Oct 22, 2019
Messages
3,641
...or you can upgrade jails through the GUI.
That works for "patch level" updates, such as -p3, -p4, -p5, etc. I've never seen anywhere in the GUI that lets you fetch a new FreeBSD release (e.g, 13.1, 13.2, 13.3, 14.0, etc) and upgrade the jail's release, for already existing jails.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I've never seen anywhere in the GUI that lets you fetch a new FreeBSD release
I could have sworn it was in there, but I sure don't see it now.
 

Andre Clarke

Dabbler
Joined
Dec 4, 2015
Messages
48
Keep getting this error after i upgraded my radarr jail, it wont start........ any help

freenas kernel: pid 86315 (daemon), jid 8, uid 816: exited on signal 12
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Code:
iocage stop <jailname>
iocage rollback -n ioc_upgrade_2024-03-07 <jailname>
iocage start <jailname>


That rolls back your jail to the state before the upgrade. You can then repeat the upgrade procedure but with 13.2 instead of 13.3.
 

Andre Clarke

Dabbler
Joined
Dec 4, 2015
Messages
48
i get this when im trying to rollback
tank/iocage/jails/Radarr@ioc_upgrade_2024-03-07 does not exist
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Then list all your snapshots for the Radarr jail - there must be one created by iocage when you upgraded.
 

Andre Clarke

Dabbler
Joined
Dec 4, 2015
Messages
48
@Andre Clarke - don't upgrade all the way to 13.3 now. Go to 13.2 instead which will still be supported for a couple of weeks.

If you already upgraded and find that at least for some jails applications don't start, please see this post for an explanation: https://www.truenas.com/community/t...s-core-jails-to-freebsd-13-3-just-yet.117018/

I can assist rolling back to your previous 12.2 version and redoing the upgrade to 13.2 if you need help.

Kind regards,
Patrick
Saw this late
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776

Andre Clarke

Dabbler
Joined
Dec 4, 2015
Messages
48
thats weird it didnt create a snapshot of any of the jails i updated

thats ok, i appreciatethe help
last snap was 2022
 

Andre Clarke

Dabbler
Joined
Dec 4, 2015
Messages
48
can i just install 13.2 over it?, there snaps of the jails install, but in jails it shows 13.3
 

Attachments

  • Screenshot 2024-03-07 121857.png
    Screenshot 2024-03-07 121857.png
    67.1 KB · Views: 16
  • Screenshot 2024-03-07 122009.png
    Screenshot 2024-03-07 122009.png
    6.3 KB · Views: 15

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
If you are more interested in a quick fix than a long term solution and you can wait for the next TrueNAS release for that, you could try from the TrueNAS host:
Code:
cd /mnt/tank/iocage/jails/Radarr/root/usr/sbin
mv daemon daemon.bak
cp /usr/sbin/daemon .
iocage restart Radarr


HTH,
Patrick
 
Top