Forum Discussion

yxyon_10316's avatar
yxyon_10316
Icon for Nimbostratus rankNimbostratus
Jun 22, 2017

Visual policy editor can time out when you edit some complex policies

I post my issue and the workaround that I have found to help people who have the same problem.

 

Visual policy editor can time out when you edit some complex policies, possibly those that assign many resources.

 

The workaround is to change the max_execution_time in php.ini (Known issues 386277 on APM 11.2.x.) and setTimeout in a js script templateDialogue.js to a higher value. The default is 60. Changing it to 120 seems to work.

 

To perform the workaround, take these steps:

 

  • Mount /usr as read-write by typing this at the command line: mount -o remount,rw /usr
  • Edit the /usr/local/lib/php.ini file, looking for max_execution_time and changing the value to 120 (should be 60).
  • Type this at the command line: bigstart restart httpd
  • Put /usr back into the original state by typing this at the command line: mount -o remount,ro /usr
  • Edit the /var/sam/www/admin/vpe2/public/js/templateDialogue/templateDialogue.js file, looking for line 304 and changing the value to 120000 (should be 60000).