Answers.Body: <p>I updated the Drupal core to version 7.54 using "drush upc", which reported pending database updates, so I also did "drush updatedb".  The Drupal core update also caused several "projects" to be updated as well.</p>
  
  <p>All of this seems to have cleared the problem I originally reported – I no longer see a long delay when I first log in and click CiviCRM.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-12T11:04:22.677Z
Answers.LastActivityDate: 2017-03-12T11:04:22.677Z
Answers.UserDisplayName: feralfruitfreak
Body: <p>I am managing a Drupal site and when I first log in and click CiviCRM menu link, there is a long delay followed by this message:</p>
  
  <blockquote>
    <p>Service Temporarily Unavailable
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
    Please try again later.</p>
  </blockquote>
  
  <p>I have increased the PHP max execution time, and it did help to eliminate this message, but the message is happening again.  I also increased the memory limit to huge.</p>
  
  <p>Can someone tell me how to set some debugging or logging to show me what exactly CiviCRM is doing during this delay?</p>
  
  <p>Drupal 7.5.2.  MySQL 5.5.52-MariaDB.  PHP 5.6.30 as FPM.  CiviCRM 4.7.16.</p>
  
  <p>thanks!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-08T09:40:22.310Z
Comments.Text: I have seen something similar to this but perhaps not the same.  This can happen when the Drupal user and contact in Civi don't match - then Civi hangs looking for your dashboard which it can't find because of the mismatch. The tables to check are civicrm_uf_check and the Drupal table users.  This should be taken care of by Administer/Users and Permissions/Synchronise Users to Contacts but I've seen problems there in the past.
Comments.UserDisplayName: Andy Clark
Tags: <drupal><dashboard>
Title: first click to reach CiviCRM dashboard results in long delay and error message
ThreadText: # first click to reach CiviCRM dashboard results in long delay and error message
  
  (Asked by: username_0 on 2017-03-05)
  
  I am managing a Drupal site and when I first log in and click CiviCRM menu link, there is a long delay followed by this message:
  
  > Service Temporarily Unavailable
  > The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
  > Please try again later.
  
  I have increased the PHP max execution time, and it did help to eliminate this message, but the message is happening again. I also increased the memory limit to huge.
  
  Can someone tell me how to set some debugging or logging to show me what exactly CiviCRM is doing during this delay?
  
  Drupal 7.5.2. MySQL 5.5.52-MariaDB. PHP 5.6.30 as FPM. CiviCRM 4.7.16.
  
  thanks!
  
  **Tags:** drupal, dashboard
  
  > **Comments:**
  > **username_1**: I have seen something similar to this but perhaps not the same.  This can happen when the Drupal user and contact in Civi don't match - then Civi hangs looking for your dashboard which it can't find because of the mismatch. The tables to check are civicrm_uf_check and the Drupal table users.  This should be taken care of by Administer/Users and Permissions/Synchronise Users to Contacts but I've seen problems there in the past.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-03-12. Score: 1
  
  I updated the Drupal core to version 7.54 using "drush upc", which reported pending database updates, so I also did "drush updatedb". The Drupal core update also caused several "projects" to be updated as well.
  
  All of this seems to have cleared the problem I originally reported – I no longer see a long delay when I first log in and click CiviCRM.
  
  
  ---
  
  