Editing
Troubleshooting Elastic Beanstalk Deployment
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== eb deploy failure === * Run `eb logs` in the local distribution of the environment to view the latest commands run in the EBS environment. ** If `eb logs` generates a "permission denied" message, try `eb logs --instance [EBS-INSTANCE-ID] --verbose` * View the tail of the file `/var/log/cfn-init-cmd.log`. This file will list all commands in `.ebextensions` and whether they executed successfully or not. * Check the `.ebextensions` config files on the server in `/var/app/staging/` * Confirm the domain settings in AWS Route 53. * Confirm that the web files have been uploaded to `/var/www/html/`. * Confirm the EBS raw URL to the site: '''AWS Console''' > '''Elastic Beanstalk''' > '''Environments''' > ''click on the URL for the environment in question'' * Scale back the application and incrementally deploy. ** Remove all web files except for a boilerplate "Hello, World" index file. ** Comment out all commands in `.ebextensions` configuration files. ** Remove `composer.json` ** Run `eb deploy` to see if it can successfully upload this most basic environment. ** Incrementally add back components of the application and redeploy to isolate problematic components. ==== Errors running `composer install` ==== This could be due to an expired GitHub personal access token. These tokens allow composer to pull from private GitHub repos. The token is stored in a file in an S3 bucket. The file is copied to the EBS server in one of the `.ebextensions` scripts and used to run composer. Look in that script for the expected location of the file. If the token is expired, [https://github.com/settings/tokens generate a new one]. Save the token in a text file and upload it to the S3 bucket, overwriting the old token file.
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information