Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Error restoring SugarCRM from backup

  1. #1
    nmcminn is offline Member
    Join Date
    Sep 2007
    Posts
    7

    Default Error restoring SugarCRM from backup

    I am trying to move a SugarCRM instance from the on-demand environment to one of our internal servers and am running into some issues. Sugar sent us a zip archive of the web application and a snapshot of the DB. We're only setting it up so we can get some contact and other data out of the system and for retention purposes, so we decided to try running it on a recent XAMPP bundle on an old test server. We use XAMPP pretty regularly for setting up quick dev or test environments and it has worked well in the past.

    Our config.php has been edited to reflect the new hostname and DB settings, and from what I can tell everything is configured properly. Our software versions are as follows:

    SugarCRM 5.5.4
    Apache 2.2.11
    PHP 5.2.9
    MySQL 5.1.49
    Windows Server 2003

    According to the release notes for 5.5.4 express the versions above are all supported for our version of SugarCRM.:

    http://www.sugarcrm.com/crm/support/...tes_5.5.4.html

    So, all was looking good until we tried to hit the index page. At this point we were greeted with the error at the bottom of this post. Nothing but the error is displayed on the page.

    Any suggestions of what to check? The only change we made to the application archive delivered to us by SugarCRM is to config.php (DB settings and hostname).

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\ret\config.php:1) in C:\xampp\htdocs\ret\include\MVC\SugarApplication.p hp on line 468

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\ret\config.php:1) in C:\xampp\htdocs\ret\include\MVC\SugarApplication.p hp on line 468

    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ret\config.php:1) in C:\xampp\htdocs\ret\include\utils.php on line 2446

    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ret\config.php:1) in C:\xampp\htdocs\ret\include\MVC\SugarApplication.p hp on line 113
    Last edited by nmcminn; 2011-01-13 at 01:18 PM.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Error restoring SugarCRM from backup

    To tips.

    Edit config.php and make sure there is no a blank line or space at the top of file.
    Make sure all files under sugarcrm folder are writable.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    nmcminn is offline Member
    Join Date
    Sep 2007
    Posts
    7

    Default Re: Error restoring SugarCRM from backup

    Thanks for the quick response!

    I just checked both of these and they are correct. Every file in the installation is writable, and there are no blank lines or spaces at the top of config.php.

    Still getting the same error.

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Error restoring SugarCRM from backup

    Try again and save the entire page as html file and attach it into your next post.
    Make sure there is no error message at the tail of apache error log.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Error restoring SugarCRM from backup

    Also check the session_dir entry in your config.php, it might be pointing to a directory that existed on the old server, but not on the new one.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    nmcminn is offline Member
    Join Date
    Sep 2007
    Posts
    7

    Default Re: Error restoring SugarCRM from backup

    Checked the cache dir. It was wrong, but correcting it did not solve the problem. Thanks though!

  7. #7
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Error restoring SugarCRM from backup

    Did you mean to say session_dir? Or are you actually referring to the cache dir?
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  8. #8
    nmcminn is offline Member
    Join Date
    Sep 2007
    Posts
    7

    Default Re: Error restoring SugarCRM from backup

    André, there are no errors in the Apache logs. Pardon my ignorance (I don't know much about Sugar), but is there a way to crank up the log level so it might spit out some useful information?

    The index.php page only shows the errors I pasted in above. Viewing the page source simply shows the same errors surrounded by some <b> blocks. No real content.

  9. #9
    nmcminn is offline Member
    Join Date
    Sep 2007
    Posts
    7

    Default Re: Error restoring SugarCRM from backup

    Quote Originally Posted by Angel View Post
    Did you mean to say session_dir? Or are you actually referring to the cache dir?
    Ah, whoops. I was looking at the cache_dir. The session dir is set as follows:

    'session_dir' => '',

  10. #10
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Error restoring SugarCRM from backup

    That should be fine.

    Here is a trick worth trying.

    Change 'installer_locked' in your config.php from true to false, then bring up http://your_sugar_url/install.php

    Proceed through the install wizard up until the page immediately following the license screen. That might yield more useful details about the problem. Do NOT proceed through the install as there is danger you might overwrite your existing database.

    Once done, change the config.php setting back to true.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sugarcrm restoring
    By prajeesh in forum Help
    Replies: 1
    Last Post: 2009-09-09, 06:33 AM
  2. Restoring Backup
    By chrislynch8 in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2008-03-12, 08:48 PM
  3. Restoring Backup
    By sreshtrams in forum Developer Help
    Replies: 3
    Last Post: 2007-06-30, 09:32 PM
  4. Replies: 0
    Last Post: 2006-01-04, 08:18 PM
  5. Restoring SugarCRM 3.5.1a
    By jnovak in forum Help
    Replies: 0
    Last Post: 2005-12-16, 06:21 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
  •