Problem with GuzzleHTTP

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

  1. FreeNAS with Apache/Nextcloud running within jail structure
  2. On FreeNAS ā€“ VM running Ubuntu 18.04 with the loolwsd servie running natively (although I did try docker instance and get same error).
  3. 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:

  1. FreeNas - 11.2-U2

Web server:

  1. Apache Webserver running in FreeBSD jail on Freenas - Apache/2.4.38 (FreeBSD)
  2. 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