#4805 - Delivers 500 Server Error Across All SugarCRM Modules Once Installed
After the module is installed, you're unable to Configure the settings and are served a 500 Server Error. Multiple users are impacted and receive the same 500 Error across all SugarCRM Modules.
a year ago
Hello Max Sorry about the inconvenience, Could you tell us which Sugar and Addon Version you are using. Did you follow the installation guide: https://www.sugaroutfitters.com/docs/kinamu-chatgpt-sugarcrm/admin-guide
Sometimes a Rebuild of the JS Groupings and clearing of the brower cache is necessary.
If you want to we could use a teams session to take a look. We look forward to hearing back from you.
Kind regards, Kinamu
a year ago
No response, closed
3 months ago
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.