Getting 404 with app engine deploy from cloudbuild










1















I have a spring boot gradle project, I'm developing in eclipse and pushing to a cloud repository. I configured a cloud build trigger to kick off a gradle build and deploy to the app engine (standard). According to the build log, every step is successful, but when I hit the URL, I get a 404, don't know why.



When I do a gradle appengineDeploy from my laptop, I'm able to deploy to the app engine and my service comes up. This leads me to believe that my cloudbuild.yaml file is not correct.



cloudbuild.yaml



steps:
- name: 'gcr.io/cloud-builders/gradle'
args: ['build']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy', 'src/main/webapp/WEB-INF/appengine-web.xml']
timeout: '1600s'


src/main/webapp/WEB-INF/appengine-web.xml



<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>my_project_id</application>
<version>1</version>
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/classes/logging.properties"/>
</system-properties>
</appengine-web-app>


build.gradle



buildscript 
ext
springBootVersion = '2.0.6.RELEASE'

repositories
mavenCentral()

dependencies
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.+'



apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.google.cloud.tools.appengine'
apply plugin: 'war'

group = 'my-group'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8

repositories
mavenCentral()



dependencies
compileOnly('javax.servlet:javax.servlet-api:3.1.0')
compileOnly('org.slf4j:jul-to-slf4j')
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation('org.springframework.cloud:spring-cloud-gcp-starter-sql-mysql:1.0.0.RELEASE')
implementation('org.springframework.boot:spring-boot-starter-web')
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'

implementation('com.google.appengine:appengine-api-1.0-sdk:+')



buildlog



Step #0: BUILD SUCCESSFUL in 53s
Step #0: 4 actionable tasks: 4 executed
Finished Step #0
Starting Step #1
Step #1: Already have image (with digest): gcr.io/cloud-builders/gcloud
Step #1: Services to deploy:
Step #1:
Step #1: descriptor: [/workspace/src/main/webapp/WEB-INF/appengine-web.xml]
Step #1: source: [/workspace/src/main/webapp]
Step #1: target project: [dev-poc-220521]
Step #1: target service: [default]
Step #1: target version: [20181111t040050]
Step #1: target url: [https://dev-poc-220521.appspot.com]
Step #1:
Step #1:
Step #1: Do you want to continue (Y/n)?
Step #1: Beginning deployment of service [default]...
Step #1: #============================================================#
Step #1: #= Uploading 5 files to Google Cloud Storage =#
Step #1: #============================================================#
Step #1: File upload done.
Step #1: Updating service [default]...
Step #1: .......................................................done.
Step #1: Setting traffic split for service [default]...
Step #1: ........done.
Step #1: Deployed service [default] to [https://dev-poc-220521.appspot.com]
Step #1:
Step #1: You can stream logs from the command line by running:
Step #1: $ gcloud app logs tail -s default
Step #1:
Step #1: To view your application in the web browser run:
Step #1: $ gcloud app browse --project=dev-poc-220521
Finished Step #1









share|improve this question






















  • check your server logs app engine -> services -> tools -> logs

    – Caner
    Nov 12 '18 at 9:43
















1















I have a spring boot gradle project, I'm developing in eclipse and pushing to a cloud repository. I configured a cloud build trigger to kick off a gradle build and deploy to the app engine (standard). According to the build log, every step is successful, but when I hit the URL, I get a 404, don't know why.



When I do a gradle appengineDeploy from my laptop, I'm able to deploy to the app engine and my service comes up. This leads me to believe that my cloudbuild.yaml file is not correct.



cloudbuild.yaml



steps:
- name: 'gcr.io/cloud-builders/gradle'
args: ['build']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy', 'src/main/webapp/WEB-INF/appengine-web.xml']
timeout: '1600s'


src/main/webapp/WEB-INF/appengine-web.xml



<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>my_project_id</application>
<version>1</version>
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/classes/logging.properties"/>
</system-properties>
</appengine-web-app>


build.gradle



buildscript 
ext
springBootVersion = '2.0.6.RELEASE'

repositories
mavenCentral()

dependencies
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.+'



apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.google.cloud.tools.appengine'
apply plugin: 'war'

group = 'my-group'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8

repositories
mavenCentral()



