首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows上安装OroCRM

在Windows上安装OroCRM
EN

Stack Overflow用户
提问于 2018-01-28 10:21:31
回答 2查看 962关注 0票数 1

当我试图在linux上安装时,在Macintosh (Mac )上安装OroCrm是成功的。但不适用于Windows操作系统。相反,我更喜欢从Apache2.4.x、PHP7.1.x、MySQL分别安装,比如在*nix 中安装。

完成必要的步骤后,从浏览器

  • 我导航到URL http://orocrm.example.com/install.php并单击Next Button
  • 上面的URL已经重定向到页面http://orocrm.example.com/installer。在这里,我可以看到空白的一页。

因此,我尝试通过命令行接口安装:

代码语言:javascript
复制
C:\Apache24\htdocs\orocrm>php composer.phar install

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 0 installs, 1 update, 0 removals
  - Updating sebastian/phpcpd dev-master (cff7f36 => b6dd25b):     Update failed (The .git directory is missing from C:\Apache24\htdocs\orocrm\vendor/sebastian/phpcpd, see https://getcomposer.org/commit-deps for more information)
    Would you like to try reinstalling the package instead [yes]? yes
  - Removing sebastian/phpcpd (dev-master)
  - Installing sebastian/phpcpd (dev-master b6dd25b): Cloning b6dd25b89f from cache
Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Generating autoload files
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Oro\Bundle\InstallerBundle\Composer\ScriptHandler::setPermissions
> Oro\Bundle\InstallerBundle\Composer\ScriptHandler::installAssets
> Oro\Bundle\InstallerBundle\Composer\ScriptHandler::setAssetsVersion
Updating the "assets_version" parameter

我尝试从默认的parameters.yml文件创建数据库

代码语言:javascript
复制
C:\Apache24\htdocs\orocrm>php app/console doctrine:database:create
Created database `oro_crm` for connection named default

安装过程中的下一步:

代码语言:javascript
复制
C:\Apache24\htdocs\orocrm>php app/console oro:install
Installing Oro Application.

Oro requirements check:
+---------+------------------------------------------------------------------------------------------+
| Check   | Mandatory requirements                                                                   |
+---------+------------------------------------------------------------------------------------------+
| OK      | Vendor libraries must be installed                                                       |
| OK      | app/cache/ or var/cache/ directory must be writable                                      |
| OK      | app/logs/ or var/logs/ directory must be writable                                        |
| OK      | Configured default timezone "Asia/Kolkata" must be supported by your installation of PHP |
| OK      | iconv() must be available                                                                |
| OK      | json_encode() must be available                                                          |
| OK      | session_start() must be available                                                        |
| OK      | ctype_alpha() must be available                                                          |
| OK      | token_get_all() must be available                                                        |
| OK      | simplexml_import_dom() must be available                                                 |
| OK      | PCRE extension must be available                                                         |
| OK      | C:\Users\user\AppData\Local\Temp (sys_get_temp_dir()) directory must be writable         |
+---------+------------------------------------------------------------------------------------------+
+---------+--------------------------------------------+
| Check   | PHP settings                               |
+---------+--------------------------------------------+
| OK      | detect_unicode must be disabled in php.ini |
| OK      | string functions should not be overloaded  |
| OK      | memory_limit should be at least 512M       |
+---------+--------------------------------------------+
+---------+----------------------------------------------------+
| Check   | Oro specific requirements                          |
+---------+----------------------------------------------------+
| OK      | PHP version must be at least 7.0 (7.1.7 installed) |
| OK      | GD extension must be at least 2.0                  |
| OK      | cURL extension must be at least 7.0                |
| OK      | mcrypt_encrypt() should be available               |
| OK      | intl extension should be available                 |
| OK      | icu library must be at least 3.8                   |
| OK      | zip extension should be installed                  |
| OK      | web/uploads/ directory must be writable            |
| OK      | web/media/ directory must be writable              |
| OK      | web/bundles/ directory must be writable            |
| OK      | app/attachment/ directory must be writable         |
| OK      | app/import_export/ directory must be writable      |
| OK      | web directory must be writable                     |
| OK      | app/config/parameters.yml file must be writable    |
+---------+----------------------------------------------------+
+---------+--------------------------------------------------------------------------------------------------------------------------+
| Check   | Optional recommendations                                                                                                 |
+---------+--------------------------------------------------------------------------------------------------------------------------+
| OK      | Vendors should be installed in order to check all requirements.                                                          |
| OK      | Requirements file should be up-to-date                                                                                   |
| OK      | PCRE extension should be at least version 8.0 (8.38 installed)                                                           |
| OK      | PHP-DOM and PHP-XML modules should be installed                                                                          |
| OK      | mb_strlen() should be available                                                                                          |
| OK      | utf8_decode() should be available                                                                                        |
| OK      | filter_var() should be available                                                                                         |
| OK      | intl extension should be available                                                                                       |
| OK      | intl extension should be correctly configured                                                                            |
| OK      | intl ICU version should be at least 4+                                                                                   |
| OK      | intl ICU version installed on your system is outdated (57.1) and does not match the ICU data bundled with Symfony (57.1) |
| OK      | intl ICU version installed on your system (57.1) does not match the ICU data bundled with Symfony (57.1)                 |
| OK      | intl.error_level should be 0 in php.ini                                                                                  |
| OK      | a PHP accelerator should be installed                                                                                    |
| OK      | realpath_cache_size should be at least 5M in php.ini                                                                     |
| OK      | short_open_tag should be disabled in php.ini                                                                             |
| OK      | magic_quotes_gpc should be disabled in php.ini                                                                           |
| OK      | register_globals should be disabled in php.ini                                                                           |
| OK      | session.auto_start should be disabled in php.ini                                                                         |
| OK      | PDO should be installed                                                                                                  |
| OK      | PDO should have some drivers installed (currently available: mysql)                                                      |
| OK      | SOAP extension should be installed (API calls)                                                                           |
| OK      | Tidy extension should be installed to make sure that any HTML is correctly converted into a text representation.         |
| OK      | finfo_open() should be available                                                                                         |
| OK      | COM extension should be installed                                                                                        |
| OK      | A JS Engine (node) is installed                                                                                          |
+---------+--------------------------------------------------------------------------------------------------------------------------+

Setting up database.
Process migrations...
  > 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\NotificationBundle\Migrations\Schema\OroNotificationBundleInstaller

安装完毕后。我尝试运行下面的命令来预热API文档缓存。

代码语言:javascript
复制
C:\Apache24\htdocs\orocrm>php app/console oro:api:doc:cache:clear

 // Warming up cache for the default view...

 // Warming up cache for the rest_json_api view...



  [Oro\Component\ChainProcessor\Exception\ExecutionFailedException]
  Processor failed: "oro_api.collect_subresources.initialize_subresources". Reason: Processor failed: "oro_api.get_co
  nfig.complete_definition". Reason: Entity "Oro\Bundle\AttachmentBundle\Entity\Attachment" is not configurable



  [Oro\Component\ChainProcessor\Exception\ExecutionFailedException]
  Processor failed: "oro_api.get_config.complete_definition". Reason: Entity "Oro\Bundle\AttachmentBundle\Entity\Atta
  chment" is not configurable



  [Oro\Bundle\EntityConfigBundle\Exception\RuntimeException]
  Entity "Oro\Bundle\AttachmentBundle\Entity\Attachment" is not configurable


oro:api:doc:cache:clear [--view [VIEW]] [--no-warmup] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-s|--shell] [--process-isolation] [-e|--env ENV] [--no-debug] [--current-user CURRENT-USER] [--current-organization CURRENT-ORGANIZATION] [--disabled-listeners DISABLED-LISTENERS] [--] <command>

