Closed revanna7226 closed 3 years ago
Hello, @revanna7226
It seems that your environment doesn't install uuid-ossp plugin.
Maybe, you need to install postgresql13-contrib. (ex. yum install postgresql13-contrib
)
Could you try to install the contrib, restart PostgreSQL and execute CREATE EXTENSION "uuid-ossp";
again?
What OS are you using?
@hiroyuki-sato,
Thanks for your quick reply. OS is RHEL 7.3 Beta.
And I will install postgresql13-contrib and try once again.
Thanks and Regards, Revanna
Hi @hiroyuki-sato ,
I have installed postgresql13-contrib and created uuid-ossp extension in the postgres server.
/opt/digdag/server.properties server.bind = 0.0.0.0 server.port = 8083 server.access-log.path = /opt/digdag/logs/access log-server.type = local log-server.local.path = /opt/digdag/logs/task
[root@system01 opt]# digdag server --log /opt/digdag/logs/server/server.log --config /opt/digdag/server.properties 2021-07-28 11:27:48 +0800: Digdag v0.9.42 error: com.google.inject.CreationException: Unable to create injector, see the following errors:
1) Error in custom provider, com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: The authentication type 10 is not supported. Check that you have configured the pg_hba.conf file to include the client's IP address or subnet, and that it is using an authentication scheme supported by the driver.
while locating io.digdag.core.database.DataSourceProvider
at io.digdag.core.database.DatabaseModule.configure(DatabaseModule.java:30) (via modules: com.google.inject.util.Modules$OverrideModule -> io.digdag.core.database.DatabaseModule)
while locating javax.sql.DataSource
Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: The authentication type 10 is not supported. Check that you have configured the pg_hba.conf file to include the client's IP address or subnet, and that it is using an authentication scheme supported by the driver.
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:516)
at com.zaxxer.hikari.pool.HikariPool.
Could you please help me to resolve this?
Thanks and Regards, Revanna
Hello, @revanna7226
Could you search The authentication type 10 is not supported.
?
It seems that you need to change the encryption algorithm.
https://stackoverflow.com/a/64336274/6577569
Hi @hiroyuki-sato,
Thanks for your suggestions. I followed the settings from https://stackoverflow.com/a/64336274/6577569 It is working fine now.
Thanks and Regards, Revanna
@hiroyuki-sato, Hope you are doing great!
I have used tried to interface Digdag with Postgresql. Digdag and Postgres are installed on two different Linux Servers. I followed your procedure below to create database for Digdag. $ psql -h host -U super_user -d postgres postgres=# CREATE ROLE digdag WITH PASSWORD 'digdagpass' NOSUPERUSER NOCREATEDB NOCREATEROLE LOGIN; CREATE ROLE -- worked fine postgres=# CREATE DATABASE digdag_db WITH OWNER digdag; CREATE DATABASE -- worked fine postgres=# CREATE EXTENSION "uuid-ossp"; CREATE EXTENTION -- Did not work. ERROR: could not open extension control file "/usr/pgsql-13/share/extension/uuid-ossp.control": No such file or directory
I ignored the installation of "uuid-ossp" and set up the postgres configurations in server.properties file of Digdag.
Secret key also added.
But while running the server Digdag ending up with the below error. Jul 27 15:30:55 melcoq1.localdomain java[6190]: while locating io.digdag.core.agent.TaskCallbackApi Jul 27 15:30:55 melcoq1.localdomain java[6190]: Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: The authentication type 10 is not supported. Check that you have configured the pg_hba.conf file to include the client's IP address or subnet, and that it is using an authentication scheme supported by the driver.
Could you please help me why is this?
Thanks and Regards, Revanna
Originally posted by @revanna7226 in https://github.com/treasure-data/digdag/issues/1363#issuecomment-887447084