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 not being executed #2940
Comments
Hey, |
Hi,
Then it loops the last 5 lines several times, and presents the error in the UI. |
Hi, I'm having the same problem. I have copied the code of the function and the executor log here but in essence it looks the same as the one by @onceuponacode. My server runs on Ubuntu 21.04, the Appwrite version is 0.13.2. |
We are having this issue too , but we are using Docker Desktop running on Windows 10 (on WSL). |
@onceuponacode, you might be executing the function before the runtime is ready. If you wait, do you eventually see logs about the runtime being created? You can also run |
@stnguyen90 Hi, I'm not @onceuponacode but I just had another look at "my version" of the problem and after several hours of the containers being up I tried to launch the request that triggers my function and this is the resulting executor log (starting from the beginning):
|
@yngwi Can you create a new deployment and try again ? |
I created a new project on a freshly installed Ubuntu 21.10 using Docker Engine 20.10.13 and got similar results:
The only thing I added to the project is the python function taken from the AppWrite docs (with manual deployment). |
I tried using the CLI to deploy the same function instead of choosing the manual deployment (without changing anything else) and everything seems to work. |
I tried just now, same results. Maybe the container wiring is not correct? Following the installation procedure I'm using the networks |
Fresh installation of Appwrite v0.13.3.303 on Ubuntu 20.04 with Docker 20.10.7 here. Trying the base Python 3.9 runtime. I've stripped my function code down to the barest of bones and I cannot get functions to execute. https://gist.github.com/nickduncan7/d79d8ca04adb2a12391f089d12c84fba My Python says it's able to warm up, so no issues there. I believe this function should follow the new format of function to export. I've tried with sample code from the Appwrite CLI as well and same thing. Also using the autogenerated env. Not much changed aside from https enabled by default. Any assistance is appreciated! |
Anything in the build or runtime logs? How did you deploy your code? Feel free to join us on discord as it would be easier to troubleshoot there rather than go back and forth on GitHub. |
How do I check those logs? I deployed with the CLI via a Windows client, a Ubuntu client, and by uploading the code to the web interface directly. I followed the existing example generated from With all due respect I've seen similar issues discussed on Discord with no apparent resolution to the problem, I'd prefer to keep the conversation here if that's possible. Edit: Figured out the runtime logs. That's given me enough info to go on, now I've got the sample function code working. |
Hi again, I just tried a completely new local appwrite setup using the docker command from the installation instructions, then I created a simple collection and a function that tries to list the available documents by just copy&pasting code from the documentation. I then created a deployment using the appwrite cli that I also freshly installed in my WSL installation. I then executed the function several times using the CLI and the browser based admin interface, with the same result again:
I'm not sure what else I can try to fix function execution for me, this is as vanilla as I can get, I guess. I'm grateful for all pointers. |
62336741a47377184a9e-62336809c339a4f8a231 seems like it works. What's the difference between that and 62336741a47377184a9e-62336957e316b4a0b944? Also, it would be easier to troubleshoot this over Discord rather than Github. |
Ok I will do so tomorrow. Thank you for your help! |
I spoke too soon... Started getting this as well after having some successful functions running for most of the day.
As previously shown, my Python was warming up fine. One too many docker restarts I guess and it stopped working. No changes to the appwrite instance or function or anything. Any ideas here with where to start looking would be appreciated. |
What version of Appwrite are you on? Please join us on discord as it would be easier to troubleshoot there rather than go back and forth on GitHub. |
Frankly, going back and forth on Discord is not easier for me by any means. As I said before I’m on the latest Appwrite v0.13.3.303. Thank you, but I’ll be exploring other options for my project going forward. Cheers. |
Thank you everyone, we are looking into the issue and trying to reproduce it. We will have update soon. |
Hi, I just wanted to tell you that with the help of Discord I could finally get my functions that use the SDK client to be executed correctly. My problem was that I didn't set the necessary environment variables |
I just saw a case when |
|
Bugs Solutions
|
i have the same issue... in .env: |
i share here a copy of my docker-compose.yml |
Hi for me the functions work now, thank you. |
could you share your configuration? im not making this work ... |
this is the issue, your network change from |
thanks
|
@onceuponacode, were you able to get things working? Can this issue be closed now? |
Yep, you can close it. @stnguyen90 |
Hi, I'm still encountering this issue: should I open a new issue, or it's fine to continue here? I'm using AppWrite 1.0 with the Python 3.9 runtime, and when I try to execute a cloud function I wrote (that works flawlessly if I run it as a local python function on my computer) I get the I went checking the logs as suggested above and this is what I found:
This is when I execute the function for the first time, then the next times the log output is just
I've read above that it may be something wrong with the any help? |
@LeonardoMantovani, please open a GitHub Q&A discussion or join us on Discord. |
Ok done it: here is the discussion I opened on GitHub and I also opened a Thread on Discord |
Hey, I have the same kind of error logs when I am trying to execute my Java function; note that I have another trivial Java function example which runs without errors:
|
I'd be very happy to join to Discord, but the problem is that it is no searchable by Google; otherwise I'd find an answer already. Documenting it here so that anyone having the same issue with Appwrite + Java can easily find, instead of creating duplicate bug reports: The issue still exists, Appwrite v.1.0.1,
|
Same here:
|
Noticed that this issue has been closed, but I'm still having this issue with manual deployment. I followed the tutorial on how to setup a simple function and deploy it through appwrite, but it fails during execution. I have setup appwrite through docker on macOS, with the latest version ( |
Same here. |
Same here. |
having the same issue as the users above |
For anyone still having problems, please join us on Discord to troubleshoot since each problem needs to be addressed on a case-by-case basis. |
For anyone who have this kind error as TC:
In So, in To avoid that do the next:
...
networks:
gateway:
name: gateway
appwrite:
name: appwrite
runtimes:
name: runtimes
...
...
_APP_EXECUTOR_RUNTIME_NETWORK=runtimes
OPEN_RUNTIMES_NETWORK=runtimes
...
|
Has anyone solved this yet? I am still facing same issue with python function. Also there is no clear documenttaion or youtube video about this. may ber the code is broker in appwrite. |
I am also facing the same issue since few months now. How to solve this error, it is such a critical bug? Can someone please help |
Tried this but doesn't solve it for me. Running AppWrite on DigitalOcean as a Droplet through the marketplace, didn't touch anytime except upload my code as .tar (followed the docs) but same error as the rest here. Sad because the rest looks really sleek. |
Same. (1.3.1) We found a solution for our case, hope works for you Previously we got
|
I use this in CLI and it didn't work. I basically restart docker every day to minimize the error. No other solution yet 😞 |
still not working here too its pretty annoying ... im doing like u restarting server every days |
@garvitomer do you use return when the response has to be sent in this way ? return res.json({ @stnguyen90 doing this : instead of : |
I have run in to this issue working in an environment with no internet connectivity, and have got a workaround by removing the node-appwrite dependency and making all calls through the REST API. I assume that connectivity to internet is required to use the node-appwrite package? (I appreciate that this is a bit of an edge use case and ignores the issue) |
I think this issue should be re-open as it could stilll happen during the 1.3.7 -> 1.3.8 migration. |
👟 Reproduction steps
Using Appwrite v:0.13.2.302 in docker
And running Appwrite cli v0.15.0
Then you get the below described error.
👍 Expected behavior
The function should run
👎 Actual Behavior
I get this error : "
An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 622bb6f3725e4422610e-622d226c1a20e10fc330
"
When taking a closer look the host is comprised of 2 parts :
Both of the parameters seemed to coincide with the ones, visible on the UI.
🎲 Appwrite version
Version 0.13.x
💻 Operating system
MacOS
🧱 Your Environment
I use Docker
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: