Actions
Bug #12792
closedDatasources postinst SQL does not use Rudder connection parameters
Pull Request:
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
Actions