problem about elastic-beanstalk-Collection of common programming errors


  • Ir1sh
    php amazon-web-services amazon-ec2 composer-php elastic-beanstalk
    So my application installs and deploys fine as long as I put it on an instance bigger than micro.when I deploy on micro when composer tries to install I get a php error about not being able to allocate enough memory. so I did some googling and it seems that you can create a swap file/disk on boot/ creating of the instance here are two tutorials one twothese might be dated so first question is can this still be done?Second question is how do I create a .ebextensions file to make this happen on d

  • JasonD5150
    tomcat7 elastic-beanstalk amazon-route53
    I have a Java application configured and deployed to Elastic Beanstalk running Tomcat 7.The Elastic Beanstalk application URL is jljdavidson.elasticbeanstalk.com.I’ve set up an A-IPV4 alias in Route 53 so that test.jljdavidson.com is routed to my application. The alias I’ve set up routes from test.jljdavidson.com to my applications Elastic load balancer.This is working as expected and http://test.jljdavidson.com resolves to my Elastic application as I would expect.However, what I’m running into

  • goose
    php amazon-web-services elastic-beanstalk
    I’m using Elastic Beanstalk on AWS and I’m trying to override some settings from the php.ini file. I’ve made the directory /.ebextensions with project.config within it:files:”/etc/php.d/project.ini” :mode: “000644”owner: ec2-usergroup: ec2-usercontent: |date.timezone = “Europe/Berlin”error_reporting = E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNINGdisplay_errors = OffWhen I redeploy the application, EBS throws the following error:The configuration file __MACOSX/gf/.ebextensions/._project.

  • user1444989
    java c amazon-web-services jni elastic-beanstalk
    I think what I’m trying to do ought to be trivially easy for anyone who knows what they’re doing, but the only language almost without exception that I’ve ever programmed in is C. I do so poorly. I’m trying to create a webapp on elastic beanstalk that talks to a C program. My current plan is to use JNI to create a native function that I can call on the main jsp page when someone fills out a form and presses a button.So far on the C end I’ve written a function that contains the 7 input variabl

  • Unicate
    configuration amazon-web-services elastic-beanstalk
    I have an application running on aws elastic beanstalk. The application needs an configuration file, which I putted for testing on the ec2 instance manually.Problem is, that when the autoscaler decides to scale up to more instances, the application does not have any configuration file on the new instances.I read about creating templates for the instances. I could put my config file on the instances and then it’ll be replicated in the new instance. This has a big disadvantage, ’cause if I wanna

  • Ed Pichler
    java regex linux elastic-beanstalk
    I have a java regex pattern that works perfectly under Tomcat7 in Mac OSX, but under Amazon Linux (used on Amazon Elastic Beanstalk) it doesn’t match never.Here is the pattern:(\d\.)(([^\d\s])([a-z/\s]*))And here is some example of text:1.AAAA/BBBBBB Here is the java code:Pattern pattern = Pattern.compile(PATTERN, Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(input); while (matcher.find()) {//…. }I can’t understand what are the platform differences on this. Somebody?EditedMore i

  • Steffen Opel
    java jsp amazon-web-services beanstalk elastic-beanstalk
    I’m compiling the Amazon Web Services Elastic Beanstalk demo and attempting to run it (locally, on tomcat7) on a fresh install of Arch linux.Every time, it fails to the console with:Feb 18, 2012 2:31:41 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [jsp] in context with path [/TryTwo] threw exception [java.lang.IllegalStateException: No Java compiler available] with root cause java.lang.IllegalStateException: No Java compiler available at org.apach

  • Ben
    amazon-ec2 amazon-web-services elastic-beanstalk autoscaling amazon-cloudwatch
    I have a site running on amazon elastic beanstalk with the following traffic pattern:~50 concurrent users normally. ~2000 concurrent users for 1/2 minutes when post is made to Facebook page.Amazon web services claim to be able to rapidly scale to challenges like this but the “Greater than x for more than 1 minute” setup of cloudwatch doesn’t appear to be fast enough for this traffic pattern?Usually within seconds all the ec2 instances crash, killing all cloudwatch metrics and the whole site is d

  • Kieren Johnstone
    asp.net-mvc amazon-web-services visual-studio-2012 elastic-beanstalk
    StepsRight-click project, “Publish to AWS” Deploy new application with template: “AWS Elastic Beanstalk” Name: “mysite”, description “mysite”, tick “Deploy application incrementally”, Next Environment name:” mysite”, description “mysite”, default URL, Next Container 64-bit Server 2012 w/IIS 8, instance type Small, Next Tick “Enable 32-bit applications”, enter valid notification email address, DeployResultsOutput window shows:Commencing deployment for project 0x10c-cloud …building deployment pa

  • Chantz
    amazon-web-services amazon-ami elastic-beanstalk paas
    I am starting from scratch to launch a new Elastic Beanstalk environment using 64-Bit Amazon Lunix AMI version 2013.09. It is for tomcat 7 non-legacy container.But after the environment is created and the instance has been launched, the URL (where the deployed app is supposed to be available) is not working. I checked the instance itself & it seems that tomcat is not installed on it, let alone starting it. So I checked out the log file at /var/log/cfn-init.log and I saw some issues in it whi

  • holtkampw
    ruby-on-rails ruby git elastic-beanstalk
    I’ve read a couple of other threads on SO discussing using :git in a GemFile but those solutions don’t seem to be working for me.Here’s my .ebextensions/ruby.config file:option_settings:- option_name: BUNDLE_DISABLE_SHARED_GEMSvalue: “1”- option_name: BUNDLE_PATHvalue: “vendor/bundle”packages:yum:git: []container_commands:01bundle:command: bundle –deploymentHere’s the one place I’m using Github in my GemFile:gem ‘themes_for_rails’, :git => ‘https://github.com/digitalmoksha/themes_for_rails.g

  • Krithika Swaminathan
    php codeigniter header port elastic-beanstalk
    I am trying to get the port information from the header request in PHP. Code Igniter to be specific?I tried doing:$headers = apache_request_headers();Port Information is not available. We are using an Elastic Beanstalk from Amazon as a server. We were told that: There is a header sent from the EC2 load balancer called “X-Forwarded-Proto” which fluctuates depending on if we are http or https.If I try to do:$headers = apache_request_headers(); $port = $headers[“X-Forwarded-Port”]; echo “X-Forwa

Web site is in building