Failed to copy cache/upgrades/temp/ while uploading package with customisations

Hi All

I have done some customisations and tried to install via package and i get

Failed to copy cache/upgrades/temp/1Zv9lg/custom/Extension/modules/Accounts/Ext/LogicHooks/logichook.ext.php to custom/Extension/modules/Accounts/Ext/LogicHooks/logichook.ext.php.

        Can any one please suggest to fix this.

This is my manifest.php file.

<?php

$manifest = array (

  'built_in_version' => '7.6.2.1',

  'acceptable_sugar_versions' =>

  array (

    0 => '7.6.2.1',

  ),

  'acceptable_sugar_flavors' =>

  array (

    0 => 'PRO',

    1 => 'CORP',

    2 => 'ENT',

    3 => 'ULT',

  ),

  'readme' => '',

  'key' => '',

  'author' => 'Test',

  'description' => 'Test For Accounts and Leads',

  'icon' => '',

  'is_uninstallable' => true,

  'name' => 'Test For Accounts and Leads',

  'published_date' => '2016-06-20 12:20:03',

  'type' => 'module',

  'version' => 1466425206,

  'remove_tables' => 'prompt',

);

$installdefs = array (

  'id' => 'TestForAccountsandLeads',

  'relationships' =>

  array (

  ),

  'custom_fields' =>

  array (

  

  ),

  'copy' =>

  array (

    0 => array (

      'from' => '<basepath>/custom/Extension/modules/Accounts/Ext/LogicHooks/logichook.ext.php',

      'to' => 'custom/Extension/modules/Accounts/Ext/LogicHooks/logichook.ext.php',

    ),

    1 => array (

      'from' => '<basepath>/custom/modules/Accounts/VAT_hook.php',

      'to' => 'custom/modules/Accounts/VAT_hook.php',

    ),

    2 => array (

      'from' => '<basepath>/custom/modules/Accounts/clients/base/views/record/record.js',

      'to' => 'custom/modules/Accounts/clients/base/views/record/record.js',

    ),

    3 => array (

      'from' => '<basepath>/custom/modules/Accounts/clients/base/views/create-actions/create-actions.js',

      'to' => 'custom/modules/Accounts/create-actions/create-actions.js',

    ),

    4 => array (

      'from' => '<basepath>/custom/modules/Leads/clients/base/layouts/convert-panel/convert-panel.js',

      'to' => 'custom/modules/Leads/clients/base/layouts/convert-panel/convert-panel.js',

    ),

    5 => array (

      'from' => '<basepath>/custom/Extension/modules/Accounts/Ext/Vardefs/add_vat_duplicate.php',

      'to' => 'custom/Extension/modules/Accounts/Ext/Vardefs/add_vat_duplicate.php',

    ),

    6 => array (

      'from' => '<basepath>/custom/modules/Accounts/clients/base/views/dupecheck-list/dupecheck-list.php',

      'to' => 'custom/modules/Accounts/clients/base/views/dupecheck-list/dupecheck-list.php',

    ),

    7 => array (

      'from' => '<basepath>/getVatData.php',

      'to' => 'getVatData.php',

    ),

  

  ),

);

Regards

Sidhu

Parents
  • Have you already checked permissions of that files? Try to set 664 on files with chmod.

    Next you can check the owner, and try to set the user that apache use, il could be www-data, but all depends on your server environment.

    You can also upload the package and stop before install button appear, try to set 664 to files that it has to overwrite and finally install.

    sudo chmod -R 664 custom/Extension/modules/Accounts/Ext/LogicHooks/logichook.ext.php custom/modules/Accounts/VAT_hook.php custom/modules/Accounts/clients/base/views/record/record.js custom/modules/Accounts/create-actions/create-actions.js custom/modules/Leads/clients/base/layouts/convert-panel/convert-panel.js custom/Extension/modules/Accounts/Ext/Vardefs/add_vat_duplicate.php custom/modules/Accounts/clients/base/views/dupecheck-list/dupecheck-list.php getVatData.php

    Hope this can help you.

Reply
  • Have you already checked permissions of that files? Try to set 664 on files with chmod.

    Next you can check the owner, and try to set the user that apache use, il could be www-data, but all depends on your server environment.

    You can also upload the package and stop before install button appear, try to set 664 to files that it has to overwrite and finally install.

    sudo chmod -R 664 custom/Extension/modules/Accounts/Ext/LogicHooks/logichook.ext.php custom/modules/Accounts/VAT_hook.php custom/modules/Accounts/clients/base/views/record/record.js custom/modules/Accounts/create-actions/create-actions.js custom/modules/Leads/clients/base/layouts/convert-panel/convert-panel.js custom/Extension/modules/Accounts/Ext/Vardefs/add_vat_duplicate.php custom/modules/Accounts/clients/base/views/dupecheck-list/dupecheck-list.php getVatData.php

    Hope this can help you.

Children
No Data