Results 1 to 6 of 6

Thread: Database restore

  1. #1
    angolanmade is offline Member
    Join Date
    Dec 2008
    Posts
    8

    Default Database restore

    I've been trying to upgrade my community version of the sugarcrm to 5.2 from the previous version (5.1) everytime I try to use the upgrade wizard in the admin panel it timesout and it gives me an error. I instead did a fresh install of 5.2 and now im trying to restore my database, however im not having any luck with.

    I've tried configuring the the config.php file on the fresh install (5.2) to link to my previous database, however i get the following error when i try to access my crm directory.

    Sugar CRM 5.2.0 Files May Only Be Used With A Sugar CRM 5.2.0 Database.

    I would greatly appreciate your help

  2. #2
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Database restore

    Usually there are structural changes between versions thus a db check prevents the usage of an old db with a new program. You have two options:

    If you have few data only you may transfer the data manually from your old db to the new one. phpmyadmin gives you a fairly comfortable ex- and import routine.

    If your system is bigger you need to check for the structural changes (new tables and fields). Then recreate the new fields and tables in your old db and change the table config. This should work but takes some time. And it is NOT recommended to try it on a live system.

    The easier way is to find out why the upgrade fails. I just ran one for testing puposes with a fairly large db and it worked without problems. So it is likely that your system configuration is the culprit.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  3. #3
    angolanmade is offline Member
    Join Date
    Dec 2008
    Posts
    8

    Default Re: Database restore/Upgrade 5.2

    Thanks for the quick reply, heres the error that i get when using the upgrade wizard.

    Warning: chmod() [function.chmod]: Permission denied in /htdocs/crm/include/utils/sugar_file_utils.php on line 196

    Specified directory '' for zip file '/htdocs/crm/cache/upload/SugarCE-Upgrade-5.1.0-to-5.2.0.zip' extraction does not exist.

    Thanks again

  4. #4
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Database restore/Upgrade 5.2

    try to set everything to 777. (chmod -r 777) Then run the upgrade. Afterwards please read the documentation which directories must have which permissions. This should fix your issue.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  5. #5
    angolanmade is offline Member
    Join Date
    Dec 2008
    Posts
    8

    Default Re: Database restore

    Roblaus:

    I appreciate your help, when you say "set everything to 777) which folders are you refering to? I set the permissions to writable on all the folders as per the instalation instructions. Which included the cache directory and all its files and sub-directories, additionally i've gone ahead and changed the permissions to the include folder and sub-directories to writable and still, im getting the same error!

  6. #6
    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: Database restore/Upgrade 5.2

    Quote Originally Posted by roblaus View Post
    try to set everything to 777. (chmod -r 777) Then run the upgrade. Afterwards please read the documentation which directories must have which permissions. This should fix your issue.
    Hi guys

    Instead of execute the command "chmod -R 777" (which contains security issues) you should identify the user and group under which the apache is running.
    Then you may execute the command as root:
    chown -R user.group /path/to/sugar

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-08-07, 12:32 PM
  2. Mysql Database restore issues,
    By ptemplin7 in forum Help
    Replies: 1
    Last Post: 2007-06-19, 10:40 PM
  3. Cross Platform Database Restore
    By silliwb in forum Help
    Replies: 4
    Last Post: 2006-09-22, 08:30 PM
  4. Replies: 1
    Last Post: 2006-07-18, 04:57 PM
  5. Restore Backup
    By snue in forum General Discussion
    Replies: 2
    Last Post: 2006-05-03, 04:56 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
  •