来自dev.log文件

代码语言:javascript
复制
php.INFO: "Symfony\Component\Console\Helper\DialogHelper" is deprecated since version 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\QuestionHelper" instead. {"type":16384,"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Helper\\HelperSet.php","line":86,"level":28928,"stack":[{"function":"handleError","class":"Symfony\\Component\\Debug\\ErrorHandler","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Helper\\HelperSet.php","line":86,"function":"trigger_error"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\oro\\platform\\src\\Oro\\Bundle\\InstallerBundle\\Command\\InstallCommand.php","line":88,"function":"get","class":"Symfony\\Component\\Console\\Helper\\HelperSet","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Command\\Command.php","line":259,"function":"execute","class":"Oro\\Bundle\\InstallerBundle\\Command\\InstallCommand","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Application.php","line":866,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Application.php","line":193,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\FrameworkBundle\\Console\\Application.php","line":92,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Application.php","line":124,"function":"doRun","class":"Symfony\\Bundle\\FrameworkBundle\\Console\\Application","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\app\\console","line":22,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"}]} []
doctrine.DEBUG: SHOW FULL TABLES WHERE Table_type = 'BASE TABLE' [] []
doctrine.DEBUG: SELECT t0.id AS id_1, t0.class_name AS class_name_2, t0.created AS created_3, t0.updated AS updated_4, t0.mode AS mode_5, t0.data AS data_6 FROM oro_entity_config t0 [] []
php.INFO: The "oro_locale.twig.date_time_organization" service is deprecated since 1.11, will be removed after 1.13. {"type":16384,"file":"C:\\Apache24\\htdocs\\orocrm\\app\\cache\\dev\\appDevDebugProjectContainer.php","line":67327,"level":28928,"stack":[{"function":"handleError","class":"Symfony\\Component\\Debug\\ErrorHandler","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\app\\cache\\dev\\appDevDebugProjectContainer.php","line":67327,"function":"trigger_error"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\DependencyInjection\\Container.php","line":314,"function":"getOroLocale_Twig_DateTimeOrganizationService","class":"appDevDebugProjectContainer","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\app\\cache\\dev\\appDevDebugProjectContainer.php","line":61411,"function":"get","class":"Symfony\\Component\\DependencyInjection\\Container","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\DependencyInjection\\Container.php","line":314,"function":"getTwigService","class":"appDevDebugProjectContainer","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\app\\cache\\dev\\appDevDebugProjectContainer.php","line":61765,"function":"get","class":"Symfony\\Component\\DependencyInjection\\Container","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\DependencyInjection\\Container.php","line":314,"function":"getWebProfiler_Controller_ProfilerService","class":"appDevDebugProjectContainer","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\nelmio\\api-doc-bundle\\Nelmio\\ApiDocBundle\\Extractor\\ApiDocExtractor.php","line":226,"function":"get","class":"Symfony\\Component\\DependencyInjection\\Container","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\nelmio\\api-doc-bundle\\Nelmio\\ApiDocBundle\\Extractor\\CachingApiDocExtractor.php","line":79,"function":"getReflectionMethod","class":"Nelmio\\ApiDocBundle\\Extractor\\ApiDocExtractor","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\oro\\platform\\src\\Oro\\Bundle\\ApiBundle\\ApiDoc\\CachingApiDocExtractor.php","line":97,"function":"all","class":"Nelmio\\ApiDocBundle\\Extractor\\CachingApiDocExtractor","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\oro\\platform\\src\\Oro\\Bundle\\ApiBundle\\ApiDoc\\CachingApiDocExtractor.php","line":135,"function":"all","class":"Oro\\Bundle\\ApiBundle\\ApiDoc\\CachingApiDocExtractor","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\oro\\platform\\src\\Oro\\Bundle\\ApiBundle\\Command\\DocCacheClearCommand.php","line":96,"function":"warmUp","class":"Oro\\Bundle\\ApiBundle\\ApiDoc\\CachingApiDocExtractor","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Command\\Command.php","line":259,"function":"execute","class":"Oro\\Bundle\\ApiBundle\\Command\\DocCacheClearCommand","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Application.php","line":866,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Application.php","line":193,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\FrameworkBundle\\Console\\Application.php","line":92,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Console\\Application.php","line":124,"function":"doRun","class":"Symfony\\Bundle\\FrameworkBundle\\Console\\Application","type":"->"},{"file":"C:\\Apache24\\htdocs\\orocrm\\app\\console","line":22,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"}]} []
php.INFO: The "_method" requirement is deprecated since version 2.2 and will be removed in 3.0. Use the setMethods() method instead. {"type":16384,"file":"C:\\Apache24\\htdocs\\orocrm\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Routing\\Route.php","line":652,"level":28928} []
console.ERROR: An error occurred while running command ""oro:api:doc:cache:clear"". Processor failed: "oro_api.collect_subresources.initialize_subresources". Reason: Processor failed: "oro_api.get_config.complete_definition". Reason: Entity "Oro\Bundle\AttachmentBundle\Entity\Attachment" is not configurable {"exit_code":0,"exception":"[object] (Oro\\Component\\ChainProcessor\\Exception\\ExecutionFailedException(code: 0): Processor failed: \"oro_api.collect_subresources.initialize_subresources\". Reason: Processor failed: \"oro_api.get_config.complete_definition\". Reason: Entity \"Oro\\Bundle\\AttachmentBundle\\Entity\\Attachment\" is not configurable at C:\\Apache24\\htdocs\\orocrm\\vendor\\oro\\platform\\src\\Oro\\Component\\ChainProcessor\\ChainProcessor.php:44, Oro\\Component\\ChainProcessor\\Exception\\ExecutionFailedException(code: 0): Processor failed: \"oro_api.get_config.complete_definition\". Reason: Entity \"Oro\\Bundle\\AttachmentBundle\\Entity\\Attachment\" is not configurable at C:\\Apache24\\htdocs\\orocrm\\vendor\\oro\\platform\\src\\Oro\\Component\\ChainProcessor\\ChainProcessor.php:44, Oro\\Bundle\\EntityConfigBundle\\Exception\\RuntimeException(code: 0): Entity \"Oro\\Bundle\\AttachmentBundle\\Entity\\Attachment\" is not configurable at C:\\Apache24\\htdocs\\orocrm\\vendor\\oro\\platform\\src\\Oro\\Bundle\\EntityConfigBundle\\Config\\ConfigManager.php:278)","arguments":{"command":"oro:api:doc:cache:clear"}} []
event.DEBUG: Notified event "console.exception" to listener "Oro\Bundle\LoggerBundle\EventSubscriber\ConsoleCommandSubscriber::onConsoleException". [] []
event.DEBUG: Notified event "console.terminate" to listener "Oro\Bundle\PlatformBundle\EventListener\Console\DriverLockCommandListener::afterExecute". [] []
event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
event.DEBUG: Notified event "console.terminate" to listener "Oro\Bundle\MessageQueueBundle\Log\Handler\ConsoleHandler::onTerminate". [] []

最后我试着导航到 http://orocrm.example.com/

代码语言:javascript
复制
 _**Resulted in Blank Page**_ 

清除和热化Thomas __所说的实体配置缓存之后,并从dev.log文件:

代码语言:javascript
复制
console.INFO: Launched command "oro:entity-config:cache:clear" {"arguments":{"command":"oro:entity-config:cache:clear"}} []
event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\EntityExtendBundle\EventListener\ConsoleCommandListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\MessageQueueBundle\Log\Handler\ConsoleHandler::onCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\SecurityBundle\EventListener\ConsoleContextListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\ApiBundle\EventListener\DumpApiDocConsoleCommandListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\CacheBundle\EventListener\CacheWarmerListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\PlatformBundle\EventListener\Console\OptionalListenersListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\MigrationBundle\EventListener\ConsoleCommandListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\FeatureToggleBundle\EventListener\ConsoleCommandListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\NavigationBundle\Event\JsRoutingDumpListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\LocaleBundle\EventListener\LocaleListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\LoggerBundle\EventSubscriber\ConsoleCommandSubscriber::onConsoleCommand". [] []
doctrine.DEBUG: SHOW FULL TABLES WHERE Table_type = 'BASE TABLE' [] []
event.DEBUG: Notified event "console.terminate" to listener "Oro\Bundle\PlatformBundle\EventListener\Console\DriverLockCommandListener::afterExecute". [] []
event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
event.DEBUG: Notified event "console.terminate" to listener "Oro\Bundle\MessageQueueBundle\Log\Handler\ConsoleHandler::onTerminate". [] []
console.INFO: Launched command "oro:entity-config:cache:warmup" {"arguments":{"command":"oro:entity-config:cache:warmup"}} []
event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\EntityExtendBundle\EventListener\ConsoleCommandListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\MessageQueueBundle\Log\Handler\ConsoleHandler::onCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\SecurityBundle\EventListener\ConsoleContextListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\ApiBundle\EventListener\DumpApiDocConsoleCommandListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\CacheBundle\EventListener\CacheWarmerListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\PlatformBundle\EventListener\Console\OptionalListenersListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\MigrationBundle\EventListener\ConsoleCommandListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\FeatureToggleBundle\EventListener\ConsoleCommandListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\NavigationBundle\Event\JsRoutingDumpListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\LocaleBundle\EventListener\LocaleListener::onConsoleCommand". [] []
event.DEBUG: Notified event "console.command" to listener "Oro\Bundle\LoggerBundle\EventSubscriber\ConsoleCommandSubscriber::onConsoleCommand". [] []
doctrine.DEBUG: SHOW FULL TABLES WHERE Table_type = 'BASE TABLE' [] []
event.DEBUG: Notified event "console.terminate" to listener "Oro\Bundle\PlatformBundle\EventListener\Console\DriverLockCommandListener::afterExecute". [] []
event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
event.DEBUG: Notified event "console.terminate" to listener "Oro\Bundle\MessageQueueBundle\Log\Handler\ConsoleHandler::onTerminate". [] []
EN

回答 2

Stack Overflow用户

发布于 2018-02-02 13:01:48

确保正确地重新生成实体配置缓存。删除所有缓存文件并尝试以下命令:

oro:entity-config:cache:clear Clears the entity config cache. oro:entity-config:cache:warmup Warms up the entity config cache.

如果没有成功,请让我们知道您正在安装的CRM版本,并包含完整的安装日志。

票数 0
EN

Stack Overflow用户

发布于 2018-03-04 23:20:15

我在windows和unix系统上都有这个问题。其缓慢的数据库性能和硬编码的时间限制在口头。

您的安装尚未完成。正如您所看到的,它在“Oro\Bundle\NotificationBundle\Migrations\Schema\OroNotificationBundleInstaller”之后停止,而不是安装的最后一部分。我对这个问题做了恶梦;)应用程序日志、系统日志、什么都没有。

原因是您达到了数据库迁移的时间限制。在调查了安装脚本之后,它运行:

代码语言:javascript
复制
oro:migration:load

对于默认的params:

代码语言:javascript
复制
$commandExecutor
    ->runCommand(
        'oro:migration:load',
        [
            '--force'             => true,
            '--process-isolation' => true,
            '--timeout'           => $commandExecutor->getDefaultOption('process-timeout'),
        ]
    )

进程超时的默认值在内部: Oro\Bundle\InstallerBundle\CommandExecutor,值为300。如果你在硬盘驱动器上使用数据库的话,就不会那么多了。我不知道你是否可以为安装程序传递附加参数--超时值选项(你可以尝试),但是你可以在windows上更改安装时刻的核心值。但是在windows上使用豪言壮语,使用硬盘驱动器是非常困难的。

因此,只需编辑一下CommandExecutor,就可以更改:

代码语言:javascript
复制
const DEFAULT_TIMEOUT = 300;

以更高的价值,你会没事的。祝你好运(你需要它;)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48485269

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档