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
- Bug: Cloud Function On Schedule Didn't R...
Heya I have a cloud function with this cron `0 17 * * *` to run at 9AM PT every day. I have not touched this since I set it up, and it has been working fine s...
- functions
Code for function not being created in Github. Permissions are set correctly, repository is created, however no code is in the created repository. Just trying...
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...