Forums › Forums › OroCommerce › Issue when warming up the cache (post-installation)
This topic contains 6 replies, has 2 voices, and was last updated by jonas3 6 years, 5 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- October 25, 2017 at 1:37 am #32233
1. Application related information:
Application Type: OroCommerce
Application Version: 1.4
Application Edition: Community
2. Environment related information:
OS, name and version: Debian Jessie (through Docker on OSX)
Web server, name and version: Nginx 1.12.1
Database, name and version: MySQL 5.7
PHP, version: 7.1
3. Also, for questions about error, issue or unexpected behavior, please, describe the way to reproduce it.
Example (but you may use your own pattern or free-form description):
Steps to reproduce:
1) Install application (with or without sample data)
2) Run php app/console oro:api:doc:cache:clear
Expected result:
1) Command should run without error
Actual result:
1) Command exits with error Processor failed: “oro_api.collect_subresources.initialize_subresources”. Reason: Processor
failed: “oro_api.get_config.add_owner_validator”. Reason: Property “inventory_status” does
not exist in class “Oro\Bundle\ProductBundle\Entity\Product” - CreatorTopic
- AuthorReplies
- October 25, 2017 at 5:19 am #32234
Hello, jonas3.
Most likely – it’s some kind of problem with caches. Please, try to clear caches and reinstall vendors:
Shell123app/root/folder$ rm -rf app/cache/*app/root/folder$ rm -rf vendor/*app/root/folder$ composer installPlease, let me know if this helped. Thank you.
October 25, 2017 at 11:37 pm #32235Thanks, that sorted that problem and created a bunch of new ones:
Shell1[2017-10-26 06:06:02] request.CRITICAL: Uncaught PHP Exception Doctrine\ORM\Query\QueryException: "[Semantical Error] line 0, col 159 near 'webCatalog IS': Error: Class Oro\Bundle\ScopeBundle\Entity\Scope has no field or association named webCatalog" at /var/www/b2b.swedimport.se/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php line 63 {"exception":"[object] (Doctrine\\ORM\\Query\\QueryException(code: 0): [Semantical Error] line 0, col 159 near 'webCatalog IS': Error: Class Oro\\Bundle\\ScopeBundle\\Entity\\Scope has no field or association named webCatalog at /var/www/b2b.swedimport.se/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:63, Doctrine\\ORM\\Query\\QueryException(code: 0): SELECT scope FROM Oro\\Bundle\\ScopeBundle\\Entity\\Scope scope INNER JOIN Oro\\Bundle\\RedirectBundle\\Entity\\Slug slug WITH scope MEMBER OF slug.scopes WHERE scope.webCatalog IS NULL AND scope.customerGroup IS NULL AND scope.localization IS NULL at /var/www/b2b.swedimport.se/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:41)"} []Shell1[2017-10-26 06:05:26] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /admin/login"" at /var/www/b2b.swedimport.se/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /admin/login\" at /var/www/b2b.swedimport.se/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/b2b.swedimport.se/app/cache/prod/appProdProjectContainerUrlMatcher.php:12982)"} []This installation procedure is a PITA to be honest with a new problem arising after every step taken.
October 26, 2017 at 1:19 am #32236Hi, jonas3.
The first error indicates that DB migrations during installation process weren’t performed correctly.
So, I recommend you to reinstall the application from scratch (and recreate DB also in this case) if you have such ability.
It would be most simple and reliable fix.The second error is not an error, actually: indeed, there is no route for /admin/login URL.
Correct URL for admin area is /admin/.
If you not logged in, from this URL you will be redirected to /admin/user/login.
The URL /admin/login actually not exists.October 26, 2017 at 1:35 am #32237There were no errors at all during the installation process, so that seems a bit strange, but i’ll try and rerun the installation. As to the route not existing, that would be a bug then because if i visit http://project.domain/admin i am redirected to http://project.domain/admin/login if i’m not logged in and not http://project.domain/admin/user/login as intended.
October 26, 2017 at 1:47 am #32238Hm. It’s interesting. Ok, let’s wait for results of reinstall for now.
If you can, please show here the list of migrations that will be performed during the installation process.
October 26, 2017 at 4:00 am #32239Okay, so the migrations performed are:
Shell123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119> Oro\Bundle\EntityExtendBundle\Migration\LoadEntityConfigStateMigration> Oro\Bundle\MigrationBundle\Migration\CreateMigrationTableMigration> Oro\Bundle\PlatformBundle\Migrations\Schema\OroPlatformBundleInstaller> Oro\Bundle\ScopeBundle\Migrations\Schema\OroScopeBundleInstaller> Oro\Bundle\OrganizationBundle\Migrations\Schema\OroOrganizationBundleInstaller> Oro\Bundle\SecurityBundle\Migrations\Schema\OroSecurityBundleInstaller> Oro\Bundle\AttachmentBundle\Migrations\Schema\OroAttachmentBundleInstaller> Oro\Bundle\OroMessageQueueBundle\Migrations\Schema\OroMessageQueueBundleInstaller> Oro\Bundle\EmailBundle\Migrations\Schema\OroEmailBundleInstaller> Oro\Bundle\CronBundle\Migrations\Schema\OroCronBundleInstaller> Oro\Bundle\UserBundle\Migrations\Schema\OroUserBundleInstaller> Oro\Bundle\DataGridBundle\Migrations\Schema\OroDataGridBundleInstaller> Oro\Bundle\SSOBundle\Migrations\Schema\OroSSOBundleInstaller> Oro\Bundle\TranslationBundle\Migrations\Schema\OroTranslationBundleInstaller> Oro\Bundle\EntityBundle\Migrations\Schema\OroEntityBundleInstaller> Oro\Bundle\LocaleBundle\Migrations\Schema\OroLocaleBundleInstaller> Oro\Bundle\EntityConfigBundle\Migrations\Schema\OroEntityConfigBundleInstaller> Oro\Bundle\EntityExtendBundle\Migrations\Schema\OroEntityExtendBundleInstaller> Oro\Bundle\IntegrationBundle\Migrations\Schema\OroIntegrationBundleInstaller> Oro\Bundle\RuleBundle\Migrations\Schema\OroRuleBundleInstaller> Oro\Bundle\NotificationBundle\Migrations\Schema\OroNotificationBundleInstaller> Oro\Bundle\ActivityBundle\Migrations\Schema\OroActivityBundleInstaller> Oro\Bundle\ActivityContactBundle\Migrations\Schema\OroActivityContactBundleInstaller> Oro\Bundle\ActivityListBundle\Migrations\Schema\OroActivityListBundleInstaller> Oro\Bundle\AddressBundle\Migrations\Schema\OroAddressBundleInstaller> Oro\Bundle\BatchBundle\Migrations\Schema\OroBatchBundleInstaller> Oro\Bundle\ConfigBundle\Migrations\Schema\OroConfigBundleInstaller> Oro\Bundle\DataAuditBundle\Migrations\Schema\OroDataAuditBundleInstaller> Oro\Bundle\EmbeddedFormBundle\Migrations\Schema\OroEmbeddedFormBundleInstaller> Oro\Bundle\ImapBundle\Migrations\Schema\OroImapBundleInstaller> Oro\Bundle\ImportExportBundle\Migrations\Schema\OroImportExportBundleInstaller> Oro\Bundle\InstallerBundle\Migrations\Schema\OroInstallerBundleInstaller> Oro\Bundle\MigrationBundle\Migrations\Schema\OroMigrationBundleInstaller> Oro\Bundle\NoteBundle\Migrations\Schema\OroNoteBundleInstaller> Oro\Bundle\ReportBundle\Migrations\Schema\OroReportBundleInstaller> Oro\Bundle\SearchBundle\Migrations\Schema\OroSearchBundleInstaller> Oro\Bundle\SegmentBundle\Migrations\Schema\OroSegmentBundleInstaller> Oro\Bundle\SidebarBundle\Migrations\Schema\OroSidebarBundleInstaller> Oro\Bundle\TagBundle\Migrations\Schema\OroTagBundleInstaller> Oro\Bundle\WebsiteSearchBundle\Migrations\Schema\OroWebsiteSearchBundleInstaller> Oro\Bundle\WindowsBundle\Migrations\Schema\OroWindowsBundleInstaller> Oro\Bundle\WorkflowBundle\Migrations\Schema\OroWorkflowBundleInstaller> Oro\Bundle\CommentBundle\Migrations\Schema\OroCommentBundleInstaller> Oro\Bundle\CRMBundle\Migrations\Schema\OroCRMBundleInstaller> Oro\Bundle\DashboardBundle\Migrations\Schema\OroDashboardBundleInstaller> Oro\Bundle\CalendarBundle\Migrations\Schema\OroCalendarBundleInstaller> Oro\Bundle\HangoutsCallBundle\Migrations\Schema\OroHangoutsCallBundleInstaller> Oro\Bundle\FrontendBundle\Migrations\Schema\OroFrontendBundleInstaller> Oro\Bundle\WebsiteBundle\Migrations\Schema\OroWebsiteBundleInstaller> Oro\Bundle\ContactBundle\Migrations\Schema\OroContactBundleInstaller> Oro\Bundle\CurrencyBundle\Migrations\Schema\OroCurrencyBundleInstaller> Oro\Bundle\FallbackBundle\Migrations\Schema\OroFallbackBundleInstaller> Oro\Bundle\NavigationBundle\Migrations\Schema\OroNavigationBundleInstaller> Oro\Bundle\RedirectBundle\Migrations\Schema\OroRedirectBundleInstaller> Oro\Bundle\WebCatalogBundle\Migrations\Schema\OroWebCatalogBundleInstaller> Oro\Bundle\CommerceMenuBundle\Migrations\Schema\OroCommerceMenuBundleInstaller> Oro\Bundle\ProductBundle\Migrations\Schema\OroProductBundleInstaller> Oro\Bundle\CatalogBundle\Migrations\Schema\OroCatalogBundleInstaller> Oro\Bundle\MarketingListBundle\Migrations\Schema\OroMarketingListBundleInstaller> Oro\Bundle\CustomerBundle\Migrations\Schema\OroCustomerBundleInstaller> Oro\Bundle\TrackingBundle\Migrations\Schema\OroTrackingBundleInstaller> Oro\Bundle\AccountBundle\Migrations\Schema\OroAccountBundleInstaller> Oro\Bundle\VisibilityBundle\Migrations\Schema\OroVisibilityBundleInstaller> Oro\Bundle\CallBundle\Migrations\Schema\OroCallBundleInstaller> Oro\Bundle\CampaignBundle\Migrations\Schema\OroCampaignBundleInstaller> Oro\Bundle\ChannelBundle\Migrations\Schema\OroChannelBundleInstaller> Oro\Bundle\MagentoContactUsBundle\Migrations\Schema\OroMagentoContactUsBundleInstaller> Oro\Bundle\PaymentBundle\Migrations\Schema\OroPaymentBundleInstaller> Oro\Bundle\ReminderBundle\Migrations\Schema\OroReminderBundleBundleInstaller> Oro\Bundle\TaskBundle\Migrations\Schema\OroTaskBundleInstaller> Oro\Bundle\AnalyticsBundle\Migrations\Schema\OroAnalyticsBundleInstaller> Oro\Bundle\CMSBundle\Migrations\Schema\OroCMSBundleInstaller> Oro\Bundle\MarketingActivityBundle\Migrations\Schema\OroMarketingActivityBundleInstaller> Oro\Bundle\MoneyOrderBundle\Migrations\Schema\OroMoneyOrderBundleInstaller> Oro\Bundle\PaymentTermBundle\Migrations\Schema\OroPaymentTermBundleInstaller> Oro\Bundle\PayPalBundle\Migrations\Schema\OroPayPalBundleInstaller> Oro\Bundle\PricingBundle\Migrations\Schema\OroPricingBundleInstaller> Oro\Bundle\RFPBundle\Migrations\Schema\OroRFPBundleInstaller> Oro\Bundle\SalesBundle\Migrations\Schema\OroSalesBundleInstaller> Oro\Bundle\ContactUsBundle\Migrations\Schema\OroContactUsBundleInstaller> Oro\Bundle\InvoiceBundle\Migrations\Schema\OroInvoiceBundleInstaller> Oro\Bundle\MagentoBundle\Migrations\Schema\OroMagentoBundleInstaller> Oro\Bundle\OrderBundle\Migrations\Schema\OroOrderBundleInstaller> Oro\Bundle\TaxBundle\Migrations\Schema\OroTaxBundleInstaller> Oro\Bridge\MarketingCRM\Migrations\Schema\OroMarketingCRMBridgeBundleInstaller> Oro\Bundle\CheckoutBundle\Migrations\Schema\OroCheckoutBundleInstaller> Oro\Bridge\ContactUs\Migrations\Schema\OroContactUsBridgeBundleInstaller> Oro\Bundle\AlternativeCheckoutBundle\Migrations\Schema\OroAlternativeCheckoutBundleInstaller> Oro\Bundle\SaleBundle\Migrations\Schema\OroSaleBundleInstaller> Oro\Bundle\ShoppingListBundle\Migrations\Schema\OroShoppingListBundleInstaller> Oro\Bridge\CalendarCommerce\Migrations\Schema\OroCalendarCommerceBridgeBundleInstaller> Oro\Bridge\CustomerSales\Migrations\Schema\OroCustomerSalesBridgeBundleInstaller> Oro\Bridge\QuoteSales\Migrations\Schema\OroQuoteSalesBridgeBundleInstaller> Oro\Bundle\CaseBundle\Migrations\Schema\OroCaseBundleInstaller> Oro\Bundle\EntitySerializedFieldsBundle\Migrations\Schema\OroEntitySerializedFieldsBundleInstaller> Oro\Bundle\InventoryBundle\Migrations\Schema\OroInventoryBundleInstaller> Oro\Bundle\PromotionBundle\Migrations\Schema\OroPromotionBundleInstaller> Oro\Bundle\SEOBundle\Migrations\Schema\OroSEOBundleInstaller> Oro\Bridge\CalendarCRM\Migrations\Schema\OroCalendarCRMBridgeBundleInstaller> Oro\Bundle\ZendeskBundle\Migrations\Schema\OroZendeskBundleInstaller> Oro\Bundle\MailChimpBundle\Migrations\Schema\OroMailChimpBundleInstaller> Oro\Bridge\CallCRM\Migrations\Schema\OroCallCRMBridgeBundleInstaller> Oro\Bridge\CustomerAccount\Migrations\Schema\OroCustomerAccountBridgeBundleInstaller> Oro\Bridge\TaskCRM\Migrations\Schema\OroTaskCRMBundleInstaller> Oro\Bundle\DotmailerBundle\Migrations\Schema\OroDotmailerBundleInstaller> Oro\Bundle\AbandonedCartBundle\Migrations\Schema\OroAbandonedCartBundleInstaller> Oro\Bundle\ShippingBundle\Migrations\Schema\OroShippingBundleInstaller> Oro\Bundle\FlatRateShippingBundle\Migrations\Schema\OroFlatRateBundleInstaller> Oro\Bundle\UPSBundle\Migrations\Schema\OroUPSBundleInstaller> Oro\Bundle\MigrationBundle\Migration\UpdateBundleVersionMigration> Oro\Bundle\CheckoutBundle\Migrations\Schema\RemoveWorkflowFieldsMigration> Oro\Bundle\EntityExtendBundle\Migration\RefreshExtendCacheMigration> Oro\Bundle\EntityConfigBundle\Migration\UpdateEntityConfigMigration> Oro\Bundle\EntitySerializedFieldsBundle\Migration\SerializedDataMigration> Oro\Bundle\EntityExtendBundle\Migration\UpdateExtendConfigMigration> Oro\Bundle\ActivityContactBundle\Migration\ActivityContactMigration> Oro\Bundle\ActivityListBundle\Migration\ActivityListMigration> Oro\Bundle\EntityExtendBundle\Migration\UpdateExtendIndicesMigration> Oro\Bundle\EntityConfigBundle\Migration\WarmUpEntityConfigCacheMigrationHaven’t gotten to test the installation yet as i ran into a memory error when clearing the cache.
- AuthorReplies
The forum ‘OroCommerce’ is closed to new topics and replies.