Hahah 👍
Function freezes everything
Votes
0
Replies
24
Participants
Unknown
Messages
25
Moderator
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.
Moderator
Yes, deploying again the same function without making modifications, and magically it works now
Moderator
So I can confirm, thanks for solving it with your magic wand 😆
😂
Moderator
[SOLVED] Function freezes everything
Moderator
Seelms this happened again with other different function
Moderator
Function freezes everything
Moderator
The error I get on sentry:
Query has failed: Request failed! curl_errno: 28
Moderator
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}
Moderator
Tags:
code-0
environment-production
level-error
logger-usage-release1.3.7
transaction-sync_metric_users.$all.requests.read_influxdb
verboseType-InfluxDB\Exception
Moderator
not sure why InfluxDB freezes everything
Moderator
This seems like a bug, the worst part is that It happens randomly, so there are not any specific steps to follow
Moderator
So now it's freezing again
Moderator
Seems like it's happening more frequently than usual
Moderator
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 👍
Moderator
The error showed when everything unfreezes
Moderator
In other words, after unfreezing
Moderator
When it's freezed, no error is being shown
In any of the containers?
Moderator
So apparently, as Binyamin supposed, it's due to high memory usage
Moderator
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
Moderator
Even if I try to deploy 3 functions at the same time it never reaches 100% usage. Only at random times