Skip to content

Issues enabling rpow #16

@VangelisP

Description

@VangelisP

Hi all!

We've tried to install the rpow ext in one of our environments.

The current setup:

  • We got a master db and a replica db.
  • The replica db does have less tables (eg the caches tables) than the master db (we tried to minimize the replica size to be more efficient)
  • We got advanced logging enabled on a separate db (CIVICRM_LOGGING_DSN)
  • We did not enable or install Redis

What we did: We installed the rpow extension via the UI and then we configured it, as described on https://docs.civicrm.org/rpow/en/latest/install/#general in the civicrm.settings.php, as such:

if (!defined('CIVICRM_DSN')) {
  if (CIVICRM_UF === 'UnitTests' && isset($GLOBALS['_CV']['TEST_DB_DSN'])) {
    define('CIVICRM_DSN', $GLOBALS['_CV']['TEST_DB_DSN']);
  } else {
    //define('CIVICRM_DSN', 'mysql://localcivicrm:xxx79xVA3@localhost/iucncrm?new_link=true%%dbSSL%%');
    //require_once '/var/www/testcrm.iucn.org/html/vendor/civicrm/rpow/autoload.php';
    require_once '/var/www/testcrm.iucn.org/html/web/sites/testcrm.iucn.org/files/civicrm/ext/rpow/autoload.php';
    rpow_init([
      'masters' => ['mysql://xxxxx:yyyyy@localhost/myproddb?new_link=true%%CMSdbSSL%%'],
      'slaves' => ['mysql://rpow_user:yyyyyy@myreplica:3306/replicadb?new_link=true%%CMSdbSSL%%'],
      'cookieSigningKey' => 'asdf12344321fdsa',
    ]);    
  }
}

PS. We've used the cookieSigningKey value as seen in the code, just in case it helped.

While CiviCRM does boot up once, whenever we try to access a contact or navigate the first time it works fine (loads ok) but upon a refresh, we get a WSOD with a message on the watchdog: Error: Class "CRM_Utils_Signer" not found in _rpow_signer().

I am trying to figure out why we get this error and why it does load one time properly but not the second time, it's like it cannot bootload civicrm at that point.

Some of the excluded tables are: civicrm_managed, civicrm_extension, civicrm_cache, civicrm_job, civicrm_job_log, civicrm_menu, civicrm_setting

Could it be possible that this is due to some missing replica tables? I can't figure out why though.

@eileenmcnaughton perhaps you got any ideas?

Many many thanks all!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions