簡體   English   中英

Orocommerce 安裝(不執行數據庫創建)

[英]Orocommerce installation (DB creation isn't performed)

我需要你的幫助。 我正在嘗試在我的 ubuntu 20.04 機器上安裝 orocommerce。

我按照https://doc.oroinc.com/backend/setup/installation/給出的說明從 orocommerce 下載了代碼目錄(沒有 git,沒有作曲家)。 根據 isintructions,在我的 parameters.yml 文件配置之后,我執行腳本“ sudo php bin/console oro:install --env=prod --timeout=2000 --sample-data=y ”繼續安裝在我的環境中,但幾秒鍾后,安裝顯示錯誤

PHP Fatal error:  Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orocommerce.oro_config' doesn't exist in /var/www/html/orocommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117

你能幫我理解為什么如果我試圖從頭開始安裝它需要一個現有的表嗎?

我的參數文件

# This file is auto-generated during the composer install
parameters:
    database_driver: pdo_mysql
    database_host: 'localhost'
    database_port: '3306'
    database_name: 'orocommerce'
    database_user: 'Intcomex'
    database_password: 'Intcomex'
    database_server_version: '10.3.34'
    database_driver_options: {  }
    mailer_dsn: ''
    websocket_bind_address: 0.0.0.0
    websocket_bind_port: 8080
    websocket_frontend_host: '*'
    websocket_frontend_port: 8080
    websocket_frontend_path: ''
    websocket_backend_host: '*'
    websocket_backend_port: 8080
    websocket_backend_path: ''
    websocket_backend_transport: tcp
    websocket_backend_ssl_context_options: {  }
    web_backend_prefix: /admin
    session_handler: session.handler.native_file
    secret: 'Intcomex'
    installed: false 
    message_queue_transport: dbal
    message_queue_transport_config: null
    enable_price_sharding: '0'
    deployment_type: null
    liip_imagine.jpegoptim.binary: null
    liip_imagine.pngquant.binary: null
    env(ORO_DB_HOST): 127.0.0.1
    env(ORO_DB_PORT): 3306
    env(ORO_DB_NAME): orocrm
    env(ORO_DB_USER): Intcomex
    env(ORO_DB_PASSWORD): Intcomex
    env(ORO_DB_VERSION): null
    env(ORO_MAILER_DSN): 'native://default'
    env(ORO_SECRET): ThisTokenIsNotSoSecretChangeIt
    env(ORO_ENABLE_PRICE_SHARDING): '0'

安裝命令執行后的部分堆棧跟蹤

Installing Oro Application.

Check system requirements

In NodeJsVersionChecker.php line 13:

  Oro\Bundle\AssetBundle\NodeJsVersionChecker::satisfies(): Argument #1 ($nodeJsExecutable) must be of type string, null given, called
   in /var/www/html/orocommerce/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Provider/PlatformRequirementsProvider.php on line 5
  11


oro:check-requirements

PHP Fatal error:  Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orocommerce.oro_config' doesn't exist in /var/www/html/orocommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
Stack trace:
#0 /var/www/html/orocommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()
#1 /var/www/html/orocommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1303): Doctrine\DBAL\Driver\PDOStatement->execute()
......

看來您還沒有安裝 OroCommerce 所需的 NodeJS。 有一個關於 ubuntu 本地環境設置的說明,您可以在安裝前遵循該說明以滿足所有系統要求: https://doc.oroinc.com/backend/setup/dev-environment/docker-and-symfony/ubuntu /

安裝所有附加軟件后,請確保在重試安裝之前清除緩存。 您可以通過在應用程序根目錄中運行rm -rf var/cache/*命令來完成

出於某種原因,parameters.yml 被錯誤地解析。 請改用這些行:

database_host: '%env(ORO_DB_HOST)%'
database_port: '%env(ORO_DB_PORT)%'
database_name: '%env(ORO_DB_NAME)%'
database_user: '%env(ORO_DB_USER)%'
database_password: '%env(ORO_DB_PASSWORD)%'
database_server_version: '%env(ORO_DB_VERSION)%'

env(ORO_DB_HOST): "localhost"
env(ORO_DB_PORT): "3306"
env(ORO_DB_NAME): orocommerce
env(ORO_DB_USER): Intcomex
env(ORO_DB_PASSWORD): "Intcomex"
env(ORO_DB_VERSION): "10.3.34"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM