New Collabora fies not being saved

I am running a snap (27.1.8) on ubuntu with Collabora Online - Built-in CODE Server (23.5.1001) and Nextcloud Office (8.2.7). If I create a new office document and save it, the file remains empty. Locally created files can be changed and online changes will be saved.