
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
- Having errors migrating to cloud
Project will not migrate compeltely
- ENV vars not updating
When i do `nano .env` it shows `_APP_DOMAIN_TARGET=` as set to my domain, but when i do `docker compose exec appwrite vars` it shows `_APP_DOMAIN_TARGET=` as ...
- Index with the requested key already exi...
I'm using appwrite cli to create DB and I'm getting index_already_exists Is there a way to undestand the index name and maybe to skip if it's already exits?
