SOLVED FreeNAS 11.3-BETA 1 - How to update jails from 11.2 to 11.3-RELEASE

Mickey B

Dabbler
Joined
Oct 16, 2016
Messages
19
I manually installed PlexPass on a fresh 11.3 iocage jail using old settings. Works like a charm.

I just created a 11.3 jail and i have installed Plexpass from the pkg, but i cant access ip:32400. Do you know of a good walkthrough? The few i have followed are great up until it asks me to tunnel in using putty - here it breaks and i cant access the login page for plexpass.
 

Mickey B

Dabbler
Joined
Oct 16, 2016
Messages
19
I just created a 11.3 jail and i have installed Plexpass from the pkg, but i can't access IP:32400. Do you know of a good walkthrough? The few i have followed are great up until it asks me to tunnel in using putty - here it breaks and i can't access the login page for plexpass.

Oops. I installed the pkg plexpass, but i neglected to enable or start the service. I can now access the server. I feel so stupid
 

1ccs-todd

Dabbler
Joined
Aug 7, 2013
Messages
28
'iocage upgrade' appears fixed in 11.3-RC1. I just ran upgrade on my emby plugin jail. I received no prompts to fix/edit files and emby is running on 11.3-RELEASE-p5. Yay!
 

ManfredU

Dabbler
Joined
Apr 18, 2017
Messages
26
That's a lot of unnecessary work. I just want to point that out for anyone who happens across this thread so they don't think that this is the way you have to do this. An in place upgrade of your jails from 11.2 to 11.3 is simple and works fine.
I had the same issue with "file could not be merged automatically" and being unable to get to the jail shell / console ("invalid login") when upgrading a jail from 11.2 U7 to 11.3 RC1 . So how can I avoid this? For now I have rolled back the snapshots...
 
Joined
Jan 7, 2015
Messages
1,150
SOLVED !
  1. Update jails you wanna upgrade to latest patchlevel - iocage update [B]jailname[/B]
  2. Make sure you have a snapshot of currently functional jail - GUI > Storage > Pools > dataset > iocage> jails > click menu on your jail > Create snapshot
  3. SSH to you freenas box and call this command: iocage upgrade -r 11.3-RELEASE jailname
  4. Now spoiler part for every question

Here answer YES
Code:
The following components of FreeBSD seem to be installed:
world/base world/doc world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)? y


Here copy everything from /etc/freebsd-update.conf to vi editor and save/close
Code:
The following file could not be merged automatically: /etc/freebsd-update.conf
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/group
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/hosts
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/master.passwd
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/passwd
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/pkg/FreeBSD.conf
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Now 6th times answer YES when bsd asks if this does look reasonable it will confirm changes.

And finally iocage console jail1 and test pkg update && pkg upgrade

Voila....

Of course after every upgrade check if everything works for you, if not then roll back with snapshot we created earlier.
Yes this does work. Thanks for the middle button paste into vi hint! I hate vi. Great work!
 

ChaosBlades

Contributor
Joined
Jul 4, 2015
Messages
137
"iocage upgrade -r 11.3-RELEASE jailname" was all I needed to update all my jails to 11.3. I got no additional prompts or errors. Run command, wait, and done.

Plugins on the other hand I get...

Code:
Snapshotting transmission...
Updating plugin INDEX...
Running upgrade...

Testing SRV response to iocage-plugins
Testing DNSSEC response to iocage-plugins

Installing plugin packages:
  - net-p2p/transmission-daemon...
  - www/transmission-web...
Cloning git repository

Branch 11.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!


... and it is still on 11.2-RELEASE-p12
 

VolumeTank

Dabbler
Joined
Dec 23, 2018
Messages
38
SOLVED !
  1. Update jails you wanna upgrade to latest patchlevel - iocage update [B]jailname[/B]
  2. Make sure you have a snapshot of currently functional jail - GUI > Storage > Pools > dataset > iocage> jails > click menu on your jail > Create snapshot
  3. SSH to you freenas box and call this command: iocage upgrade -r 11.3-RELEASE jailname
  4. Now spoiler part for every question

Here answer YES
Code:
The following components of FreeBSD seem to be installed:
world/base world/doc world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)? y


