Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] Problem with grouper install

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] Problem with grouper install


Chronological Thread 
  • From: "Bee-Lindgren, Bert" <>
  • To: ANDRES FELIPE DE LOS REYES PIEDRA <>, "Peter St. Onge" <>
  • Cc: "" <>
  • Subject: Re: [grouper-dev] Problem with grouper install
  • Date: Wed, 11 Jan 2017 18:22:43 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:R2KIeB/H4Yye+/9uRHKM819IXTAuvvDOBiVQ1KB+0uoTIJqq85mqBkHD//Il1AaPBtSHragUwLOP6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMizexe61+IRa5oQnMq8UanZZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLzliwJKyA2/33WisxojaJUvhShpwBkw4XJZI2ZLedycr/Bcd8fQ2dKQ8RfWDFbAo6kb4UBEfcPPfpWoYf+qVsBrxq+ChWjC+700DBEmmP60Lcm3+g9DA3L2hErEdIUsHTTqdX4LKkeXP2rw6bW1DnNafJW2THg54jHaBAuv/eMUaptesfM10YvDR/FgluNooHiJDyayP4Ns3SB4+V7S+2glXcrqwVwojip28gshZPJiZwTyl3f8iV5wZo1Kce3SEFhfd6rDodftyGAO4RoX8wiXnhltSAnwbMIvp67eTIFyJUhxxPHd/CLaZWE7gr+WOqPIzp0nm5pdKijixqo7EStzPD3WMqs0FtSsCZKiMXAum0I2hDO98SLV/5w/kmu1DqTywze7+9ELl47mKbHLpMsx7w9moYTvEjbACP7mF/6gLKUe0gq4OSk9uTqb7T8qpOBOYJ4lAfzObk0lMOlG+Q3KA0OUnCb+eui0L3j+lX0Tq1Wg/MxjqXVrYnWK9kDqKKkGgNV1Z0s5AilAzehzdQYgWIILFVYeBKBkoflIUnOIOr/DfejnVujjCtrx/HBPr3nGJnNKWXDkKvlfbZ67E5cyxA/wsxY55JREr0BIfTzVVHttNHAEBM2KRC4z/viBdlgy48SRGeCAqGWPa/OrVOF4+wvLPeDaYMJvTvwLvoo6+LugHMhnF8SZ6ip3Z8ZaHCiGfRmJl2UbmHyjdcbDWcGpBExQ/L0h1GbVT5TZnCyUL8z5jEhFo2mC5zORoesgLydxiu7EYdZZnxYBV+QEXfkbZuLVOoRaC6KOM9ujiQEVaS9S48mzRyuuxX6y716LurM5CIYr4vv28Vr6O3Njhwy8T10D9+B02GWUW14hGIIRzkq3K9hu0x9zEmM0bRmj/BCC9Nc+u5JAU8GMsv16cBAJuu6dC/lX++kAHqLCvGBOnkLY+Mc+Jc2QmtRIfzq2hnF0zCnGPkZmriMH4Y546/H92X6Ost7wH+A2aU8yVQtFI8Hf1WrmqNlvzPPQcbulUqU3e7+bakA0WjW6GCFwmemoV1fSgl2TaKDVnlJNWXMqtGsrGnPQvqKCLIrPRFMz4rKAKZQdpeh2V9LXuulMtnTJmawnWu/HxuO7rSNcMzlcnkQ1yWbBUQZxVNAtU2aPBQzU3/y61nVCyZjQBe2Oxvh
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

> java.lang.IllegalAccessError: tried to access class 


I would look into there maybe being two postgres jar files that are both being used somehow. Obviously, this shouldn't happen, but feels likely since the error is from one postgres method calling another.

Assuming you're not doing anything with the classpath when you run the installer... 
It might be hard to dive into the details of the java classpath as the installer is downloading and running/using components, but a quick look for all the postgres files might show something helpful.


From: <> on behalf of ANDRES FELIPE DE LOS REYES PIEDRA <>
Sent: Wednesday, January 11, 2017 1:08 PM
To: Peter St. Onge
Cc:
Subject: Re: [grouper-dev] Problem with grouper install
 
Here, I did a modification and your suggestion now prompts me for a password and it works:

psql -h 127.0.0.1 -U grouperdb
Password for user grouperdb:
psql (9.5.5)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.

grouperdb=>



this is my pg_hba.conf

# DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database superuser can access the database using some other method.
# Noninteractive access to all databases is required during automatic
# maintenance (custom daily cronjobs, replication, and similar tasks).
#
# Database administrative login by Unix domain socket
local   all             postgres                                peer
host    grouperdb       grouperdb       127.0.0.1/32            md5
host    grouperdb       grouperdb       myipaddres/32        md5
# TYPE  DATABASE        USER            ADDRESS                 METHOD
# "local" is for Unix domain socket connections only
local   all             all                                     peer
# IPv4 local connections:i
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local   replication     postgres                                peer
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5



