Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does fast-deploy work ? #76

Open
manikandanrs opened this issue Oct 16, 2015 · 11 comments
Open

Does fast-deploy work ? #76

manikandanrs opened this issue Oct 16, 2015 · 11 comments

Comments

@manikandanrs
Copy link

I am trying to use this plugin in fast-deploy goal. From the logs i see that, it seems to push to git but not able to get the version label back.

I am not able to see the application versions in the beanstalk console. Here is part of pom.xml that contains the configuration for beanstalker plugin

br.com.ingenieux beanstalk-maven-plugin 1.4.0 deploy deploy fast-deploy true MavenBeasStalkerSE1
@aldrinleal
Copy link
Member

which region?
On Oct 15, 2015 7:14 PM, "Manikandan Subramanian" notifications@github.com
wrote:

I am trying to use this plugin in fast-deploy goal. From the logs i see
that, it seems to push to git but not able to get the version label back.

I am not able to see the application versions in the beanstalk console.
Here is part of pom.xml that contains the configuration for beanstalker
plugin

br.com.ingenieux
beanstalk-maven-plugin
1.4.0

deploy
deploy

fast-deploy

true
MavenBeasStalkerSE1


Reply to this email directly or view it on GitHub
#76.

@manikandanrs
Copy link
Author

us-east-1

@davidmoten
Copy link

I'm finding 1.4.0 fast-deploy to be very hit and miss. region is ap-southeast-2. I was wondering if the use of git force upsets Amazon triggers. This is my code: https://github.com/davidmoten/beanstalk-demo and I'm calling mvn package beanstalk:fast-deploy.

@davidmoten
Copy link

Here's log for a miss. Any ideas/workarounds?

[DEBUG] Configuration override awssdk_config_override.json not found.
[INFO] ... with cname set to 'beanstalkdemo-env.elasticbeanstalk.com'
[INFO] ... with status *NOT* set to 'Terminated'
[DEBUG] Sending Request: POST https://elasticbeanstalk.ap-southeast-2.amazonaws.com / Parameters: (Action: DescribeEnvironments, Version: 2010-12-01, ApplicationName: beanstalkDemo, IncludeDeleted: true, ) Headers: (User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60, ) 
[DEBUG] AWS4 Canonical Request: '"POST
/

host:elasticbeanstalk.ap-southeast-2.amazonaws.com
user-agent:Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60
x-amz-date:20151019T022551Z

