Ich habe PHP-Anwendung (Laravel) und den eb CLI installiert. Vor Ort ist alles in Ordnung.Elastic Beanstalk CMD-AppDeploy Aktivität fehlgeschlagen (Komponist Problem ???)
Die Erstanwendung wie erwartet funktioniert (hochgeladen als archive.zip auf erstellt).
Wenn ich schiebe meine Repo auf meine Bewerbung mit:
git aws.push
Es schlägt fehl. Die Protokolle sagen dies:
[2014-12-12T16:53:38.652Z] INFO [28264] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/10_composer_install.sh] : Activity failed.
[2014-12-12T16:53:38.652Z] INFO [28264] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook] : Activity failed.
[2014-12-12T16:53:38.652Z] INFO [28264] - [CMD-AppDeploy/AppDeployStage0] : Activity failed.
[2014-12-12T16:53:38.653Z] INFO [28264] - [CMD-AppDeploy] : Completed activity. Result:
Command CMD-AppDeploy failed.
und diese
[2014-12-12T16:53:38.653Z] ERROR [28264] : Command CMD-AppDeploy failed!
[2014-12-12T16:53:38.654Z] INFO [28264] : Command processor returning results:
{"status":"FAILURE","api_version":"1.0","truncated":"true","results":
[{"status":"FAILURE","msg":"[CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/10_composer_install.sh]
command failed with error code 1:
/opt/elasticbeanstalk/hooks/appdeploy/pre/10_composer_install.sh\n++ /opt/elasticbeanstalk/bin/get-config container -k app_staging_dir\n+ EB_APP_STAGING_DIR=/var/app/ondeck\n+
cd /var/app/ondeck\n+ '[' -f composer.json ']'\n+
export COMPOSER_HOME=/root\n+ COMPOSER_HOME=/root\n+ '[' -d vendor ']'\n++ /opt/elasticbeanstalk/bin/get-config optionsettings -n aws:elasticbeanstalk:container:php:phpini -o composer_options\n+ PHP_COMPOSER_OPTIONS=\n+
echo 'Found composer.json file. Attempting to install vendors.'\nFound composer.json file.
Attempting to install vendors.\n+ composer.phar install --no-ansi --no-interaction\nLoading composer repositories with package information\nInstalling dependencies (including require-dev) from lock file\n - Installing symfony/finder (v2.5.8)\n ","returncode":1,"events":[]}]}
Ich dachte, es ist ein Komponist Problem war, ich habe in die Instanz gegangen und ein Komponist Update innerhalb der Maschine gemacht, aber das hat gut funktioniert.
Ich habe die composer.lock Datei aus dem .gitignore entfernt
Ich kann nichts ähnliche Online finden so etwas hier/fehlt etwas sehr offensichtlich tue ich nehme ich.
Ich habe das gleiche Problem hier :( –
Was ist die Unterschiede in Ihrer Installation Rich? Was machst du? – Mason8r
versuchen Sie durch Ihre Protokolle (Download von EB-Konsole) und suchen Sie nach wo Komponisten erscheint .Ich kann mich nicht erinnern, wo, aber ein Teil der Logs zeigt die Composer-Fehlerausgabe, die mir half, mein Problem zu lösen. –