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

时间:2018-07-25 13:38:58

标签: php symfony rabbitmq composer-php

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

我找回了一个应用程序的工作,检索了源代码,并尝试通过composer install启动API-TEST,但我却遇到了这个错误,我尝试使用

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.

我做了rm -rf vendor / var / cache,不起作用。

数据库主机:db
database_port:3306
database_name:api_platform
database_user:api_platform
database_password:api_platform

rmq.host:rabbitmq
    rmq.port:5672

我是实习生,请帮助我!

0 个答案:

没有答案