host;user-agent;x-amz-date
f0e4b6010a4cbda9b5ba5b1fee53582df178b1057cf05f89d69e1b49f7a64ae1"
[DEBUG] AWS4 String to Sign: '"AWS4-HMAC-SHA256
20151019T022551Z
20151019/ap-southeast-2/elasticbeanstalk/aws4_request
672e39fed868a159f65fac0a6a3018294d389e38bc0aece94520b6f8879672e2"
[DEBUG] Connection request: [route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 0; route allocated: 0 of 50; total allocated: 0 of 50]
[DEBUG] Connection leased: [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] socket.getSupportedProtocols(): [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2], socket.getEnabledProtocols(): [TLSv1, TLSv1.1, TLSv1.2]
[DEBUG] TLS protocol enabled for SSL handshake: [TLSv1.2, TLSv1.1, TLSv1]
[DEBUG] Connecting to elasticbeanstalk.ap-southeast-2.amazonaws.com:443
[DEBUG] CookieSpec selected: best-match
[DEBUG] Auth cache not set in the context
[DEBUG] Proxy auth state: UNCHALLENGED
[DEBUG] Attempt 1 to execute request
[DEBUG] Sending request: POST / HTTP/1.1
[DEBUG]  >> "POST / HTTP/1.1[\r][\n]"
[DEBUG]  >> "Host: elasticbeanstalk.ap-southeast-2.amazonaws.com[\r][\n]"
[DEBUG]  >> "Authorization: AWS4-HMAC-SHA256 Credential=AKIAJSMNO735B3KNA5WA/20151019/ap-southeast-2/elasticbeanstalk/aws4_request, SignedHeaders=host;user-agent;x-amz-date, Signature=ee80b0b90d6d9c49e23e0102c221fbc9fffad3ccd93bb997c1a6a1ea4c5310b6[\r][\n]"
[DEBUG]  >> "X-Amz-Date: 20151019T022551Z[\r][\n]"
[DEBUG]  >> "User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60[\r][\n]"
[DEBUG]  >> "Content-Type: application/x-www-form-urlencoded; charset=utf-8[\r][\n]"
[DEBUG]  >> "Content-Length: 96[\r][\n]"
[DEBUG]  >> "Connection: Keep-Alive[\r][\n]"
[DEBUG]  >> "[\r][\n]"
[DEBUG] >> POST / HTTP/1.1
[DEBUG] >> Host: elasticbeanstalk.ap-southeast-2.amazonaws.com
[DEBUG] >> Authorization: AWS4-HMAC-SHA256 Credential=AKIAJSMNO735B3KNA5WA/20151019/ap-southeast-2/elasticbeanstalk/aws4_request, SignedHeaders=host;user-agent;x-amz-date, Signature=ee80b0b90d6d9c49e23e0102c221fbc9fffad3ccd93bb997c1a6a1ea4c5310b6
[DEBUG] >> X-Amz-Date: 20151019T022551Z
[DEBUG] >> User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60
[DEBUG] >> Content-Type: application/x-www-form-urlencoded; charset=utf-8
[DEBUG] >> Content-Length: 96
[DEBUG] >> Connection: Keep-Alive
[DEBUG]  >> "Action=DescribeEnvironments&Version=2010-12-01&ApplicationName=beanstalkDemo&IncludeDeleted=true"
[DEBUG]  << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG]  << "x-amzn-RequestId: be3ddf67-7608-11e5-a59a-8937e0ef7562[\r][\n]"
[DEBUG]  << "Content-Type: text/xml[\r][\n]"
[DEBUG]  << "Content-Length: 1339[\r][\n]"
[DEBUG]  << "Date: Mon, 19 Oct 2015 02:26:02 GMT[\r][\n]"
[DEBUG]  << "[\r][\n]"
[DEBUG] Receiving response: HTTP/1.1 200 OK
[DEBUG] << HTTP/1.1 200 OK
[DEBUG] << x-amzn-RequestId: be3ddf67-7608-11e5-a59a-8937e0ef7562
[DEBUG] << Content-Type: text/xml
[DEBUG] << Content-Length: 1339
[DEBUG] << Date: Mon, 19 Oct 2015 02:26:02 GMT
[DEBUG] Connection can be kept alive indefinitely
[DEBUG]  << "<"
[DEBUG]  << "D"
[DEBUG]  << "e"
[DEBUG]  << "s"
[DEBUG]  << "cribeEnvironmentsResponse xm"
[DEBUG]  << "lns="http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/">[\n]"
[DEBUG]  << "  <DescribeEnvironmentsResult>[\n]"
[DEBUG]  << "    <Environments>[\n]"
[DEBUG]  << "      <member>[\n]"
[DEBUG]  << "        <SolutionStackName>64bit Amazon Linux 2015.03 v2.0.1 running Tomcat 8 Java 8</SolutionStackName>[\n]"
[DEBUG]  << "        <Health>Green</Health>[\n]"
[DEBUG]  << "        <DateUpdated>2015-10-19T02:19:09.396Z</DateUpdated>[\n]"
[DEBUG]  << "        <AbortableOperationInProgress>false</AbortableOperationInProgress>[\n]"
[DEBUG]  << "        <Alerts/>[\n]"
[DEBUG]  << "        <EnvironmentId>e-n85p3vgpps</EnvironmentId>[\n]"
[DEBUG]  << "        <DateCreated>2015-10-17T11:29:24.453Z</DateCreated>[\n]"
[DEBUG]  << "        <VersionLabel>git-c720473fe321a894ac9d2ad0df500e3260d6fe3d-1445221115567</VersionLabel>[\n]"
[DEBUG]  << "        <Tier>[\n]"
[DEBUG]  << "          <Name>WebServer</Name>[\n]"
[DEBUG]  << "          <Type>Standard</Type>[\n]"
[DEBUG]  << "          <Version> </Version>[\n]"
[DEBUG]  << "        </Tier>[\n]"
[DEBUG]  << "        <EnvironmentName>beanstalkdemo-env</EnvironmentName>[\n]"
[DEBUG]  << "        <EndpointURL>awseb-e-n-AWSEBLoa-14UJ2V3EQ12CR-66311712.ap-southeast-2.elb.amazonaws.com</EndpointURL>[\n]"
[DEBUG]  << "        <CNAME>beanstalkdemo-env.elasticbeanstalk.com</CNAME>[\n]"
[DEBUG]  << "        <EnvironmentLinks/>[\n]"
[DEBUG]  << "        <ApplicationName>beanstalkDemo</ApplicationName>[\n]"
[DEBUG]  << "        <Status>Ready</Status>[\n]"
[DEBUG]  << "      </member>[\n]"
[DEBUG]  << "    </Environments>[\n]"
[DEBUG]  << "  </DescribeEnvironmentsResult>[\n]"
[DEBUG]  << "  <ResponseMetadata>[\n]"
[DEBUG]  << "    <RequestId>be3ddf67-7608-11e5-a59a-8937e0ef7562</RequestId>[\n]"
[DEBUG]  << "  </ResponseMetadata>[\n]"
[DEBUG]  << "</DescribeEnvironmentsResponse>[\n]"
[DEBUG] Connection [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com] can be kept alive indefinitely
[DEBUG] Connection released: [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] Received successful response: 200, AWS Request ID: be3ddf67-7608-11e5-a59a-8937e0ef7562
[DEBUG] testing status 'Terminated' as equal as 'Ready' (negated? true, offset: 1): true
[DEBUG] testing status 'Terminated' as equal as 'Ready' (negated? true, offset: 1): true
[INFO] Using remote: https://AKIAJSMNO735B3KNA5WA:20151019T022557Za05352158a17aa48d6faf1ce9c898989ef0c016663e644347ed6f1915de7e8a7@git.elasticbeanstalk.ap-southeast-2.amazonaws.com/v1/repos/6265616e7374616c6b44656d6f/commitid/61336461653233663663623034346165626334363364353435626132373464613863303166656366/environment/6265616e7374616c6b64656d6f2d656e76
Counting objects:       7
Finding sources:        100% (7/7)
Getting sizes:          100% (6/6)
Compressing objects:    100% (6/6)
Writing objects:        100% (7/7)
[DEBUG] (Actually Expected) Exception
org.eclipse.jgit.api.errors.TransportException: https://AKIAJSMNO735B3KNA5WA@git.elasticbeanstalk.ap-southeast-2.amazonaws.com/v1/repos/6265616e7374616c6b44656d6f/commitid/61336461653233663663623034346165626334363364353435626132373464613863303166656366/environment/6265616e7374616c6b64656d6f2d656e76: 400 Bad Request
    at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:157)
    at br.com.ingenieux.mojo.beanstalk.bundle.FastDeployMojo.executeInternal(FastDeployMojo.java:176)
    at br.com.ingenieux.mojo.aws.AbstractAWSMojo.execute(AbstractAWSMojo.java:357)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.eclipse.jgit.errors.TransportException: https://AKIAJSMNO735B3KNA5WA@git.elasticbeanstalk.ap-southeast-2.amazonaws.com/v1/repos/6265616e7374616c6b44656d6f/commitid/61336461653233663663623034346165626334363364353435626132373464613863303166656366/environment/6265616e7374616c6b64656d6f2d656e76: 400 Bad Request
    at org.eclipse.jgit.transport.TransportHttp$Service.openResponse(TransportHttp.java:839)
    at org.eclipse.jgit.transport.TransportHttp$MultiRequestService.execute(TransportHttp.java:941)
    at org.eclipse.jgit.transport.TransportHttp$Service$HttpExecuteStream.read(TransportHttp.java:867)
    at org.eclipse.jgit.util.io.UnionInputStream.read(UnionInputStream.java:145)
    at org.eclipse.jgit.util.IO.readFully(IO.java:245)
    at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
    at org.eclipse.jgit.transport.SideBandInputStream.needDataPacket(SideBandInputStream.java:154)
    at org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:136)
    at org.eclipse.jgit.util.IO.readFully(IO.java:245)
    at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
    at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:138)
    at org.eclipse.jgit.transport.BasePackPushConnection.readStringLongTimeout(BasePackPushConnection.java:338)
    at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:293)
    at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:187)
    at org.eclipse.jgit.transport.TransportHttp$SmartHttpPushConnection.doPush(TransportHttp.java:771)
    at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:142)
    at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:141)
    at org.eclipse.jgit.transport.Transport.push(Transport.java:1162)
    at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:153)
    ... 23 more
