You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'use strict'vardatastore=require('@google-cloud/datastore')({projectId: 'nth-circlet-705'})datastore.save({key: datastore.key(['Kind',1]),data: {test: true}},console.log)// never called in [email protected]
@dskdas thank you for analyzing and reporting this problem. I can confirm that I have the same problem and solution.
I have a question for the developers/maintainers; I have noticed that shrinkwrap is being used for the main google-cloud package, but not for the @Google-Cloud packages. Is there a specific reason for this? These kind of problems can be prevented if the @Google-Cloud packages are also shrinkwrapped.
We shrinkwrap the bundled package so that we can minimize duplicated dependencies for users of non-dedupe-ing npm versions (pre [email protected]). We'd like to not have to shrinkwrap at all, however, it's clear it would have prevented this situation we're in now. The cost is delayed bug fixes from our dependencies and a more complicated release process, which means a slower delivery to the end user. This type of issue is rare, and can be addressed in a short matter of time by us. And users can fix by downgrading or following other specific advice that we share here.
I don't want to squash the idea, but I would prefer we have it in another issue so we can keep this clear for users who might hit the same bug and benefit from related advice. If anyone feels strongly about it, please open a new issue.
@stephenplusplus I had a problem in the past with the main google-cloud package due to a bug in node-forge that was resolved upstream but still shrinkwrapped in google-cloud so I would prefer no shrinkwrap as well. I was just wondering if the decision to differentiate between the main google-cloud package and @Google-Cloud packages was taken deliberately. Thanks for clearing that up.
Gotcha, it's only because google-cloud wraps so many modules, and they all share so many common dependencies. npm install google-cloud was downloading 800MB+ :(
@dzoba grpc-0.14.1 is way too old. I believe your project is using some older version of @google-cloud/compute -- consider upgrade it to the latest release.
Our v1.1.x branch now contains the fix to the bug, and the package will be published shortly (probably later today, definitely by early tomorrow). I have verified that it works with the provided reproduction case, but it would be very helpful if you guys could verify that it works more generally.
I also noticed that all of my (remote) deployed google cloud functions stopped being able to store data to google cloud datastore about a week ago. At that time, cloud console was logging a grpc network error. After the grpc 1.1.1 update, the network error is no longer logged, but data is still not being stored to cloud datastore for remotely deployed functions. (Note Locally deployed cloud functions do store data to the remote cloud datastore.) Bundling the node_modules directory with the remotely deployed functions doesn't solve the problem either. ((With package.json dependencies: "@google-cloud/datastore": "^0.6.1" and "grpc": "^1.1.1") When the node_modules directory is included with the remote deployed function, the cloud console log shows a "function timeout" error. When the node_modules directory is not included, the cloud function fails (times-out) silently.
It kinda seems like the google cloud functions network is not able to see the google datastore network. Since my local dev server can see both networks, it doesn't have the same problem.
Any fix update or insight would be greatly appreciated. / Thanks.
@ofrobots:
Hmmm... there is no issue when the cloud function is run on a local server with the same source tree. (i.e no netbase issue.) But, when the exact same function and node_modules bundle is deployed to the remote google cloud functions environment, it can no longer save data to cloud datastore. - Note that the same remotely deployed function worked perfectly up until a week ago.
@tobeach The above linked workaround in the Node.js docker image should resolve the problem. Cloud Functions is set to pick up the docker image with the fix sometime this week. /cc swalkowski
I believe this has either already been resolved, or will be when you update to google-cloud 0.46.2 which was just released. I'm going to close, but just let me know if this isn't resolved.
Activity
stephenplusplus commentedon Jan 31, 2017
I haven't reproduced the 503, however, I noticed the request hanging in 1.1.0 and coming back instantly in 1.0.1.
To anyone affected by this,
npm install google-cloudand access your sub-services through there.@murgatroid99 -- any ideas what could have caused this? Currently, it looks like we'd have to roll back and force 1.0.1.
Here's repro code:
mdebruijne commentedon Jan 31, 2017
@dskdas thank you for analyzing and reporting this problem. I can confirm that I have the same problem and solution.
I have a question for the developers/maintainers; I have noticed that shrinkwrap is being used for the main google-cloud package, but not for the @Google-Cloud packages. Is there a specific reason for this? These kind of problems can be prevented if the @Google-Cloud packages are also shrinkwrapped.
stephenplusplus commentedon Jan 31, 2017
We shrinkwrap the bundled package so that we can minimize duplicated dependencies for users of non-dedupe-ing npm versions (pre [email protected]). We'd like to not have to shrinkwrap at all, however, it's clear it would have prevented this situation we're in now. The cost is delayed bug fixes from our dependencies and a more complicated release process, which means a slower delivery to the end user. This type of issue is rare, and can be addressed in a short matter of time by us. And users can fix by downgrading or following other specific advice that we share here.
I don't want to squash the idea, but I would prefer we have it in another issue so we can keep this clear for users who might hit the same bug and benefit from related advice. If anyone feels strongly about it, please open a new issue.
murgatroid99 commentedon Jan 31, 2017
I can reproduce this problem. The root cause is a TCP connection failure, though I can't tell yet why it's happening.
murgatroid99 commentedon Jan 31, 2017
I have tracked down the issue, and I will publish [email protected] as soon as our tests pass and we can build the new packages.
mdebruijne commentedon Jan 31, 2017
@stephenplusplus I had a problem in the past with the main google-cloud package due to a bug in node-forge that was resolved upstream but still shrinkwrapped in google-cloud so I would prefer no shrinkwrap as well. I was just wondering if the decision to differentiate between the main google-cloud package and @Google-Cloud packages was taken deliberately. Thanks for clearing that up.
stephenplusplus commentedon Jan 31, 2017
Gotcha, it's only because
google-cloudwraps so many modules, and they all share so many common dependencies.npm install google-cloudwas downloading 800MB+ :(dzoba commentedon Jan 31, 2017
I have encountered what I think is a related error when deploying to Heroku. It has killed my build & deploy process.
jmuk commentedon Feb 1, 2017
@dzoba grpc-0.14.1 is way too old. I believe your project is using some older version of
@google-cloud/compute-- consider upgrade it to the latest release.murgatroid99 commentedon Feb 1, 2017
Our v1.1.x branch now contains the fix to the bug, and the package will be published shortly (probably later today, definitely by early tomorrow). I have verified that it works with the provided reproduction case, but it would be very helpful if you guys could verify that it works more generally.
murgatroid99 commentedon Feb 1, 2017
I have now published [email protected]. This problem should now be fixed.
sebastianovide commentedon Feb 1, 2017
thank @murgatroid99 Just to confirm that it works for me on my machine, but it is not working on app engine
Update grpc dependency version to ~1.1
20 remaining items
tobeach commentedon Feb 6, 2017
I also noticed that all of my (remote) deployed google cloud functions stopped being able to store data to google cloud datastore about a week ago. At that time, cloud console was logging a grpc network error. After the grpc 1.1.1 update, the network error is no longer logged, but data is still not being stored to cloud datastore for remotely deployed functions. (Note Locally deployed cloud functions do store data to the remote cloud datastore.) Bundling the node_modules directory with the remotely deployed functions doesn't solve the problem either. ((With package.json dependencies: "@google-cloud/datastore": "^0.6.1" and "grpc": "^1.1.1") When the node_modules directory is included with the remote deployed function, the cloud console log shows a "function timeout" error. When the node_modules directory is not included, the cloud function fails (times-out) silently.
It kinda seems like the google cloud functions network is not able to see the google datastore network. Since my local dev server can see both networks, it doesn't have the same problem.
Any fix update or insight would be greatly appreciated. / Thanks.
Add netbase in the base image
Add netbase in the base image (#79)
ert78gb commentedon Feb 7, 2017
I had the same problem then @tobeach.
tobeach commentedon Feb 7, 2017
@ofrobots:
Hmmm... there is no issue when the cloud function is run on a local server with the same source tree. (i.e no netbase issue.) But, when the exact same function and node_modules bundle is deployed to the remote google cloud functions environment, it can no longer save data to cloud datastore. - Note that the same remotely deployed function worked perfectly up until a week ago.
ofrobots commentedon Feb 7, 2017
@tobeach The above linked workaround in the Node.js docker image should resolve the problem. Cloud Functions is set to pick up the docker image with the fix sometime this week. /cc swalkowski
stephenplusplus commentedon Feb 8, 2017
I believe this has either already been resolved, or will be when you update to google-cloud
0.46.2which was just released. I'm going to close, but just let me know if this isn't resolved.Update grpc dependency version to ~1.1 (#104)
Update grpc dependency version to ~1.1 (#104)
Update grpc dependency version to ~1.1 (#104)
Update grpc dependency version to ~1.1 (#104)
fix: update retry policy to not retry streams that have not made prog…
fix(docs samples): update missing argv in sample metadata for push su…