Here copy everything from /etc/freebsd-update.conf to vi editor and save/close
Code:
The following file could not be merged automatically: /etc/freebsd-update.conf
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/group
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/hosts
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/master.passwd
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/passwd
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Same as above
Code:
The following file could not be merged automatically: /etc/pkg/FreeBSD.conf
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...


Now 6th times answer YES when bsd asks if this does look reasonable it will confirm changes.

And finally iocage console jail1 and test pkg update && pkg upgrade

Voila....

Of course after every upgrade check if everything works for you, if not then roll back with snapshot we created earlier.


Oh, Thanks!
This save my life, I was ready to destroy the nextcloud jail and manually install all over again. I spent a week figuring this out, and another 2 days how to deal with:
The following file could not be merged automatically: /etc/master.passwd
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...

I ended up opening the jail on Transmit FTP connection searching for each individual file, copy and paste on vi, not to mention took me almost an hour how to properly save & exit on vi: shift-z-z

Well everything when well just had a few messages:

#1
Code:
To install the downloaded upgrades, run "/tmp/tmpyovseay_ install".
src component not installed, skipped
Installing updates...
Kernel updates have been installed.  Please reboot and run
"/tmp/tmpyovseay_ install" again to finish installing updates.
src component not installed, skipped
Installing updates...pwd_mkdb: 36Z bcr $ gid is incorrect
pwd_mkdb: at line #1
pwd_mkdb: /mnt/jailhouse/iocage/jails/nextcloud/root/etc/master.passwd: Inappropriate file type or format
done.

nextcloud successfully upgraded from 11.2-RELEASE-p15 to 11.3-RELEASE-p5!


still working after src component not installed, skipped which I really don't know what it means.

#2
Code:
Message from postfix-sasl-3.4.8,1:

--
If you are upgrading from prior postfix version, please see the README
files for recommended changes to your configuration and additional
http://www.postfix.org/COMPATIBILITY_README.html
=====
Message from mariadb103-server-10.3.21:

--
Remember to run mysql_upgrade (with the optional --datadir=<dbdir> flag)
the first time you start the MySQL server after an upgrade from an
earlier version.

Message from postfix-sasl-3.4.8,1:

--
If you are upgrading from prior postfix version, please see the README
files for recommended changes to your configuration and additiona
http://www.postfix.org/COMPATIBILITY_README.html
=====
Message from mariadb103-server-10.3.21:

--
Remember to run mysql_upgrade (with the optional --datadir=<dbdir> flag)
the first time you start the MySQL server after an upgrade from an
earlier version.


This, I do know is about updating mariaDB and postfix, which I'll do another day everything is working fine and all my configuration are intact. I'm totally new at this, but was able to mange I'm proud of my self Lol.


UNRELATED
I Notice that on nexcloud GUI said 17.0.2, but on the security scan said 17.1.1
 

Attachments

  • Screen Shot 2020-01-05 at 2.50.54 PM.png
    Screen Shot 2020-01-05 at 2.50.54 PM.png
    867.4 KB · Views: 378
  • Screen Shot 2020-01-05 at 2.57.04 PM.png
    Screen Shot 2020-01-05 at 2.57.04 PM.png
    773.5 KB · Views: 383
  • Screen Shot 2020-01-05 at 3.05.09 PM.png
    Screen Shot 2020-01-05 at 3.05.09 PM.png
    574 KB · Views: 381
  • Screen Shot 2020-01-05 at 3.03.35 PM.png
    Screen Shot 2020-01-05 at 3.03.35 PM.png
    225.7 KB · Views: 367
Last edited:

ManfredU

Dabbler
Joined
Apr 18, 2017
Messages
26
"iocage upgrade -r 11.3-RELEASE jailname" was all I needed to update all my jails to 11.3. I got no additional prompts or errors. Run command, wait, and done.

Plugins on the other hand I get...

[...]

... and it is still on 11.2-RELEASE-p12

Yes, updating a jail to 11.3 does work on FreeNAS-11.2-U7, because FreeBSD 11.2 stills contains rcs in the base system. The issue occurs only on FreeNAS 11.3-RC1 because FreeBSD 11.3 does not contain rcs in the base system any longer...
 