[DEBUG] Sending Request: POST https://elasticbeanstalk.ap-southeast-2.amazonaws.com / Parameters: (Action: DescribeApplicationVersions, Version: 2010-12-01, ApplicationName: beanstalkDemo, ) Headers: (User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60, ) 
[DEBUG] AWS4 Canonical Request: '"POST
/

host:elasticbeanstalk.ap-southeast-2.amazonaws.com
user-agent:Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60
x-amz-date:20151019T022558Z

host;user-agent;x-amz-date
4668aaed6f8241ded94cd67b222a61ab06f3b299dcbecbfa63cbeea1e216e798"
[DEBUG] AWS4 String to Sign: '"AWS4-HMAC-SHA256
20151019T022558Z
20151019/ap-southeast-2/elasticbeanstalk/aws4_request
92f71bc55d4ac172f5c9f581ad2dab841b571c01dcd2c9cb0cecfb35931527bc"
[DEBUG] Connection request: [route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] Connection leased: [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] Stale connection check
[DEBUG] CookieSpec selected: best-match
[DEBUG] Auth cache not set in the context
[DEBUG] Proxy auth state: UNCHALLENGED
[DEBUG] Attempt 1 to execute request
[DEBUG] Sending request: POST / HTTP/1.1
[DEBUG]  >> "POST / HTTP/1.1[\r][\n]"
[DEBUG]  >> "Host: elasticbeanstalk.ap-southeast-2.amazonaws.com[\r][\n]"
[DEBUG]  >> "Authorization: AWS4-HMAC-SHA256 Credential=AKIAJSMNO735B3KNA5WA/20151019/ap-southeast-2/elasticbeanstalk/aws4_request, SignedHeaders=host;user-agent;x-amz-date, Signature=1e5896e95fa2f904fbf7e4fa5a15cfeddaee5e7f80e30a22cbd36d33833f4f47[\r][\n]"
[DEBUG]  >> "X-Amz-Date: 20151019T022558Z[\r][\n]"
[DEBUG]  >> "User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60[\r][\n]"
[DEBUG]  >> "Content-Type: application/x-www-form-urlencoded; charset=utf-8[\r][\n]"
[DEBUG]  >> "Content-Length: 83[\r][\n]"
[DEBUG]  >> "Connection: Keep-Alive[\r][\n]"
[DEBUG]  >> "[\r][\n]"
[DEBUG] >> POST / HTTP/1.1
[DEBUG] >> Host: elasticbeanstalk.ap-southeast-2.amazonaws.com
[DEBUG] >> Authorization: AWS4-HMAC-SHA256 Credential=AKIAJSMNO735B3KNA5WA/20151019/ap-southeast-2/elasticbeanstalk/aws4_request, SignedHeaders=host;user-agent;x-amz-date, Signature=1e5896e95fa2f904fbf7e4fa5a15cfeddaee5e7f80e30a22cbd36d33833f4f47
[DEBUG] >> X-Amz-Date: 20151019T022558Z
[DEBUG] >> User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60
[DEBUG] >> Content-Type: application/x-www-form-urlencoded; charset=utf-8
[DEBUG] >> Content-Length: 83
[DEBUG] >> Connection: Keep-Alive
[DEBUG]  >> "Action=DescribeApplicationVersions&Version=2010-12-01&ApplicationName=beanstalkDemo"
[DEBUG]  << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG]  << "x-amzn-RequestId: c160f184-7608-11e5-921f-57df937c51cc[\r][\n]"
[DEBUG]  << "Content-Type: text/xml[\r][\n]"
[DEBUG]  << "Content-Length: 989[\r][\n]"
[DEBUG]  << "Date: Mon, 19 Oct 2015 02:26:07 GMT[\r][\n]"
[DEBUG]  << "[\r][\n]"
[DEBUG] Receiving response: HTTP/1.1 200 OK
[DEBUG] << HTTP/1.1 200 OK
[DEBUG] << x-amzn-RequestId: c160f184-7608-11e5-921f-57df937c51cc
[DEBUG] << Content-Type: text/xml
[DEBUG] << Content-Length: 989
[DEBUG] << Date: Mon, 19 Oct 2015 02:26:07 GMT
[DEBUG] Connection can be kept alive indefinitely
[DEBUG]  << "<"
[DEBUG]  << "D"
[DEBUG]  << "e"
[DEBUG]  << "s"
[DEBUG]  << "cribeApplicationVersionsResp"
[DEBUG]  << "onse xmlns="http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/">[\n]"
[DEBUG]  << "  <DescribeApplicationVersionsResult>[\n]"
[DEBUG]  << "    <ApplicationVersions>[\n]"
[DEBUG]  << "      <member>[\n]"
[DEBUG]  << "        <DateCreated>2015-10-19T02:18:39.115Z</DateCreated>[\n]"
[DEBUG]  << "        <VersionLabel>git-c720473fe321a894ac9d2ad0df500e3260d6fe3d-1445221115567</VersionLabel>[\n]"
[DEBUG]  << "        <SourceBundle>[\n]"
[DEBUG]  << "          <S3Bucket>elasticbeanstalk-ap-southeast-2-791394749990</S3Bucket>[\n]"
[DEBUG]  << "          <S3Key>git-c720473fe321a894ac9d2ad0df500e3260d6fe3d-1445221115567.zip</S3Key>[\n]"
[DEBUG]  << "        </SourceBundle>[\n]"
[DEBUG]  << "        <Description>Update from fast-deploy[\n]"
[DEBUG]  << "</Description>[\n]"
[DEBUG]  << "        <ApplicationName>beanstalkDemo</ApplicationName>[\n]"
[DEBUG]  << "        <Status>UNPROCESSED</Status>[\n]"
[DEBUG]  << "        <DateUpdated>2015-10-19T02:18:39.115Z</DateUpdated>[\n]"
[DEBUG]  << "      </member>[\n]"
[DEBUG]  << "    </ApplicationVersions>[\n]"
[DEBUG]  << "  </DescribeApplicationVersionsResult>[\n]"
[DEBUG]  << "  <ResponseMetadata>[\n]"
[DEBUG]  << "    <RequestId>c160f184-7608-11e5-921f-57df937c51cc</RequestId>[\n]"
[DEBUG]  << "  </ResponseMetadata>[\n]"
[DEBUG]  << "</DescribeApplicationVersionsResponse>[\n]"
[DEBUG] Connection [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com] can be kept alive indefinitely
[DEBUG] Connection released: [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] Received successful response: 200, AWS Request ID: c160f184-7608-11e5-921f-57df937c51cc
[WARNING] No version found. Ignoring.
[INFO] SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.492 s
[INFO] Finished at: 2015-10-19T13:25:58+10:00
[INFO] Final Memory: 17M/209M
[INFO] ------------------------------------------------------------------------
[DEBUG] Connection manager is shutting down
[DEBUG] Reaper thread: 
java.lang.InterruptedException: sleep interrupted
    at java.lang.Thread.sleep(Native Method)
    at com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:112)
