Error creating new files in latest datascience-notebook image

I am trying to upgrade a JupyterLab server running datascience-notebook:r-3.6.3 to the latest datascience-notebook:r-4.3.2

First none of the existing notebooks in the home directory appear in the browser on the left. When I try to create a new notebook I get the error:

Unexpected error while saving file: Untitled1.ipynb [Errno 2] No such file or directory: '/home/jovyan/.~Untitled1.ipynb' -> '/home/jovyan/Untitled1.ipynb'

The file gets created but it is empty and it doesn’t show in the browser at the left.
Screenshot_2023-11-17_16-44-54