dependencies
compileOnly('javax.servlet:javax.servlet-api:3.1.0')
compileOnly('org.slf4j:jul-to-slf4j')
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation('org.springframework.cloud:spring-cloud-gcp-starter-sql-mysql:1.0.0.RELEASE')
implementation('org.springframework.boot:spring-boot-starter-web')
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'

implementation('com.google.appengine:appengine-api-1.0-sdk:+')



buildlog



Step #0: BUILD SUCCESSFUL in 53s
Step #0: 4 actionable tasks: 4 executed
Finished Step #0
Starting Step #1
Step #1: Already have image (with digest): gcr.io/cloud-builders/gcloud
Step #1: Services to deploy:
Step #1:
Step #1: descriptor: [/workspace/src/main/webapp/WEB-INF/appengine-web.xml]
Step #1: source: [/workspace/src/main/webapp]
Step #1: target project: [dev-poc-220521]
Step #1: target service: [default]
Step #1: target version: [20181111t040050]
Step #1: target url: [https://dev-poc-220521.appspot.com]
Step #1:
Step #1:
Step #1: Do you want to continue (Y/n)?
Step #1: Beginning deployment of service [default]...
Step #1: #============================================================#
Step #1: #= Uploading 5 files to Google Cloud Storage =#
Step #1: #============================================================#
Step #1: File upload done.
Step #1: Updating service [default]...
Step #1: .......................................................done.
Step #1: Setting traffic split for service [default]...
Step #1: ........done.
Step #1: Deployed service [default] to [https://dev-poc-220521.appspot.com]
Step #1:
Step #1: You can stream logs from the command line by running:
Step #1: $ gcloud app logs tail -s default
Step #1:
Step #1: To view your application in the web browser run:
Step #1: $ gcloud app browse --project=dev-poc-220521
Finished Step #1









share|improve this question






















  • check your server logs app engine -> services -> tools -> logs

    – Caner
    Nov 12 '18 at 9:43














1












1








1


1






I have a spring boot gradle project, I'm developing in eclipse and pushing to a cloud repository. I configured a cloud build trigger to kick off a gradle build and deploy to the app engine (standard). According to the build log, every step is successful, but when I hit the URL, I get a 404, don't know why.



When I do a gradle appengineDeploy from my laptop, I'm able to deploy to the app engine and my service comes up. This leads me to believe that my cloudbuild.yaml file is not correct.



cloudbuild.yaml



steps:
- name: 'gcr.io/cloud-builders/gradle'
args: ['build']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy', 'src/main/webapp/WEB-INF/appengine-web.xml']
timeout: '1600s'


src/main/webapp/WEB-INF/appengine-web.xml



<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>my_project_id</application>
<version>1</version>
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/classes/logging.properties"/>
</system-properties>
</appengine-web-app>


build.gradle



buildscript 
ext
springBootVersion = '2.0.6.RELEASE'

repositories
mavenCentral()

dependencies
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.+'



apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.google.cloud.tools.appengine'
apply plugin: 'war'

group = 'my-group'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8

repositories
mavenCentral()



dependencies
compileOnly('javax.servlet:javax.servlet-api:3.1.0')
compileOnly('org.slf4j:jul-to-slf4j')
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation('org.springframework.cloud:spring-cloud-gcp-starter-sql-mysql:1.0.0.RELEASE')
implementation('org.springframework.boot:spring-boot-starter-web')
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'

implementation('com.google.appengine:appengine-api-1.0-sdk:+')



buildlog



Step #0: BUILD SUCCESSFUL in 53s
Step #0: 4 actionable tasks: 4 executed
Finished Step #0
Starting Step #1
Step #1: Already have image (with digest): gcr.io/cloud-builders/gcloud
Step #1: Services to deploy:
Step #1:
Step #1: descriptor: [/workspace/src/main/webapp/WEB-INF/appengine-web.xml]
Step #1: source: [/workspace/src/main/webapp]
Step #1: target project: [dev-poc-220521]
Step #1: target service: [default]
Step #1: target version: [20181111t040050]
Step #1: target url: [https://dev-poc-220521.appspot.com]
Step #1:
Step #1:
Step #1: Do you want to continue (Y/n)?
Step #1: Beginning deployment of service [default]...
Step #1: #============================================================#
Step #1: #= Uploading 5 files to Google Cloud Storage =#
Step #1: #============================================================#
Step #1: File upload done.
Step #1: Updating service [default]...
Step #1: .......................................................done.
Step #1: Setting traffic split for service [default]...
Step #1: ........done.
Step #1: Deployed service [default] to [https://dev-poc-220521.appspot.com]
Step #1:
Step #1: You can stream logs from the command line by running:
Step #1: $ gcloud app logs tail -s default
Step #1:
Step #1: To view your application in the web browser run:
Step #1: $ gcloud app browse --project=dev-poc-220521
Finished Step #1