[DEBUG] Shutting down reaper thread.
[DEBUG] Connection 0.0.0.0:39387<->54.240.195.19:443 closed
[DEBUG] Connection 0.0.0.0:39387<->54.240.195.19:443 closed
[DEBUG] Connection manager shut down

@aldrinleal
Copy link
Member

Yes. You tried fast-deploy on ap-southeast-1 not us-east-1. ap-* is simply not supported.

See https://medium.com/@aldrinleal/a-bit-of-a-rant-about-me-and-the-world-and-a-porra-toda-2038898e4558) and http://bit.ly/bringgitback for a better understanding.

-----Original Message-----
From: "Dave Moten" notifications@github.com
Sent: ‎10/‎18/‎2015 9:32 PM
To: "ingenieux/beanstalker" beanstalker@noreply.github.com
Cc: "Aldrin Leal" aldrin+gh@leal.eng.br
Subject: Re: [beanstalker] Does fast-deploy work ? (#76)

Here's log for a miss. Any ideas/workarounds?
[DEBUG] Configuration override awssdk_config_override.json not found.
[INFO] ... with cname set to 'beanstalkdemo-env.elasticbeanstalk.com'
[INFO] ... with status NOT set to 'Terminated'
[DEBUG] Sending Request: POST https://elasticbeanstalk.ap-southeast-2.amazonaws.com / Parameters: (Action: DescribeEnvironments, Version: 2010-12-01, ApplicationName: beanstalkDemo, IncludeDeleted: true, ) Headers: (User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60, )
[DEBUG] AWS4 Canonical Request: '"POST
/

host:elasticbeanstalk.ap-southeast-2.amazonaws.com
user-agent:Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60
x-amz-date:20151019T022551Z

host;user-agent;x-amz-date
f0e4b6010a4cbda9b5ba5b1fee53582df178b1057cf05f89d69e1b49f7a64ae1"
[DEBUG] AWS4 String to Sign: '"AWS4-HMAC-SHA256
20151019T022551Z
20151019/ap-southeast-2/elasticbeanstalk/aws4_request
672e39fed868a159f65fac0a6a3018294d389e38bc0aece94520b6f8879672e2"
[DEBUG] Connection request: [route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 0; route allocated: 0 of 50; total allocated: 0 of 50]
[DEBUG] Connection leased: [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] socket.getSupportedProtocols(): [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2], socket.getEnabledProtocols(): [TLSv1, TLSv1.1, TLSv1.2]
[DEBUG] TLS protocol enabled for SSL handshake: [TLSv1.2, TLSv1.1, TLSv1]
[DEBUG] Connecting to elasticbeanstalk.ap-southeast-2.amazonaws.com:443
[DEBUG] CookieSpec selected: best-match
[DEBUG] Auth cache not set in the context
[DEBUG] Proxy auth state: UNCHALLENGED
[DEBUG] Attempt 1 to execute request
[DEBUG] Sending request: POST / HTTP/1.1
[DEBUG] >> "POST / HTTP/1.1[\r][\n]"
[DEBUG] >> "Host: elasticbeanstalk.ap-southeast-2.amazonaws.com[\r][\n]"
[DEBUG] >> "Authorization: AWS4-HMAC-SHA256 Credential=AKIAJSMNO735B3KNA5WA/20151019/ap-southeast-2/elasticbeanstalk/aws4_request, SignedHeaders=host;user-agent;x-amz-date, Signature=ee80b0b90d6d9c49e23e0102c221fbc9fffad3ccd93bb997c1a6a1ea4c5310b6[\r][\n]"
[DEBUG] >> "X-Amz-Date: 20151019T022551Z[\r][\n]"
[DEBUG] >> "User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60[\r][\n]"
[DEBUG] >> "Content-Type: application/x-www-form-urlencoded; charset=utf-8[\r][\n]"
[DEBUG] >> "Content-Length: 96[\r][\n]"
[DEBUG] >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] >> "[\r][\n]"
[DEBUG] >> POST / HTTP/1.1
[DEBUG] >> Host: elasticbeanstalk.ap-southeast-2.amazonaws.com
[DEBUG] >> Authorization: AWS4-HMAC-SHA256 Credential=AKIAJSMNO735B3KNA5WA/20151019/ap-southeast-2/elasticbeanstalk/aws4_request, SignedHeaders=host;user-agent;x-amz-date, Signature=ee80b0b90d6d9c49e23e0102c221fbc9fffad3ccd93bb997c1a6a1ea4c5310b6
[DEBUG] >> X-Amz-Date: 20151019T022551Z
[DEBUG] >> User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60
[DEBUG] >> Content-Type: application/x-www-form-urlencoded; charset=utf-8
[DEBUG] >> Content-Length: 96
[DEBUG] >> Connection: Keep-Alive
[DEBUG] >> "Action=DescribeEnvironments&Version=2010-12-01&ApplicationName=beanstalkDemo&IncludeDeleted=true"
[DEBUG] << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] << "x-amzn-RequestId: be3ddf67-7608-11e5-a59a-8937e0ef7562[\r][\n]"
[DEBUG] << "Content-Type: text/xml[\r][\n]"
[DEBUG] << "Content-Length: 1339[\r][\n]"
[DEBUG] << "Date: Mon, 19 Oct 2015 02:26:02 GMT[\r][\n]"
[DEBUG] << "[\r][\n]"
[DEBUG] Receiving response: HTTP/1.1 200 OK
[DEBUG] << HTTP/1.1 200 OK
[DEBUG] << x-amzn-RequestId: be3ddf67-7608-11e5-a59a-8937e0ef7562
[DEBUG] << Content-Type: text/xml
[DEBUG] << Content-Length: 1339
[DEBUG] << Date: Mon, 19 Oct 2015 02:26:02 GMT
[DEBUG] Connection can be kept alive indefinitely
[DEBUG] << "<"
[DEBUG] << "D"
[DEBUG] << "e"
[DEBUG] << "s"
[DEBUG] << "cribeEnvironmentsResponse xm"
[DEBUG] << "lns="http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/">[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " 64bit Amazon Linux 2015.03 v2.0.1 running Tomcat 8 Java 8[\n]"
[DEBUG] << " Green[\n]"
[DEBUG] << " 2015-10-19T02:19:09.396Z[\n]"
[DEBUG] << " false[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " e-n85p3vgpps[\n]"
[DEBUG] << " 2015-10-17T11:29:24.453Z[\n]"
[DEBUG] << " git-c720473fe321a894ac9d2ad0df500e3260d6fe3d-1445221115567[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " WebServer[\n]"
[DEBUG] << " Standard[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " beanstalkdemo-env[\n]"
[DEBUG] << " awseb-e-n-AWSEBLoa-14UJ2V3EQ12CR-66311712.ap-southeast-2.elb.amazonaws.com[\n]"
[DEBUG] << " beanstalkdemo-env.elasticbeanstalk.com[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " beanstalkDemo[\n]"
[DEBUG] << " Ready[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " be3ddf67-7608-11e5-a59a-8937e0ef7562[\n]"
[DEBUG] << " [\n]"
[DEBUG] << "[\n]"
[DEBUG] Connection [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com] can be kept alive indefinitely
[DEBUG] Connection released: [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] Received successful response: 200, AWS Request ID: be3ddf67-7608-11e5-a59a-8937e0ef7562
[DEBUG] testing status 'Terminated' as equal as 'Ready' (negated? true, offset: 1): true
[DEBUG] testing status 'Terminated' as equal as 'Ready' (negated? true, offset: 1): true
[INFO] Using remote: https://AKIAJSMNO735B3KNA5WA:20151019T022557Za05352158a17aa48d6faf1ce9c898989ef0c016663e644347ed6f1915de7e8a7@git.elasticbeanstalk.ap-southeast-2.amazonaws.com/v1/repos/6265616e7374616c6b44656d6f/commitid/61336461653233663663623034346165626334363364353435626132373464613863303166656366/environment/6265616e7374616c6b64656d6f2d656e76
Counting objects: 7
Finding sources: 100% (7/7)
Getting sizes: 100% (6/6)
Compressing objects: 100% (6/6)
Writing objects: 100% (7/7)
[DEBUG](Actually Expected) Exception
org.eclipse.jgit.api.errors.TransportException: https://AKIAJSMNO735B3KNA5WA@git.elasticbeanstalk.ap-southeast-2.amazonaws.com/v1/repos/6265616e7374616c6b44656d6f/commitid/61336461653233663663623034346165626334363364353435626132373464613863303166656366/environment/6265616e7374616c6b64656d6f2d656e76: 400 Bad Request
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:157)
at br.com.ingenieux.mojo.beanstalk.bundle.FastDeployMojo.executeInternal(FastDeployMojo.java:176)
at br.com.ingenieux.mojo.aws.AbstractAWSMojo.execute(AbstractAWSMojo.java:357)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.eclipse.jgit.errors.TransportException: https://AKIAJSMNO735B3KNA5WA@git.elasticbeanstalk.ap-southeast-2.amazonaws.com/v1/repos/6265616e7374616c6b44656d6f/commitid/61336461653233663663623034346165626334363364353435626132373464613863303166656366/environment/6265616e7374616c6b64656d6f2d656e76: 400 Bad Request
at org.eclipse.jgit.transport.TransportHttp$Service.openResponse(TransportHttp.java:839)
at org.eclipse.jgit.transport.TransportHttp$MultiRequestService.execute(TransportHttp.java:941)
at org.eclipse.jgit.transport.TransportHttp$Service$HttpExecuteStream.read(TransportHttp.java:867)
at org.eclipse.jgit.util.io.UnionInputStream.read(UnionInputStream.java:145)
at org.eclipse.jgit.util.IO.readFully(IO.java:245)
at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
at org.eclipse.jgit.transport.SideBandInputStream.needDataPacket(SideBandInputStream.java:154)
at org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:136)
at org.eclipse.jgit.util.IO.readFully(IO.java:245)
at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:138)
at org.eclipse.jgit.transport.BasePackPushConnection.readStringLongTimeout(BasePackPushConnection.java:338)
at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:293)
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:187)
at org.eclipse.jgit.transport.TransportHttp$SmartHttpPushConnection.doPush(TransportHttp.java:771)
at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:142)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:141)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1162)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:153)
... 23 more
[DEBUG] Sending Request: POST https://elasticbeanstalk.ap-southeast-2.amazonaws.com / Parameters: (Action: DescribeApplicationVersions, Version: 2010-12-01, ApplicationName: beanstalkDemo, ) Headers: (User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60, )
[DEBUG] AWS4 Canonical Request: '"POST
/

