outflux icon indicating copy to clipboard operation
outflux copied to clipboard

unknown authentication type: 10

Open morganchristiansson opened this issue 3 years ago • 3 comments

I just tried it out and I get error... I also realised last release is from 2019 .. and last commit 2 years ago..

./outflux schema-transfer database123
2022/01/06 07:20:17 Selected input database: database123
2022/01/06 07:20:17 Overriding PG environment variables for connection with: sslmode=disable
2022/01/06 07:20:17 could not open connections to input and output database
could not open connection to TimescaleDB Server
unknown authentication type: 10

morganchristiansson avatar Jan 06 '22 07:01 morganchristiansson

@morganchristiansson I contacted timescale support about this and the issue was with the authentication mechanism in the timescale cloud db. They suggested following solution and it worked for me "Could you try to set up the default authentication type in Timescale Cloud from 'scram' to 'md5'? In order to do this, from the Cloud portal, open the Operations tab, and then click on Reset Password. After that, you would want to select the 'Authentication type' dropdown to MD5 "

Hitesh-Agrawal avatar Feb 08 '22 09:02 Hitesh-Agrawal

In case you're selfhosting: https://stackoverflow.com/a/64336274

As @Hitesh-Agrawal already stated: the tool doesn't support the more modern (and now default) scram-sha-256 authentication mechanism.

VIEWVIEWVIEW avatar Mar 18 '22 23:03 VIEWVIEWVIEW

If you edit go.mod and build outflux with pgx v3.4.0+ then scram-sha-256 authentication is supported, and appears to work OK (from my limited testing).

dpooley avatar Jun 20 '22 23:06 dpooley

Fixed in #96

JamesGuthrie avatar Oct 11 '23 06:10 JamesGuthrie