bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.31k stars 4.79k forks source link

[bitnami/moodle] Use Moodle 4.4, Image show Version 4.4.3, but Moodle show Version 4.4.1 #72647

Open pleibling opened 1 week ago

pleibling commented 1 week ago

Name and Version

bitname/moodle/4.4

What architecture are you using?

amd64

What steps will reproduce the bug?

I use in docker compose bitnami/moodle:4.4 and :latest - docker inspect show me image.re.name: 4.4.3-debian-12-r2, but when i log in to moodle and check Version, they show me 4.4.1 Build 20240610.

So i shut down container, docker system prune -a and renew with docker compose pull and start the container. But the stay all the time on the same version.

I need to upgrade, cause there are any critical Security fixes in the new release.

How can i upgrade, did i make mistakes?

What is the expected behavior?

Get updatest to 4.4.3

What do you see instead?

Version 4.4.1 Build 20240610

Additional information

No response

energyexperts commented 1 week ago

I'm having the same issue.

thiagomennezes commented 1 week ago

Me too

gongomgra commented 1 day ago

Hi @pleibling @energyexperts @thiagomennezes,

Thanks for using Bitnami and for reporting this issue. Unfortunately I have not being able to reproduce your issue. I have moved to the bitnami/moodle/4.4/debian-12 folder in our repo, removed all the related images and then run docker-compose up. It has automatically pulled the latest images and started Moodle 4.4.3 without issues. I have checked it via the admin panel and it is mentioned I'm running the correct version

Screenshot 2024-09-30 at 14 45 15

Can you try downloading the images again?

pleibling commented 1 day ago

Hi, thanks for your help. But this doesn't work for me.

I take this:

But it doens't work - i hava all the time the same version.

Maybe the files are not refreshed in the local folders (filesystem instead of volumes)?

moodle

Bildschirmfoto 2024-09-30 um 15 38 41

gongomgra commented 1 day ago

@pleibling can you set docker.io/bitnami/moodle:4.4 for the Moodle image instead of the :4.4-debian-12 tag you are using? I don't think that's one of our images, or at least it is missing some information in the tag format. We also recommend you to ensure you are removing the moodle image from your computer with the docker rmi command.

pleibling commented 1 day ago

Same problem - i do this:

Same version like before.

gongomgra commented 1 day ago

@pleibling what does the docker inspect command return?

$ docker inspect bitnami/moodle:4.4 | head
[
    {
        "Id": "sha256:b1d7de3c38fa62aec11ea430c4ac54977421779e7fb2e122330ebc9c9a398d88",
        "RepoTags": [
            "bitnami/moodle:4.4"
        ],
        "Parent": "",
        "Comment": "[{\"created\":\"2024-09-05T00:12:56.503576797Z\",\"comment\":\"from Bitnami with love\"}
(...)
pleibling commented 1 day ago

Looks like this: image

energyexperts commented 1 day ago

Hi @gongomgra, I did the same steps of @pleibling and I got the same error. This is my docker inspect:

image

ThomasRasmussen commented 1 day ago

From my debugging the problem is rather that moodle is installed on a volume after initial version (which copies /opt/bitnami/moodle to /bitnami/moodle.

If I understand the "magic" involved in the run.sh script, it will detect that a version is already installed in /bitnami/moodle and remove /opt/bitnami/moodle and replace the directoy with a symlink to /bitnami/moodle.

From my investigation there is nothing the the moodle scripts that will attemt to perform an upgrade of the files in /bitnami/moodle therefore the image is infact the "new version" however the files that is used is still the old moodle version.

pleibling commented 19 hours ago

Ok, so we have to wait until this is fixed - right?

ThomasRasmussen commented 19 hours ago

I was "fortunate" enough to be able to just rebuild my env using the latest image... But you might be able to try (in a dev env) to scratch the moodledata volume (which is mounted in /bitnami/moodle) and then it will re-install the moodle files using the new version... BUT I have not tested that.

pleibling commented 18 hours ago

Ok, i try this:

This doesn't worked for me. The moodle_data folder is empty and doesn't get the 4.4.3 files.

So i shutdown the container, remove the moodle_data, rename moddle_data.save and restart comtainer - so i went back to my 4.4.1 System.