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 9 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
    Topic
  • #24843

    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
  • #24844

    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

    #24845

    freelancer
    Participant

    Yevhen, thank you.

    #24846

    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

    #24847

    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.

    #24848

    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)

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

Back to top