Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Application deployment failed. Message: Deployments using appcfg are no longer supported

I am trying to deploy a spring boot microservices application to Google App Engine from Bitbucket Pipelines. I am getting this below error after commiting the code,

 

Downloaded from central: https://repo.maven.apache.org/maven2/com/google/appengine/appengine-java-sdk/1.9.82/appengine-java-sdk-1.9.82.zip (121 MB at 20 MB/s)

[INFO] Updating Google App Engine Application

[INFO] Running -A $CLOUDSDK_CORE_PROJECT -V 1 --oauth2 --service_account_json_key_file=/tmp/key-file.json update /opt/atlassian/pipelines/agent/build/target/$CLOUDSDK_CORE_PROJECT-001

Sep 30, 2020 7:36:13 PM java.util.prefs.FileSystemPreferences$1 run

INFO: Created user preferences directory.

Reading application configuration data...

[INFO] Logging initialized @30536ms

Beginning interaction for module default...

0% Created staging directory at: '/tmp/appcfg1869168901641268262.tmp'

5% Scanning for jsp files.

8% Generated git repository information file.

20% Scanning files on local disk.

25% Initiating update.

28% Cloning 76 application files.

40% Uploading 4 files.

52% Uploaded 1 files.

61% Uploaded 2 files.

68% Uploaded 3 files.

73% Uploaded 4 files.

77% Sending batch containing 4 file(s) totaling 42KB.

80% Initializing precompilation...

90% Deploying new version.

95% Will check again in 1 seconds.

98% Application deployment failed. Message: Deployments using appcfg are no longer supported. See https://cloud.google.com/appengine/docs/deprecations

99% Rolling back the update.

Error Details:

2020-09-30 19:36:15.972:INFO::main: Logging initialized @552ms to org.eclipse.jetty.util.log.StdErrLog

2020-09-30 19:36:16.396:INFO:oejs.Server:main: jetty-9.4.27.v20200227; built: 2020-02-27T18:37:21.340Z; git: a304fd9f351f337e7c0e2a7c28878dd536149c6c; jvm 1.8.0_151-8u151-b12-1~deb9u1-b12

2020-09-30 19:36:17.031:WARN:oeja.AnnotationParser:qtp463345942-16: javax.activation.ActivationDataFlavor scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/ActivationDataFlavor.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/ActivationDataFlavor.class

2020-09-30 19:36:17.039:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.CommandInfo$Beans$1 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/CommandInfo$Beans$1.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/CommandInfo$Beans$1.class

2020-09-30 19:36:17.040:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.CommandInfo$Beans scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/CommandInfo$Beans.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/CommandInfo$Beans.class

2020-09-30 19:36:17.040:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.CommandInfo scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/CommandInfo.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/CommandInfo.class

2020-09-30 19:36:17.040:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.CommandMap scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/CommandMap.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/CommandMap.class

2020-09-30 19:36:17.040:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.CommandObject scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/CommandObject.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/CommandObject.class

2020-09-30 19:36:17.040:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.DataContentHandler scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/DataContentHandler.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/DataContentHandler.class

2020-09-30 19:36:17.041:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.DataContentHandlerFactory scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/DataContentHandlerFactory.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/DataContentHandlerFactory.class

2020-09-30 19:36:17.041:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.DataHandler$1 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/DataHandler$1.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/DataHandler$1.class

2020-09-30 19:36:17.041:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.DataHandler scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/DataHandler.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/DataHandler.class

2020-09-30 19:36:17.041:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.DataHandlerDataSource scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/DataHandlerDataSource.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/DataHandlerDataSource.class

2020-09-30 19:36:17.041:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.DataSource scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/DataSource.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/DataSource.class

2020-09-30 19:36:17.046:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.DataSourceDataContentHandler scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/DataSourceDataContentHandler.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/DataSourceDataContentHandler.class

2020-09-30 19:36:17.056:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.FileDataSource scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/FileDataSource.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/FileDataSource.class

2020-09-30 19:36:17.056:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.FileTypeMap scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/FileTypeMap.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/FileTypeMap.class

2020-09-30 19:36:17.057:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.MailcapCommandMap$1 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/MailcapCommandMap$1.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/MailcapCommandMap$1.class

2020-09-30 19:36:17.057:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.MailcapCommandMap scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/MailcapCommandMap.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/MailcapCommandMap.class

2020-09-30 19:36:17.057:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.MimeType scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/MimeType.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/MimeType.class

