You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker-compose up cas とすると以下のエラーが発生する。(エラーの詳細は添付ファイル)
Could not resolve placeholder 'osf.api.institutions.login.availability.url' in string value "${osf.api.institutions.login.availability.url}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'osf.api.institutions.login.availability.url' in string value "${osf.api.institutions.login.availability.url}"
diff -u etc/cas-overlay/cas.properties ../RDM-cas-overlay/etc/cas.properties--- etc/cas-overlay/cas.properties 2024-08-15 11:08:07.261026451 +0900+++ ../RDM-cas-overlay/etc/cas.properties 2024-08-15 09:12:07.875259168 +0900@@ -102,7 +102,7 @@
# OSF Postgres Database
#
osf.database.driverClass=org.postgresql.Driver
-osf.database.url=jdbc:postgresql://postgres:5432/osf?sslmode=disable+osf.database.url=jdbc:postgresql://192.168.168.167:5432/osf?targetServerType=master
osf.database.user=postgres
osf.database.password=
osf.database.hibernate.dialect=io.cos.cas.adaptors.postgres.hibernate.OSFPostgreSQLDialect
@@ -152,7 +152,7 @@
database.hibernate.batchSize=1
database.hibernate.showSql=true
database.driverClass=org.postgresql.Driver
-database.url=jdbc:postgresql://caspostgres:5432/cas?sslmode=disable+database.url=jdbc:postgresql://127.0.0.1:5432/cas?targetServerType=master
database.user=postgres
database.password=
@@ -337,3 +337,6 @@
#
# URL to which the user will be redirected to change the password.
# password.policy.url=https://password.example.edu/change
++## Login Availability API+osf.api.institutions.login.availability.url=http://localhost:8000/api/v2/institutions/login_availability/
暫定対応
etc/cas-overlay/cas.properties に以下の記述を追加する。
git diff etc/cas-overlay/cas.properties
diff --git a/etc/cas-overlay/cas.properties b/etc/cas-overlay/cas.properties
index 4122dda2ae..f406bf5e6c 100644
--- a/etc/cas-overlay/cas.properties+++ b/etc/cas-overlay/cas.properties@@ -337,3 +337,6 @@ metrics.refresh.internal=9999s
#
# URL to which the user will be redirected to change the password.
# password.policy.url=https://password.example.edu/change
++## Login Availability API+osf.api.institutions.login.availability.url=http://localhost:8000/api/v2/institutions/login_availability/
RDM-cas-overlayのビルド
( cd RDM-cas-overlay ; docker build -t rdm-cas-overlay . )
docker-compose.override.yml
services:
################## CAS ##################cas:
image: rdm-cas-overlay
RDM-osf.io: bd5b4db
RDM-cas-overlay: 7c97d3b2ce5a4e32252ff61967ccd07cd07c7823
現象
事前にビルドした、
RDM-cas-overlay
のイメージを指定するようにdocker-compose.override.yml
を作成しておく(後述)docker-compose up cas
とすると以下のエラーが発生する。(エラーの詳細は添付ファイル)原因
docker-compose.ymlで以下の記述がされており、
cas
が利用する設定ファイルがRDM-osf.io
の設定ファイルでオーバライドされるようになっている。
オリジナルの設定ファイルには入っている、
osf.api.institutions.login.availability.url
の記述がないためエラーになる。
暫定対応
etc/cas-overlay/cas.properties
に以下の記述を追加する。RDM-cas-overlayのビルド
docker-compose.override.yml
error.txt
The text was updated successfully, but these errors were encountered: