From 5fd84bb122b07a95fda975797899348f1dde71d8 Mon Sep 17 00:00:00 2001 From: Guus van de Steeg <45566691+GvandeSteeg@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:25:30 +0100 Subject: [PATCH 1/6] Update redcap-install.sh Changed the download URL based on this comment: https://redcap.vumc.org/community/post.php?id=257219&comment=257237 --- charts/redcap/configuration/redcap/init/redcap-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/redcap/configuration/redcap/init/redcap-install.sh b/charts/redcap/configuration/redcap/init/redcap-install.sh index bd152a9..8819682 100644 --- a/charts/redcap/configuration/redcap/init/redcap-install.sh +++ b/charts/redcap/configuration/redcap/init/redcap-install.sh @@ -16,7 +16,7 @@ install_redcap () { echo "[INFO] Downloading and extracting REDCap package" curl -X POST \ - --location 'https://redcap.vanderbilt.edu/plugins/redcap_consortium/versions.php' \ + --location 'https://redcap.vumc.org/plugins/redcap_consortium/versions.php' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode "username=$REDCAP_COMMUNITY_USERNAME" \ --data-urlencode "password=$REDCAP_COMMUNITY_PASSWORD" \ From 425c7aee0a45be0a6735da4e259cd49792c1c696 Mon Sep 17 00:00:00 2001 From: Guus van de Steeg <45566691+GvandeSteeg@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:27:17 +0100 Subject: [PATCH 2/6] Update README.md rename /cronjob.php to /cron.php as expected --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f4655b..d8f15d0 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ If you choose to automatically install REDCap using your community credentials w ### Administration Cronjob -REDCap needs its `/cronjob.php` script to be called once an hour, in order to run diverse maintenance tasks. A dedicated Kubernetes CronJob has been created to this end, called `admin-cronjob`. It runs by default every hour, using the following schedule : `0 * * * *` . You can modify this scheduling pattern in the chart's parameters (see the [chart's documentation](./charts/redcap/README.md)). +REDCap needs its `/cron.php` script to be called once an hour, in order to run diverse maintenance tasks. A dedicated Kubernetes CronJob has been created to this end, called `admin-cronjob`. It runs by default every hour, using the following schedule : `0 * * * *` . You can modify this scheduling pattern in the chart's parameters (see the [chart's documentation](./charts/redcap/README.md)). If, for any reasons, you need to manually fire a instance of this CronJob, you can juste use `kubectl` to create spawn a job manually using this command : @@ -150,4 +150,4 @@ You're welcome to read the [contribution guidelines](./CONTRIBUTING.md). The informations about the licensing and the dependencies of this project can be found under : - The [project's license file](./LICENSE) -- The [legal notice](./NOTICE) \ No newline at end of file +- The [legal notice](./NOTICE) From a15078a79c908de99f22183df296791b138aa6b0 Mon Sep 17 00:00:00 2001 From: Guus van de Steeg <45566691+GvandeSteeg@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:34:00 +0100 Subject: [PATCH 3/6] Update version number --- charts/redcap/configuration/redcap/init/redcap-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/redcap/configuration/redcap/init/redcap-install.sh b/charts/redcap/configuration/redcap/init/redcap-install.sh index 8819682..8a6e95e 100644 --- a/charts/redcap/configuration/redcap/init/redcap-install.sh +++ b/charts/redcap/configuration/redcap/init/redcap-install.sh @@ -1,11 +1,11 @@ #!/bin/sh # Name: redcap_install -# Version: 1.0 +# Version: 1.1 # Author: APHP # Description : Retrieves and unpack REDCap and a translation package -echo "[INFO] Starting REDCap package installation script v1.0" +echo "[INFO] Starting REDCap package installation script v1.1" set -e # Installs the REDCap Application package by retriving it directly from the Community Site API, using the user's credentials. From d071be08ff73c407515bd520b5d86eeaf1a15510 Mon Sep 17 00:00:00 2001 From: Guus van de Steeg <45566691+GvandeSteeg@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:34:49 +0100 Subject: [PATCH 4/6] Added logging of download dir --- charts/redcap/configuration/redcap/init/redcap-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/redcap/configuration/redcap/init/redcap-install.sh b/charts/redcap/configuration/redcap/init/redcap-install.sh index 8a6e95e..618899a 100644 --- a/charts/redcap/configuration/redcap/init/redcap-install.sh +++ b/charts/redcap/configuration/redcap/init/redcap-install.sh @@ -13,10 +13,11 @@ install_redcap () { echo "[INFO] Cleaning destination dir" rm -rf "${REDCAP_INSTALL_PATH:?}/redcap" + local LOCATION='https://redcap.vumc.org/plugins/redcap_consortium/versions.php' - echo "[INFO] Downloading and extracting REDCap package" + echo "[INFO] Downloading and extracting REDCap package from $LOCATION" curl -X POST \ - --location 'https://redcap.vumc.org/plugins/redcap_consortium/versions.php' \ + --location $LOCATION \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode "username=$REDCAP_COMMUNITY_USERNAME" \ --data-urlencode "password=$REDCAP_COMMUNITY_PASSWORD" \ From 1dda508d0f1fd7e5b6451335ebdbf9d1c13bf710 Mon Sep 17 00:00:00 2001 From: Guus van de Steeg <45566691+GvandeSteeg@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:09:50 +0100 Subject: [PATCH 5/6] Update restore-job-egress.yaml Fixes `executing "redcap/charts/redcap/templates/networkpolicies/restore-job-egress.yaml" at <.Values.mysql.primary.service.ports.mysql>: nil pointer evaluating interface {}.mysql` --- .../redcap/templates/networkpolicies/restore-job-egress.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/redcap/templates/networkpolicies/restore-job-egress.yaml b/charts/redcap/templates/networkpolicies/restore-job-egress.yaml index 7fda8cd..bbd2271 100644 --- a/charts/redcap/templates/networkpolicies/restore-job-egress.yaml +++ b/charts/redcap/templates/networkpolicies/restore-job-egress.yaml @@ -22,7 +22,7 @@ spec: {{- end }} ports: - protocol: TCP - port: {{ default 3306 .Values.mysql.primary.service.ports.mysql }} + port: {{ default 3306 .Values.mysql.primary.service.port.mysql }} # allow DNS resolution - to: @@ -37,4 +37,4 @@ spec: protocol: UDP - port: 53 protocol: TCP -{{- end }} \ No newline at end of file +{{- end }} From 10ed24e73e1c736c70e49b69fe7b3c2f915894c3 Mon Sep 17 00:00:00 2001 From: Guus van de Steeg <45566691+GvandeSteeg@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:14:26 +0100 Subject: [PATCH 6/6] Update my.cnf Fixes issue where mysql would be 0/1 Running as the healthcheck fails --- charts/redcap/configuration/mysql/my.cnf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/redcap/configuration/mysql/my.cnf b/charts/redcap/configuration/mysql/my.cnf index ae31175..f6dd6dc 100644 --- a/charts/redcap/configuration/mysql/my.cnf +++ b/charts/redcap/configuration/mysql/my.cnf @@ -27,6 +27,8 @@ max_connections=400 innodb_flush_log_at_trx_commit=1 sync_binlog=0 +# Fixes "ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded" on MYSQL pod init +mysql_native_password=ON [client] port=3306