Nextcloud/Collabora Access token - 502 response

Hello,

I recently installed collabora on my almalinux VM using the provided repo. I was able to get the coolwsd service configured and running. I also set up a reverse proxy with Apache. When i enter the url in my nextcloud settings it works and i can see a 200 return messege in the Apache logs. But when i try to open a document it fails. I am seeing the below 502 error in the apache logs and i have no clue how to fix it. Im sure it has something to do with the Nextcloud/collabRA proof keys or access tokens. Any help would be greatly appreciated.

192.168.10.27 - - [30/Mar/2022:22:43:06 -0400] “GET /hosting/discovery HTTP/1.1” 200 33094 “-” “Nextcloud Server Crawler”

192.168.10.27 - - [30/Mar/2022:22:43:06 -0400] “GET /hosting/capabilities HTTP/1.1” 200 274 “-” “Nextcloud Server Crawler”

192.168.2.13 - - [30/Mar/2022:22:43:18 -0400] “POST /browser/2ea9477/cool.html?WOPISrc=https%3A%2F%2FNEXTCLOUDURLREDACTED%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F241_oc8t1vraexze&title=Welcome%20to%20Nextcloud%20Hub.docx&lang=en&closebutton=1&revisionhistory=1 HTTP/1.1” 200 29059 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36”

192.168.2.13 - - [30/Mar/2022:22:43:18 -0400] "GET /cool/https%3A%2F%2FNEXTCLOUDURLREDACTED%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F241_oc8t1vraexze%3Faccess_token%3DBdAHcDgyD3JpbuayCkyrLoRp5yQDzKEy%26access_token_ttl%3D0/ws?WOPISrc=https%3A%2F%2FNEXTCLOUDURLREDACTED%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F241_oc8t1vraexze&compat=/ws HTTP/1.1" 502 - “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36”

192.168.2.13 - - [30/Mar/2022:22:43:18 -0400] “GET /cool/https%3A%2F%2FNEXTCLOUDURLREDACTED%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F241_oc8t1vraexze%3Faccess_token%3DBdAHcDgyD3JpbuayCkyrLoRp5yQDzKEy%26access_token_ttl%3D0%26permission%3Dedit/ws?WOPISrc=https%3A%2F%2FNEXTCLOUDURLREDACTED%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F241_oc8t1vraexze&compat=/ws HTTP/1.1" 502 - "-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36”

192.168.2.13 - - [30/Mar/2022:22:43:18 -0400] “**GET /cool/https%3A%2F%2FNEXTCLOUDURLREDACTED%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F241_oc8t1vraexze%3Faccess_token%3DBdAHcDgyD3JpbuayCkyrLoRp5yQDzKEy%26access_token_ttl%3D0%26permission%3Dedit/ws?**WOPISrc=https%3A%2F%2FNEXTCLOUDURLREDACTED%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F241_oc8t1vraexze&compat=/ws HTTP/1.1” 502 - “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36”

I’ve tried all of the following but nothing fixes it.

occ config:app:set --value {collabora hostname} richdocuments wopi_url

occ config:app:set richdocuments public_wopi_url --value=“{collabora hostname}

Hi @kube

You can refer to the configuration in my article.

Use HTTPS with Ubuntu 22.04, apache, Nextcloud and Collabora(Docker)