Back

Restarted server, now getting 404 errors

  • 0
  • Self Hosted
ericswpark
17 Feb, 2024, 15:17

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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more