ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums OroCRM OroCRM – Programming Questions crm database migration

This topic contains 5 replies, has 3 voices, and was last updated by Spurgeon Spurgeon 3 years, 6 months ago.

  • Creator
    Topic
  • #53692

    freelancer
    Participant

    Hi,

    I just want to migrate the current database to another OroCRM application, I dumped the database and loaded in the new application, but I got several error saying some entity doesn’t exist or that I’m calling a getId function on a non existent object.

    How can I perform this migration ? Do you best practices ?

    Thanks.

    Olivier.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #53693
    Yevhen Shyshkin
    Yevhen Shyshkin
    Participant

    Hi, freelancer.

    Please:
    1) ensure that instances have the same code (i.e. same application version and versions of dependencies)
    2) manually remove cache from /app/cache directory and run app/console cache:clear –env prod

    #53694

    freelancer
    Participant

    Yevhen, thank you.

    #53695
    Spurgeon
    Spurgeon
    Participant

    Hi Yeven,

    I too attempted the same, replicated the files from one server to another and recreated the permissions then imported the tables in to the db too.

    I had initial errors which went away with sudo rm -rf app/cache/prod folder

    Now, after login, the page is empty except for top nav bar.

    Could you kindly help on how to port an instance from server to another?

    Thanks in advance!
    Spurgeon

    #53696
    Yevhen Shyshkin
    Yevhen Shyshkin
    Participant

    Hello, spurgeonbj.

    Basically, as usual migration, it requires to copy environment, code and DB.

    In your specific case, please:
    0) remove cache again and then run php app/console cache:clear --env=prod;
    1) check permissions for directories app/cache, app/logs, web/css, web/js;
    2) check app/logs/prod.log for errors;
    3) check php and web server error logs.

    If you’ll find some errors – put them here, I’ll help you to fix it.

    #53697
    Spurgeon
    Spurgeon
    Participant

    Hi Yevhen,

    Thanks for the quick and kind response.

    Will revert after a fresh try, if need be.

    Thanks once again!

    Warm regards and gratitude,
    Spurgeon

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

ssossossosso