Results 1 to 3 of 3

Thread: 6.4.0RC2 cache issue

  1. #1
    cefladental's Avatar
    cefladental is offline Sugar Community Member
    Join Date
    Jan 2010
    Location
    Charlotte, NC
    Posts
    51

    Default 6.4.0RC2 cache issue

    I am seeing the following over and over in my error log. I have verified that the permissions are good. I even went as far as CHMOD 777 -R to this directory with absolutely no luck.

    Code:
    Thu Jan 12 10:04:01 2012 [15360][-none-][ERROR] File cache/modules/Users/Uservardefs.php cannot be written to
    Thu Jan 12 10:04:01 2012 [15360][-none-][ERROR] File cache/modules/Users/Uservardefs.php cannot be written to
    Thu Jan 12 10:04:01 2012 [15360][-none-][ERROR] File cache/modules/Employees/Employeevardefs.php cannot be written to
    Thu Jan 12 10:04:01 2012 [15360][-none-][ERROR] File cache/modules/UserPreferences/UserPreferencevardefs.php cannot be written to
    Thu Jan 12 10:04:01 2012 [15360][-none-][ERROR] File cache/modules/UserPreferences/UserPreferencevardefs.php cannot be written to
    Thu Jan 12 10:04:01 2012 [15360][-none-][ERROR] File cache/modules/Administration/Administrationvardefs.php cannot be written to
    Thu Jan 12 10:04:01 2012 [15360][-none-][ERROR] File cache/modules/Administration/Administrationvardefs.php cannot be written to
    Thu Jan 12 10:05:01 2012 [15391][-none-][ERROR] File cache/modules/Users/Uservardefs.php cannot be written to
    Thu Jan 12 10:05:01 2012 [15391][-none-][ERROR] File cache/modules/Users/Uservardefs.php cannot be written to
    Thu Jan 12 10:05:01 2012 [15391][-none-][ERROR] File cache/modules/Employees/Employeevardefs.php cannot be written to
    Thu Jan 12 10:05:01 2012 [15391][-none-][ERROR] File cache/modules/UserPreferences/UserPreferencevardefs.php cannot be written to
    Thu Jan 12 10:05:01 2012 [15391][-none-][ERROR] File cache/modules/UserPreferences/UserPreferencevardefs.php cannot be written to
    Thu Jan 12 10:05:01 2012 [15391][-none-][ERROR] File cache/modules/Administration/Administrationvardefs.php cannot be written to
    Thu Jan 12 10:05:01 2012 [15391][-none-][ERROR] File cache/modules/Administration/Administrationvardefs.php cannot be written to
    Thu Jan 12 10:06:01 2012 [15446][-none-][ERROR] File cache/modules/Users/Uservardefs.php cannot be written to
    Thu Jan 12 10:06:01 2012 [15446][-none-][ERROR] File cache/modules/Users/Uservardefs.php cannot be written to
    Thu Jan 12 10:06:01 2012 [15446][-none-][ERROR] File cache/modules/Employees/Employeevardefs.php cannot be written to
    Thu Jan 12 10:06:01 2012 [15446][-none-][ERROR] File cache/modules/UserPreferences/UserPreferencevardefs.php cannot be written to
    Thu Jan 12 10:06:01 2012 [15446][-none-][ERROR] File cache/modules/UserPreferences/UserPreferencevardefs.php cannot be written to
    Thu Jan 12 10:06:01 2012 [15446][-none-][ERROR] File cache/modules/Administration/Administrationvardefs.php cannot be written to
    Thu Jan 12 10:06:01 2012 [15446][-none-][ERROR] File cache/modules/Administration/Administrationvardefs.php cannot be written to
    Thu Jan 12 10:07:01 2012 [15477][-none-][ERROR] File cache/modules/Users/Uservardefs.php cannot be written to
    Thu Jan 12 10:07:01 2012 [15477][-none-][ERROR] File cache/modules/Users/Uservardefs.php cannot be written to
    Thu Jan 12 10:07:01 2012 [15477][-none-][ERROR] File cache/modules/Employees/Employeevardefs.php cannot be written to
    Thu Jan 12 10:07:01 2012 [15477][-none-][ERROR] File cache/modules/UserPreferences/UserPreferencevardefs.php cannot be written to
    Thu Jan 12 10:07:01 2012 [15477][-none-][ERROR] File cache/modules/UserPreferences/UserPreferencevardefs.php cannot be written to
    Thu Jan 12 10:07:01 2012 [15477][-none-][ERROR] File cache/modules/Administration/Administrationvardefs.php cannot be written to
    Thu Jan 12 10:07:01 2012 [15477][-none-][ERROR] File cache/modules/Administration/Administrationvardefs.php cannot be written to
    Brett Power

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: 6.4.0RC2 cache issue

    Hi Brett,

    did you check your confog.php file for the correct default_permission settings?

    The look something like that:

    PHP Code:
      'default_permissions' => 
      array (
        
    'dir_mode' => 1528,
        
    'file_mode' => 432,
        
    'user' => '',
        
    'group' => '',
      ), 
    In a unix/linux system you should change it - depending from your local configuration to something like that:

    PHP Code:
      'default_permissions' => 
      array (
        
    'dir_mode' => 02775,
        
    'file_mode' => 0775,
        
    'user' => 'www-data',
        
    'group' => 'www-data',
      ), 
    where www-data is the user and group name of the apache user.

    Beneath the correct setting of the rights with
    chmod -R 775 <sugardir>
    you should set the ownership of the files with
    chown -R www-data:www-data <sugardir>
    where the first www-data is the user and the second www-data is the group of the apache user.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    cefladental's Avatar
    cefladental is offline Sugar Community Member
    Join Date
    Jan 2010
    Location
    Charlotte, NC
    Posts
    51

    Default Re: 6.4.0RC2 cache issue

    I had all of that done except for the config file. What is weird is that I copied the config file from the old production environment which did have www-data. I am at a loss as to how it was blanked out. Maybe I did that while troubleshooting another issue. Who knows.

    Good news is that it looks like the permissions issue has been resolved, again, and the scheduler is working. We'll see.

    Thanks.
    Brett Power

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Issue with Cache folder files!!!
    By naveen2k7 in forum Developer Help
    Replies: 7
    Last Post: 2010-12-03, 05:52 AM
  2. Cache issue on custom view...VERY STRANGE
    By ajlisowski in forum Help
    Replies: 2
    Last Post: 2010-10-14, 02:55 PM
  3. Conditional displayParams and cache issue
    By ivit in forum Developer Help
    Replies: 2
    Last Post: 2010-01-13, 03:17 PM
  4. Issue with language cache logic with 5.0 & 5.1
    By Vince in forum Developer Tutorials
    Replies: 2
    Last Post: 2008-10-03, 12:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •