New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Bug Report: Database usage screen shows 500 error when _APP_USAGE_STATS
is disabled
#4960
Comments
Hey @stnguyen90, yeah I was following the official upgrade guide and did run the migration command after upgrading all the containers to 1.2 version. |
Hey, I did some checking around my appwrite instance and noticed this issue is not only linked to that database screens but every service that has the I've also tried to deploy a separate clean instance of appwrite and it has the same problem, so it doesn't seem to be related to just upgraded version. |
Any errors? What's in your
It really looks like there was a migration step missing so anything related to usage will error out.
Clean instance? so did you wipe the old volumes and install again or did you use a different server? |
Everything looked normal (I say looked, because I deleted everything and tried from scratch to install appwrite). During the upgrade process there were no errors and everything went smoothly.
Yeah I wiped everything (containers, volumes, networks, images) and did a brand new install of appwrite from scratch on that same server. The only thing I didn't do from scratch was the I can share the |
@gigili how did you wipe everything exactly? |
I've used Portainer and it's UI to delete the containers, than I removed all the leftover volumes and than the networks, than run the |
@gigili, sure, you can share the files with me and I can try to spin them up to see if I see the error. |
I've attached the files below, I had to strip out all the sensitive info from the |
@gigili, thanks! Would you please try updating |
_APP_USAGE_STATS
is disabled
Hi, after setting |
Nah, the Console should handle this gracefully and show no stats or something rather than throwing a 500 error |
Hi @stnguyen90 ,
We can check if |
@singhbhaskar, returning 501 sounds like a good idea. Please make sure to add a new error with a description like: appwrite/app/config/errors.php Line 53 in e8c74d7
Please, share what happens in the console after this change. |
Thanks @stnguyen90. Sure will do that. |
Hey @stnguyen90 , |
Hey @stnguyen90 , Thanks |
Looks like we have a regression in 1.4 |
馃憻 Reproduction steps
Databases
in the sidebarUsage
tab or try to go into a specific database and/or collection and clicking on the same tab馃憤 Expected behavior
To be able to see the database usage information
馃憥 Actual Behavior
I just upgraded from version 1.1.2 to 1.2.0 and when opening the database usage pages:
https://my-domain.com/console/project-[project-id]/databases/usage
https://my-domain.com/console/project-[project-id]/databases/database-[database-id]/usage
https://my-domain.com/console/project-[project-id]/databases/database-[database-id]/collection-[collection-id]/usage
They all show a 500 internal error page and looking at the
appwrite
container logs I can see this:Other pages such as
Collections
and/orSettings
open just fine.馃幉 Appwrite version
Version 1.2.x
馃捇 Operating system
Linux
馃П Your Environment
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: