Unable to connect to deploy meteor app

228 views
Skip to first unread message

Pierre Vinay

unread,
Nov 11, 2018, 4:17:39 PM11/11/18
to Google App Engine
Hello google world,
It's been 15 hours (minimum...) that I am trying to deploy my meteor app on google app engine.
I think I don't understand LOT of things...
What I've done:
_ download google apk gcloud
_ ready for billing
_ app created

Where I'm stuck:
When I deploy with this command:
gcloud app deploy --version test --bucket=gs://myBucket 

after looping lot a time on uploading, it always say :

Updating service [default] (this may take several minutes)...done.
ERROR
: (gcloud.app.deploy) Your deployment has succeeded, but promoting the new version to default failed. You may not have permissions to change traffic splits. Changing traffic splits requires the Owner, Editor, App Engine Admin, or App Engine Service Admin role. Please contact your project owner and use the `gcloud app services set-traffic --splits <version>=1` command to redirect traffic to your newly deployed version.


Original error: INVALID_ARGUMENT: Invalid request.
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations
:
 
- description: Traffic cannot be allocated to stopped version test. Please ensure
      that traffic
is only allocated to serving versions.
    field
: service.split.allocations[test]



Pierre Vinay

unread,
Nov 12, 2018, 8:13:24 AM11/12/18
to Google App Engine
Now I've the same erro that I had before I post :

> node build.js || nodejs build.js
make
: Entering directory '/app/programs/server/node_modules/fibers/build'
  CXX
(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc: In static member function 'static void Fiber::DestroyOrphans()':
../src/fibers.cc:464:67: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
     
String::Utf8Value stack(uni::Deref(that.isolate, fatal_stack));
                                                                   
^
In file included from /root/.node-gyp/10.13.0/include/node/v8.h:26:0,
                 
from /root/.node-gyp/10.13.0/include/node/node.h:63,
                 
from ../src/coroutine.h:1,
                 
from ../src/fibers.cc:1:
/root/.node-gyp/10.13.0/include/node/v8.h:2892:28: note: declared here
                   
explicit Utf8Value(Local<v8::Value> obj));
                           
^
/root/.node-gyp/10.13.0/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__
((deprecated(message)))
   
^
../src/fibers.cc: In static member function 'static void Fiber::RunFiber(void**)':
../src/fibers.cc:686:66: warning: 'static v8::Local<v8::Script> v8::Script::Compile(v8::Local<v8::String>, v8::ScriptOrigin*)' is deprecated: Use maybe version [-Wdeprecated-declarations]
     
Script::Compile(uni::NewLatin1String(that.isolate, "void 0;"));
                                                                 
^
In file included from /root/.node-gyp/10.13.0/include/node/v8.h:26:0,
                 
from /root/.node-gyp/10.13.0/include/node/node.h:63,
                 
from ../src/coroutine.h:1,
                 
from ../src/fibers.cc:1:
/root/.node-gyp/10.13.0/include/node/v8.h:1256:38: note: declared here
                       
Local<Script> Compile(Local<String> source,
                                     
^
/root/.node-gyp/10.13.0/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__
((deprecated(message)))
   
^
../src/fibers.cc:701:66: warning: 'v8::Local<v8::Value> v8::TryCatch::StackTrace() const' is deprecated: Use maybe version. [-Wdeprecated-declarations]
       uni
::Reset(that.isolate, fatal_stack, try_catch.StackTrace());
                                                                 
^
In file included from /root/.node-gyp/10.13.0/include/node/v8.h:26:0,
                 
from /root/.node-gyp/10.13.0/include/node/node.h:63,
                 
from ../src/coroutine.h:1,
                 
from ../src/fibers.cc:1:
/root/.node-gyp/10.13.0/include/node/v8.h:8593:52: note: declared here
   V8_DEPRECATED
("Use maybe version.", Local<Value> StackTrace() const);
                                                   
^
/root/.node-gyp/10.13.0/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__
((deprecated(message)))
   
^
  CXX
(target) Release/obj.target/fibers/src/coroutine.o
  CC
(target) Release/obj.target/fibers/src/libcoro/coro.o
  SOLINK_MODULE
(target) Release/obj.target/fibers.node
  COPY
Release/fibers.node
make
: Leaving directory '/app/programs/server/node_modules/fibers/build'
Installed in `/app/programs/server/node_modules/fibers/bin/linux-x64-64/fibers.node`


> meteor-dev-bundle@ install /app/programs/server
> node npm-rebuild.js


events
.js:167
     
throw er; // Unhandled 'error' event
     
^


Error: spawn npm ENOENT
    at
Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT
(internal/child_process.js:407:16)
    at process
._tickCallback (internal/process/next_tick.js:63:19)
    at
Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
    at startup
(internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore
(internal/bootstrap/node.js:739:3)
Emitted 'error' event at:
    at
Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
    at onErrorNT
(internal/child_process.js:407:16)
   
[... lines matching original stack trace ...]
    at bootstrapNodeJSCore
(internal/bootstrap/node.js:739:3)
npm ERR
! code ELIFECYCLE
npm ERR
! errno 1
npm ERR
! meteor-dev-bundle@ install: `node npm-rebuild.js`
npm ERR
! Exit status 1
npm ERR
!
npm ERR
! Failed at the meteor-dev-bundle@ install script.
npm ERR
! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR
! A complete log of this run can be found in:
npm ERR
!     /root/.npm/_logs/2018-11-12T13_10_24_863Z-debug.log
The command '/bin/sh -c (cd programs/server && npm install --unsafe-perm)' returned a non-zero code: 1
ERROR
ERROR
: build step 0 "gcr.io/cloud-builders/docker" failed: exit status 1


If someone has a clue...

Dan S (Cloud Platform Support)

unread,
Nov 16, 2018, 3:48:53 PM11/16/18
to Google App Engine
Hello, 

You should get a better assistance in the Stack Overflow[1] since you have a technical issue and it will require troubleshooting. There, you should receive help from the community fellow enthusiasts, and from Google engineers when you add a tag in your post according to the product where you require assistance, as you can check in our documentation[2]. Additionally, I suggest that you post some sample code and details regarding your application like deployment and settings.

Pierre Vinay

unread,
Nov 17, 2018, 12:31:58 PM11/17/18
to google-a...@googlegroups.com
Thanks, I will do that !

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/cb7328de-cba8-427c-9db6-09786a8261e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages