Can not load a custom module

I am moving my suitecrm instance to a dockerized version … I had some issues with a custom module I created. I had some problem removing themodule from the destination server but now that I am trying to install it again, it wil not upload the zip package.

when I try to upload the package I get the following in the suitecrm.log which I can’t figure out what it means although there seem to e some fatal errors involving old upgrades…

Thu Oct 20 16:27:49 2022 [116][1][FATAL] dir() function return with another error: upload://upgrades/temp
#0  getBacktraceString() called at [/bitnami/suitecrm/include/dir_inc.php:236]
#1  findAllFiles(upload://upgrades/temp, Array (), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#2  findAllFiles(upload://upgrades, Array (), , zip) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManager.php:745]
#3  PackageManager->getPackagesInStaging() called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:415]
#4  PackageManagerDisplay::getDisplayScript(0) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:128]
#5  PackageManagerDisplay::buildPackageDisplay(<form name="the_form" enctype="multipart/form-data" action="index.php?module=Administration&view=module&action=UpgradeWizard" method="post"  >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr><td>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr><td style="white-space:nowrap; padding-right: 10px !important;">
Module
<input type="file" name="upgrade_zip" size="40" />
</td>
<td>
<input type=button class="button" value="Upload" onClick="document.the_form.upgrade_zip_escaped.value = escape( document.the_form.upgrade_zip.value );document.the_form.submit();" />
<input type=hidden name="run" value="upload" />
<input type=hidden name="upgrade_zip_escaped" value="" />
</td>
</tr>
</table></td></tr></table>
</form>, <input type=hidden name="run" value="upload" /><input type=hidden name="mode"/>, index.php?module=Administration&view=module&action=UpgradeWizard, Array ([0] => module)) called at [/bitnami/suitecrm/modules/Administration/UpgradeWizard.php:262]
#6  include_once(/bitnami/suitecrm/modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:823]
#7  SugarView->includeClassicFile(modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/views/view.classic.php:72]
#8  ViewClassic->display() called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:210]
#9  SugarView->process() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:432]
#10 SugarController->processView() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:363]
#11 SugarController->execute() called at [/bitnami/suitecrm/include/MVC/SugarApplication.php:101]
#12 SugarApplication->execute() called at [/bitnami/suitecrm/index.php:52]

Thu Oct 20 16:27:49 2022 [116][1][FATAL] dir() function return with another error: upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.12.5-restore
#0  getBacktraceString() called at [/bitnami/suitecrm/include/dir_inc.php:236]
#1  findAllFiles(upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.12.5-restore, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#2  findAllFiles(upload://upgrades/patch, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#3  findAllFiles(upload://upgrades, Array (), , zip) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManager.php:745]
#4  PackageManager->getPackagesInStaging() called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:415]
#5  PackageManagerDisplay::getDisplayScript(0) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:128]
#6  PackageManagerDisplay::buildPackageDisplay(<form name="the_form" enctype="multipart/form-data" action="index.php?module=Administration&view=module&action=UpgradeWizard" method="post"  >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr><td>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr><td style="white-space:nowrap; padding-right: 10px !important;">
Module
<input type="file" name="upgrade_zip" size="40" />
</td>
<td>
<input type=button class="button" value="Upload" onClick="document.the_form.upgrade_zip_escaped.value = escape( document.the_form.upgrade_zip.value );document.the_form.submit();" />
<input type=hidden name="run" value="upload" />
<input type=hidden name="upgrade_zip_escaped" value="" />
</td>
</tr>
</table></td></tr></table>
</form>, <input type=hidden name="run" value="upload" /><input type=hidden name="mode"/>, index.php?module=Administration&view=module&action=UpgradeWizard, Array ([0] => module)) called at [/bitnami/suitecrm/modules/Administration/UpgradeWizard.php:262]
#7  include_once(/bitnami/suitecrm/modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:823]
#8  SugarView->includeClassicFile(modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/views/view.classic.php:72]
#9  ViewClassic->display() called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:210]
#10 SugarView->process() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:432]
#11 SugarController->processView() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:363]
#12 SugarController->execute() called at [/bitnami/suitecrm/include/MVC/SugarApplication.php:101]
#13 SugarApplication->execute() called at [/bitnami/suitecrm/index.php:52]

