richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

Collabora Online for Nextcloud over Raspberry Pi 4 - attempting to open any document results in timeout

Open csolisr opened this issue 4 years ago • 2 comments

I recently installed the ARM64 version of Collabora Online for Nextcloud on my Raspberry Pi 4. The system runs over Nginx and uses the YunoHost framework to automatically upgrade all apps, and furthermore the basic functionality of Nextcloud works correctly. However, whenever I attempt to open any document with Collabora Online, the loading screen stays at 0% then turns blank. A console log from the web browser gives me the following messages (partially redacted for privacy):

Files_PDFViewer initialized for public page 
Object { isPublicPage: null, canDownload: true, isSecureViewerAvailable: false }
public.js:30:9
Waiting for page to render… document.js:249:12
PostMessageService.sendPostMessage parent loading postMessage.tsx:54:10
[getWopiUrl] https://cloud.example.net/index.php/apps/richdocuments/wopi/files/339047_oc3r8y6dwots url.js:39:9
[viewer] Received post message 
Object { msgId: "loading", args: undefined, deprecated: undefined }
files.js:107:21353
[FilesAppIntegration] Adding header file actions object-assign.js:27:6
Uncaught TypeError: sheets[i].href is null
    <anonymous> https://cloud.example.net/apps/richdocumentscode_arm64/proxy.php?req=/loleaflet/8979e63c7/loleaflet.html?WOPISrc=https://cloud.example.net/index.php/apps/richdocuments/wopi/files/339047_oc3r8y6dwots&title=testfile.odt&lang=es-419&closebutton=1&revisionhistory=1:225
    EventListener.handleEvent* https://cloud.example.net/apps/richdocumentscode_arm64/proxy.php?req=/loleaflet/8979e63c7/loleaflet.html?WOPISrc=https://cloud.example.net/index.php/apps/richdocuments/wopi/files/339047_oc3r8y6dwots&title=testfile.odt&lang=es-419&closebutton=1&revisionhistory=1:225
    <anonymous> https://cloud.example.net/apps/richdocumentscode_arm64/proxy.php?req=/loleaflet/8979e63c7/loleaflet.html?WOPISrc=https://cloud.example.net/index.php/apps/richdocuments/wopi/files/339047_oc3r8y6dwots&title=testfile.odt&lang=es-419&closebutton=1&revisionhistory=1:225
proxy.php:225:10704
PostMessageService.sendPostMessage loolframe {"MessageId":"Host_PostmessageReady","SendTime":1618423061846,"Values":{}} postMessage.tsx:54:10
[document] editorInitListener: Received post message  
Object { msgId: "App_LoadingStatus", args: {…}, deprecated: false }
document.js:285:13
PostMessageService.sendPostMessage parent {"MessageId":"App_LoadingStatus","SendTime":1618423062226,"Values":{"Status":"Frame_Ready","Features":{"VersionStates":true}}} postMessage.tsx:54:10
callMobileMessage documentLoaded undefined mobile.js:35:9
[document] Received post message  
Object { msgId: "App_LoadingStatus", args: {…}, deprecated: false }
document.js:365:13
PostMessageService.sendPostMessage parent {"MessageId":"App_LoadingStatus","SendTime":1618423062226,"Values":{"Status":"Frame_Ready","Features":{"VersionStates":true}}} postMessage.tsx:54:10
[document] Unhandled post message 
Object { msgId: "App_LoadingStatus", args: {…}, deprecated: false }
document.js:465:14
[viewer] Received post message 
Object { msgId: "App_LoadingStatus", args: {…}, deprecated: false }
files.js:107:21353
[viewer] Received post message 
Object { msgId: "App_LoadingStatus", args: {…}, deprecated: false }
files.js:107:21353
XHRPOST https://cloud.example.net/apps/richdocumentscode_arm64/proxy.php?req=/lool/https%3A%2F%2Fcloud.example.net%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F339047_oc3r8y6dwots%3Faccess_token%3DEYoTYrfX46NPGW5rNh2Y5SgXUh5uKxfs%26access_token_ttl%3D0%26reuse_cookies%3D__Host-nc_sameSiteCookielax%253Dtrue%253A__Host-nc_sameSiteCookiestrict%253Dtrue%253Anc_username%253Dcsolisr%253Anc_token%253Dp0zX2nNQAUvSTfxRDtX6QEXXRQmaviaC%253Anc_session_id%253D4g5r6jtgpd85brapjq2krekumr%253ASSOwAuthUser%253Dcsolisr%253ASSOwAuthHash%253Dc9d6ff97d8aadbd5296fb273ab2c32587ec0defc3668ad0e045254eb852b12e19ec59d84750942a39619ad5e3dea87dac40916f121a39d5ff57cc06c41098d6c%253ASSOwAuthExpire%253D1618589661.669%253Aoc_sessionPassphrase%253D2y%25252FpkgnWQCMErFe9MnPXgHdibaZl1rmjEg5J3viSILOuBhytW3O0tw%25252BUPkP6xt%25252F6l3zT6TC78bkkvmdkRp5AUPBd0brQbpOGKdrbg2Vs%25252B0OmMvo5PvPpHaEZBkT20a0c%253Aoc3r8y6dwots%253D4g5r6jtgpd85brapjq2krekumr/ws?WOPISrc=https%3A%2F%2Fcloud.example.net%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F339047_oc3r8y6dwots&compat=/ws/732d09963318c89e72831fc0f665ffce/write/2
[HTTP/2 400 Bad Request 9ms]

Furthermore, checking the processes, an instance of Collabora Online does turn on, and is apparently accessible with the raw address to the proxy (https://cloud.example.net/apps/richdocumentscode_arm64/proxy.php). Does this mean the Collabora Online container partially fails to start, or is it merely a matter of increasing the timeout somewhere? And if so, which files should I check?

csolisr avatar Apr 29 '21 22:04 csolisr

Same for me on raspberry pi 4 with debian 64bits on yunohost, got timeout and 504 error right after i activate collabora online. don't really know why...

tr1p0p avatar Oct 31 '21 01:10 tr1p0p

Unfortunately, It seems like arm64 is available only for Ubuntu 18.04...

Thatoo avatar Nov 01 '21 13:11 Thatoo