Magento 2 安装 - 密钥不得超过 56 字节

Magento 2 Installation - Key must not exceed 56 bytes

我在通过命令行安装 Magento 2 时遇到问题。当设置为 运行 时,它变为:

模块'Magento_Indexer': 运行 重复..

它抛出一个错误:

[Magento\Framework\Exception\LocalizedException]
Key must not exceed 56 bytes.

我四处搜索,找不到任何关于它可能是什么的线索。我认为 --key 对于 Magento 设置来说可能太长了,但我尝试了不带 --key 的设置,因为它是可选的,但错误仍然存​​在。

2016/07/08 14:42:49 [error] 30074#30074: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'Magento\Framework\Exception\LocalizedException' with message 'Key must not exceed 56 bytes.' in /magento/lib/internal/Magento/Framework/Encryption/Crypt.php:58 Stack trace:

0 /magento/lib/internal/Magento/Framework/Encryption/Encryptor.php(401): Magento\Framework\Encryption\Crypt->__construct('oon5eeRee7yiemo...', 'blowfish', 'ecb', false)

1 /magento/lib/internal/Magento/Framework/Encryption/Encryptor.php(313): Magento\Framework\Encryption\Encryptor->getCrypt('oon5eeRee7yiemo...', 0, false)

2 /magento/app/code/Magento/Config/Model/Config/Backend/Encrypted.php(107): Magento\Framework\Encryption\Encryptor->decrypt('PayPal')

3 /magento/lib/internal/Magento/Framework/App/Config/MetadataProcessor.php(86): Magento\Config\Model\Config\Backend\Encrypted->processValue('PayPal')

4 /magento/lib/internal/Magento/Framework/App/Config/Data.php(32): Magento\Framework\App\Config\MetadataPr" while reading response header from upstream, client: 127.0.0.1, server: www.magentotest.com, request: "GET /setup/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.magentotest.com"

如果有人能提供帮助那就太好了,谢谢!

app/etc/env.php 填充了您的安装详细信息。查看内容 crypt,并确保 key 没有附加多行,就像我的新安装中的情况一样,在 运行 之后 setup:install多次。

为当前安装更改此密钥显然不是一个好主意。如果这解决了您的问题,请告诉我,以便我记录一个工单。