Thank you Emma for your support. Clearing the cache did work!
I only mentioned the setup in general terms as I wasn't sure how much information was needed. I upgraded by using the tgz container.
I will suggest an addition to the documentation at https://docs.moodle.org/405/en/Upgrading#Finishing_the_upgrade in order to have this side effect considered there.
Best regards
Enrique