googlearchive / appengine-nodejs-quickstart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error building docker image rr-eap.default.1 when trying to deploy

ralfr opened this issue · comments

Any hint or idea as to why this keeps failing:

[RalfR@mbp-rr ~/src/appengine-nodejs-quickstart:master] gcloud --project rr-eap preview app deploy --server preview.appengine.google.com .
Updating module [default] from file [/Users/RalfR/src/appengine-nodejs-quickstart/app.yaml]
11:10 AM Host: preview.appengine.google.com
{bucket: vm-containers.rr-eap.appspot.com, path: /containers}

ERROR: Error building docker image rr-eap.default.1
ERROR: {"stream":"Step onbuild-0 : ADD package.json /app/\n"}
ERROR: {"stream":" ---\u003e Using cache\n"}
ERROR: {"stream":" ---\u003e a08b9490e53c\n"}
ERROR: {"stream":"Step onbuild-1 : RUN npm install\n"}
ERROR: {"stream":" ---\u003e Running in f471e2da0533\n"}
ERROR: {"stream":"\u001b[91mnpm\u001b[0m"}
ERROR: {"stream":"\u001b[91m \u001b[0m"}
ERROR: {"stream":"\u001b[91mWARN package.json quickstart@0.0.1 No repository field.\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm \u001b[0m"}
ERROR: {"stream":"\u001b[91mWARN package.json quickstart@0.0.1 No README data\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm\u001b[0m"}
ERROR: {"stream":"\u001b[91m ERR! git clone http://github.com:GoogleCloudPlatform/appengine-nodejs.git\u001b[0m"}
ERROR: {"stream":"\u001b[91m Cloning into bare repository '/.npm/_git-remotes/http-github-com-GoogleCloudPlatform-appengine-nodejs-git-d82c86f8'...\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm ERR!\u001b[0m"}
ERROR: {"stream":"\u001b[91m git clone http://github.com:GoogleCloudPlatform/appengine-nodejs.git \nnpm ERR! git clone http://github.com:GoogleCloudPlatform/appengine-nodejs.git\u001b[0m"}
ERROR: {"stream":"\u001b[91m error: The requested URL returned error: 403 while accessing http://github.com:GoogleCloudPlatform/appengine-nodejs.git/info/refs\nnpm ERR! git clone http://github.com:GoogleCloudPlatform/appengine-nodejs.git fatal: HTTP request failed\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm\u001b[0m"}
ERROR: {"stream":"\u001b[91m ERR! Error: Command failed: error: The requested URL returned error: 403 while accessing http://github.com:GoogleCloudPlatform/appengine-nodejs.git/info/refs\nnpm\u001b[0m"}
ERROR: {"stream":"\u001b[91m ERR! fatal: HTTP request failed\nnpm ERR! \nnpm ERR!     at ChildProcess.exithandler (child_process.js:648:15)\nnpm ERR!     at ChildProcess.emit (events.js:98:17)\nnpm ERR!\u001b[0m"}
ERROR: {"stream":"\u001b[91m     at maybeClose (child_process.js:756:16)\nnpm ERR!     at Process.ChildProcess._handle.onexit (child_process.js:823:5)\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm ERR! If you need help, you may report this *entire* log,\nnpm ERR!\u001b[0m"}
ERROR: {"stream":"\u001b[91m including the npm and node versions, at:\nnpm\u001b[0m"}
ERROR: {"stream":"\u001b[91m ERR!     \u003chttp://github.com/npm/npm/issues\u003e\n\u001b[0m"}
ERROR: {"stream":"\u001b[91m\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm\u001b[0m"}
ERROR: {"stream":"\u001b[91m ERR! System Linux 3.16.1-tinycore64\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm ERR! command \"/nodejs/bin/node\" \"/nodejs/bin/npm\" \"install\"\nnpm ERR! cwd\u001b[0m"}
ERROR: {"stream":"\u001b[91m /app\nnpm ERR!\u001b[0m"}
ERROR: {"stream":"\u001b[91m \u001b[0m"}
ERROR: {"stream":"\u001b[91mnode -v v0.10.30\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm ERR! npm -v 1.4.21\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm\u001b[0m"}
ERROR: {"stream":"\u001b[91m ERR! code 128\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm \u001b[0m"}
ERROR: {"stream":"\u001b[91mERR!\u001b[0m"}
ERROR: {"stream":"\u001b[91m \nnpm \u001b[0m"}
ERROR: {"stream":"\u001b[91mERR! Additional logging details can be found in:\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm \u001b[0m"}
ERROR: {"stream":"\u001b[91mERR!     /app/npm-debug.log\n\u001b[0m"}
ERROR: {"stream":"\u001b[91mnpm \u001b[0m"}
ERROR: {"stream":"\u001b[91mERR! not ok code 0\n\u001b[0m"}
ERROR: {"errorDetail":{"message":"The command [/bin/sh -c npm install] returned a non-zero code: 1"},"error":"The command [/bin/sh -c npm install] returned a non-zero code: 1"}
Traceback (most recent call last):
  File "/Users/RalfR/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 150, in <module>
    main()
  File "/Users/RalfR/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 146, in main
    _cli.Execute()
  File "/Users/RalfR/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 431, in Execute
    post_run_hooks=self.__post_run_hooks, kwargs=kwargs)
  File "/Users/RalfR/google-cloud-sdk/./lib/googlecloudsdk/calliope/frontend.py", line 274, in _Execute
    pre_run_hooks=pre_run_hooks, post_run_hooks=post_run_hooks)
  File "/Users/RalfR/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 882, in Run
    result = command_instance.Run(args)
  File "/Users/RalfR/google-cloud-sdk/./lib/googlecloudsdk/calliope/exceptions.py", line 78, in TryFunc
    return func(*args, **kwargs)
  File "/Users/RalfR/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/deploy.py", line 72, in Run
    self.__Run(args, project, deployables)
  File "/Users/RalfR/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/deploy.py", line 120, in __Run
    path, bucket)
  File "/Users/RalfR/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/images/push.py", line 145, in BuildAndPushDockerImage
    nocache=False)) as image, credentials.CredentialsContainer(
  File "/Users/RalfR/google-cloud-sdk/platform/google_appengine/google/appengine/tools/docker/containers.py", line 173, in __enter__
    self.Build()
  File "/Users/RalfR/google-cloud-sdk/platform/google_appengine/google/appengine/tools/docker/containers.py", line 238, in Build
    raise ImageError
google.appengine.tools.docker.containers.ImageError
[RalfR@mbp-rr ~/src/appengine-nodejs-quickstart:master]

The following should work:

{
  ...
  "dependencies": {
    "express": "3.x",
    "appengine" : "git+https://github.com/GoogleCloudPlatform/appengine-nodejs.git"
  }
}

If it does, could you open a PR against this repo?