Thu Oct 20 16:27:49 2022 [116][1][FATAL] dir() function return with another error: upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1-restore
#0  getBacktraceString() called at [/bitnami/suitecrm/include/dir_inc.php:236]
#1  findAllFiles(upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1-restore, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip,[2] => upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1.zip,[3] => upload://upgrades/patch/SuiteCRM-Upgrade-7.7.x-to-7.8.8.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#2  findAllFiles(upload://upgrades/patch, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip,[2] => upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1.zip,[3] => upload://upgrades/patch/SuiteCRM-Upgrade-7.7.x-to-7.8.8.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#3  findAllFiles(upload://upgrades, Array (), , zip) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManager.php:745]
#4  PackageManager->getPackagesInStaging() called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:415]
#5  PackageManagerDisplay::getDisplayScript(0) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:128]
#6  PackageManagerDisplay::buildPackageDisplay(<form name="the_form" enctype="multipart/form-data" action="index.php?module=Administration&view=module&action=UpgradeWizard" method="post"  >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr><td>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr><td style="white-space:nowrap; padding-right: 10px !important;">
Module
<input type="file" name="upgrade_zip" size="40" />
</td>
<td>
<input type=button class="button" value="Upload" onClick="document.the_form.upgrade_zip_escaped.value = escape( document.the_form.upgrade_zip.value );document.the_form.submit();" />
<input type=hidden name="run" value="upload" />
<input type=hidden name="upgrade_zip_escaped" value="" />
</td>
</tr>
</table></td></tr></table>
</form>, <input type=hidden name="run" value="upload" /><input type=hidden name="mode"/>, index.php?module=Administration&view=module&action=UpgradeWizard, Array ([0] => module)) called at [/bitnami/suitecrm/modules/Administration/UpgradeWizard.php:262]
#7  include_once(/bitnami/suitecrm/modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:823]
#8  SugarView->includeClassicFile(modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/views/view.classic.php:72]
#9  ViewClassic->display() called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:210]
#10 SugarView->process() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:432]
#11 SugarController->processView() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:363]
#12 SugarController->execute() called at [/bitnami/suitecrm/include/MVC/SugarApplication.php:101]
#13 SugarApplication->execute() called at [/bitnami/suitecrm/index.php:52]

Thu Oct 20 16:27:49 2022 [116][1][FATAL] dir() function return with another error: upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3-restore
#0  getBacktraceString() called at [/bitnami/suitecrm/include/dir_inc.php:236]
#1  findAllFiles(upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3-restore, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.7.x-to-7.8.8.zip,[2] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[3] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip,[4] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.12.5.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#2  findAllFiles(upload://upgrades/patch, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.7.x-to-7.8.8.zip,[2] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[3] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip,[4] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.12.5.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#3  findAllFiles(upload://upgrades, Array (), , zip) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManager.php:745]
#4  PackageManager->getPackagesInStaging() called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:415]
#5  PackageManagerDisplay::getDisplayScript(0) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:128]
#6  PackageManagerDisplay::buildPackageDisplay(<form name="the_form" enctype="multipart/form-data" action="index.php?module=Administration&view=module&action=UpgradeWizard" method="post"  >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr><td>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr><td style="white-space:nowrap; padding-right: 10px !important;">
Module
<input type="file" name="upgrade_zip" size="40" />
</td>
<td>
<input type=button class="button" value="Upload" onClick="document.the_form.upgrade_zip_escaped.value = escape( document.the_form.upgrade_zip.value );document.the_form.submit();" />
<input type=hidden name="run" value="upload" />
<input type=hidden name="upgrade_zip_escaped" value="" />
</td>
</tr>
</table></td></tr></table>
</form>, <input type=hidden name="run" value="upload" /><input type=hidden name="mode"/>, index.php?module=Administration&view=module&action=UpgradeWizard, Array ([0] => module)) called at [/bitnami/suitecrm/modules/Administration/UpgradeWizard.php:262]
#7  include_once(/bitnami/suitecrm/modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:823]
#8  SugarView->includeClassicFile(modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/views/view.classic.php:72]
#9  ViewClassic->display() called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:210]
#10 SugarView->process() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:432]
#11 SugarController->processView() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:363]
#12 SugarController->execute() called at [/bitnami/suitecrm/include/MVC/SugarApplication.php:101]
#13 SugarApplication->execute() called at [/bitnami/suitecrm/index.php:52]

Thu Oct 20 16:27:49 2022 [116][1][FATAL] dir() function return with another error: upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.22-restore
#0  getBacktraceString() called at [/bitnami/suitecrm/include/dir_inc.php:236]
#1  findAllFiles(upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.22-restore, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.7.x-to-7.8.8.zip,[2] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[3] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip,[4] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.12.5.zip,[5] => upload://upgrades/patch/SuiteCRM-Upgrade-7.4.x-to-7.5.3.zip,[6] => upload://upgrades/patch/SuiteCRM-Upgrade-7.5.x-to-7.7.8.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#2  findAllFiles(upload://upgrades/patch, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.7.x-to-7.8.8.zip,[2] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[3] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip,[4] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.12.5.zip,[5] => upload://upgrades/patch/SuiteCRM-Upgrade-7.4.x-to-7.5.3.zip,[6] => upload://upgrades/patch/SuiteCRM-Upgrade-7.5.x-to-7.7.8.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#3  findAllFiles(upload://upgrades, Array (), , zip) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManager.php:745]
#4  PackageManager->getPackagesInStaging() called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:415]
#5  PackageManagerDisplay::getDisplayScript(0) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:128]
#6  PackageManagerDisplay::buildPackageDisplay(<form name="the_form" enctype="multipart/form-data" action="index.php?module=Administration&view=module&action=UpgradeWizard" method="post"  >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr><td>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr><td style="white-space:nowrap; padding-right: 10px !important;">
Module
<input type="file" name="upgrade_zip" size="40" />
</td>
<td>
<input type=button class="button" value="Upload" onClick="document.the_form.upgrade_zip_escaped.value = escape( document.the_form.upgrade_zip.value );document.the_form.submit();" />
<input type=hidden name="run" value="upload" />
<input type=hidden name="upgrade_zip_escaped" value="" />
</td>
</tr>
</table></td></tr></table>
</form>, <input type=hidden name="run" value="upload" /><input type=hidden name="mode"/>, index.php?module=Administration&view=module&action=UpgradeWizard, Array ([0] => module)) called at [/bitnami/suitecrm/modules/Administration/UpgradeWizard.php:262]
#7  include_once(/bitnami/suitecrm/modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:823]
#8  SugarView->includeClassicFile(modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/views/view.classic.php:72]
#9  ViewClassic->display() called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:210]
#10 SugarView->process() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:432]
#11 SugarController->processView() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:363]
#12 SugarController->execute() called at [/bitnami/suitecrm/include/MVC/SugarApplication.php:101]
#13 SugarApplication->execute() called at [/bitnami/suitecrm/index.php:52]

