Sur Postgresql 10, Axelor fonctionne. Mais, sous Postgresql 13 j’ai une erreur indiquant que la méthode d’authentification 10 n’est pas supporté pour l’adresse IP ou le réseau donné.
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all scram-sha-256
# IPv4 local connections:
host all all 127.0.0.1/24 scram-sha-256
host all all fe80::300a:8ceb:f664:74e8%7/128 scram-sha-256
# IPv6 local connections:
host all all ::1/128 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all scram-sha-256
host replication all 127.0.0.1/24 scram-sha-256
host replication all ::1/128 scram-sha-256
And this is more complete error (in french, sorry) :
ERROR 20492 --- [io-8080-exec-23] org.postgresql.Driver : Connection error:
org.postgresql.util.PSQLException: Le type d'authentification 10 n'est pas supporté. Vérifiez que vous avez configuré le fichier pg_hba.conf pour inclure l'adresse IP du client ou le sous-réseau et qu'il utilise un schéma d'authentification supporté par le pilote.
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:614)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:222)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:194)
at org.postgresql.Driver.makeConnection(Driver.java:431)
You should download the new driver version from this link: https://jdbc.postgresql.org/download/postgresql-42.2.19.jar, then put it on your « jdk1.8/jre/lib/ext/ » folder, then run once jdk1.8/bin/extcheck
–> start and enjoy your axelor
Citation
You should download the new driver version from this link: https://jdbc.postgresql.org/download/postgresql-42.2.19.jar , then put it on your « jdk1.8/jre/lib/ext/ » folder, then run once jdk1.8/bin/extcheck
–> start and enjoy your axelor
I tried this : .\extcheck.exe -verbose …\jre\lib\ext\postgresql-42.2.23.jar
it returned :
Target file:…\jre\lib\ext\postgresql-42.2.23.jar
IO Exception occured
Shouldn’t the file that should be changed rather be WEB-INF/lib/postgressql-42.0.0.jar in axelor-erp ? I tried changing it myself but it didn’t work, probably Axelor devs need to do something on their side.
I changed it and it worked, here are the tables in postgres 13 shown in pgadmin4.