OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

This topic contains 18 replies, has 3 voices, and was last updated by  ignat 8 years, 4 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
  • #26857

    pauloasterio
    Participant

    Hello, I want to ship oro-crm with a docker image and integrate it with my CI. The problem is, every time I build the image I have to run the php app/console oro:install which is not suitable because it will drop my current database, is there any way so I can install oro skipping the drop database ??

Viewing 15 replies - 1 through 15 (of 18 total)
  • Author
    Replies
  • #26858

    ignat
    Participant

    Hi pauloasterio,

    Are you sure app/console oro:install drops DB? When I need to re-install Oro during development I usually run simple script like that:

    I guess oro:install is not dropping DB by default. There is an option “–drop-database” in this command, but you should be able just to not pass it.

    Just in case run app/console oro:install –help to see other options.

    Thanks,
    Ignat

    #26859

    pauloasterio
    Participant

    Hello ignat!

    Thanks for your response, it actually drops my schema and all my data goes with it.

    ——————————————————————+

    Dropping database schema…
    Database schema dropped successfully!
    Clear the entity config cache
    Clear extended entity cache
    Setting up database.
    Process migrations…

    My scenario is to be able to add nodes to my orocrm farm as needed, as I can see, this is a hard task ..

    Any idea?

    regards.

    Paulo Asterio

    #26860

    Dima Soroka
    Keymaster

    Hello

    If you would like to add more containers to your environment, you don’t need to reinstall application every time. I hope this documentation will help you to solve your problem: http://oroinc.com/orocrm/doc/current/book/scale-nodes

    #26861

    pauloasterio
    Participant

    Hello Dima,

    Thank you for the link, I had already seen these instructions but I think cloning the install is error prone and it breaks my CI workflow, I believe I should be able to just install a new oro instance and point it to a existing database without dropping it. I’m guessing this is not possible yet.

    Let me know.

    tks

    #26862

    Dima Soroka
    Keymaster

    It is possible, just create proper parameters.yml file and warmup cache, you don’t need to run install. Do you have any issues with such flow?

    #26863

    pauloasterio
    Participant

    That sounds good to me, let me try it I’ll let you know.

    Appreciate it..

    Paulo

    #26864

    pauloasterio
    Participant

    I ran into this error, could you guys help me ?

    [2015-12-14 12:13:34] request.CRITICAL: Uncaught PHP Exception ErrorException: “Catchable Fatal Error: Argument 1 passed to HWI\Bundle\OAuthBundle\Security\Http\EntryPoint\OAuthEnt
    ryPoint::__construct() must be an instance of Symfony\Component\Security\Http\HttpUtils, instance of Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel given
    , called in /var/www/orocrm/app/cache/prod/appProdProjectContainer.php on line 15865 and defined in /var/www/orocrm/vendor/hwi/oauth-bundle/HWI/Bundle/OAuthBundle/Security/Http/Ent
    ryPoint/OAuthEntryPoint.php on line 45” at /var/www/orocrm/vendor/hwi/oauth-bundle/HWI/Bundle/OAuthBundle/Security/Http/EntryPoint/OAuthEntryPoint.php line 45 {“exception”:”[object
    ] (ErrorException: Catchable Fatal Error: Argument 1 passed to HWI\\Bundle\\OAuthBundle\\Security\\Http\\EntryPoint\\OAuthEntryPoint::__construct() must be an instance of Symfony\\
    Component\\Security\\Http\\HttpUtils, instance of Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel given, called in /var/www/orocrm/app/cache/prod/appP
    rodProjectContainer.php on line 15865 and defined in /var/www/orocrm/vendor/hwi/oauth-bundle/HWI/Bundle/OAuthBundle/Security/Http/EntryPoint/OAuthEntryPoint.php on line 45 at /var/
    www/orocrm/vendor/hwi/oauth-bundle/HWI/Bundle/OAuthBundle/Security/Http/EntryPoint/OAuthEntryPoint.php:45)”} []

    #26865

    ignat
    Participant

    What is the version of Oro you are using? Please run these commands:

    #26866

    pauloasterio
    Participant

    both return nothing

    but I’m using oro 1.8.2

    #26867

    ignat
    Participant

    Maybe it’s just the case of how you are using composer in your environment, try this one without grep:

    #26868

    pauloasterio
    Participant

    root@6990fb717cbf:/var/www/orocrm# composer show -i | grep oro
    oro/crm 1.8.2 OroCRM
    oro/crm-zendesk 1.5.0 OroCRM Zendesk Integration
    oro/doctrine-extensions 1.0.9 Doctrine Extensions for MySQL and PostgreSQL.
    oro/jsplumb 1.7.6 jsPlumb provides a means for a developer to visually connect elements on their web pages.
    oro/moment-timezone 0.3.1 Parse and display dates in any timezone
    oro/platform 1.8.2 Business Application Platform (BAP)
    root@6990fb717cbf:/var/www/orocrm#
    root@6990fb717cbf:/var/www/orocrm# composer show -i | grep hwi/oauth-bundle
    hwi/oauth-bundle 0.3.9 Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony2.
    root@6990fb717cbf:/var/www/orocrm#

    #26869

    ignat
    Participant

    Did you change anything in config.yml to enable SSO in your application?

    #26870

    pauloasterio
    Participant

    no

    #26871

    ignat
    Participant

    And when do you receive this error?

    #26872

    pauloasterio
    Participant

    When I try to access the app

Viewing 15 replies - 1 through 15 (of 18 total)

The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top