
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
- Error 1.7.4 console team no found
In console when i go to auth, select user, select a membership the url not work. Only work searching the team. It is by the region. project-default- and i get ...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- functions of 1.4 not work on 1.7
Hi, i updated of 1.4 to 1.7 but the function not work i get it error. Do I need to build and deploy the functions again?
