extension task fail to build #1436
-
I´m tring to add a extension task but I always receive error in deploying the function to firebase... `=== Deploying to 'fansii'... i deploying functions Functions deploy had errors with the following functions: Error: There was an error deploying functions 39 command: cd build/functionBuilder/builds/1697484655502; yarn deploy --project fansii --only functions stderr: error Command failed with exit code 2. errorStackTrace: Error: Command failed: cd build/functionBuilder/builds/1697484655502; yarn deploy --project fansii --only functions
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
Usually the cause to the error can be found in your rowy-backend Cloud Run logs panel in GCP console (https://console.cloud.google.com/run). Do you see anything relevant? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-

… On 17 Oct 2023, at 14:16, bofeiw ***@***.***> wrote:
The function location looks fine.
Can you check the logs in the logs tab here?
https://console.cloud.google.com/run/detail/europe-north1/rowy-backend?project=fansii
<https://user-images.githubusercontent.com/34177142/275828062-42720c64-c6ee-4f1e-b086-5cc5b49208f1.png>
—
Reply to this email directly, view it on GitHub <#1436 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIQ22MIFNCZLUWMIOZPIVULX7ZZIBAVCNFSM6AAAAAA6CWMMA6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMBTGM4TC>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
I tried with a basic “hello World” code and does the same.
I also reset the project and started from scratch.
I’m out of options…
… On 18 Oct 2023, at 22:42, bofeiw ***@***.***> wrote:
This error message usually means the table function failed to deploy, which could be caused by many reasons. For example, a code typo, type error, or using variable that does not exist. Can you check the logs and see if there are anything that tells the deploy error details?
—
Reply to this email directly, view it on GitHub <#1436 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIQ22MIQDH5JOSRMYJ2SYN3YAA5K3AVCNFSM6AAAAAA6CWMMA6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMJZHA3DQ>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Hi @ItaliaNorway, let's help you resolve this issue. As requested by @bofeiw here, could you please check your logs and see if there is anything that tells the deploy error details? This will help us to debug your issue. Cheers, |
Beta Was this translation helpful? Give feedback.
-
I tested out a completely new project with Rowy.
Blank new Firebase project started from rowy.
Created a table with Rating (numbers) and AverageRatings (derivative)
Listener fields: Rating
Output filed type: Number
Derivative script:
// Import any NPM package needed
// import _ from "lodash";
const derivative: Derivative = async ({ row, ref, db, storage, auth, logging }) => {
logging.log("derivative started");
return row.rating;
// Example:
// const sum = row.a + row.b;
// return sum;
};
export default derivative;
Evaluate all it works.
When I Deploy. Same error as before (in the last project):
=== Deploying to 'luup-iuzwma'...
i deploying functions
i functions: preparing codebase default for deployment
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
✔ functions: required API cloudfunctions.googleapis.com is enabled
✔ artifactregistry: required API artifactregistry.googleapis.com is enabled
✔ functions: required API cloudbuild.googleapis.com is enabled
i functions: preparing . directory for uploading...
i functions: packaged /home/node/app/build/functionBuilder/builds/1697723849775 (72.44 KB) for uploading
✔ functions: . folder uploaded successfully
i functions: updating Node.js 18 function R-Functions(europe-west1)...
Build failed: failed to Fetch: failed to download archive gs://gcf-sources-1091868825787-europe-west1/R-Functions-6ffdea61-8621-4450-8a8c-5c8dd1637fb8/version-2/function-source.zip: Access to bucket gcf-sources-1091868825787-europe-west1 denied. You must grant Storage Object Viewer permission to ***@***.***
Functions deploy had errors with the following functions:
R-Functions(europe-west1)
i functions: cleaning up build files...
Error: There was an error deploying functions
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
38
15:58:30:30
command: cd build/functionBuilder/builds/1697723849775; yarn deploy --project luup-iuzwma --only functions
stderr: error Command failed with exit code 2.
errorStackTrace: Error: Command failed: cd build/functionBuilder/builds/1697723849775; yarn deploy --project luup-iuzwma --only functions
error Command failed with exit code 2.
at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)
… On 19 Oct 2023, at 11:09, Gaurav Chadha ***@***.***> wrote:
Hi @ItaliaNorway <https://github.com/ItaliaNorway>, let's help you resolve this issue.
As requested by @bofeiw <https://github.com/bofeiw> here <#1436 (reply in thread)>, could you please check your logs and see if there is anything that tells the deploy error details? This will help us to debug your issue.
Cheers,
Gaurav
—
Reply to this email directly, view it on GitHub <#1436 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIQ22MJ4TLZRYGDXSXCJ5MTYADU37AVCNFSM6AAAAAA6CWMMA6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMRUGUYTI>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
I did the automatic install of Roy…
I gave “storage object view” permission now but I remember did it also for the previous project… stil same error as the previous project called Fansii:
Build failed: Build error details not available.Please check the logs at https://console.cloud.google.com/cloud-build/builds;region=europe-west1/9e44e0fc-3837-406e-9859-49574f6c4179?project=1091868825787. Please visit https://cloud.google.com/functions/docs/troubleshooting#build for in-depth troubleshooting documentation for build related errors.
Functions deploy had errors with the following functions:
R-Functions(europe-west1)
i functions: cleaning up build files...
Error: There was an error deploying functions
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
38
20:20:10:10
command: cd build/functionBuilder/builds/1697825916381; yarn deploy --project luup-iuzwma --only functions
stderr: error Command failed with exit code 2.
errorStackTrace: Error: Command failed: cd build/functionBuilder/builds/1697825916381; yarn deploy --project luup-iuzwma --only functions
error Command failed with exit code 2.
at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)
… On 20 Oct 2023, at 13:34, bofeiw ***@***.***> wrote:
Looking at the error message, your service account has a missing permission:
Build failed: failed to Fetch: failed to download archive gs://gcf-sources-1091868825787-europe-west1/R-Functions-6ffdea61-8621-4450-8a8c-5c8dd1637fb8/version-2/function-source.zip: Access to bucket gcf-sources-1091868825787-europe-west1 denied. You must grant Storage Object Viewer permission to @.***
Can you do as the error message suggested: grant Storage Object Viewer permission to @.***
And also check any other missing permissions for Rowy service account as documented here:https://docs.rowy.io/rowy-run#manual-install-rowy-run, assuming that you have a manual install of Rowy.
—
Reply to this email directly, view it on GitHub <#1436 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIQ22MJCAGHENRNL6PVMC6LYAJOVVAVCNFSM6AAAAAA6CWMMA6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMZYGA3TM>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
I had to start a complete new project without using ROWY. Create and deploy a funcion and then add Rowy |
Beta Was this translation helpful? Give feedback.
I had to start a complete new project without using ROWY. Create and deploy a funcion and then add Rowy