Skip to content
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

🐛 Bug Report: Functions are not executing on event trigger. #7205

Open
2 tasks done
chakshumraval opened this issue Nov 26, 2023 · 8 comments
Open
2 tasks done

🐛 Bug Report: Functions are not executing on event trigger. #7205

chakshumraval opened this issue Nov 26, 2023 · 8 comments
Assignees
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.

Comments

@chakshumraval
Copy link

👟 Reproduction steps

I have create event for executing functions like this databases.65020b0c9aaaa0695a28.collections.65132022df21b5237691.documents.*. but it someone time working and some time not. it seem's like event triggered functions are not reliable. i have created multiple functions and i am facing issue in all of them

I have also checked permission of the document collections and also function that are fine.

👍 Expected behavior

Function should be executed when defined events are triggered

👎 Actual Behavior

Only 2-3 time function is executed when i create same document 10 times

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

I am using Version 1.4.2

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@chakshumraval chakshumraval added the bug Something isn't working label Nov 26, 2023
@moshOntong-IT
Copy link

I encountered this issue as well. Sometimes the execution is delay as well. It takes time to reflect the execution on the console logs.

@chakshumraval
Copy link
Author

chakshumraval commented Nov 29, 2023

Any update on this ? Now my function is not executing anymore with event trigger. May be i have added one more attribute in the collection, due to that it was stopped ?

@stnguyen90 stnguyen90 added the product / functions Fixes and upgrades for the Appwrite Functions. label Dec 11, 2023
@stnguyen90 stnguyen90 self-assigned this Dec 11, 2023
@stnguyen90
Copy link
Contributor

@chakshumraval would you please check the docker logs from the appwrite-worker-functions container to see if there are any errors?

@chakshumraval
Copy link
Author

chakshumraval commented Dec 16, 2023

Screenshot 2023-12-16 at 12 02 45 PM

[Job] (65775e3272ed01.98024661) successfully run.
[Job] Received Job (65775e33759251.69488999).
Fetched 7 functions...
[Job] (65775e33759251.69488999) successfully run.
[Job] Received Job (65775e3412d431.66825822).
Fetched 7 functions...
[Job] (65775e3412d431.66825822) successfully run.
[Job] Received Job (65775e39644957.39857084).
[Job] (65775e2dd70d74.49222130) failed to run.
[Job] (65775e2dd70d74.49222130) Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
[Error] Type: Exception
[Error] Message: Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
[Error] File: /usr/src/code/app/workers/functions.php
[Error] Line: 284
Fetched 7 functions...
[Job] (65775e39644957.39857084) successfully run.
[Job] Received Job (657764ff4020b7.49798355).
Fetched 7 functions...
Iterating function: PushNotificationDart
[Job] (657764ff4020b7.49798355) failed to run.
[Job] (657764ff4020b7.49798355) Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
[Error] Type: Exception
[Error] Message: Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
[Error] File: /usr/src/code/app/workers/functions.php
[Error] Line: 284

There is no proper error has been printed to analyse further

@chakshumraval
Copy link
Author

Any update on issue ?

@stnguyen90
Copy link
Contributor

stnguyen90 commented Mar 7, 2024

@chakshumraval, apologies for the delay. So you're saying the execution doesn't show up in the console at all? Do you have multiple functions that trigger on the same event?

@chakshumraval
Copy link
Author

chakshumraval commented Mar 7, 2024

@stnguyen90 Yes.. functions are not triggering and not showing up in console. We have multiple functions that trigger on the same event

@stnguyen90
Copy link
Contributor

@chakshumraval, I wonder if one of the other functions is erroring out and then it causes the others to not process. 🧐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.
Projects
None yet
Development

No branches or pull requests

3 participants