Failed to write update container file. Not possible to upgrade firmware

I got a PLC Next 2152 and I am trying to update the firmware but it stops in the middle of the process with the next message: „Failed to write update container file.“
The next thing I tried (according to an aswer I saw in this forum) was to reset the installed container login via SSH and delete the folder „/media/rfs/rw/var“, but I cannot find the „var“ directory inside „rw“ directory, instead I get the following directories inside: „lost+found, upperdir, work“
Thanks for your comments.

Hello crios,
If it does not exist this just means you did not use any container engine like docker yet.
So something else is the issue with your update process.
Check the available space on the device with. df -hal
Maybe the update container is invalid (broken file or wrong target maybe)
kind regards,
Oliver

Hello crios,</p>If it does not exist this just means you did not use any container engine like docker yet.</p>So something else is the issue with your update process.</p>Check the available space on the device with. df -hal</p>Maybe the update container is invalid (broken file or wrong target maybe)</p>kind regards,</p>Oliver</p>

Thank you, Oliver
Which space should I look at?
I got this data:
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p6 488M 330M 123M 73% /media/rfs/rw
overlay 488M 330M 123M 73% /
/dev/mmcblk0p6 488M 330M 123M 73% /media/rfs/internalsd

I am missing 44 MB in order to complete the firmware update. Is there any other file I could delete?

Kind regards

Hello Crios,
I dont know what is on your PLC so I can not say what can be deleted.
You can find large files like this in linux.
Then you can decide what you might be able to delete.
du -a /media/rfs/rw| sort -n -r | head -n 30

There is always the option to reset to factory default, do FW update and then download your project again.
kind regards,
Oliver