Module Load & Change Fails

I am trying to change & upload modules. I create a module & it wont deploy. I download & then upload to install & I get to 29%. Error reads Failed to copy cache/upgrades/temp/uFUHco/icons custom/themes
I’ve tried a variety of permissions thinking this may be the issue to no avail. It if helps, the amendments I’ve made to other modules show as taken but don’t show up for use & I cant upload a logo.
Thats what made me think permissions.

It sounds like the path the module is trying to copy to is not existing or has bad permissions. Have you checked the path and where you are copying the files to/from and ensured permissions are correct?

Thanks. What permissions should it have Will.

bump

You need to update your permissions for the whole instance. the following is one common set of permissions. but this is for linux.

chown -R www-data:www-data .
chmod -R 755 .
chmod -R 775 cache custom modules themes data upload config_override.php

you may have a different user and group for the web server. so you would need to update these accordingly

also be worth updating the config.php file

array (
‘dir_mode’ => 1517,
‘file_mode’ => 420,
‘user’ => ‘www-data’,
‘group’ => ‘www-data’,
),

again the user and group needs to be set to your web servers user and group. this might be the above but it depends on the server setup.

Ian

I’ve made those changes & no joy. This is on the log if it helps.
Tue Apr 28 15:15:03 2015 [11578][1][FATAL] Job 8cb65255-96a6-346e-a94d-553f95e548ce (Optimise AOD Index) failed in CRON run

are you able to check the apache error log and see if there is anything in there ?

Ian.

Never thought of that
Tue Apr 28 15:12:52.670010 2015] [:error] [pid 29499] [client 192.168.2.10:58451] PHP Notice: Undefined index: screen_height in /var/www/html/suitecrm/modules/Calendar/processScreenSize.php on line 10, referer: http://192.168.2.25/suitecrm/index.php?module=Home&action=index

[Tue Apr 28 15:14:22.182371 2015] [:error] [pid 11558] [client 192.168.2.10:58482] PHP Warning: dir(/var/www/html/suitecrm/upload/upgrades/temp/JhLUvZ/icons): failed to open dir: No such file or directory in /var/www/html/suitecrm/include/dir_inc.php on line 55, referer: http://192.168.2.25/suitecrm/index.php?module=Modu$

neither of these have helped point to the problem.

this does make it sound like its permissions somewhere, unless there is a issue within the package which you are trying to upload. e.g the file doesnt exist in the package.

more likely its the permissions in the cache folder rather than the package. are you able to check the permissions manually on some of the files within the cache folder ?
Ian.

1 Like

These are the permissions in suitecrm/cache
drwxrwsr-x 2 www-data www-data 4096 Apr 28 15:14 Relationships
drwxrwsr-x 3 www-data www-data 4096 Apr 13 13:36 cache
drwxrwsr-x 2 www-data www-data 4096 Apr 28 15:14 dashlets
drwxrwsr-x 3 www-data www-data 4096 Apr 14 16:38 diagnostic
drwxrwsr-x 5 www-data www-data 4096 Apr 13 13:35 htmlclean
drwxrwxr-x 2 www-data www-data 4096 Apr 28 15:14 images
drwxrwxr-x 3 www-data www-data 4096 Apr 23 13:21 include
drwxrwsr-x 20 www-data www-data 4096 Apr 28 15:14 jsLanguage
drwxrwxr-x 2 www-data www-data 4096 Apr 13 13:28 layout
drwxrwxr-x 92 www-data www-data 4096 Apr 16 14:03 modules
drwxrwxr-x 2 www-data www-data 4096 Apr 13 13:28 pdf
drwxrwsr-x 5 www-data www-data 4096 Apr 13 13:35 smarty
drwxrwxr-x 4 www-data www-data 4096 Mar 11 13:57 themes
drwxrwxr-x 3 www-data www-data 4096 Apr 13 17:24 upgrades
drwxrwxr-x 2 www-data www-data 4096 Apr 13 13:28 xml

in suitecrm/cache/cache
drwxrwsr-x 3 www-data www-data 4096 Apr 13 13:36 modules

in suitecrm/cache/cache/modules
drwxrwsr-x 2 www-data www-data 4096 Apr 13 13:36 Schedulers

they look fine from what I can see. what about the permissions within

custom/themes

Ian.