host:elasticbeanstalk.ap-southeast-2.amazonaws.com
user-agent:Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60
x-amz-date:20151019T022558Z

host;user-agent;x-amz-date
4668aaed6f8241ded94cd67b222a61ab06f3b299dcbecbfa63cbeea1e216e798"
[DEBUG] AWS4 String to Sign: '"AWS4-HMAC-SHA256
20151019T022558Z
20151019/ap-southeast-2/elasticbeanstalk/aws4_request
92f71bc55d4ac172f5c9f581ad2dab841b571c01dcd2c9cb0cecfb35931527bc"
[DEBUG] Connection request: [route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] Connection leased: [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] Stale connection check
[DEBUG] CookieSpec selected: best-match
[DEBUG] Auth cache not set in the context
[DEBUG] Proxy auth state: UNCHALLENGED
[DEBUG] Attempt 1 to execute request
[DEBUG] Sending request: POST / HTTP/1.1
[DEBUG] >> "POST / HTTP/1.1[\r][\n]"
[DEBUG] >> "Host: elasticbeanstalk.ap-southeast-2.amazonaws.com[\r][\n]"
[DEBUG] >> "Authorization: AWS4-HMAC-SHA256 Credential=AKIAJSMNO735B3KNA5WA/20151019/ap-southeast-2/elasticbeanstalk/aws4_request, SignedHeaders=host;user-agent;x-amz-date, Signature=1e5896e95fa2f904fbf7e4fa5a15cfeddaee5e7f80e30a22cbd36d33833f4f47[\r][\n]"
[DEBUG] >> "X-Amz-Date: 20151019T022558Z[\r][\n]"
[DEBUG] >> "User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60[\r][\n]"
[DEBUG] >> "Content-Type: application/x-www-form-urlencoded; charset=utf-8[\r][\n]"
[DEBUG] >> "Content-Length: 83[\r][\n]"
[DEBUG] >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] >> "[\r][\n]"
[DEBUG] >> POST / HTTP/1.1
[DEBUG] >> Host: elasticbeanstalk.ap-southeast-2.amazonaws.com
[DEBUG] >> Authorization: AWS4-HMAC-SHA256 Credential=AKIAJSMNO735B3KNA5WA/20151019/ap-southeast-2/elasticbeanstalk/aws4_request, SignedHeaders=host;user-agent;x-amz-date, Signature=1e5896e95fa2f904fbf7e4fa5a15cfeddaee5e7f80e30a22cbd36d33833f4f47
[DEBUG] >> X-Amz-Date: 20151019T022558Z
[DEBUG] >> User-Agent: Apache Maven/3.0 (ingenieux beanstalker/1.4.0; http://beanstalker.ingenieux.com.br), aws-sdk-java/1.9.8 Linux/3.13.0-63-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23/1.8.0_60
[DEBUG] >> Content-Type: application/x-www-form-urlencoded; charset=utf-8
[DEBUG] >> Content-Length: 83
[DEBUG] >> Connection: Keep-Alive
[DEBUG] >> "Action=DescribeApplicationVersions&Version=2010-12-01&ApplicationName=beanstalkDemo"
[DEBUG] << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] << "x-amzn-RequestId: c160f184-7608-11e5-921f-57df937c51cc[\r][\n]"
[DEBUG] << "Content-Type: text/xml[\r][\n]"
[DEBUG] << "Content-Length: 989[\r][\n]"
[DEBUG] << "Date: Mon, 19 Oct 2015 02:26:07 GMT[\r][\n]"
[DEBUG] << "[\r][\n]"
[DEBUG] Receiving response: HTTP/1.1 200 OK
[DEBUG] << HTTP/1.1 200 OK
[DEBUG] << x-amzn-RequestId: c160f184-7608-11e5-921f-57df937c51cc
[DEBUG] << Content-Type: text/xml
[DEBUG] << Content-Length: 989
[DEBUG] << Date: Mon, 19 Oct 2015 02:26:07 GMT
[DEBUG] Connection can be kept alive indefinitely
[DEBUG] << "<"
[DEBUG] << "D"
[DEBUG] << "e"
[DEBUG] << "s"
[DEBUG] << "cribeApplicationVersionsResp"
[DEBUG] << "onse xmlns="http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/">[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " 2015-10-19T02:18:39.115Z[\n]"
[DEBUG] << " git-c720473fe321a894ac9d2ad0df500e3260d6fe3d-1445221115567[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " elasticbeanstalk-ap-southeast-2-791394749990[\n]"
[DEBUG] << " git-c720473fe321a894ac9d2ad0df500e3260d6fe3d-1445221115567.zip[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " Update from fast-deploy[\n]"
[DEBUG] << "[\n]"
[DEBUG] << " beanstalkDemo[\n]"
[DEBUG] << " UNPROCESSED[\n]"
[DEBUG] << " 2015-10-19T02:18:39.115Z[\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " [\n]"
[DEBUG] << " c160f184-7608-11e5-921f-57df937c51cc[\n]"
[DEBUG] << " [\n]"
[DEBUG] << "[\n]"
[DEBUG] Connection [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com] can be kept alive indefinitely
[DEBUG] Connection released: [id: 0][route: {s}->https://elasticbeanstalk.ap-southeast-2.amazonaws.com][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 50]
[DEBUG] Received successful response: 200, AWS Request ID: c160f184-7608-11e5-921f-57df937c51cc
[WARNING] No version found. Ignoring.
[INFO] SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.492 s
[INFO] Finished at: 2015-10-19T13:25:58+10:00
[INFO] Final Memory: 17M/209M
[INFO] ------------------------------------------------------------------------
[DEBUG] Connection manager is shutting down
[DEBUG] Reaper thread:
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:112)
[DEBUG] Shutting down reaper thread.
[DEBUG] Connection 0.0.0.0:39387<->54.240.195.19:443 closed
[DEBUG] Connection 0.0.0.0:39387<->54.240.195.19:443 closed
[DEBUG] Connection manager shut down

