Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] newbie installer question about database to use

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] newbie installer question about database to use


Chronological Thread 
  • From: Les LaCroix <>
  • To: "Hyzer, Chris" <>
  • Cc: " Mailing List" <>
  • Subject: Re: [grouper-users] newbie installer question about database to use
  • Date: Tue, 14 Apr 2020 08:02:09 -0500

Thanks, Chris.  Here's how I went afoul, in case it helps making the instructions even more explicit "for dummies".

Because we haven't been doing anything in AWS, I didn't follow those instructions for setting up the database VM.  Instead, I searched around for command-line examples of setting up the database.  The examples I found specified 'grouper'@'localhost' for permissions and such, and the installer example mysql URL is "jdbc:mysql://localhost:3306/grouper".  So I installed the database on the VM I launched the docker container from, and used localhost in the URL in the instructions.

I resolved it by putting the database on a separate VM.  Yes, the "Grouper Packaging and Versioning for v2.5+" page very explicitly shows that the database is always external, even for maturity level 0.  Yes, the two sets of installation instructions use an external database host.  But the instructions also start out with "Get a server and a database", which almost sounds like you could install the database on the server.

I also finally saw the "?useSSL=false" in the "using installer" instructions, and added that.  (I hadn't noticed that detail in the very long AWS RDS URL the first time.)

Thanks again for your help!  -Les


Les LaCroix '79 | Strategic Technologist
Carleton College | 1 N. College St. | MS 3-ITS | Northfield, MN 55057
507.222.5455


On Tue, Apr 14, 2020 at 2:02 AM Hyzer, Chris <> wrote:

 

> I am attempting to install on Centos 7.  In Centos, I have most familiarity with

> MySQL/MariaDB, and no familiarity with Postgres or Oracle.  (I am actually much

> more familiar with MS SQL than MySQL, but I didn't see any references to that in

 

We don’t support ms sql

 

> the Grouper installation guides.)  Also, I know a lot of programming languages, but

> know virtually nothing about actually using Java.  Finally, we don't use AWS yet; all

> of our cloud adventures have been in GCP or Azure.

 

You could use a mysql or postgres or oracle database in gcp or azure.  Note the container must live near it to reduce latency performance issues.

 

>

> I installed MariaDB 10.4.12, and I don't think the Grouper container is talking to it. 

> With "manually" the grouper.log starts with a Communications link failure. 

 

Can you telnet to the port from the container server?

 

[root@ip-172-30-3-152 grouperInstaller]# telnet database-2.cstlzkqw179p.us-east-1.rds.amazonaws.com 3306

Trying 172.30.3.40...

Connected to database-2.cstlzkqw179p.us-east-1.rds.amazonaws.com.

Escape character is '^]'.

X

5.5.5-10.4.8-MariaDBK;&I~bLþ8pOz8H?EzW(\mysql_native_password^CConnection closed by foreign host.

[root@ip-172-30-3-152 grouperInstaller]#

 

> With "using

> installer", the docker_logs_init_db*.log file ends with "############## Running static

> SQL".  And in neither case are there any tables in the grouper database.

 

Look in the files created in the installer directory, any log entries?  What happens when you look in the README.txt and run those commands manually?  What does “docker logs” return for the container?

 

> If I want to run the container without adding drivers to it, what MySQL/MariaDB should

> I install on my Centos 7 host? 

 

The examples were mysql 5.7

 

> If I want to use MariaDB 10.4.12, what driver should I

> install into the container, and how would I do that?  (Maybe if I knew more about Java

> I'd be able to answer these questions myself?)

 

I tried 10.4.8 mariadb and the built in driver with grouper created the tables fine with the installer.  Note: the installer reports an error but it does succeed…  just continue

 

Thanks

Chris

 

From: On Behalf Of Les LaCroix
Sent: Tuesday, April 14, 2020 12:18 AM
To:
Subject: [grouper-users] newbie installer question about database to use

 

Hello,

 

With the recent announcement of v2.5, I thought I'd take another stab at installing Grouper.  I have tried following the sets of instructions "Install the Grouper v2.5 container with maturity level 0 manually" and "Install the Grouper v2.5 container with maturity level 0 using installer", and I think I am running into the same problem: choice of databases.

 

I am attempting to install on Centos 7.  In Centos, I have most familiarity with MySQL/MariaDB, and no familiarity with Postgres or Oracle.  (I am actually much more familiar with MS SQL than MySQL, but I didn't see any references to that in the Grouper installation guides.)  Also, I know a lot of programming languages, but know virtually nothing about actually using Java.  Finally, we don't use AWS yet; all of our cloud adventures have been in GCP or Azure.

 

I installed MariaDB 10.4.12, and I don't think the Grouper container is talking to it.  With "manually" the grouper.log starts with a Communications link failure.  With "using installer", the docker_logs_init_db*.log file ends with "############## Running static SQL".  And in neither case are there any tables in the grouper database.

 

If I want to run the container without adding drivers to it, what MySQL/MariaDB should I install on my Centos 7 host?  If I want to use MariaDB 10.4.12, what driver should I install into the container, and how would I do that?  (Maybe if I knew more about Java I'd be able to answer these questions myself?)

 

Thanks, -Les

 


Les LaCroix '79 | Strategic Technologist
Carleton College | 1 N. College St. | MS 3-ITS | Northfield, MN 55057
507.222.5455




Archive powered by MHonArc 2.6.19.

Top of Page