You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 21, 2026. It is now read-only.
PUBLIC_CONSOLE_MODE: self-hosted (correctly set in env.js)
Browser: Chrome 144 (macOS)
Expected Behavior
On self-hosted installations, XL() and JL() should either:
Check isCloud before calling billing.listOrganization(), or
Be wrapped in a try/catch that silently handles the failure
Workaround
Added 'platform' to the ALLOWED_ATTRIBUTES array in Teams.php query validator, added platform column + index to the MariaDB _console_teams table, and added the attribute to the PHP collections config.
Suggested Fix
Add isCloud guard to both functions, matching the pattern already used in HL():
I tried to reproduce the above error and I haven't found the root cause. I am just going to share what I know so far in case it's useful to anyone working on this, or if anyone wants to suggest different ideas I could try.
When I opened the /console/account/organizations on my self-hosted appwrite instance I ran into the error mentioned above.
screen-capture.6.webm
But when I cloned the appwrite/console repo, I ran the site locally in dev mode I could not reproduce the bug.
screen-capture.7.webm
So I tried to look at the source code to see if I can find the bug. Here's how I traced the source code:
The /console/account/organizations page's source code is in the file src/lib/routes/(console)/account/organizations/+page.svelte.
Before rendering the page, Svelte automatically loads the pages data by calling the load function load function defined in (src/lib/routes/(console)/account/organizations/+page.ts).
This load function uses the getTeamOrOrganizationList() function to get teams or organisations to display in the page.
The getTeamOrOrganizationList() function is defined in src/lib/stores/organization.ts file. This functions checks if isCloud it true. If so, it gets organisations with the query parameter platform=appwrite. If not, it gets teams without the query parameter platform=appwrite.
The isCloud variable is defined in the src/lib/stores/system.ts file and is based on the PUBLIC_CONSOLE_MODE env variable. In my .env file, PUBLIC_CONSOLE_MODE is set to 'self-hosted'.
For the production Appwrite console, I exec'ed the Docker container it is running in and inspected the code. Since it has gone through the build process (bundling, chunking and minifying) it is difficult to make sense of but I found a file (/usr/share/nginx/html/console/_app/env.js), and this file contains the PUBLIC_CONSOLE_MODE environment variable set to 'self-hosted'.
And if you check the page's source in Chrome dev tools, the variable is present:
So it seems not be an issue with environment variables, nor a logical issue (because it works when I run the dev server). So I can't think of any other reason why this would not work, other than that the code in the Docker Image is outdated. But that image was last updated 2 days ago, and the last commit in the files I have mentioned are at least a few weeks old.
And the new Docker image does not produce the above error. So I think to solve the above error, we need to build a new Appwrite Console Image on Docker Hub.
Starting today this repo is archived. Please raise any issues with the new Appwrite console on the main platform repo: https://github.com/appwrite/appwrite
Activity
anesukafesu commentedon Feb 28, 2026
Hi,
I tried to reproduce the above error and I haven't found the root cause. I am just going to share what I know so far in case it's useful to anyone working on this, or if anyone wants to suggest different ideas I could try.
When I opened the /console/account/organizations on my self-hosted appwrite instance I ran into the error mentioned above.
screen-capture.6.webm
But when I cloned the appwrite/console repo, I ran the site locally in dev mode I could not reproduce the bug.
screen-capture.7.webm
So I tried to look at the source code to see if I can find the bug. Here's how I traced the source code:
And if you check the page's source in Chrome dev tools, the variable is present:
So it seems not be an issue with environment variables, nor a logical issue (because it works when I run the dev server). So I can't think of any other reason why this would not work, other than that the code in the Docker Image is outdated. But that image was last updated 2 days ago, and the last commit in the files I have mentioned are at least a few weeks old.
anesukafesu commentedon Feb 28, 2026
Update: I tried rebuilding the container with the command:
And the new Docker image does not produce the above error. So I think to solve the above error, we need to build a new Appwrite Console Image on Docker Hub.
Guard billing organization queries when not on Appwrite Cloud
eldadfux commentedon Sep 21, 2026
Starting today this repo is archived. Please raise any issues with the new Appwrite console on the main platform repo: https://github.com/appwrite/appwrite