But I still get the same error

2017-01-11 12:39 GMT-05:00 Peter St. Onge <>:
Can you send me the pg_hba.conf file to look at?

On 2017-01-11 12:34 PM, ANDRES FELIPE DE LOS REYES PIEDRA wrote:
> Hey pete, this happens when I do that
>
> psql -h 127.0.0.1 -U grouperdb
> psql: FATAL:  Ident authentication failed for user "grouperdb"
>
> However that command does not promt me for a password so I ran:
>
> psql -h 127.0.0.1 -U grouperdb -W
> Password for user grouperdb:
> psql: FATAL:  Ident authentication failed for user "grouperdb"
>
> But as you can see it gives me the same error.
>
> So since this is running in a server I did try to connect from my remote
> machine using pgadmin and it does work
>
> I still have no idea what the issue is here.
>
>
>
>
>
> 2017-01-11 12:20 GMT-05:00 Peter St. Onge <
> <mailto:>>:
>
>     Hi Andres,
>
>     Can you try 'psql -h 127.0.0.1 -u grouperdb' and give it the password
>     you expect it should have?
>
>     Thanks, -- pete
>
>
>     On 2017-01-11 12:10 PM, ANDRES FELIPE DE LOS REYES PIEDRA wrote:
>     > Hey Peter, thanks for the quick reply
>     >
>     > I also usually forget to edit pg_hba.conf but I already did it, but I
>     > did try your suggestion, restarted the postgresql service and STILL did
>     > not work, pleas can you help me out?
>     >
>     > Best regards
>     >
>     > Andres
>     >
>     > 2017-01-11 11:56 GMT-05:00 Peter St. Onge < <mailto:>
>     > <mailto: <mailto:>>>:
>     >
>     >     Hello Andres,
>     >
>     >     I usually forget to add the line in pg_hba.conf to allow IP connections
>     >     via localhost since the application does not use domain sockets for
>     >     access and the default PostgreSQL configs in my distro don't make it
>     >     available at install time -- the second line might be helpful for you
>     >     (place it after the local socket line as below)
>     >
>     >     # TYPE  DATABASE        USER            ADDRESS                 METHOD
>     >
>     >     # "local" is for Unix domain socket connections only
>     >     local   all                   all                              peer
>     >     # IPv4 local connections:
>     >     host    grouperdb             grouperdb     127.0.0.1/32 <http://127.0.0.1/32>
>     >     <http://127.0.0.1/32>        md5
>     >
>     >
>     >     Best, -- pete
>     >
>     >
>     >
>     >     On 2017-01-11 11:46 AM,
>     <mailto:>
>     >     <mailto:
>     <mailto:>> wrote:
>     >     > Hey everyone, I am from Ecuador and at the university we are
>     >     implementing
>     >     > grouper, so when I run the grouperInstaler.jar, I want it to
>     use a
>     >     postgresql
>     >     > database that is already created and empty, and I get this error
>     >     from the
>     >     > installer:
>     >     >
>     >     > Enter the database URL
>     [jdbc:postgresql://localhost:5432/grouperdb]:
>     >     > Database user [grouperdb]:
>     >     > Database password (note, you aren't setting the pass here,
>     you are
>     >     using an
>     >     > existing pass, this will be echoed back) [XXXXXXXXX]:
>     >     > Editing
>     >     >
>     >
>      /programas/grouper/grouper.installer-2.3.0/grouper.apiBinary-2.3.0/conf/groupe
>     >     > r.hibernate.properties:
>     >     >  - property hibernate.connection.url already was set to:
>     >     > jdbc:postgresql://localhost:5432/grouperdb, not changing file
>     >     >  - property hibernate.connection.username already was set to:
>     >     grouperdb, not
>     >     > changing file
>     >     >  - property hibernate.connection.password already was set to:
>     >     XXXXXXXXX, not
>     >     > changing file
>     >     > Checking database with query: select 1
>     >     > Exception in thread "main" java.lang.IllegalAccessError:
>     tried to
>     >     access class
>     >     > org.postgresql.Driver$1 from class org.postgresql.Driver
>     >     >         at
>     org.postgresql.Driver.getDefaultProperties(Driver.java:86)
>     >     >         at org.postgresql.Driver.connect(Driver.java:237)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.driverShim.DatabaseShimBase.connect(
>     >     > DatabaseShimBase.java:65)
>     >     >         at
>     >     java.sql.DriverManager.getConnection(DriverManager.java:664)
>     >     >         at
>     >     java.sql.DriverManager.getConnection(DriverManager.java:247)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.util.GiDbUtils.connection(GiDbUtils.
>     >     > java:399)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.util.GiDbUtils.listSelect(GiDbUtils.
>     >     > java:457)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.util.GiDbUtils.listSelect(GiDbUtils.
>     >     > java:416)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.util.GiDbUtils.select(GiDbUtils.java
>     >     > :427)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.util.GiDbUtils.checkConnection(GiDbU
>     >     > tils.java:567)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.GrouperInstaller.checkDatabaseConnec
>     >     > tion(GrouperInstaller.java:9957)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainInstallLogic(Gr
>     >     > ouperInstaller.java:8177)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$400(GrouperI
>     >     > nstaller.java:82)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.GrouperInstaller$GrouperInstallerMai
>     >     > nFunction$2.logic(GrouperInstaller.java:1307)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainLogic(GrouperIn
>     >     > staller.java:1530)
>     >     >         at
>     >     >
>     >
>      edu.internet2.middleware.grouperInstaller.GrouperInstaller.main(GrouperInstall
>     >     > er.java:549)
>     >     >
>     >     >
>     >     >
>     >     > I have java jdk1.8.0_111 installed.
>     >     >
>     >     >
>     >     > Thanks
>     >     >
>     >     > Andres de los Reyes
>     >     >
>     >
>     >
>     >     --
>     >     Peter St. Onge
>      <mailto:>
>     >     <mailto: <mailto:>>
>     >     Information Security Architect
>      (416)978-5030 <tel:%28416%29978-5030>
>     >     <tel:%28416%29978-5030>
>     >     Business Continuity and Communications
>     >     Information + Technology Services          University of Toronto
>     >
>     >
>     >
>     > Advertencia legal:
>     > Este mensaje y, en su caso, los archivos anexos son confidenciales,
>     > especialmente en lo que respecta a los datos personales, y se dirigen
>     > exclusivamente al destinatario referenciado. Si usted no lo es y lo ha
>     > recibido por error o tiene conocimiento del mismo por cualquier
>     motivo,
>     > le rogamos que nos lo comunique por este medio y proceda a
>     destruirlo o
>     > borrarlo, y que en todo caso se abstenga de utilizar, reproducir,
>     > alterar, archivar o comunicar a terceros el presente mensaje y
>     ficheros
>     > anexos, todo ello bajo pena de incurrir en responsabilidades legales.
>     > Las opiniones contenidas en este mensaje y en los archivos adjuntos,
>     > pertenecen exclusivamente a su remitente y no representan la
>     opinión de
>     > la Universidad de Cuenca salvo que se diga expresamente y el remitente
>     > esté autorizado para ello. El emisor no garantiza la integridad,
>     rapidez
>     > o seguridad del presente correo, ni se responsabiliza de posibles
>     > perjuicios derivados de la captura, incorporaciones de virus o
>     > cualesquiera otras manipulaciones efectuadas por terceros.
>
>
>     --
>     Peter St. Onge                           
>     <mailto:>
>     Information Security Architect                     (416)978-5030
>     <tel:%28416%29978-5030>
>     Business Continuity and Communications
>     Information + Technology Services          University of Toronto
>
>
>
> Advertencia legal:
> Este mensaje y, en su caso, los archivos anexos son confidenciales,
> especialmente en lo que respecta a los datos personales, y se dirigen
> exclusivamente al destinatario referenciado. Si usted no lo es y lo ha
> recibido por error o tiene conocimiento del mismo por cualquier motivo,
> le rogamos que nos lo comunique por este medio y proceda a destruirlo o
> borrarlo, y que en todo caso se abstenga de utilizar, reproducir,
> alterar, archivar o comunicar a terceros el presente mensaje y ficheros
> anexos, todo ello bajo pena de incurrir en responsabilidades legales.
> Las opiniones contenidas en este mensaje y en los archivos adjuntos,
> pertenecen exclusivamente a su remitente y no representan la opinión de
> la Universidad de Cuenca salvo que se diga expresamente y el remitente
> esté autorizado para ello. El emisor no garantiza la integridad, rapidez
> o seguridad del presente correo, ni se responsabiliza de posibles
> perjuicios derivados de la captura, incorporaciones de virus o
> cualesquiera otras manipulaciones efectuadas por terceros.


--
Peter St. Onge                           
Information Security Architect                     (416)978-5030
Business Continuity and Communications
Information + Technology Services          University of Toronto


Advertencia legal: 
Este mensaje y, en su caso, los archivos anexos son confidenciales, especialmente en lo que respecta a los datos personales, y se dirigen exclusivamente al destinatario referenciado. Si usted no lo es y lo ha recibido por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique por este medio y proceda a destruirlo o borrarlo, y que en todo caso se abstenga de utilizar, reproducir, alterar, archivar o comunicar a terceros el presente mensaje y ficheros anexos, todo ello bajo pena de incurrir en responsabilidades legales. Las opiniones contenidas en este mensaje y en los archivos adjuntos, pertenecen exclusivamente a su remitente y no representan la opinión de la Universidad de Cuenca salvo que se diga expresamente y el remitente esté autorizado para ello. El emisor no garantiza la integridad, rapidez o seguridad del presente correo, ni se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros.



Archive powered by MHonArc 2.6.19.

Top of Page