Back

[SOLVED] Appwrite functions are not being triggered by events

  • 0
  • Self Hosted
  • Functions
rafagazani
4 Oct, 2023, 03:02

I performed these steps, I will deploy

TL;DR
The user was having an issue with Appwrite functions not being triggered by events. They received help from other users who suggested checking the Docker container's logs and inspecting the container. It was discovered that the issue was caused by an ImportError related to the Werkzeug library. The solution was to update the Appwrite version to 1.1.0. The user also mentioned performing some steps but did not specify what they were.
Drake
4 Oct, 2023, 03:03

Did prune clear up a lot of space? How are the docker logs now?

rafagazani
4 Oct, 2023, 03:03

Total reclaimed space: 1.118GB

Drake
4 Oct, 2023, 03:04

Eh not that much

rafagazani
4 Oct, 2023, 03:05

It now responds again with the error: An internal curl error has occurred within the executor! Error Msg: Operation timed out

Drake
4 Oct, 2023, 03:07

Anything in the executor or the runtime container?

rafagazani
4 Oct, 2023, 03:08

I'm looking for

rafagazani
4 Oct, 2023, 03:10

the default container name is not 'projectId-deploymentId ?

rafagazani
4 Oct, 2023, 03:13

Traceback (most recent call last): File "/usr/local/src/server.py", line 1, in <module> from flask import Flask, request, jsonify File "/usr/local/src/userlib/runtime-env/lib/python3.9/site-packages/flask/init.py", line 7, in <module> from .app import Flask as Flask File "/usr/local/src/userlib/runtime-env/lib/python3.9/site-packages/flask/app.py", line 28, in <module> from . import cli File "/usr/local/src/userlib/runtime-env/lib/python3.9/site-packages/flask/cli.py", line 18, in <module> from .helpers import get_debug_flag File "/usr/local/src/userlib/runtime-env/lib/python3.9/site-packages/flask/helpers.py", line 16, in <module> from werkzeug.urls import url_quote ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/src/userlib/runtime-env/lib/python3.9/site-packages/werkzeug/urls.py)

rafagazani
4 Oct, 2023, 03:19

I didn't make any changes to the function, I just made a new deployment.

Drake
4 Oct, 2023, 03:19

What's in your requirements.txt?

rafagazani
4 Oct, 2023, 03:20

just: appwrite==1.1.0

Drake
4 Oct, 2023, 03:20

Do you know what the docker image was for the runtime?

rafagazani
4 Oct, 2023, 03:21

what came in appwrite 1.1.2

Drake
4 Oct, 2023, 03:21

It's be good to confirm by inspecting the container

rafagazani
4 Oct, 2023, 03:22

how do I do that?

Drake
4 Oct, 2023, 03:23

docker ps or docker inspect <container id> while the container is running

rafagazani
4 Oct, 2023, 03:25

docker inspect <container id>:

Drake
4 Oct, 2023, 03:25

Yup..v2 is right...

rafagazani
4 Oct, 2023, 03:26

Do you have any idea what I can do?

rafagazani
4 Oct, 2023, 03:32
rafagazani
4 Oct, 2023, 03:33

Thank you very, very much!

rafagazani
4 Oct, 2023, 03:33

Thank you very, very much!

rafagazani
4 Oct, 2023, 03:34

[SOLVED] Appwrite functions are not being triggered by events

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more