Reply to this email directly or view it on GitHub.
<meta itemprop="description" content="

[The entire original message is not included.]

@aldrinleal
Copy link
Member

a/c @fulghum

@aldrinleal
Copy link
Member

@manikandanrs, unfortunately, I couldn't reproduce your issue. Here's what I did:

$ mvn archetype:generate -Dfilter=elasticbeanstalk -DgroupId=io.ingenieux -DartifactId=deployment-example -Dversion=0.0.1
(filled stuff)
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: elasticbeanstalk-service-webapp-archetype:1.4.1-foradilma
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: io.ingenieux
[INFO] Parameter: artifactId, Value: deployment-example
[INFO] Parameter: version, Value: 0.0.1
[INFO] Parameter: package, Value: io.ingenieux
[INFO] Parameter: packageInPathFormat, Value: io/ingenieux
[INFO] Parameter: package, Value: io.ingenieux
[INFO] Parameter: version, Value: 0.0.1
[INFO] Parameter: groupId, Value: io.ingenieux
[INFO] Parameter: artifactId, Value: deployment-example
[INFO] project created from Archetype in dir: C:\projetos\sources\deployment-example
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.715 s
[INFO] Finished at: 2015-10-19T01:54:14-03:00
[INFO] Final Memory: 12M/66M
[INFO] ------------------------------------------------------------------------

