Cannot Upload Customer Module

Hi All

Spent the day creating a shiny new customer module to upload called facts.

When it was completed and I click deploy i received:

An error has occurred during deploy process, your package may not have installed correctly

So I then downloaded the zip file and attempted to upload it via the module loader.

for which I received

Specified directory '' for zip file 'upload://Fact2018_09_20_151910.zip' extraction does not exist.

I have tried restarting my server. I am really stumped why this is occurring. I cannot find any errors in the logs.

Thanks

Princeps

Focus on the first error, that’s when things started to go wrong.

Make sure you are checking both your logs:

suitecrm.log.
php_errors.log

There should be more clues in one of those.

This could simply be a permissions issue on your upload folder.

1 Like

Hi pgr

The permissions are set as 770 for the upload file and I had the file permissions rechecked today.

When I attempt to deploy a custom module I get the following in the Suite CRM log.

Fri Sep 21 10:47:23 2018 [27193][1][FATAL] ERROR: rmdir_recursive(): argument is not a file or a dir.
Fri Sep 21 10:47:51 2018 [27096][1][FATAL] ERROR: rmdir_recursive(): argument is not a file or a dir.

In the PHP error Log I get the following

Fri Sep 21 11:47:19.441668 2018] [:error] [pid 27193] ] script ‘/var/www/html/cache/index.php’ not found or unable to stat, referer: REDACTED/cache/themes/SuiteP/css/Dawn/style.css?v=ppTqWF1Z2LgrrSPGz-hUeA
[Fri Sep 21 11:47:23.693510 2018] [:error] [pid 27193] [client ] PHP Warning: chown(): Operation not permitted in /var/www/html/include/utils/sugar_file_utils.php on line 330, referer: REDACTED/index.php?module=ModuleBuilder&action=index&type=mb
[Fri Sep 21 11:47:26.425934 2018] [:error] [pid 27216] [client 2] PHP Warning: chown(): Operation not permitted in /var/www/html/include/utils/sugar_file_utils.php on line 330, referer: /index.php?module=ModuleBuilder&action=index&type=mb
[Fri Sep 21 11:47:26.425967 2018] [:error] [pid 27216] [client 2] PHP Warning: chgrp(): Operation not permitted in /var/www/html/include/utils/sugar_file_utils.php on line 359, referer: /index.php?module=ModuleBuilder&action=index&type=mb
[Fri Sep 21 11:47:51.362398 2018] [:error] [pid 25834] [client 8] script ‘/var/www/html/cache/index.php’ not found or unable to stat, referer: REDACTED/cache/themes/SuiteP/css/Dawn/style.css?v=SANegX0BUJEEjTJZhAAdTw
[Fri Sep 21 11:47:51.806000 2018] [:error] [pid 27096] [client ] PHP Warning: chown(): Operation not permitted in /var/www/html/include/utils/sugar_file_utils.php on line 330, referer: /index.php?module=ModuleBuilder&action=index&type=mb
[Fri Sep 21 11:47:53.470030 2018] [:error] [pid 27102] [client ] PHP Warning: chown(): Operation not permitted in /var/www/html/include/utils/sugar_file_utils.php on line 330, referer: /index.php?module=ModuleBuilder&action=index&type=mb
[Fri Sep 21 11:47:53.470061 2018] [:error] [pid 27102] [client ] PHP Warning: chgrp(): Operation not permitted in /var/www/html/include/utils/sugar_file_utils.php on line 359, referer: /index.php?module=ModuleBuilder&action=index&type=mb

When I try to upload a package I do not get an error code in the SUITE CRM log but I do find errors in the php error log

Fri Sep 21 11:53:49.446754 2018] [:error] [pid 27216] [client ] PHP Notice: Undefined variable: manifest_type in /var/www/html/ModuleInstall/PackageManager/PackageManager.php on line 729, referer: REDACTED/index.php?module=Administration&action=index
[Fri Sep 21 11:53:49.446757 2018] [:error] [pid 27216] [client 0] PHP Notice: Undefined variable: manifest_type in /var/www/html/ModuleInstall/PackageManager/PackageManager.php on line 729, referer: REDACTED/index.php?module=Administration&action=index
[Fri Sep 21 11:53:55.546199 2018] [:error] [pid 27228] [client ] PHP Warning: chown(): Operation not permitted in /var/www/html/include/utils/sugar_file_utils.php on line 330, referer: REDACTED /index.php?module=Administration&action=UpgradeWizard&view=module

Looking to see if I can located any similar errors.

SOLVED

I had the wrong user/group in the config.php file which you can find in the Suite CRM main directory.

I had

array (
‘dir_mode’ => 1527,
‘file_mode’ => 420,
‘user’ => ‘root’,
‘group’ => ‘root’,

I changed it too!

array (
‘dir_mode’ => 1527,
‘file_mode’ => 420,
‘user’ => ‘apache’,
‘group’ => ‘apache’,

(I run an apache server if you run a different one check)

Problem resolved!