実現したいこと
- エラーを解決してデプロイを完了したい
前提
Symfonyを使ったECサイトを運用・保守しています。
今回、新しい決済機能を実装しdev環境にデプロイリリースしたところ
[Package "ocramius/proxy-manager" is not installed ]
エラーが発生し動かなくなりました。
これを解決したいです。
発生している問題・エラーメッセージ
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache In InstalledVersions.php line 203: Package "ocramius/proxy-manager" is not installed Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-clear-cache event terminated with an exception [RuntimeException] An error occurred when executing the "'cache:clear --no-warmup'" command: In InstalledVersions.php line 203: Package "ocramius/proxy-manager" is not installed
該当のソースコード
Composer.json の一部を記載
"require": { "php": ">=7.1.0", "symfony/symfony": "3.4.*", "doctrine/orm": "^2.5", "doctrine/doctrine-bundle": "^1.6", "doctrine/doctrine-cache-bundle": "^1.2", "symfony/swiftmailer-bundle": "^3.2", "symfony/monolog-bundle": "^3.0", "symfony/polyfill-apcu": "^1.0", "sensio/distribution-bundle": "^5.0", "sensio/framework-extra-bundle": "^3.0.2", "sensio/generator-bundle": "^3.0", "incenteev/composer-parameter-handler": "^2.0", "doctrine/migrations": "^1.4", "doctrine/doctrine-migrations-bundle": "^1.2", "doctrine/doctrine-fixtures-bundle": "^2.3", "friendsofsymfony/user-bundle": "^2.0", "hwi/oauth-bundle": "^0.6.2", "symfony/assetic-bundle": "^2.8", "patchwork/jsqueeze": "^2.0", "amzn/amazon-pay-sdk-php": "^3.0", "erusev/parsedown": "^1.6", "petkopara/crud-generator-bundle": "^3.0", "liip/imagine-bundle": "^2.0", "oneup/flysystem-bundle": "^3.0", "league/flysystem-sftp": "^1.0", "php-http/guzzle6-adapter": "^1.1", "php-http/httplug-bundle": "^1.10", "qandidate/toggle-bundle": "^1.1", "amzn/amazon-pay-api-sdk-php": "2.2.1", "logue/igo-php": "0.2.0", "composer/package-versions-deprecated": "1.11.99.1", "http-interop/http-factory-guzzle": "^1.1" }, "require-dev": { "symfony/phpunit-bridge": "^3.0", "phpunit/phpunit": "^6.0", "squizlabs/php_codesniffer": "^2.7", "phpstan/phpstan": "^0.11.8", "phpstan/phpstan-symfony": "^0.11.6" }, "scripts": { "symfony-build-bootstrap": [ "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap" ], "symfony-clear-cache": [ "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache" ], "symfony-install-assets": [ "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets" ], "symfony-install-requirements": [ "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" ], "post-install-cmd": [ "@symfony-build-bootstrap" ], "post-update-cmd": [ "@symfony-build-bootstrap", "@symfony-clear-cache", "@symfony-install-assets", "@symfony-install-requirements" ] }, "extra": { "symfony-app-dir": "app", "symfony-bin-dir": "bin", "symfony-var-dir": "var", "symfony-web-dir": "web", "symfony-tests-dir": "tests", "symfony-assets-install": "relative", "branch-alias": null }, "config": { "allow-plugins": { "php-http/discovery": true } }
試したこと
・キャッシュを削除してからリリース
・Composerのバージョンを2.2.9を指定して実行
補足情報(FW/ツールのバージョンなど)
PHP:7.2.34
Symfony:3.4.49
Composer:2.2.9
回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
また依頼した内容が修正された場合は、修正依頼を取り消すようにしましょう。
2023/05/11 04:32