Results 1 to 9 of 9

Thread: Migration to another Server and Database Vendor

  1. #1
    travelfreak is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    31

    Default Migration to another Server and Database Vendor

    Hi,

    i have to migrate my sugarcrm 5.2i installation to another server as well as from mssql to
    mysql. If all went good i want to upgrade to 5.5.

    For the first step i migrated the database to mysql. then i copied the htdocs\sugarcrm folder.
    But i cant login. When i try with admin and correct pw the page just refreshes.
    When i try admin with incorrect pw theres a message stating that. The config.php file from
    sugar "should" be ok, as before i copied htdocs i did a clean install of sugar with mysql
    and backed up that config file.

    from the sugar log: [ERROR] MySQL error 1062: Duplicate entry '0' for key 'PRIMARY'

    Something wrong with my migration scenario?

    cheers,
    Marcus
    Last edited by travelfreak; 2010-01-22 at 02:26 PM.

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

    Default Re: Migration to another Server and Database Vendor

    It would seem like it.

    The error seems to be indicating that one or more tables has records with the same ID value or it is attempting to created records with the same ID value as that of a record that already exists in database.

    It is going to take some visual inspection unless you can narrow it down to a specific table.
    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)
    ______________________________________________

  3. #3
    travelfreak is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    31

    Default Re: Migration to another Server and Database Vendor

    Hi,

    any ideas which tables to like first? I wonder why i have no problems
    with my ms sql 2005 Database now, all goes smoothly there. I export/import
    the same set of schema and data.

    cheers,
    Marcus

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

    Default Re: Migration to another Server and Database Vendor

    Not sure.

    If it is happening right at logon, chances are the problem is in the tracker or user_preferences table.
    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)
    ______________________________________________

  5. #5
    travelfreak is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    31

    Default Re: Migration to another Server and Database Vendor

    cool thanks, ill check that tomorrow, i mean later the day

    cheers,
    Marcus

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

    Default Re: Migration to another Server and Database Vendor

    FYI, I was poking around in the database and noticed that indeed the tracker table uses numeric ID values. The ID column for that table is setup as auto-increment.

    You can safely purge that table. That'll be the fastest resolution I think.
    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)
    ______________________________________________

  7. #7
    travelfreak is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    31

    Default Re: Migration to another Server and Database Vendor

    Hi,

    i purged to data of the table, but no success with login.

    Error: [620][-none-][ERROR] MySQL error 1146: Table 'sugarcrm.tracker' doesn't exist

    then i dropped the table and recreated it from backup with that sql statement:
    Code:
    CREATE TABLE `sugarcrm`.`tracker` (
      `id` int(10) NOT NULL AUTO_INCREMENT,
      `monitor_id` varchar(36) NOT NULL,
      `user_id` varchar(36) DEFAULT NULL,
      `module_name` varchar(255) DEFAULT NULL,
      `item_id` varchar(36) DEFAULT NULL,
      `item_summary` varchar(255) DEFAULT NULL,
      `date_modified` datetime DEFAULT NULL,
      `action` varchar(255) DEFAULT NULL,
      `session_id` varchar(36) DEFAULT NULL,
      `visible` tinyint(4) DEFAULT '0',
      `deleted` tinyint(4) DEFAULT '0',
      PRIMARY KEY (`id`),
      KEY `idx_tracker_iid` (`item_id`),
      KEY `idx_tracker_monitor_id` (`monitor_id`),
      KEY `idx_tracker_userid_itemid_vis` (`user_id`,`item_id`,`visible`),
      KEY `idx_tracker_userid_vis_id` (`user_id`,`visible`,`id`)
    ) ENGINE=InnoDB AUTO_INCREMENT=111914 DEFAULT CHARSET=utf8;
    Error in sugarcrm.log is still the same: Error: [620][-none-][ERROR] MySQL error 1146: Table 'sugarcrm.tracker' doesn't exist

    But for some reasons all the login tryouts are written to that table. id was incremented with every login with action authenticate and login.

    Any other ideas? I think i have to migrate the table tracker with all the other tables again.
    For the migration i used ESF Database Convert, as the mysql Migration Toolkit has problems to migrate about 20 Tables for various reasons (datetime ....)
    ESF did a better job and migrated all tables "successfully".

    thanks a lot,
    Marcus

  8. #8
    travelfreak is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    31

    Default Re: Migration to another Server and Database Vendor

    anyone idea with that ?
    iam stuck

  9. #9
    travelfreak is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    31

    Default Re: Migration to another Server and Database Vendor

    what i did was following:

    migrated all tables except those with auto increment rows.
    - bugs
    - campaign_trkrs
    - cases
    - campaigns
    - emailman
    - prospects
    - tracker

    created those tables manually regarding to mysql commands from a previous backup from the
    orig. empty database. all those tables are empty with auto increment number to 1.

    The former errror: [ERROR] MySQL error 1062: Duplicate entry '0' for key 'PRIMARY' is gone now,
    but i still cannot login. The login page just refreshes. No more error messages in sugarcrm.log file.

    Any further ideas what i can troubleshoot or which logs to check ?

    cheers,
    Marcus

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2010-11-30, 10:14 AM
  2. Replies: 2
    Last Post: 2009-11-06, 07:39 AM
  3. Migration to a new server not working
    By hubfub in forum Help
    Replies: 2
    Last Post: 2009-05-24, 03:08 PM
  4. SugarCrm 4.5.1e migration to new server
    By shruthi in forum Installation and Upgrade Help
    Replies: 9
    Last Post: 2008-09-12, 02:05 PM
  5. Database Migration
    By mscman in forum Customer Support
    Replies: 2
    Last Post: 2006-10-26, 12:21 AM

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
  •