Closed (fixed)
Project:
Provision CiviCRM
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2011 at 13:31 UTC
Updated:
21 Sep 2012 at 18:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
mrfelton commentedI've added this into the civicrm_config_update task, which also gets called on verification.
Comment #2
mrfelton commentedSlightly revised
Comment #3
bgm commentedThanks for the patch.
I reworked it a bit and committed it to 6.x-1.x:
http://drupalcode.org/project/provision_civicrm.git/commit/fdd888c
* added the code in _provision_civicrm_fixpermissions(), which is called from Verify
* used provision_file()->unlink() instead of unlink()
I also did a few tests. This bug is hard to reproduce, although I have seen it in the past. I suspect it's one of those bugs where it will depend on who created the template_c/en_US/ directory. From the tests I did, even when the directory is created by Apache, it gets correct setgid permissions and the aegir user can delete the directory.
When those permissions are correct, Verify calls 'civicrm_cache_clear', which deletes the ConfigAndLog directory (including the Config.IDS.ini).
When the Config.IDS.ini causes an Apache 500 page error, it's usually because aegir could not delete the ConfigAndLog directory during civicrm_cache_clear, and in those cases, explicitly deleting the Config.IDS.ini will not help.
mrfelton: when you encountered that bug, was it on sites created with an old version of provision_civicrm? Can you check if you could reproduce the bug before/after this patch?
Comment #4
mrfelton commentedThis needs to happen when you run the update config command too. Patch attached.
Comment #5
pauleb commentedThanks folks! I got into this problem the second time and of course forgot how to solve it.
btw: The 6.x-1.x-beta1 is getting a bit old. Is there a -dev Version to download, should I git clone and work with the current HEAD or is applying the patches from the issue queues the way to get the best working version?
But nonetheless thanks for this great module and this patch!
Comment #6
mrfelton commented@pauleb you should probably use 6.x-1.x from git, with several patches applied!
Comment #7
bgm commentedPerhaps hi-jacking this old bug, but I recently had a weird issue where the site was including files from an older platform (during migrate) because the ConfigIDS had not been deleted. - causing "cannot redeclare function ..." (getVersion or stuff like that).
Comment #8
bgm commentedCommitted to 6.x-1.x more strict deletion of the Config.IDS.ini files. See: #1778254: Cannot redeclare civicrmversion().