Installation fails on Oracle Solaris 11.2 (SPARC)

Hi, today i tried on installing Virtualmin on my Solaris 11.2 SPARC server, and it failed with a error for mysql, i should state that Solaris has been clean installed and updated before running the install script.

Here is the output of the installer after rerunning the installation script

root@virtualmin:~# sh install.sh Creating Virtualmin licence file Installing CSW package installer --2015-03-17 20:28:17-- http://mirror.opencsw.org/opencsw/pkgutil.pkg Resolving mirror.opencsw.org (mirror.opencsw.org)... 131.188.40.82, 2001:638:a000:4140::ffff:82 Connecting to mirror.opencsw.org (mirror.opencsw.org)|131.188.40.82|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 574464 (561K) [application/octet-stream] Saving to: ‘pkgutil.pkg’

100%[===========================================================================================================================================>] 574,464 305KB/s in 1.8s

2015-03-17 20:28:19 (305 KB/s) - ‘pkgutil.pkg’ saved [574464/574464]

application CSWpkgutil pkgutil - Installs Solaris packages easily Updating all installed CSW packages => Fetching new catalog and descriptions (http://mirror.opencsw.org/opencsw/testing/sparc/5.11) if available ... ==> 3639 packages loaded from /var/opt/csw/pkgutil/catalog.mirror.opencsw.org_opencsw_testing_sparc_5.11 You need to select a valid option! Disabling Sun-supplied servers that will be replaced svcadm: Pattern 'apache' doesn't match any instances svcadm: Pattern 'apache2' doesn't match any instances Removing any existing Webmin install svcadm: Pattern 'webmin' doesn't match any instances pkgrm: ERROR: no package associated with pkgrm: ERROR: no package associated with Creating users and groups UX: groupadd: ERROR: postdrop is already in use. Choose another. UX: groupadd: ERROR: postfix is already in use. Choose another. UX: useradd: ERROR: postfix is already in use. Choose another. Password information unchanged. UX: groupadd: ERROR: clamav is already in use. Choose another. UX: useradd: ERROR: clamav is already in use. Choose another. Password information unchanged. Installing required servers from CSW Solving needed dependencies ... Solving dependency order ... 27 CURRENT packages: CSWalternatives-1.2,REV=2013.10.15 CSWapache2-2.2.29,REV=2014.12.18 CSWapache2-utils-2.2.29,REV=2014.12.18 CSWapache2c-2.2.29,REV=2014.12.18 CSWbdb48-4.8.30,REV=2010.12.06_rev=p0 CSWcas-initsmf-1.49,REV=2013.03.13 CSWcas-postmsg-1.42,REV=2010.11.26 CSWcas-preserveconf-1.49,REV=2013.03.13 CSWcommon-1.5,REV=2010.12.11 CSWisaexec-0.2,REV=2009.03.26 CSWlibapr-dev-1.5.1,REV=2014.12.24 CSWlibapr1-0-1.5.1,REV=2014.12.24 CSWlibaprutil-dev-1.5.4,REV=2014.12.24 CSWlibaprutil1-0-1.5.4,REV=2014.12.24 CSWlibaprutil1-dbm-db-1.5.4,REV=2014.12.24 CSWlibaprutil1-ldap-1.5.4,REV=2014.12.24 CSWlibexpat1-2.1.0,REV=2013.01.01 CSWlibgdbm4-1.9,REV=2011.10.24 CSWlibiconv2-1.14,REV=2011.08.07 CSWliblber2-4-2-2.4.32,REV=2012.11.05 CSWlibldap2-4-2-2.4.32,REV=2012.11.05 CSWlibsasl2-2-2.1.25,REV=2012.05.06 CSWlibssl1-0-0-1.0.1l,REV=2015.02.08 CSWlibuuid1-1.0.2,REV=2014.08.12 CSWlibz1-1.2.8,REV=2013.09.23 CSWopenssl-utils-1.0.1l,REV=2015.02.08 CSWperl-5.10.1,REV=2012.07.24

Nothing to do. Solving needed dependencies ... Solving dependency order ... 26 CURRENT packages: CSWbdb48-4.8.30,REV=2010.12.06_rev=p0 CSWcas-cpsampleconf-1.42,REV=2010.11.26 CSWcas-initsmf-1.49,REV=2013.03.13 CSWcas-postmsg-1.42,REV=2010.11.26 CSWcas-usergroup-1.44,REV=2011.05.02 CSWcommon-1.5,REV=2010.12.11 CSWggettext-data-0.18.1.1,p,REV=2011.03.15 CSWiconv-1.14,REV=2011.08.08 CSWlibcharset1-1.14,REV=2011.08.07 CSWlibcom-err3-1.12.1,REV=2014.03.14 CSWlibgcc-s1-4.9.2,REV=2014.11.07 CSWlibiconv2-1.14,REV=2011.08.07 CSWlibintl8-0.18.1.1,p,REV=2011.03.15 CSWlibk5crypto3-1.12.1,REV=2014.03.14 CSWlibkrb5-3-1.12.1,REV=2014.03.14 CSWlibkrb5support0-1.12.1,REV=2014.03.14 CSWliblber2-4-2-2.4.32,REV=2012.11.05 CSWlibldap2-4-2-2.4.32,REV=2012.11.05 CSWlibmysqlclient18-5.6.23,REV=2015.02.04 CSWlibpcre1-8.36,REV=2014.09.26 CSWlibpq5-9.3.5,REV=2014.07.29 CSWlibsasl2-2-2.1.25,REV=2012.05.06 CSWlibssl1-0-0-1.0.1l,REV=2015.02.08 CSWlibverto0-1.12.1,REV=2014.03.14 CSWlibz1-1.2.8,REV=2013.09.23 CSWpostfix-2.9.4,REV=2012.09.19

Nothing to do. Solving needed dependencies ... Solving dependency order ... 3 CURRENT packages: CSWcas-migrateconf-1.47,REV=2012.02.14 CSWcommon-1.5,REV=2010.12.11 CSWprocmail-3.22,REV=2013.09.01

Nothing to do. Solving needed dependencies ... Package mysql51 not in catalog. Exiting. Installation of mysql51 from CSW failed

Status: 
Active

Comments

Joe's picture
Submitted by Joe on Tue, 03/17/2015 - 23:05 Pro Licensee

Looks like we need to update some package names in our dependency list. Let me set up a new Solaris VM here and get this updated a bit. Will post more tomorrow once I've had a chance to tinker with the installer.

Joe's picture
Submitted by Joe on Wed, 03/18/2015 - 18:04 Pro Licensee

This is taking a little longer than I'd planned, as Solaris 11.2 won't install under Cloudmin/KVM for some reason; it has a kernel panic. I'm going to try it under VirtualBox (assuming that Oracle's own VM thing should be able to run Oracle's OS!), but had to get VirtualBox setup, as I haven't used it in a while. Will update this issue shortly.

Joe's picture
Submitted by Joe on Wed, 03/18/2015 - 21:41 Pro Licensee

OK, got all the dependencies updated and installation goes pretty well. I'm actually able to login, and most things get configured correctly on my Solaris 11.2 install. There were a few errors, and it looks like Webalizer has moved around some, so I'm going to keep poking at this. But, these are probably all configuration changes that we can make after you've got it installed and working. MySQL seems to have a bogus configuration in the CSW package, so we might need to work with that some to get it spinning.

Anyway, you can grab the solaris-install.sh script again and give it another shot. Let me know what problems you run into, and I can either fix the script further or we can walk you through the steps to manually get over the hump.

Also, keep in mind that Oracle isn't paying much attention to Solaris these days, and the Open Source community that has sprung up around OpenSolaris has moved on to IllumOS-based distributions, so it's kind of a dead end platform to build on. If you're comfortable with it and/or have some local requirement to run Solaris, we'll stick with you through any problems that come up (and Jamie has a lot of experience with Solaris, and has always been pretty active in keeping Webmin/Virtualmin core supporting all the various components of Solaris, like ZFS). But, it's still a pretty weak platform for web hosting, compared to some of the modern Linux distributions, and will require more work to both get modern web apps running on it and keep all of the packages up to date and secure.

Many thanx, i'll give it a try, btw Solaris has apache, mysql and php on a single package available through the command "pkg install amp", and mysql 5.5 is installed on there, perhaps we can use native oracle solaris packages builds instead CSW, dont know im just figuring out

Hi, it already installed, but when im trying to config the wizard says the following erros:

MySQL has been enabled, but cannot be used by Virtualmin. Use the MySQL Database module to fix the problem.

Then on Mysql module config the following after pressing the start mysql button:

MySQL is not running on your system - database list could not be retrieved.

As a side comment, im mostly interested on servicing websites with php, ftp and mysql support, no BIND or mail support is needed, and i just guess if its not easier for the installer to use existing apache, mysql and php installations ? Thanks joe

Just a quick test -- is MySQL running in this case? That is, if you run "mysql -p" on the command line as root, are you able to enter your password and then interact with MySQL?

If so, then we may just need to tweak some Module Config settings to ensure that Webmin is using the right tools and paths to test if MySQL is running.

To do that, look in Webmin -> Servers -> MySQL -> Module Config -> System Settings.

In there, do the various paths for those commands appear to be correct?

Joe's picture
Submitted by Joe on Fri, 03/20/2015 - 14:54 Pro Licensee

This sounds like a solid choice, and thanks for the heads up about that! That package didn't exist when we made the original installer. You can easily change to those packages by altering each of the respective modules to look in the right locations for configuration files and pid files and startup commands.

Let me spend a little time experimenting with the amp package, and see if maybe we can alter the install script to use it instead. I always prefer OS-standard packages over third party stuff or stuff that we maintain in our own repositories.