Damn thing. You know I had everything working with nextcloud/collabora and then I rebooted server and things no longer worked.
I referenced this issue here for full details: https://github.com/nextcloud/server/issues/14330
Iāve also consulted this page for a similar report of the error however issues was solved many different ways and it seems like some of the proposed solutions are applicable or donāt work for me:
https://github.com/nextcloud/server/issues/11278
Briefly my setup
- FreeNAS with Apache/Nextcloud running within jail structure
- On FreeNAS ā VM running Ubuntu 18.04 with the loolwsd servie running natively (although I did try docker instance and get same error).
- All SSL certs through LetsEncrypt ā and up to date - just updated 1 week ago
Nextcloud appears to function normally except when trying to access and edit files that should go to Collabora/loolwsd.
Nextcloud log gives the following:
Got error āPHP message: PHP Fatal error: Cannot declare class GuzzleHttp\Handler\CurlFactory, because the name is already in use in /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 15\nā
The apache log gives the following: āreqIdā:āaQvSkjRtBWOAVd1myalPā,ālevelā:3,ātimeā:ā2019-02-21T15:41:44+00:00ā,āremoteAddrā:āID_ADDRESSā,āuserā:āncadminā,āappā:āPHPā,āmethodā:āGETā,āurlā:"/index.php/apps/richdocuments/index?fileId=25&requesttoken=dUmu12zn%2BKmg20oH8YZbC7mBwAjeNpE82%2FoyZ%2Fufd5o%3D%3ARXGbmwOlrfHXkSxSyKkfauvPolv1ctkI7MJCPrzoItQ%3D",āmessageā:āCannot declare class GuzzleHttp\Handler\CurlFactory, because the name is already in use at /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php#15ā,āuserAgentā:āMozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36ā,āversionā:ā15.0.4.0ā}
I have no idea the source of this error and am finding it almost impossible to debug. Iād greatly welcome any assistance. Problem seems local to nextcloud because I donāt any error or log activity on the loolwsd server. I can access the loolwsd admin console and everything works on this end.
Further details:
Operating system:
- FreeNas - 11.2-U2
Web server:
- Apache Webserver running in FreeBSD jail on Freenas - Apache/2.4.38 (FreeBSD)
- Collabora running as native service (not in docker container) within Virtualized Ubuntu setup - 18.04
Database:
mysql Ver 15.1 Distrib 10.2.21-MariaDB, for FreeBSD11.2 (amd64) using readline 5.1
PHP version:
PHP 7.2.15 (cli) (built: Feb 10 2019 01:14:31) ( NTS )
Nextcloud version:
Nextcloud 15.0.4