CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • File Cleanup in media\civicrm\configandlog
Pages: [1]

Author Topic: File Cleanup in media\civicrm\configandlog  (Read 1621 times)

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
File Cleanup in media\civicrm\configandlog
October 03, 2013, 11:31:48 am
One of our client sites has over a gig in the ConfigandLog directory - it appears that the files are not being cleaned out during file cleanup (and this is not an unknown issue), but my concern is how many of these files do I need to keep around and what function do they serve? The client doesn't have unlimited resources for an unlimited amount of storage on the server, so I'd like to set up some sort of maintenance schedule for the files and their removal.

Thanks in advance,
Barbara

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: File Cleanup in media\civicrm\configandlog
October 04, 2013, 01:31:32 am

depends on your data archival policy. In most cases that file should not be growing at too fast a rate, if it does you should check and figure out what is happening and why.

I'd probably keep those logs around for at least a week or two before recycling the disk space etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: File Cleanup in media\civicrm\configandlog
October 04, 2013, 07:44:07 am
Lobo,

Could running Scheduled Jobs more frequently account for the increase? I've got files dating back a few months in there, so I'm going to remove all but the most recent 2.

Is there a setting I'm forgetting to use when configuring new sites, re: archive policy?

Thanks,
B.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: File Cleanup in media\civicrm\configandlog
October 05, 2013, 02:29:49 am

1. i would check the logs and analyse the errors there

2. no setting for this as yet

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: File Cleanup in media\civicrm\configandlog
October 05, 2013, 03:02:46 pm
Thanks.  BTW, Paul Delbar says I've been 'loboized' to help with Joomla / Civi integration. Happy to help as long as y'all remember I'm not a developer, but more of an intermediate to advanced end-user (admin).  ;D

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: File Cleanup in media\civicrm\configandlog
October 07, 2013, 12:46:04 pm
Lobo,

I downloaded one of the larger log files and I see a couple of things but I don't really know how to interpret them.

There are a couple of entries that indicate a possible session error:

Code: [Select]
[info] $Fatal Error Details = Array
(
    [message] => We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site adminstrator for assistance.<br /><br />Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.<br /><br />Error type: Could not find a valid session key.
    [code] =>
)


Oct 01 04:22:54  [info] $backTrace = #0 /home/ipca/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(315): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/ipca/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(278): CRM_Core_Error::fatal("We can't load the requested web page. This page requires cookies to be enable...")
#2 /home/ipca/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(186): CRM_Core_Controller->key("CRM_Contribute_Controller_Contribution", TRUE, FALSE)
#3 /home/ipca/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Controller/Contribution.php(53): CRM_Core_Controller->__construct("CiviSubmit for Payment", "null")
#4 /home/ipca/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(287): CRM_Contribute_Controller_Contribution->__construct("CiviSubmit for Payment", TRUE, "null", NULL, "false")
#5 /home/ipca/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(70): CRM_Core_Invoke::runItem((Array:15))
#6 /home/ipca/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
#7 /home/ipca/public_html/components/com_civicrm/civicrm.php(85): CRM_Core_Invoke::invoke((Array:3))
#8 /home/ipca/public_html/components/com_civicrm/civicrm.php(11): civicrm_invoke()
#9 /home/ipca/public_html/libraries/joomla/application/component/helper.php(383): require_once("/home/ipca/public_html/components/com_civicrm/civicrm.php")
#10 /home/ipca/public_html/libraries/joomla/application/component/helper.php(351): JComponentHelper::executeComponent("/home/ipca/public_html/components/com_civicrm/civicrm.php")
#11 /home/ipca/public_html/includes/application.php(197): JComponentHelper::renderComponent("com_civicrm")
#12 /home/ipca/public_html/index.php(42): JSite->dispatch()
#13 {main}


And there are a number of long entries that appear to be the data from custom profiles being submitted through CiviContribute to register for an event. The log appears to have not only the individual entrants' data, but the full code of the profile including things like all countries, states, etc.

Ideas??

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: File Cleanup in media\civicrm\configandlog
October 07, 2013, 01:39:02 pm

You'll need to try and reproduce the error and see what is happening and why

alternatively, you can look at the backtrace and reason it out from there

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: File Cleanup in media\civicrm\configandlog
October 08, 2013, 07:34:36 am
Where would I find the backtrace, or would that involve turning on debugging and trying to replicate the error? I wouldn't even know where to try and replicate the error as the log section I listed says it is a core CiviCRM error?

I'm at a loss.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • File Cleanup in media\civicrm\configandlog

This forum was archived on 2017-11-26.