Error upgrading from 4.0.15 to 4.1.1

CMS Version

4.0.15

Installation Method

Docker

Operating System

Linux

Issue

During the update from version 4.0.15 to version 4.1.1 (Docker), I encounter these errors when I perform the pull & redeploy: the operation completes successfully, but upon login, I see these notifications

image

Warning : Undefined array key “sessionHistoryId” in /var/www/cms/lib/Helper/Session.php on line 503

Warning : session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/sessions, handler: update_timestamp) in Unknown on line 0

help please, I cannot resolve this issue