Hahah π
Just deployed a function, seems to have been failed, and everything got freezed
Next time I recommend to check docker stats And main appwrite logs. As freezing usually means that the Appwrite workers crashed.
Yes, deploying again the same function without making modifications, and magically it works now
So I can confirm, thanks for solving it with your magic wand π
π
[SOLVED] Function freezes everything
Seelms this happened again with other different function
Function freezes everything
The error I get on sentry: Query has failed: Request failed! curl_errno: 28
file
/usr/src/code/vendor/influxdb/influxdb-php/src/InfluxDB/Client.php
line
196
trace
#0 /usr/src/code/vendor/influxdb/influxdb-php/src/InfluxDB/Database.php(78): InfluxDB\Client->query('telegraf', 'SELECT sum(valu...', Array) #1 /usr/src/code/src/Appwrite/Usage/Calculators/TimeSeries.php(476): InfluxDB\Database->query('SELECT sum(valu...') #2 /usr/src/code/src/Appwrite/Usage/Calculators/TimeSeries.php(528): Appwrite\Usage\Calculators\TimeSeries->syncFromInfluxDB('users.$all.requ...', Array, Array) #3 /usr/src/code/app/tasks/usage.php(132): Appwrite\Usage\Calculators\TimeSeries->collect() #4 /usr/src/code/vendor/utopia-php/cli/src/CLI/Console.php(208): {closure}() #5 /usr/src/code/app/tasks/usage.php(137): Utopia\CLI\Console::loop(Object(Closure), 30) #6 /usr/src/code/vendor/utopia-php/cli/src/CLI/CLI.php(233): {closure}() #7 /usr/src/code/app/cli.php(32): Utopia\CLI\CLI->run() #8 {main}
Tags: code-0 environment-production level-error logger-usage-release1.3.7 transaction-sync_metric_users.$all.requests.read_influxdb verboseType-InfluxDB\Exception
not sure why InfluxDB freezes everything
This seems like a bug, the worst part is that It happens randomly, so there are not any specific steps to follow
So now it's freezing again
Seems like it's happening more frequently than usual
Now seems like a faulty dart function freezes everything. I think that should not happen π€
Is this actually happened in the same time as the freezing?
Can you confirm that it doesn't happened before (or after) and that you don't have any instance of that same error in InfluxDB in other times?
As what I think this error could be is that your docker network is some how not available for the internal services, such as the usage worker
as the error is actually Query has failed: Request failed! curl_errno: 28
Also, it might be worth checking if you're getting that error when you're turnings usages off in the .env
file - which can be something that you don't want to do.
Last, can you check and share any other errors from all Appwrite containers so we can try to get the big picture π
The error showed when everything unfreezes
In other words, after unfreezing
When it's freezed, no error is being shown
In any of the containers?
So apparently, as Binyamin supposed, it's due to high memory usage
Update on this. It stills happen and randomly it freezes and other times not. Some times it fails to compile the function and other times not. I don't think it's related to memory
Even if I try to deploy 3 functions at the same time it never reaches 100% usage. Only at random times
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...