-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firebase deploy --only functions:oneFunction fails but function is deployed successfully #3147
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
We have had same problem and few more with 9.4.0 and reverted to 9.3.0 to get our deploys working again.
|
Hi @ljle, thanks for reporting this. It looks like the issue here is that the function you deployed is taking longer to deploy than our timeout on polling the operation. I'll make a PR to increase this timeout, which should help. @m4recek I think the first 2 issues are related to this timeout - I'll take a closer look into the other 2 shortly. |
Could you open a separate issue for this and include logs of what you're seeing? I think I identified one issue with the code that might cause this, but I want to make sure its actually what you are seeing,
On further inspection, I think this is related to the same timeout issue - we set the necessary IAM policy to 'allow unauthenticated' for new functions here: https://github.com/firebase/firebase-tools/blob/master/src/deploy/functions/tasks.ts#L81, but it the operation polling times out, this will never be run. |
Experienced same problems on 9.4.0. Trying multiple functions deploy, only one get actually deployed (as indicated by cloud console), but CLI reports all failing. Running deploy with Downgrade to 9.3.0 helped, and build are passing fine again, but was hard to debug, running deploy without |
I have the very same issues. Trying to upload barely changed functions and I get deployment error. It's really irritating especially when I have some quick fix to push, but google server throws error without specifically saying what's the matter. Tried last three versions of firebase-tools, but no luck. |
I've been seeing this issue recently as well. It has been happening every time since upgrading |
I've created #3150 to increase the timeout and address this. We will likely get it released in the next day or two, but in the meantime you can either downgrade to v9.3.0 or install directly from the PR branch:
|
Co-authored-by: joehan <joehanley@google.com>
The deployment time actually increased very quickly, it went from 5-7 minutes with 800kb to 30 minutes + with 950kb, I understand that it can take a while due to the size but I only take timeout and I don't know if it is actually an upload timeout or If there is something in the code that could be causing some kind of bottleneck, has anyone experienced this? |
[REQUIRED] Environment info
firebase-tools: 9.4.0
Platform: Arch Linux on WSL2 with Node 12.20.1
[REQUIRED] Test case
I don't have a minimal test case for this.
[REQUIRED] Steps to reproduce
firebase deploy --only functions:oneFunction
[REQUIRED] Expected behavior
[REQUIRED] Actual behavior
Output says there were errors deploying the function:
If I run the command with the
--debug
flag, the last lines of the logs say this:But in the Google Cloud Console for Cloud Functions dashboard, in the "last deployed" column it displays the time as if it was correctly deployed, I had to manually test my app and the change was deployed correctly.
The text was updated successfully, but these errors were encountered: