OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions crm database migration

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #24843



    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 ?



Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
  • #24844

    Hi, freelancer.

    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



    Yevhen, thank you.


    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!


    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.


    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,

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

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No