New Jail that requires ZLIB_1.2.9

Status
Not open for further replies.

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
Hi All,

I want to start a FreeBSD 11.x x64 jail to run some apps in. Webmin and a plugin called webminstats( http://webminstats.sourceforge.net/ ) requires a newer version RRDTool with a dependency on a newer ZLIB_1.2.9. Is there a way to make this plugin work in my jail?

Thanks,
Joe

Software error:
Can't load '/usr/local/lib/perl5/site_perl/mach/5.24/auto/RRDs/RRDs.so' for module RRDs: /lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found at /usr/local/lib/perl5/5.24/mach/DynaLoader.pm line 193.
at sysstats-rrd-lib.pl line 33.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

Software error:
[Wed Dec 13 08:29:47 2017] index.cgi: Can't load '/usr/local/lib/perl5/site_perl/mach/5.24/auto/RRDs/RRDs.so' for module RRDs: /lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found at /usr/local/lib/perl5/5.24/mach/DynaLoader.pm line 193.
[Wed Dec 13 08:29:47 2017] index.cgi: at sysstats-rrd-lib.pl line 33.
Compilation failed in require at sysstats-rrd-lib.pl line 33.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

Software error:
[Wed Dec 13 08:29:47 2017] index.cgi: [Wed Dec 13 08:29:47 2017] index.cgi: Can't load '/usr/local/lib/perl5/site_perl/mach/5.24/auto/RRDs/RRDs.so' for module RRDs: /lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found at /usr/local/lib/perl5/5.24/mach/DynaLoader.pm line 193.
[Wed Dec 13 08:29:47 2017] index.cgi: [Wed Dec 13 08:29:47 2017] index.cgi: at sysstats-rrd-lib.pl line 33.
[Wed Dec 13 08:29:47 2017] index.cgi: Compilation failed in require at sysstats-rrd-lib.pl line 33.
Compilation failed in require at ./sysstats-lib.pl line 78.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

Software error:
[Wed Dec 13 08:29:47 2017] index.cgi: [Wed Dec 13 08:29:47 2017] index.cgi: [Wed Dec 13 08:29:47 2017] index.cgi: Can't load '/usr/local/lib/perl5/site_perl/mach/5.24/auto/RRDs/RRDs.so' for module RRDs: /lib/libz.so.6: version ZLIB_1.2.9 required by /usr/local/lib/libpng16.so.16 not found at /usr/local/lib/perl5/5.24/mach/DynaLoader.pm line 193.
[Wed Dec 13 08:29:47 2017] index.cgi: [Wed Dec 13 08:29:47 2017] index.cgi: [Wed Dec 13 08:29:47 2017] index.cgi: at sysstats-rrd-lib.pl line 33.
[Wed Dec 13 08:29:47 2017] index.cgi: [Wed Dec 13 08:29:47 2017] index.cgi: Compilation failed in require at sysstats-rrd-lib.pl line 33.
[Wed Dec 13 08:29:47 2017] index.cgi: Compilation failed in require at ./sysstats-lib.pl line 78.
Compilation failed in require at /usr/local/lib/webmin-1.870/sysstats/index.cgi line 27.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Why don't you just install it?
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
zlib is part of the base OS so there isn't a port that you can install to get a newer version than what is provided by the jail. So, what install image was used when you created the jail?

This seems to indicate 1.2.11 should be available in FreeBSD 11.1.
https://www.freebsd.org/cgi/man.cgi?query=zlib&sektion=3

This shows 1.2.8 for FreeBSD 11.0 (the latest jail image currently available).
https://www.freebsd.org/cgi/man.cgi....0-RELEASE+and+Ports&arch=default&format=html

You may be out of luck. Unless you use FreeNAS 11.1 to create an iocage jail and then upgrade that to FreeBSD 11.1.
 

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
same error on 11.1 and I see the jail template has not been updated to 11.1 it is still listed as 11.0, I wonder if that is the issue?

pkg install p5-IO-Zlib-1.10_2
 

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
well I just downloaded the FreeBSD 11.1 x64 DVD and I can install that OS in a VM, webmin and system stats. All work fine.

The thing I noticed was that with the vm I could "pkg install p5-CGI-4.36" where in a jail it was "pkg install p5-CGI-4.38"

Sounds like I need to make a bug report?

vm FreeBSD 11.1 x64:
install 64 bit vmware workstation 8

service sshd restart
pkg install mc-4.8.19_3
pkg install rrdtool-1.7.0_1
pkg install p5-CGI-4.36
pkg install webmin
/usr/local/lib/webmin/setup.sh
echo webmin_enable='"YES"'>> /etc/rc.conf to your /etc/rc.conf
service webmin start
login to webmin
get webmin module CPAN(grant for All users(not just root))
use Others/Perl Modules to install these
Test::Warn
Test::Deep
CGI::Carp(keep telling the damn thing to resolve dependencies)
upload webmin module sysstats-2.14.tgz
logout and log back in to see SYSTEM/historic system statistics
Working on a FreeBSD VM but not on a FreeNAS jail
upgrade webmin 1.870
upgrade webmin module sysstats-2.17.tgz
 

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
maybe I am using the wrong kind of jail, I see iocage on my on zvol but when I do a "iocage list" or "iocage df" I do not see anything running. "jls" shows my jail and I connect to that console via "jexec 5 /bin/tcsh"

It is not clear what kind of jail I am running but I think it is NOT an iocage jail
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
11.1 has two web UIs, old and new. The old interface shows, manages, and can create old warden jails, but knows nothing about iocage. The new interface shows, manages, and can create iocage jails, but knows nothing about warden. It sounds like you've created a warden jail in the old UI.
 

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
Hi All,

so I can create a jail with iocage and a VM with bhyve and get systemstats to work. With Warden jails there is some kind of conflict where the stars do not line up.

FreeNAS 11.1:
freenas4# pkg which /usr/local/lib/libpng16.so
/usr/local/lib/libpng16.so was installed by package png-1.6.31

Warden Jail x64:
root@test3:/ # pkg which /usr/local/lib/libpng16.so
/usr/local/lib/libpng16.so was installed by package png-1.6.34

I guess I will install again into an iocage jail to see what is different. I can't believe that the two jail environments are different enough that some software will run and work in one but not in the other.

Thanks,
Joe
 

ElchQ

Dabbler
Joined
Oct 18, 2015
Messages
13
Hi Joe,

running into the same issue, but prior testing the new FreeNas UI, have you beed successful with your test?
 

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
if you go back to FreeNAS 11.0 the warden jails work fine. When you upgrade to FreeNAS 11.1 the warden jails have issues where the IOcage ones do not. The new issue I have is with the freebsd samba package has missing files, the default smb.conf and it looks like the same game in a jail with FreeBSD application having dependency hell. I think I am going to use FreeNAS for the storage and run VM's of CentOS Linux for the Samba AD servers. Too bad I could not do this in the jails, but I must have the latest SAMBA and it MUST work.

When FreeNAS 11.2 is out and IOCage is feature complete in the GUI I hope to try this test again.
 

acp

Explorer
Joined
Mar 25, 2013
Messages
71
if you go back to FreeNAS 11.0 the warden jails work fine. When you upgrade to FreeNAS 11.1 the warden jails have issues where the IOcage ones do not. The new issue I have is with the freebsd samba package has missing files, the default smb.conf and it looks like the same game in a jail with FreeBSD application having dependency hell. I think I am going to use FreeNAS for the storage and run VM's of CentOS Linux for the Samba AD servers. Too bad I could not do this in the jails, but I must have the latest SAMBA and it MUST work.

When FreeNAS 11.2 is out and IOCage is feature complete in the GUI I hope to try this test again.
Freenas 11.1 appears to be using the package used to create freenas 11.0 jail. doing pkg upgrade could be breaking dependency or have dependency that freebsd11.0 doesn't meet. I have run into this already trying to build mythtv in a jail. Using iocage jail solves the issue.

Sent from my Nexus 5X using Tapatalk
 
Status
Not open for further replies.
Top