Once created, I did the deploy

$ mvn -Pfast-deploy package deploy
[INFO] Using remote: https://0SB93DDYBE63367703R2:20151019T045508Z7419fcc29dfd40bcb31ae6b737272ad8020287a9badc75ba8f1199acba1d5011@git.elasticbeanstalk.us-east-1.amazonaws.com/v1/repos/6465706c6f796d656e742d6578616d706c65/commitid/34353766373463613130346365326337373033323230346661616333393733613063343264366539
Counting objects:       108
Finding sources:        100% (108/108)
Getting sizes:          100% (107/107)
Compressing objects:    100% (107/107)
Writing objects:        100% (108/108)
[INFO] Deployed version git-457f74ca104ce2c77032204faac3973a0c42d6e9-1445230742891
[INFO] SUCCESS
[INFO] null/void result
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:27 min
[INFO] Finished at: 2015-10-19T01:59:10-03:00
[INFO] Final Memory: 27M/148M
[INFO] ------------------------------------------------------------------------

Now lets look at the versions, shall we?

$ mvn beanstalk:describe-application-versions
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building deployment-example 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- beanstalk-maven-plugin:1.4.1-foradilma:describe-application-versions
(default-cli) @ deployment-example ---
[INFO] SUCCESS
[INFO] {
[INFO]   "applicationVersions" : [ {
[INFO]     "applicationName" : "deployment-example",
[INFO]     "description" : "Update from fast-deploy\n",
[INFO]     "versionLabel" : "git-457f74ca104ce2c77032204faac3973a0c42d6e9-1445230742891",
[INFO]     "sourceBundle" : {
[INFO]       "s3Bucket" : "elasticbeanstalk-us-east-1-235368163414",
[INFO]       "s3Key" : "git-457f74ca104ce2c77032204faac3973a0c42d6e9-1445230742891.zip"
[INFO]     },
[INFO]     "dateCreated" : 1445230749110,
[INFO]     "dateUpdated" : 1445230749110
[INFO]   } ]
[INFO] }
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.026 s
[INFO] Finished at: 2015-10-19T02:00:28-03:00
[INFO] Final Memory: 13M/87M
[INFO] ------------------------------------------------------------------------