Thu Oct 20 16:27:49 2022 [116][1][FATAL] dir() function return with another error: upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19-restore
#0  getBacktraceString() called at [/bitnami/suitecrm/include/dir_inc.php:236]
#1  findAllFiles(upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19-restore, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.7.x-to-7.8.8.zip,[2] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[3] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip,[4] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.12.5.zip,[5] => upload://upgrades/patch/SuiteCRM-Upgrade-7.4.x-to-7.5.3.zip,[6] => upload://upgrades/patch/SuiteCRM-Upgrade-7.5.x-to-7.7.8.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#2  findAllFiles(upload://upgrades/patch, Array ([0] => upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.10.1.zip,[1] => upload://upgrades/patch/SuiteCRM-Upgrade-7.7.x-to-7.8.8.zip,[2] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.11.19.zip,[3] => upload://upgrades/patch/SuiteCRM-Upgrade-7.10.x-to-7.11.3.zip,[4] => upload://upgrades/patch/SuiteCRM-Upgrade-7.11.x-to-7.12.5.zip,[5] => upload://upgrades/patch/SuiteCRM-Upgrade-7.4.x-to-7.5.3.zip,[6] => upload://upgrades/patch/SuiteCRM-Upgrade-7.5.x-to-7.7.8.zip), , zip) called at [/bitnami/suitecrm/include/dir_inc.php:262]
#3  findAllFiles(upload://upgrades, Array (), , zip) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManager.php:745]
#4  PackageManager->getPackagesInStaging() called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:415]
#5  PackageManagerDisplay::getDisplayScript(0) called at [/bitnami/suitecrm/ModuleInstall/PackageManager/PackageManagerDisplay.php:128]
#6  PackageManagerDisplay::buildPackageDisplay(<form name="the_form" enctype="multipart/form-data" action="index.php?module=Administration&view=module&action=UpgradeWizard" method="post"  >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr><td>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr><td style="white-space:nowrap; padding-right: 10px !important;">
Module
<input type="file" name="upgrade_zip" size="40" />
</td>
<td>
<input type=button class="button" value="Upload" onClick="document.the_form.upgrade_zip_escaped.value = escape( document.the_form.upgrade_zip.value );document.the_form.submit();" />
<input type=hidden name="run" value="upload" />
<input type=hidden name="upgrade_zip_escaped" value="" />
</td>
</tr>
</table></td></tr></table>
</form>, <input type=hidden name="run" value="upload" /><input type=hidden name="mode"/>, index.php?module=Administration&view=module&action=UpgradeWizard, Array ([0] => module)) called at [/bitnami/suitecrm/modules/Administration/UpgradeWizard.php:262]
#7  include_once(/bitnami/suitecrm/modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:823]
#8  SugarView->includeClassicFile(modules/Administration/UpgradeWizard.php) called at [/bitnami/suitecrm/include/MVC/View/views/view.classic.php:72]
#9  ViewClassic->display() called at [/bitnami/suitecrm/include/MVC/View/SugarView.php:210]
#10 SugarView->process() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:432]
#11 SugarController->processView() called at [/bitnami/suitecrm/include/MVC/Controller/SugarController.php:363]
#12 SugarController->execute() called at [/bitnami/suitecrm/include/MVC/SugarApplication.php:101]
#13 SugarApplication->execute() called at [/bitnami/suitecrm/index.php:52]

You can safely delete all of cache/upgrades/temp and try restarting the upgrade or upload.

If the errors persist I would suspect ownership/permissions issues on the cache directory.

Hi.
I did as you suggested and completely emptyed everything in the cache/upgrades/temp directory.
I also checked file permissions which were 755 for everything under cache/upgrades and even changed them to 775 .
this did not fix the issue. But then I saw in the log file some error related to upload://upgrades/temp … checked that directory and the ownership was wrong. Changed ownershit to the user running the apache server and it is now working. :smiley:

1 Like