2020-09-30 19:36:17.057:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.MimeTypeParameterList scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/MimeTypeParameterList.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/MimeTypeParameterList.class

2020-09-30 19:36:17.067:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.MimeTypeParseException scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/MimeTypeParseException.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/MimeTypeParseException.class

2020-09-30 19:36:17.067:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.MimetypesFileTypeMap$1 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/MimetypesFileTypeMap$1.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/MimetypesFileTypeMap$1.class

2020-09-30 19:36:17.067:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.MimetypesFileTypeMap scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/MimetypesFileTypeMap.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/MimetypesFileTypeMap.class

2020-09-30 19:36:17.067:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.ObjectDataContentHandler scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/ObjectDataContentHandler.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/ObjectDataContentHandler.class

2020-09-30 19:36:17.067:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.SecuritySupport$1 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/SecuritySupport$1.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/SecuritySupport$1.class

2020-09-30 19:36:17.068:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.SecuritySupport$2 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/SecuritySupport$2.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/SecuritySupport$2.class

2020-09-30 19:36:17.068:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.SecuritySupport$3 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/SecuritySupport$3.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/SecuritySupport$3.class

2020-09-30 19:36:17.068:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.SecuritySupport$4 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/SecuritySupport$4.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/SecuritySupport$4.class

2020-09-30 19:36:17.068:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.SecuritySupport$5 scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/SecuritySupport$5.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/SecuritySupport$5.class

2020-09-30 19:36:17.068:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.SecuritySupport scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/SecuritySupport.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/SecuritySupport.class

2020-09-30 19:36:17.069:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.URLDataSource scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/URLDataSource.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/URLDataSource.class

2020-09-30 19:36:17.069:WARN:oeja.AnnotationParser:qtp463345942-11: javax.activation.UnsupportedDataTypeException scanned from multiple locations: jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-1.2.2.jar!/javax/activation/UnsupportedDataTypeException.class, jar:file:///tmp/appcfg1869168901641268262.tmp/WEB-INF/lib/jakarta.activation-api-1.2.2.jar!/javax/activation/UnsupportedDataTypeException.class

2020-09-30 19:36:18.032:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=1206ms

2020-09-30 19:36:18.059:INFO:oejq.QuickStartDescriptorGenerator:main: Quickstart generating

2020-09-30 19:36:18.092:INFO:oejsh.ContextHandler:main: Started o.e.j.q.QuickStartWebApp@e25b2fe{/,file:///tmp/appcfg1869168901641268262.tmp/,AVAILABLE}

2020-09-30 19:36:18.095:INFO:oejs.Server:main: Started @2699ms

2020-09-30 19:36:18.098:INFO:oejsh.ContextHandler:main: Stopped o.e.j.q.QuickStartWebApp@e25b2fe{/,file:///tmp/appcfg1869168901641268262.tmp/,UNAVAILABLE}

java.lang.RuntimeException: Fatal problem encountered during deployment. Please refer to the logs for more information.

Unable to update app: Fatal problem encountered during deployment. Please refer to the logs for more information.

Please see the logs [/tmp/appcfg2927672121412041150.log] for further information.



bitbucket-pipelines.yml

image: maven:3.5.2-jdk-8

pipelines:
default:
- step:
script:
# Install Google Cloud SDK
- export CLOUDSDK_CORE_DISABLE_PROMPTS=1
# Modify the commands below to build your repository.
# Downloading the Google Cloud SDK
- curl -o /tmp/google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-312.0.0-linux-x86_64.tar.gz
- tar -xvf /tmp/google-cloud-sdk.tar.gz -C /tmp/
- /tmp/google-cloud-sdk/install.sh -q
- source /tmp/google-cloud-sdk/path.bash.inc
- gcloud -v
# Authenticating with the service account key file
- echo "${KEY_FILE}" | base64 -d >> /tmp/key-file.json
- gcloud auth activate-service-account --key-file /tmp/key-file.json --quiet --verbosity=warning
# Linking to the Google Cloud project
# gcloud config set project $CLOUDSDK_CORE_PROJECT
# Deploying the application
- gcloud components install app-engine-java
- mvn clean package appengine:deploy -Dappengine.additionalParams="--service_account_json_key_file=/tmp/key-file.json"

 

webapp/WEB-INF/appengine-web.xml

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>myapp</application>
<version>alpha-001</version>
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
</appengine-web-app>

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Bitbucket

Share your use cases: How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features to how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your tea...

44 views 0 1
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you