share|improve this question














I have a spring boot gradle project, I'm developing in eclipse and pushing to a cloud repository. I configured a cloud build trigger to kick off a gradle build and deploy to the app engine (standard). According to the build log, every step is successful, but when I hit the URL, I get a 404, don't know why.



When I do a gradle appengineDeploy from my laptop, I'm able to deploy to the app engine and my service comes up. This leads me to believe that my cloudbuild.yaml file is not correct.



cloudbuild.yaml



steps:
- name: 'gcr.io/cloud-builders/gradle'
args: ['build']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy', 'src/main/webapp/WEB-INF/appengine-web.xml']
timeout: '1600s'


src/main/webapp/WEB-INF/appengine-web.xml



<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>my_project_id</application>
<version>1</version>
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/classes/logging.properties"/>
</system-properties>
</appengine-web-app>


build.gradle



buildscript 
ext
springBootVersion = '2.0.6.RELEASE'

repositories
mavenCentral()

dependencies
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.+'



apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.google.cloud.tools.appengine'
apply plugin: 'war'

group = 'my-group'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8

repositories
mavenCentral()



dependencies
compileOnly('javax.servlet:javax.servlet-api:3.1.0')
compileOnly('org.slf4j:jul-to-slf4j')
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation('org.springframework.cloud:spring-cloud-gcp-starter-sql-mysql:1.0.0.RELEASE')
implementation('org.springframework.boot:spring-boot-starter-web')
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'

implementation('com.google.appengine:appengine-api-1.0-sdk:+')



buildlog



Step #0: BUILD SUCCESSFUL in 53s
Step #0: 4 actionable tasks: 4 executed
Finished Step #0
Starting Step #1
Step #1: Already have image (with digest): gcr.io/cloud-builders/gcloud
Step #1: Services to deploy:
Step #1:
Step #1: descriptor: [/workspace/src/main/webapp/WEB-INF/appengine-web.xml]
Step #1: source: [/workspace/src/main/webapp]
Step #1: target project: [dev-poc-220521]
Step #1: target service: [default]
Step #1: target version: [20181111t040050]
Step #1: target url: [https://dev-poc-220521.appspot.com]
Step #1:
Step #1:
Step #1: Do you want to continue (Y/n)?
Step #1: Beginning deployment of service [default]...
Step #1: #============================================================#
Step #1: #= Uploading 5 files to Google Cloud Storage =#
Step #1: #============================================================#
Step #1: File upload done.
Step #1: Updating service [default]...
Step #1: .......................................................done.
Step #1: Setting traffic split for service [default]...
Step #1: ........done.
Step #1: Deployed service [default] to [https://dev-poc-220521.appspot.com]
Step #1:
Step #1: You can stream logs from the command line by running:
Step #1: $ gcloud app logs tail -s default
Step #1:
Step #1: To view your application in the web browser run:
Step #1: $ gcloud app browse --project=dev-poc-220521
Finished Step #1






java google-app-engine google-cloud-platform






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 '18 at 4:51









user2058465user2058465

111




111












  • check your server logs app engine -> services -> tools -> logs

    – Caner
    Nov 12 '18 at 9:43


















  • check your server logs app engine -> services -> tools -> logs

    – Caner
    Nov 12 '18 at 9:43

















check your server logs app engine -> services -> tools -> logs

– Caner
Nov 12 '18 at 9:43






check your server logs app engine -> services -> tools -> logs

– Caner
Nov 12 '18 at 9:43













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245949%2fgetting-404-with-app-engine-deploy-from-cloudbuild%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245949%2fgetting-404-with-app-engine-deploy-from-cloudbuild%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)