
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
- Problems with adding my custom domain
- Can't push functions when self-hosting o...
Hello, I'm a bit new to appwrite functions and recently hosted a fresh 1.7.4 on my portainer setup. Tried to create a new function and when trying to push it I ...
- Self-hosted Appwrite keeps slowing down ...
For some reason my self-hosted instance of Appwrite periodically slows down so much and becomes unresponsive (console, APIs, everything). I keep restarting the ...
