Document cannot be saved to storage. Check your permissions or contact the storage server administrator

Hi ,

We have configure nextcloud 16.0.5 with Collabora Online(loolwsd)

We can open file in nexcloud, but we cannot edit .
After making any change when we click on save option we receive following error :-
Document cannot be saved to storage. Check your permissions or contact the storage server administrator.

This is our loolwsd log :-
wsd-08179-08888 2020-03-30 08:48:57.235943 [ docbroker_012 ] TRC #25: Wrote outgoing data 456 bytes.| ./net/Socket.hpp:1095
wsd-08179-08888 2020-03-30 08:48:57.236029 [ docbroker_012 ] DBG Session [0783] is the document owner| wsd/DocumentBroker.cpp:596
wsd-08179-08888 2020-03-30 08:48:57.236080 [ docbroker_012 ] DBG Setting username [user50] and userId [user50] for session [0783]| wsd/DocumentBroker.cpp:630
wsd-08179-08888 2020-03-30 08:48:57.236105 [ docbroker_012 ] DBG Document timestamp: 2020-03-30T08:46:30.000000Z| wsd/DocumentBroker.cpp:648
wsd-08179-08888 2020-03-30 08:48:57.236155 [ docbroker_012 ] TRC Message o4870 lastmodtime: 2020-03-30T08:46:30.000000Z| ./common/Message.hpp:76
wsd-08179-08888 2020-03-30 08:48:57.236181 [ docbroker_012 ] TRC ToClient-0783 enqueueing client message o4870| wsd/ClientSession.cpp:1098
wsd-08179-08888 2020-03-30 08:48:57.236203 [ docbroker_012 ] DBG Broadcasting message [lastmodtime: 2020-03-30T08:46:30.000000Z] to all sessions.| wsd/DocumentBroker.cpp:1884
wsd-08179-08888 2020-03-30 08:48:57.236302 [ docbroker_012 ] DBG Wopi requesting:| wsd/Storage.cpp:639
wsd-08179-08888 2020-03-30 08:48:58.609527 [ docbroker_012 ] ERR WOPI::GetFile failed with 400 Bad Request| wsd/Storage.cpp:671
wsd-08179-08888 2020-03-30 08:48:58.609890 [ docbroker_012 ] ERR loading document exception: WOPI::GetFile failed| wsd/DocumentBroker.cpp:1182
wsd-08179-08888 2020-03-30 08:48:58.609949 [ docbroker_012 ] ERR Failed to add session to [/index.php/apps/richdocuments/wopi/files/3993186_oc9lo6h2cp76] with URI []: WOPI::GetFile failed| wsd/DocumentBroker.cpp:1144
wsd-08179-08888 2020-03-30 08:48:58.609987 [ docbroker_012 ] INF Doc [/index.php/apps/richdocuments/wopi/files/3993186_oc9lo6h2cp76] has no more sessions. Marking to destroy.| wsd/DocumentBroker.cpp:1147
wsd-08179-08888 2020-03-30 08:48:58.610082 [ docbroker_012 ] TRC #25: Wrote outgoing data 36 bytes.| ./net/Socket.hpp:1095
wsd-08179-08888 2020-03-30 08:48:58.610119 [ docbroker_012 ] INF Terminating dead DocumentBroker for docKey [/index.php/apps/richdocuments/wopi/files/3993186_oc9lo6h2cp76].| wsd/DocumentBroker.cpp:361
wsd-08179-08888 2020-03-30 08:48:58.610249 [ docbroker_012 ] DBG Closing DocumentBroker for docKey [/index.php/apps/richdocuments/wopi/files/3993186_oc9lo6h2cp76] with reason: dead| wsd/DocumentBroker.cpp:450
wsd-08179-08888 2020-03-30 08:48:58.610249 [ docbroker_012 ] INF Finished polling doc [/index.php/apps/richdocuments/wopi/files/3993186_oc9lo6h2cp76]. stop: true, continuePolling: true, ShutdownRequestFlag: false, TerminationFlag: false, closeReason: dead. Flushing socket.| wsd/DocumentBroker.cpp:368

Thanks & Regards


We have upgraded our Nextcloud server from 12 to 16.0.5 long ago back !!!
I guess at that time our master key got disabled.

So we are having error on our user creation tab :-
“Password change is disabled because the master key is disabled”

I have generated same error on our test server by encrypting it and then disabling master key.

Whenever master key is disabled, i cannot save any document and end up with an error :-
“Document cannot be saved to storage. Check your permissions or contact the storage server administrator”

When i enable master key I can edit,save documents and if master key is disable i can still save documents but i have to decrypt user data first.

Need to solve live environment issue now.

Nexcloud.log when master key is disabled and when data is encrypted :-
Hint":“Private Key missing for user: please try to log-out and log-in again”,“CustomMessage”:“getFile failed”},“userAgent”:“LOOLWSD WOPI Agent master…”,“version”:“”

occ command list :-
sudo -u www-data php /occ list

Thanks & Regards
Sagar Kadam

Were you able to find a solution to this issue?