duangan6133 2018-07-25 13:38
浏览 61

执行“'cache:clear --no-warmup'”命令时发生错误:

post-install-cmd: @symfony-scripts

symfony-scripts: Incenteev\ParameterHandler\ScriptHandler::buildParameters

Updating the "app/config/parameters.yml" file

symfony-scripts: Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

[ErrorException] stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception
[RuntimeException] An error occurred when executing the "'cache:clear --no-warmup'" command:

  [ErrorException]                                                               
stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name     
or service not known

Exception trace:
() at /home/docaret/Desktop/AppReact/sparkplant-api-testing/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:293
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at /home/docaret/Desktop/AppReact/sparkplant-api-testing/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:143
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:292
Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:215
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:81
Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:195
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:96
Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/local/bin/composer/src/Composer/Installer.php:323
Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/InstallCommand.php:119
Composer\Command\InstallCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:242
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:843
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:193
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:251
Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:100
Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:59
require() at /usr/local/bin/composer:24

I got back the work of an app, I retrieved the sources, and I tried to launch API-TEST with composer install but it takes me this error, I try manually with

php bin/console cache:clear ==>
 // Clearing the cache for the dev environment with debug true
[ErrorException] stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known

sudo php bin/console cache:clear --no-warmup -e prod ==>
[PhpAmqpLib\Exception\AMQPProtocolConnectionException]
ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.

I did rm -rf vendor/ var/cache, does not work.

database_host: db
database_port: 3306
database_name: api_platform
database_user: api_platform
database_password: api_platform

rmq.host: rabbitmq
rmq.port: 5672

i'm intern student trainee... please help me !

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 mmocr的训练错误,结果全为0
    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