After restarting Appwrite on Docker Compose, I'm now getting 404 errors on the console. The logs have a repeat of this:
TypeScript
appwrite-usage | Failed: Query has failed: database not found: telegraf
appwrite-usage | #0 /usr/src/code/vendor/influxdb/influxdb-php/src/InfluxDB/Database.php(78): InfluxDB\Client->query('telegraf', 'SELECT sum(valu...', Array)
appwrite-usage | #1 /usr/src/code/src/Appwrite/Usage/Calculators/TimeSeries.php(499): InfluxDB\Database->query('SELECT sum(valu...')
appwrite-usage | #2 /usr/src/code/src/Appwrite/Usage/Calculators/TimeSeries.php(549): Appwrite\Usage\Calculators\TimeSeries->syncFromInfluxDB('project.$all.co...', Array, Array)
appwrite-usage | #3 /usr/src/code/src/Appwrite/Platform/Tasks/Usage.php(53): Appwrite\Usage\Calculators\TimeSeries->collect()
appwrite-usage | #4 /usr/src/code/vendor/utopia-php/cli/src/CLI/Console.php(219): Appwrite\Platform\Tasks\Usage->Appwrite\Platform\Tasks\{closure}()
appwrite-usage | #5 /usr/src/code/src/Appwrite/Platform/Tasks/Usage.php(58): Utopia\CLI\Console::loop(Object(Closure), 30)
appwrite-usage | #6 /usr/src/code/src/Appwrite/Platform/Tasks/Usage.php(30): Appwrite\Platform\Tasks\Usage->action(Object(Utopia\Database\Database), Object(InfluxDB\Database), Object(Utopia\Registry\Registry), Object(Closure), Object(Closure))
appwrite-usage | #7 /usr/src/code/vendor/utopia-php/cli/src/CLI/CLI.php(320): Appwrite\Platform\Tasks\Usage->Appwrite\Platform\Tasks\{closure}(Object(Utopia\Database\Database), Object(InfluxDB\Database), Object(Utopia\Registry\Registry), Object(Closure), Object(Closure))
appwrite-usage | #8 /usr/src/code/app/cli.php(211): Utopia\CLI\CLI->run()
appwrite-usage | #9 {main}
Where is it going wrong?
TL;DR
After restarting Appwrite on Docker Compose, developers are encountering 404 errors with a "database not found: telegraf" message in the logs. The issue seems to be originating in the TimeSeries calculations. To resolve this, developers should check the database configuration and ensure that the database 'telegraf' is properly set up and accessible.Recommended threads
- Function for long running task (other 60...
My function need long running other 60 seconds. But async mode return empty body. How to deal with that please ?
- OAuth2 Provider is disabled automaticall...
Hi everyone, I'm using self-host Appwrite 1.7.4. I can setup OAuth2 with Google successfully, however the provider is disabled automatically after one day witho...
- Disabling registration
Is it possible to disable registration in self hosted ?