Project

General

Profile

Actions

Bug #12792

closed

Datasources postinst SQL does not use Rudder connection parameters

Added by François ARMAND over 6 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Datasource plugin has a script which create the needed table in `rudder` database. But the script doesn't use postgresql conection parameters and assume a local database, leading to:

./rudder-pkg install-file /tmp/rudder-plugin-datasources-4.3-1.3-SNAPSHOT.rpkg
Installing /tmp/rudder-plugin-datasources-4.3-1.3-SNAPSHOT.rpkg
...
psql: could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?

It can be workaround by executing by hand:

psql -U rudder -h pg_host_server_ip -p pg_port_default_is5432 -d rudder -f /opt/rudder/share/plugins/datasources/datasources-schema.sql

Subtasks 1 (0 open1 closed)

Bug #12925: SQL postinst is too verbose in datasourceReleasedNicolas CHARLESActions
Actions

Also available in: Atom PDF