#4853 - Unable to install the ChatGPT Integration for SugarCRM Plugin
Hi Team,
We have purchased the plugin ChatGPT Integration for SugarCRM from Suger Outfitters Market place and installing the plugin on SugarCRM 13.0.3. At the time of installation, we are facing error as "Installation failed. See details in sugarcrm.log". We raised this issue with SugarCRM and shared the logs with them to which we got the response as mentioned below:
The failure was here: Fri Sep 20 12:47:36 2024 [64072][1][FATAL] ModuleInstallerException: Failed to copy /var/www/html/ali1300/cache/mlp_temp/i9aRaW/custom/kinamu/gpt/KinamuGPT.js custom/kinamu/gpt/KinamuGPT.js in /var/www/html/ali1300/ModuleInstall/ModuleInstaller.php:1405
Relevant function code for that in 13.0.0 is in the same file at 2565- 2625. The function there returned false, indicating a failure. Based on the surrounding debug logging, that false return can happen only from... -> A failed core PHP copy() command OR -> The $source passed to the function is NOT a file according to PHP base function is_file(), but also is not a directory according to PHP base function is_dir().
The latter doesn't look like it's the case, so the copy function probably failed. That is a core PHP function. The most likely reason I can think of it failing would be permissions on the ./custom directory prohibiting creating a directory under it. If that is not the cause, check for anything in the stack that would prevent the copying of the javascript file, and check to make sure the javascript file exists in the package .
Sugar Outfitters is a third party marketplace and this Module package is not made by or supported by SugarCRM. We provide the marketplace for them to sell to you. In addition to the above steps to check, you will want to go to https://www.sugaroutfitters.com/support/kinamu-chatgpt-sugarcrm and make sure to get in touch with the module creators for any insight.
Based on the response, we have updated the permission to the necessary directories. Upon further investigation, we observed that the same error is appearing in the logs and the directory /var/www/html/ali1300/cache/mlp_temp/ is empty. We are assuming that copying files from a non-existing directory is failing while installing the plugin and hence the error.
Also, we are wondering why are we trying to copy the files from the cache folder at the time of installing the plugin.
Kindly help us with a solution to install the plugin on our application.
3 months ago
Hi Team,
Do you have any update on this as our trial period is near to end.
3 months ago
Hello,
I was just about to contact you. Unfortunatly I'm unable to reproduce the error on my end based on the given information. I would suggest we arrange a short Teams Meeting beginning of next week to have a closer look. I sent you an email with some meeting options but feel free to suggest a time slot as well.
BR, Tobias Haag