Adding newrelic to appengine flexible custom environment

35 views
Skip to first unread message

vishakh...@arrk-gcp.co.uk

unread,
Oct 26, 2017, 9:36:51 AM10/26/17
to Google App Engine
I am trying to add newrelic to appengine flexible custom app engine.  But getting below error.
INFO] GCLOUD: Removing intermediate container 7a7cd07374ff
[INFO] GCLOUD: Step 4/8 : ADD *.war /app.war
[INFO] GCLOUD:  ---> 26620f873061
[INFO] GCLOUD: Removing intermediate container 7b19231077d9
[INFO] GCLOUD: Step 5/8 : ADD dependency/newrelic ${NEWRELIC_HOME}
[INFO] GCLOUD: ADD failed: stat /var/lib/docker/tmp/docker-builder187142805/dependency/newrelic: no such file or directory
[INFO] GCLOUD: ERROR
[INFO] GCLOUD: ERROR: build step "gcr.io/cloud-builders/docker@sha256:672e24919dc32af287b9bcaead467b8d7f3decd7baa58b55f606c0e945262a91" failed: exit status 1
[INFO] GCLOUD: --------------------------------------------------------------------------------
[INFO] GCLOUD:
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/gcr/builds/42b5537a-4aa4-4e7d-aed9-ec0af591387f?project=okrs-174109 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details

Below is my Dockerfile

FROM openjdk:8-jre-alpine

# Newrelic directory to copy Java agent files to
ENV NEWRELIC_HOME
/usr/local/newrelic

ENV SPRING_OUTPUT_ANSI_ENABLED
=ALWAYS \
    JHIPSTER_SLEEP
=0 \
    JAVA_OPTS
="-javaagent:${NEWRELIC_HOME}/newrelic.jar -Dnewrelic.config.file=${NEWRELIC_HOME}/newrelic.yml"

# add directly the war
ADD
*.war /app.war

ADD dependency
/newrelic ${NEWRELIC_HOME}

ADD classes
/config/newrelic.yml ${NEWRELIC_HOME}

Any idea what I am doing wrong here.

Thanks in advance

Jordan (Cloud Platform Support)

unread,
Oct 26, 2017, 2:45:20 PM10/26/17
to Google App Engine
As per the logs it looks like the 'docker-builder187142805/dependency/newrelic' cannot be found.

- Note that Google Groups is for general product discussions only and not for technical support. Since New Relic is not a Google product it is recommended to follow the New Relic tutorial in full and consult with their Technical Community and Support Center for further technical support.
Reply all
Reply to author
Forward
0 new messages