ssossossosso

Forums

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

This topic contains 18 replies, has 3 voices, and was last updated by ignat ignat 1 year, 9 months ago.

  • Creator
    Topic
  • #15264
    pauloasterio
    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
  • #15272
    ignat
    ignat
    Oro Core

    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

    #15275
    pauloasterio
    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

    #15280
    Dima Soroka
    Dima Soroka
    Oro Core

    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://www.orocrm.com/documentation/index/current/book/scale-nodes

    #15287
    pauloasterio
    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

    #15288
    Dima Soroka
    Dima Soroka
    Oro Core

    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?

    #15289
    pauloasterio
    pauloasterio
    Participant

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

    Appreciate it..

    Paulo

    #15291
    pauloasterio
    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)”} []

    #15317
    ignat
    ignat
    Oro Core

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

    #15318
    pauloasterio
    pauloasterio
    Participant

    both return nothing

    but I’m using oro 1.8.2

    #15320
    ignat
    ignat
    Oro Core

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

    #15321
    pauloasterio
    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#

    #15323
    ignat
    ignat
    Oro Core

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

    #15324
    pauloasterio
    pauloasterio
    Participant

    no

    #15325
    ignat
    ignat
    Oro Core

    And when do you receive this error?

    #15326
    pauloasterio
    pauloasterio
    Participant

    When I try to access the app

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

You must be logged in to reply to this topic.