Now on 11.2 - whats the plan to migrate Jails

Status
Not open for further replies.

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
Hi,

is there any real plan to migrate (warden - whatever that means..) Jails?
I have a fu***** up jail, the only one really important with nextcloud
Code:
root@nextcloud:~ # php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20151012/gd.so' - /lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found in Unknown on line 0
PHP 7.0.32 (cli) (built: Sep 29 2018 01:24:41) ( NTS )


How to migrate? (not reinstall from scratch) ?

Otherwise I'll go back to Debian, which has a LTS for more than 3 months and doesn't occisionally crash everything on an update..

Michael
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
The only thing I found is:
create a new Jail with iocage on the cmdline, setup everything again from scratch. Is that really "the solution"?

Then I'd want to downgrade to the working solution..

Michael
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
create a new Jail with iocage on the cmdline, setup everything again from scratch. Is that really "the solution"?
You didn't find the threads about a migration script?
 

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
Your kidding, right? Would I ask otherwise?
As you might know the answer with a script: Link? Is it that hard to tell?

All I did find was "your fu*** up, just reinstall with a new FreeBSD" - no option, then I'll reinstall with an OS which gets LTS..

Michael
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

Makki

Explorer
Joined
Nov 8, 2016
Messages
57

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
Well maybe your blessed with jesus, I'm not, so I didn't know that I have to search for if a "migrate warden Jail" script (PHP gets broken in this case) after a simple update. I'll try..

Still, it ridicolous that FreeBSD's pkg installs itself to death.

Michael
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Still, it ridicolous that FreeBSD's pkg installs itself to death.

It really doesn't.

The script is very simple to use and once you run it you'll see. But the reason I told you to search the forum is there are some caveats to using it and it's already been discussed how to work around them. No point in repeating it if a simple search will provide the answer you seek.
 

Makki

Explorer
Joined
Nov 8, 2016
Messages
57

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
Well, thanks for the hint, I'm still picking together the pieces (.sh, .py, ...)
And I somehow know Bash and Python (which is far away from the "usual User")

What I really don't understand: it broke on the upgrade from FN 11.1-U5 to U6: this should never happen!
Afterwards I have to fiddle around for days, just to make it work again...

Michael
 

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
So, thanks for your help, I got the jail migrated (I think) somehow..
Rather manually, the scripts didn't work but after some hours it starts again under "iocage";
The bad news: PHP is still fu*** up:
Code:
Last login: Mon Dec 10 21:46:08 2018 from mma-adm013-virtualbox.lan
FreeBSD 11.2-STABLE (FreeNAS.amd64) #0 r325575+fc3d65faae6(freenas/11.2-stable): Wed Dec  5 15:08:42 EST 2018

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

Edit /etc/motd to change this login announcement.
root@nextcloud:~ # php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20151012/gd.so' - /lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found in Unknown on line 0
PHP 7.0.32 (cli) (built: Sep 29 2018 01:24:41) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.32, Copyright (c) 1999-2017, by Zend Technologies
root@nextcloud:~ # uname -r
11.2-STABLE
root@nextcloud:~ # pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
root@nextcloud:~ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (3 candidates): 100%
Processing candidates (3 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
root@nextcloud:~ #


What next? Complete reinstall or is there a way out?

Michael
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
Thanks, i'll try, next I'll ditch the obviously broken packaging-system of FreeBSD or FreeBSD at all (why does it then allow me to use php70?? and doesnt offer an upgrade..)

Michael
 

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
Next fail
Code:
root@nextcloud:~ # pkg search php | grep gd
php56-gd-5.6.38                The gd shared extension for php
php70-gd-7.0.32                The gd shared extension for php
php71-gd-7.1.23                The gd shared extension for php
php72-gd-7.2.11                The gd shared extension for php
php73-gd-7.3.0.r4              The gd shared extension for php
root@nextcloud:~ # php -v
PHP 7.2.11 (cli) (built: Oct 13 2018 01:20:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
root@nextcloud:~ # pkg install php72-gd-7.2.11
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    php72-gd: 7.2.11

Number of packages to be installed: 1

29 KiB to be downloaded.

Proceed with this action? [y/N]: y
[nextcloud] [1/1] Fetching php72-gd-7.2.11.txz: 100%   29 KiB  30.2kB/s    00:01  
Checking integrity... done (0 conflicting)
[nextcloud] [1/1] Installing php72-gd-7.2.11...
[nextcloud] [1/1] Extracting php72-gd-7.2.11: 100%
root@nextcloud:~ # php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/local/lib/php/20170718/gd.so (/lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found), /usr/local/lib/php/20170718/gd.so.so (Cannot open "/usr/local/lib/php/20170718/gd.so.so")) in Unknown on line 0
PHP 7.2.11 (cli) (built: Oct 13 2018 01:20:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies


Any more Ideas? Or better restore the backup on a stable OS :(
Edit: or in other words: how do I tell the (BSD) Jail: "just update anything to current release?"

Thanks again for your help,

Michael
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
You will have to upgrade all the php packages to 7.2, not just php-gd.
the obviously broken packaging-system of FreeBSD
It works exactly as intended and is quite stable.
 

Makki

Explorer
Joined
Nov 8, 2016
Messages
57
@Jailer: didnt help, same error from PHP
(and I tried many more things..)

anyway, after a clone and rename of the latest snapshot - and a reboot (which never came back up again at all)

it's just broken in FreeNAS/BSD, I don't want to "upgrade" anymore, just a working system,
-> whats the easiest way to get back to 11.1 with all backups & snapshots on an external disk?

This is really scary, 11.2 seems like a failed Beta-Test, FN worked seamless for many, many years :rolleyes::eek:

Michael
 
Status
Not open for further replies.
Top