From e1bac46602d36956350d5cfb74d59e799efb9938 Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Mon, 1 Sep 2025 15:47:31 -0700 Subject: [PATCH 1/3] Upgrade DBD::mysql Fixes #460 --- IFComp/cpanfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IFComp/cpanfile b/IFComp/cpanfile index 1d2d22f3..b3dbec4c 100644 --- a/IFComp/cpanfile +++ b/IFComp/cpanfile @@ -59,7 +59,7 @@ on 'develop' => sub { requires 'Code::TidyAll' => '== 0.78'; requires 'DBIx::Class::Schema::Loader'; requires 'Perl::Tidy' => '== 20200822'; - requires 'DBD::mysql', '==4.050'; + requires 'DBD::mysql', '==4.054'; requires 'Catalyst::Devel'; requires 'Module::Install::CPANfile'; }; From 1be91bd7b0152fed7b3b1966513d31ffaf5de5e0 Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Mon, 1 Sep 2025 16:04:03 -0700 Subject: [PATCH 2/3] Upgrade to latest stable Perl 5.42 Fixes #459 --- IFComp-Dev/docker-app/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IFComp-Dev/docker-app/Dockerfile b/IFComp-Dev/docker-app/Dockerfile index d3dcf717..75a01b80 100644 --- a/IFComp-Dev/docker-app/Dockerfile +++ b/IFComp-Dev/docker-app/Dockerfile @@ -1,5 +1,5 @@ # DOCKER-VERSION 0.3.4 -FROM perl:5.34 +FROM perl:5.42 MAINTAINER Mark Musante mark.musante@gmail.com RUN apt-get update && apt-get install -y \ From 5996fff4e584fabac0e17d7fa4e9d8ac71c0a0f5 Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Mon, 1 Sep 2025 16:04:08 -0700 Subject: [PATCH 3/3] Add `--skip-ssl` to `docker_start.sh` On the `perl:5.42` Docker instance, when I run `docker compose up`, it never starts successfully, and prints this over and over on the console: ``` app-1 | ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it app-1 | ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it app-1 | ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it ``` Adding `--skip-ssl` in this script fixes the issue. --- IFComp-Dev/docker-app/docker-script/docker_start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IFComp-Dev/docker-app/docker-script/docker_start.sh b/IFComp-Dev/docker-app/docker-script/docker_start.sh index 0ca63684..56c9caf4 100755 --- a/IFComp-Dev/docker-app/docker-script/docker_start.sh +++ b/IFComp-Dev/docker-app/docker-script/docker_start.sh @@ -1,15 +1,15 @@ #!/bin/sh echo "Waiting for mysql" 1>&2 -mysql -h db < /dev/null +mysql --skip-ssl -h db < /dev/null while [ $? != 0 ] do sleep 1 - mysql -h db < /dev/null + mysql --skip-ssl -h db < /dev/null done echo "Checking that the db exists" -mysql -h db -e "use ifcomp; select count(*) from user;" > /dev/null 2>&1 +mysql --skip-ssl -h db -e "use ifcomp; select count(*) from user;" > /dev/null 2>&1 if [ $? != 0 ] then echo "Deploying database"