The version appeared. So fast-deploy still works on us-east-1, fortunately.

I suggest you:

  • Redo the same archetype thing I did, in order to compare and review configurations
  • review previous tickets here in order to undersatand how fast-deploy works and its gotchas,
  • and if you have a support acount, see bit.ly/bringgitback and open a support case on AWS yourself
  • and keep us on the loop.

Thank you

@manikandanrs
Copy link
Author

Actually I get the same Transport exception for us-east-1 as well
[DEBUG](Actually Expected) Exception
org.eclipse.jgit.api.errors.TransportException: https://*******************@git.elasticbeanstalk.us-east-1.amazonaws.com/v1/repos/48656c6c6f4265616e7374616c6b/commitid/62393030626337306166346566393331376532623439616439393463623561323135643837353131: 400 Bad Request
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:157)
at br.com.ingenieux.mojo.beanstalk.bundle.FastDeployMojo.executeInternal(FastDeployMojo.java:176)
at br.com.ingenieux.mojo.aws.AbstractAWSMojo.execute(AbstractAWSMojo.java:386)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.eclipse.jgit.errors.TransportException: https://**
*****************@git.elasticbeanstalk.us-east-1.amazonaws.com/v1/repos/48656c6c6f4265616e7374616c6b/commitid/62393030626337306166346566393331376532623439616439393463623561323135643837353131: 400 Bad Request
at org.eclipse.jgit.transport.TransportHttp$Service.openResponse(TransportHttp.java:839)
at org.eclipse.jgit.transport.TransportHttp$MultiRequestService.execute(TransportHttp.java:941)
at org.eclipse.jgit.transport.TransportHttp$Service$HttpExecuteStream.read(TransportHttp.java:867)
at org.eclipse.jgit.util.io.UnionInputStream.read(UnionInputStream.java:145)
at org.eclipse.jgit.util.IO.readFully(IO.java:245)
at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
at org.eclipse.jgit.transport.SideBandInputStream.needDataPacket(SideBandInputStream.java:154)
at org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:136)
at org.eclipse.jgit.util.IO.readFully(IO.java:245)
at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:138)
at org.eclipse.jgit.transport.BasePackPushConnection.readStringLongTimeout(BasePackPushConnection.java:338)
at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:293)
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:187)
at org.eclipse.jgit.transport.TransportHttp$SmartHttpPushConnection.doPush(TransportHttp.java:771)
at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:142)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:141)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1162)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:153)
... 24 more

@aldrinleal
Copy link
Member

There's a workaround in the works, but you guys need some maven-fu:

a) Checkout, review and mvn install https://github.com/ingenieux/beanstalker-codecommit-deployer as well as the latest snapshot
b) Create a repo to maintain the blogs on AWS CodeCommit
c) Use codecommit-fast-deploy

@jimenezjc83
Copy link

Hello gents, I'm having the same issue that @manikandanrs mention about the TransportException when trying to push my app to the S3 bucket. The issue started after we rotate our AWS access keys and remove the old user accounts to prevent unwanted access to our instances.
Do you have any updates on this issue?
Here is the stacktrace:

[DEBUG] (Actually Expected) Exception
org.eclipse.jgit.api.errors.TransportException: https://XXXXXXXXXXXXXXXX@git.elasticbeanstalk.us-west-2.amazonaws.com/v1/repos/6d69646f2d61646d696e/commitid/61316134613462313031353131383062646362636237646635386235323439643966356534363362/environment/6d69646f2d61646d696e2d73746735: git-receive-pack not permitted
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:157)
	at br.com.ingenieux.mojo.beanstalk.bundle.FastDeployMojo.executeInternal(FastDeployMojo.java:176)
	at br.com.ingenieux.mojo.aws.AbstractAWSMojo.execute(AbstractAWSMojo.java:357)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.eclipse.jgit.errors.TransportException: https://XXXXXXXXXXXXXXXX@git.elasticbeanstalk.us-west-2.amazonaws.com/v1/repos/6d69646f2d61646d696e/commitid/6131613461346231303135313138306264636263623764663538623532343964396635
�
6534363362/environment/6d69646f2d61646d696e2d73746735: git-receive-pack not permitted
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:483)
	at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:395)
	at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:130)
	at org.eclipse.jgit.transport.Transport.push(Transport.java:1162)
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:153)
	... 23 more
[WARNING] No version found. Ignoring.

Thanks for your help.

@aldrinleal
Copy link
Member

@jimenezjc83,

#76 (comment)

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants