Moved nextcloud - Collabora installation: ERR WOPI::CheckFileInfo is missing JSON payload

Hi everybody,
recently I moved my test environment to a different server. Here is what I did

  1. Installed Apache and PHP on the new system
  2. Copied self-signed certificates to the new system (the new system kept the same IP and DNS name as the old one)
  3. Copied /var/www/html/nextcloud folder to the new system and checked that Nextcloud is working
  4. Re-installed collabora online from repositories
  5. If I try to open a file with collabora online I receive “That is embarassing” error, and in the logs I see:

wsd-32309-32311 14:55:18.126197 [ client_ws_0005 ] ERR  WOPI::CheckFileInfo is missing JSON payload
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126275 [ client_ws_0005 ] DBG  Setting the session as readonly| wsd/DocumentBroker.cpp:259
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126317 [ client_ws_0005 ] DBG  Session [0005] is the document owner| wsd/DocumentBroker.cpp:290
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126325 [ client_ws_0005 ] DBG  Setting username [] and userId [] for session [0005]| wsd/DocumentBroker.cpp:306
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126337 [ client_ws_0005 ] ERR  Invalid fileinfo for URI [https://test-office.mysite.com/nextcloud/index.php/apps/richdocuments/wopi/files/1060?access_token=SZuL43rXF2jJiFqWjNutpOyqSDgrJgce&access_token_ttl=0&permission=edit].| wsd/DocumentBroker.cpp:314
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126346 [ client_ws_0005 ] ERR  Failed to load document with URI [https://test-office.mysite.com/nextcloud/index.php/apps/richdocuments/wopi/files/1060?access_token=SZuL43rXF2jJiFqWjNutpOyqSDgrJgce&access_token_ttl=0&permission=edit].| wsd/DocumentBroker.cpp:558
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126382 [ client_ws_0005 ] ERR  Error in client request handler: Failed to load document with URI [https://test-office.mysite.com/nextcloud/index.php/apps/richdocuments/wopi/files/1060?access_token=SZuL43rXF2jJiFqWjNutpOyqSDgrJgce&access_token_ttl=0&permission=edit].| wsd/LOOLWSD.cpp:1038
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126411 [ client_ws_0005 ] INF  Finished GET request handler for session [0005].| wsd/LOOLWSD.cpp:1060
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126419 [ client_ws_0005 ] INF  ~ClientSession dtor [ToClient-0005].
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32536 14:55:18.126517 [ client_ws_0005 ] DBG  SenderQueue: stopping| wsd/SenderQueue.hpp:177
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32536 14:55:18.126529 [ client_ws_0005 ] DBG  ToClient-0005 SenderThread finished| wsd/ClientSession.cpp:500
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126553 [ client_ws_0005 ] DBG  Already sent response!?| wsd/LOOLWSD.cpp:1251
Apr 28 16:55:18 nextcloud-collabora loolwsd[32309]: wsd-32309-32311 14:55:18.126572 [ client_ws_0005 ] DBG  Thread finished.| wsd/LOOLWSD.cpp:1262

AFAIK, CODE/Collabora won’t work with self-signed.

Cheers!