Oriann

Explorer
Joined
Dec 15, 2018
Messages
84
Oh, Thanks!
This save my life, I was ready to destroy the nextcloud jail and manually install all over again. I spent a week figuring this out, and another 2 days how to deal with:


I ended up opening the jail on Transmit FTP connection searching for each individual file, copy and paste on vi, not to mention took me almost an hour how to properly save & exit on vi: shift-z-z

Well everything when well just had a few messages:

#1
Code:
To install the downloaded upgrades, run "/tmp/tmpyovseay_ install".
src component not installed, skipped
Installing updates...
Kernel updates have been installed.  Please reboot and run
"/tmp/tmpyovseay_ install" again to finish installing updates.
src component not installed, skipped
Installing updates...pwd_mkdb: 36Z bcr $ gid is incorrect
pwd_mkdb: at line #1
pwd_mkdb: /mnt/jailhouse/iocage/jails/nextcloud/root/etc/master.passwd: Inappropriate file type or format
done.

nextcloud successfully upgraded from 11.2-RELEASE-p15 to 11.3-RELEASE-p5!


still working after src component not installed, skipped which I really don't know what it means.

#2
Code:
Message from postfix-sasl-3.4.8,1:

--
If you are upgrading from prior postfix version, please see the README
files for recommended changes to your configuration and additional
http://www.postfix.org/COMPATIBILITY_README.html
=====
Message from mariadb103-server-10.3.21:

--
Remember to run mysql_upgrade (with the optional --datadir=<dbdir> flag)
the first time you start the MySQL server after an upgrade from an
earlier version.

Message from postfix-sasl-3.4.8,1:

--
If you are upgrading from prior postfix version, please see the README
files for recommended changes to your configuration and additiona
http://www.postfix.org/COMPATIBILITY_README.html
=====
Message from mariadb103-server-10.3.21:

--
Remember to run mysql_upgrade (with the optional --datadir=<dbdir> flag)
the first time you start the MySQL server after an upgrade from an
earlier version.


This, I do know is about updating mariaDB and postfix, which I'll do another day everything is working fine and all my configuration are intact. I'm totally new at this, but was able to mange I'm proud of my self Lol.


UNRELATED
I Notice that on nexcloud GUI said 17.0.2, but on the security scan said 17.1.1
For mysql upgrade notice just SSH to your jail as root and run mysql_upgrade, if it throws an error just use this commands:

service mysql stop
mysqld_safe --skip-grant-tables
service mysql start

and then run again mysql_upgrade and you should be done
 

VolumeTank

Dabbler
Joined
Dec 23, 2018
Messages
38
For mysql upgrade notice just SSH to your jail as root and run mysql_upgrade, if it throws an error just use this commands:

service mysql stop
mysqld_safe --skip-grant-tables
service mysql start

and then run again mysql_upgrade and you should be done

Thanks, I'm using mariadb would mysql_upgrade work?
 

KenNashua

Explorer
Joined
Feb 24, 2012
Messages
62

Oriann

Explorer
Joined
Dec 15, 2018
Messages
84
If multiple jails are being upgraded, is there any way to change the download directory to a shared directory so that I'm not downloading the same packages a dozen times?
Maybe its possible but It would be more work than do it the "old way". But if you can do it feel free to share it here afterwards.
 
Joined
Jul 17, 2019
Messages
1
Thanks for the guide, have every jail upgraded apart from my PMS which is throwing me off a little.

I have absolutely no idea why i'm getting this error. I installed the Plugin for Plex but manually update it with PMS_Updater, i have a cron job which does it automatically for me. If anyone can disect what it is that's the matter and give me a heads up to fix i'd really appreciate it.

pms.png
 

Oriann

Explorer
Joined
Dec 15, 2018
Messages
84
Thanks for the guide, have every jail upgraded apart from my PMS which is throwing me off a little.

I have absolutely no idea why i'm getting this error. I installed the Plugin for Plex but manually update it with PMS_Updater, i have a cron job which does it automatically for me. If anyone can disect what it is that's the matter and give me a heads up to fix i'd really appreciate it.

View attachment 35161
It does not work for plugins, you must install plex from scratch made jail
 
Top