chat21 / chat21-cloud-functions

Firebase cloud functions for Chat21. It's the server engine of Chat21 hosted on Google Firebase
http://www.chat21.org
GNU Affero General Public License v3.0
79 stars 65 forks source link

Getting Error on firebase deploy #9

Open PlutusM opened 5 years ago

PlutusM commented 5 years ago

Setup time error after : firebase deploy

⚠ functions[thumbnailFunction-generateThumbnail(us-central1)]: Deployment error. Failed to configure trigger GCS Bucket: support-b3bbf.appspot.com

When i am doing manually setup : firebase deploy --only functions:thumbnailFunction-generateThumbnail

it shows error in details

⚠ functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.

=== Deploying to 'support-b3bbf'...

i deploying functions i functions: ensuring necessary APIs are enabled... ✔ functions: all necessary APIs are enabled i functions: preparing functions directory for uploading... i functions: packaged functions (97.87 KB) for uploading ✔ functions: functions folder uploaded successfully i functions: current functions in project: api(us-central1), createConversation(us-central1), deleteArchivedConversation(us-central1), duplicateTimelineOnJoinGroup(us-central1), duplicateTimelineOnJoinGroupForInvitedMembers(us-central1), fanOutGroup(us-central1), insertAndSendMessage(us-central1), pushNotificationsFunction-sendNotification(us-central1), removeMemberInfoOnLeaveGroup(us-central1), saveMemberInfoOnJoinGroup(us-central1), sendInfoMessageOnGroupCreation(us-central1), sendInfoMessageOnJoinGroup(us-central1), sendMessageReturnReceipt(us-central1), thumbnailFunction-generateThumbnail(us-central1) ⚠ functions: the following filters were specified but do not match any functions in the project: thumbnailFunction-generateThumbnail

✔ Deploy complete!

This is the error i am getting in firebase console

12:43:55.665 pm | warning | thumbnailFunction-generateThumbnail | {"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":13,"message":"INTERNAL"},"authenticationInfo":{"principalEmail":"abc@gmail.com"},"requestMetadata":{"requestAttributes":{},"destinationAttributes":{}},"serviceName":"cloudfunctions.googleapis.com","methodName":"google.cloud.functions.v1.CloudFunctionsService.UpdateFunction","resourceName":"projects/support-b3bbf/locations/us-central1/functions/thumbnailFunction-generateThumbnail"}

Anyone can help me to solve this. Thanks.

gigincg commented 4 years ago

Hey, Did you find a fix for this? I'm facing the same issue.

cofimate commented 3 years ago

Experiencing also an error with the deployment of that function but with a different error thumbnailFunction-generateThumbnail {"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":3,"message":"Cloud Storage trigger bucket chat21samsung.appspot.com not found"},"authenticationInfo":{"principalEmail":"xxxxxxx@gmail.com"},"serviceName":"cloudfunctions.googleapis.com","methodName":"google.cloud.functions.v1.CloudFunctionsService.UpdateFunction","resourceName":"projects/chat21samsung/locations/us-central1/functions/thumbnailFunction-generateThumbnail"}


I got it you need to initialize your Storage in your project

andrealeo83 commented 3 years ago

You must enable the Firebase Storage before the "firebase deploy" cmd as described here: https://developer.tiledesk.com/installation/install-tiledesk-with-firebase-chat21-engine/chat21-installation/chat21-firebase-installation/create-a-firebase-project#create-a-storage

cofimate commented 3 years ago

Grazie Andrea.

Cecilio

On Wed, May 19, 2021 at 11:06 AM Andrea Leo @.***> wrote:

You must enable the Firebase Storage before the "firebase deploy" cmd as described here: https://developer.tiledesk.com/installation/install-tiledesk-with-firebase-chat21-engine/chat21-installation/chat21-firebase-installation/create-a-firebase-project#create-a-storage

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chat21/chat21-cloud-functions/issues/9#issuecomment-844344264, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABI6L5NP6OBIVRWWJKBNXTTTOP43NANCNFSM4IDKZ2YQ .