Story #6913
closedAs a user, I can specify LD_LIBRARY_PATH for the pulpcore-api service
100%
Description
When using SCL, per its pattern, the LD_LIBRARY_PATH needs to be
specified in order for the libraries/binariess to find the "right"
version.
The scripts dropped in /etc/profile.d
are working for login shells
but tasks we are running are using the pulp user which has no login
shell (/sbin/nologin).
Given rh-postgresql96
is currently used (and postgresql-devel-9.2
)
gets installed during installation the lack of explicitly specifying it
might have gone un-noticed.
But when dealing with replacing rh-postgresql96
by rh-postgresql10
(and all related files) or simply installing the
rh-postgresql10-postgresql-libs
and rh-postgresql10-postgresql-devel
to connect to a PG10 server setup else where it fails with the following
errors:
-
django.db.utils.OperationalError: SCRAM authentication requires libpq version 10 or above
-
/opt/rh/rh-postgresql10/root/bin/initdb: error while loading shared
libraries: libpq.so.rh-postgresql10-5: cannot open shared object
file: No such file or directory
Updated by ipanova@redhat.com over 4 years ago
- Status changed from NEW to POST
- Triaged changed from No to Yes
- Sprint set to Sprint 74
Added by spredzy over 4 years ago
Added by spredzy over 4 years ago
Revision 9c29972b | View on GitHub
LD_LIBRARY_PATH: Allow one to specify a specific path
When using SCL, per its pattern, the LD_LIBRARY_PATH needs to be specified in order for the libraries/binariess to find the "right" version.
The scripts dropped in /etc/profile.d
are working for login shells
but tasks we are running are using the pulp user which has no login
shell (/sbin/nologin).
Given rh-postgresql96
is currently used (and postgresql-devel-9.2
)
gets installed during installation the lack of explicitly specifying it
might have gone un-noticed.
But when dealing with replacing rh-postgresql96
by rh-postgresql10
(and all related files) or simply installing the
rh-postgresql10-postgresql-libs
and rh-postgresql10-postgresql-devel
to connect to a PG10 server setup else where it fails with the following
errors:
-
django.db.utils.OperationalError: SCRAM authentication requires libpq version 10 or above
-
/opt/rh/rh-postgresql10/root/bin/initdb: error while loading shared libraries: libpq.so.rh-postgresql10-5: cannot open shared object file: No such file or directory
fixes #6913
Updated by spredzy over 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset ansible-pulp|9c29972b23f939833b9f0b5a787f3b72a6a8eb65.
Updated by mdepaulo@redhat.com over 4 years ago
- Tracker changed from Issue to Story
- Subject changed from LD_LIBRARY_PATH not properly specified and no way to specify it to As a user, I can specify LD_LIBRARY_PATH for the pulpcore-api service
- % Done set to 0
Updating from issue to "story", since this seems more like a feature (compatibility with additional IT environments.)
The commit/PR was already merged, but I will submit a new one to update the changelog entry from "misc" to "feature".
Added by Mike DePaulo over 4 years ago
Revision ff03cbb5 | View on GitHub
Change pulp_ld_library_path 6913 from misc to feature
fixes: #6913
Added by Mike DePaulo over 4 years ago
Revision ff03cbb5 | View on GitHub
Change pulp_ld_library_path 6913 from misc to feature
fixes: #6913
Updated by pulpbot over 4 years ago
Updated by Anonymous over 4 years ago
- % Done changed from 0 to 100
Applied in changeset ansible-pulp|ff03cbb5c60fad1433945877e11660447eb0f1cc.
Updated by fao89 over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
LD_LIBRARY_PATH: Allow one to specify a specific path
When using SCL, per its pattern, the LD_LIBRARY_PATH needs to be specified in order for the libraries/binariess to find the "right" version.
The scripts dropped in
/etc/profile.d
are working for login shells but tasks we are running are using the pulp user which has no login shell (/sbin/nologin).Given
rh-postgresql96
is currently used (andpostgresql-devel-9.2
) gets installed during installation the lack of explicitly specifying it might have gone un-noticed.But when dealing with replacing
rh-postgresql96
byrh-postgresql10
(and all related files) or simply installing therh-postgresql10-postgresql-libs
andrh-postgresql10-postgresql-devel
to connect to a PG10 server setup else where it fails with the following errors:django.db.utils.OperationalError: SCRAM authentication requires libpq version 10 or above
/opt/rh/rh-postgresql10/root/bin/initdb: error while loading shared libraries: libpq.so.rh-postgresql10-5: cannot open shared object file: No such file or directory
fixes #6913