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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 503 Service Unavailable error after migrating hosting accounts
Pages: [1]

Author Topic: 503 Service Unavailable error after migrating hosting accounts  (Read 5690 times)

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
503 Service Unavailable error after migrating hosting accounts
July 29, 2009, 09:55:34 am
I am moving a Drupal 6.13/Civicrm 2.2.7 from one web hosting account to another (both accounts are on the same web hosting company).

Everything works . . . until I enable the CiviCRM module under admin/build/modules. As soon as CiviCRM is enabled, the entire site gets a "503 Service Unavailable" error. I am not able to do anything with the site until I disable Civicrm.

To migrate, I changed the following in civicrm.settings.php:

Database username and password
base url
civicrm root file paths

Am I missing some key migration steps? Is there documentation on how to move CiviCRM 2.2.x from one server to another?

Thanks!

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: 503 Service Unavailable error after migrating hosting accounts
July 29, 2009, 12:54:59 pm
UPDATE:

The cause of the error seems to be in the CiviCRM database itself. When I intentionally rename civicrm.settings.php to some other name, the 503 error goes away and then civicrm complains about not being able to find civicrm.settings.php

When I restore civicrm.settings.php, I end up with a 503 error immediately. It seems that I have to clear something from the newly migrated database. Any clue as to what I should clear/change in the database?

Thanks!

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: 503 Service Unavailable error after migrating hosting accounts
July 29, 2009, 01:15:18 pm

Please check the apache error logs to get more information on the 503 error. That should give you and us a bit more of a clue. Seems like u r running out of memory or execution time

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

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: 503 Service Unavailable error after migrating hosting accounts
July 29, 2009, 01:26:07 pm
Error logs are not giving me anything to go on . . .

I noticed that since I enabled CiviCRM, my drupal database grew from 1.24MB to 59.1MB . . . YIKES!

What could be causing this?

Here is the error log from one of the 503s (I changed the IP and domain name):

Code: [Select]
POST /admin/build/modules/list/confirm HTTP/1.1
2009-07-29 12:46:30.951 [NOTICE] [11.11.11.11:33909-0#APVH_www.myorg.org] Redirect: #1, URL: /index.php
2009-07-29 12:56:21.873 [NOTICE] [11.11.11.11:35590-0#APVH_www.myorg.org] connection to [uds://tmp/lshttpd/APVH_www.myorg.org_Suphp.sock] on request #0, confirmed: 1, Connection reset by peer!
2009-07-29 12:56:21.873 [NOTICE] [11.11.11.11:35590-0#APVH_www.myorg.org] oops! 503 Service Unavailable
2009-07-29 12:56:21.873 [NOTICE] [11.11.11.11:35590-0#APVH_www.myorg.org] Content len: 0, Request line:
GET / HTTP/1.1

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: 503 Service Unavailable error after migrating hosting accounts
July 29, 2009, 01:33:01 pm

not sure. your best bet would be to hire someone from http://civicrm.org/professional/

thanx

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

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: 503 Service Unavailable error after migrating hosting accounts
July 29, 2009, 01:36:13 pm
Thanks lobo. The bloat in my Drupal database is the watchdog table filling up with errors.

I will probably just do a fresh install and reconfigure everything, because what should be a simple migration seems to be more time consuming than just building the damn thing fresh all over again.

Chime back if you get any other ideas or sugestions. Thanks again for your time.


linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: 503 Service Unavailable error after migrating hosting accounts
July 29, 2009, 01:48:44 pm
Here is one of the watchdog errors:

Code: [Select]
a:4:{s:6:"%error";s:7:"warning";s:8:"%message";s:187:"is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/home/[b]OLD_SERVER_ACCOUNT[/b]) is not within the allowed path(s): (/home/NEW_SERVER_ACCOUNT/:/tmp:/usr/local/lib/php/)";s:5:"%file";s:89:"/home/bmg/domains/domain.org/public_html/sites/all/modules/civicrm/CRM/Utils/File.php";s:5:"%line";i:109;}
So . . . the error is due to CiviCRM still looking in the old path for something. How do I correct this?

Thanks!

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: 503 Service Unavailable error after migrating hosting accounts
July 29, 2009, 02:17:24 pm
I went into PHPMyAdmin and searched the entire CiviCRM DB for my old domain info: it was saved in the civicrm_domain table. I corrected it and that resolved my 503 errors! Yay!

However, now I get this error when accessing /civicrm

Code: [Select]
Fatal error: Uncaught exception 'Exception' with message 'Please make sure the IDS/tmp folder is writable' in /home/.../public_html/sites/all/modules/civicrm/packages/IDS/Monitor.php:187 Stack trace: #0
I searched this error and made the sites/default/files/civicrm/upload directory writable. Still no luck. Suggestions?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 503 Service Unavailable error after migrating hosting accounts

This forum was archived on 2017-11-26.