UPDATE Just noticed this in the data/nextcloud.log file: Server error:
GET https://office.mydomain.com/hosting/discoveryresulted in a
502 Proxy Errorresponse
Hi. Sorry I can’t get my head around what’s happened here but I’ll try to give relevant information. Basically, I went through the Nextcloud Collabora Online documentation to create a Docker container for Collabora. Then upon configuring Collabora server URL in Nextcloud admin, it worked! Once, only. Then I closed down the editor. Tried to re-enter then started getting a 503 error on a file that I’ve forgotten because I can’t even get that far anymore … please help
Here is some information, but will post more if required:
When I run docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=nextcloud\\.mydomain\\.com' --restart always --cap-add MKNOD collabora/code
(now, after stopping and removing the previous container) to create a new container, then…
$ sudo docker logs c714e3b8883d --tail 20
Preload fonts
frk-00031-00031 2019-01-14 22:34:52.088155 [ forkit ] TRC Finished lok_preinit(/opt/collaboraoffice6.0/program", "file:///user") in 7761 ms.| kit/Kit.cpp:2648
frk-00031-00031 2019-01-14 22:34:52.089217 [ forkit ] ERR Error: forkit has more than a single thread after pre-init| kit/ForKit.cpp:540
frk-00031-00031 2019-01-14 22:34:52.089683 [ forkit ] INF Preinit stage OK.| kit/ForKit.cpp:542
frk-00031-00031 2019-01-14 22:34:52.092547 [ forkit ] DBG Forking a loolkit process with jailId: PvW6sUXJE6UKgvjD.| kit/ForKit.cpp:253
frk-00031-00031 2019-01-14 22:34:52.094325 [ forkit ] ERR Fork failed. (ENOMEM: Cannot allocate memory)| kit/ForKit.cpp:290
frk-00031-00031 2019-01-14 22:34:52.095233 [ forkit ] FTL Failed to create a kit process.| kit/ForKit.cpp:550
wsd-00029-00030 2019-01-14 22:34:53.975219 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:34:58.980419 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:03.985607 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:08.986166 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:13.991343 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:18.996359 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:23.997410 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:28.998740 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:33.999419 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:39.002727 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:44.007891 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:49.012990 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
wsd-00029-00030 2019-01-14 22:35:54.013990 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.hpp:497
I can see there are a couple of fails in the logs but I don’t know how severe the are. But, ps -a
appears OK(?)
$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c714e3b8883d collabora/code "/bin/sh -c 'bash st…" 12 minutes ago Up 4 minutes 127.0.0.1:9980->9980/tcp vibrant_haibt
When I click on an ODT file now, it gets a 500 at this file:
https://nextcloud.mydomain.com/index.php/apps/richdocuments/index?fileId=20&requesttoken=9SlhLFRNhvfUeo2RIRTqVyQzyoBCoeT8n3wbLeSY%2Fac%3D%3As38KRDYPw6aMQubpGUehE2kKhvY7%2BdyL2hN6Rb3UzP0%3D
The error message in apache logs is now the same as when I didn’t have the Collabora server setup, only the app:
[Mon Jan 14 22:50:24.779357 2019] [:error] [pid 7496] [client 209.197.20.200:35138] PHP Fatal error: Cannot declare class GuzzleHttp\\Exception\\RequestException, because the name is already in use in /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php on line 0
I can also confirm that I have given the Collabora servers subdomain to the Nextcloud app. It has it’s https (Let’s encrypt cert) and port included:
https://office.mydomain.com:443
Any ideas?