Closed5

tableau serverでエラー "SCRAM authentication requires libpq version 10 or aboveUnable to connect to the"

Matsukura YukiMatsukura Yuki

Tableau Serverにて、
Server Status/Actions by All Usersへアクセスしたらエラー。

SCRAM authentication requires libpq version 10 or above
Unable to connect to the PostgreSQL server "localhost". Check that the server is running and that you have access privileges to the requested database.

疑問

  • tableau serverのインストール要件にlibpqの要件なんてなかったから入れていないし。。。。。
  • tableau serverはall in oneパッケージのハズなのに。OSのライブラリに依存するの?
Matsukura YukiMatsukura Yuki

OSがAmazon Linux 2なので以下を実行してlibpqを入れてみる。

libpqを入れることができないので、一旦postgresql serverもまとめてインストールする。その後、serverを削除すればlibpqだけ残る。

% sudo amazon-linux-extras install -y postgresql14
% sudo yum remove postgresql
% rpm -qa|grep libpq
libpq-14.8-1.amzn2.0.1.x86_64

昼間は再起動できないので夜に勝手に再起動させてみる。

$ at 14:00
at> tsm restart
at> <EOT>
job 3 at Wed Sep 27 14:00:00 2023
Matsukura YukiMatsukura Yuki

Tableau Server: 2021.1 - 2023.1.6
PostgreSQL ドライバーをインストールするには、次の手順を実行します。
Java 8 JDBC ドライバーを下記からダウンロード https://jdbc.postgresql.org/download/
次の フォルダーにファイルをコピーします (手動で作成する必要がある場合があります)。

らしいので、

こちらのページからJava 8のJDBCをダウンロードして、
/opt/tableau/tableau_driver/jdbc へ置いた。

そしたら、エラー内容が変わった。

An unexpected error occurred. If you continue to receive this error please contact your Tableau Server Administrator.
Session ID: xxxxxxxxxxxxxxxxxxxxxx-1:0
The JDBC driver host process failed to respond.
Unable to connect to the PostgreSQL server "localhost". Check that the server is running and that you have access privileges to the requested database.
2023-09-28 00:36:44.366, (ZRTKmvCFZB1HGY1x-IjaIwAAABY,1:0)

Matsukura YukiMatsukura Yuki

最後にお掃除して終わり。

sudo yum remove libpq

amazon-linux-extras抜く方法が無いし、特に害はないのでそのまま。

おそらく、yum.repos.dに残骸が残るくらいかなと思います。

このスクラップは2023/09/29にクローズされました