Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content

Directus

59 Topics 569 Posts
  • Directus - Package Updates

    Pinned
    133
    4 Votes
    133 Posts
    30k Views
    Package UpdatesP
    [2.4.1] Update directus to 11.4.1 Full Changelog @​directus/app @​directus/app @​directus/api @​directus/sdk @​directus/themes Removed invalid operation trigger API from SDK and docs (#​24461 by @​licitdev) Patched blackbox tests for v11 (#​24281 by @​licitdev)
  • Directus extensions endpoints not working

    5
    1
    1 Votes
    5 Posts
    55 Views
    C
    @joseph i firstly created a new template extension folder then run "npm run build" locally and uploaded the package.json file and the folder "dist" in my manually created folder named "directus-extension-helloworld" and goes at my endpoint "https://directus.mydomain.com/helloworld" there it gives the expected response.
  • Custom API endpoint

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    C
    I too have done exactly like this but the response is still "{"errors":[{"message":"Route /helloworld doesn't exist.","extensions":{"path":"/helloworld","code":"ROUTE_NOT_FOUND"}}]}" any idea why
  • First time setup/Admin notes show incorrect + LDAP default role not functioning

    Solved
    10
    2
    1 Votes
    10 Posts
    128 Views
    nebulonN
    Also fixed up the docs at https://docs.cloudron.io/apps/directus/ then
  • Exporting data model via CLI (Unable due to read access only)

    2
    0 Votes
    2 Posts
    71 Views
    I
    I have been able to find a turnaround for exporting the schema using Node.js. =========== To export your schema from a Directus instance using Node.js Prerequisites Node.js Installed: Ensure Node.js is installed on your system. Directus Instance and Token: Obtain your source Directus project URL and access token. Steps to Export the Schema Setup Node.js Project: Create a new directory and initialize a Node.js project:mkdir directus-schema-export cd directus-schema-export npm init -y Install the required package:npm install cross-fetch Create the Script: Create a file, e.g., export-schema.js, and add the following code: const fetch = require('cross-fetch'); // Replace with your actual Directus project URL and access token const SOURCE_URL = 'https://your-directus-instance.com'; // Your Directus URL const SOURCE_TOKEN = 'your-access-token'; // Your Directus access token async function exportSchema() { try { const response = await fetch(`${SOURCE_URL}/schema/snapshot?access_token=${SOURCE_TOKEN}`); if (!response.ok) { throw new Error(`Failed to fetch schema: ${response.statusText}`); } const { data } = await response.json(); console.log('Schema exported successfully:', data); return data; } catch (error) { console.error('Error exporting schema:', error.message); } } // Call the function exportSchema(); Run the Script: Execute the script using Node.js:node export-schema.js The schema will be logged to the console. You can redirect it to a file:node export-schema.js > schema.json
  • Directus credentials no longer working

    Moved Solved
    15
    0 Votes
    15 Posts
    576 Views
    nebulonN
    oh glad it worked out in the end.
  • Unable to Login with Role after Update to v2.3.3+

    2
    1 Votes
    2 Posts
    36 Views
    nebulonN
    Not sure if this is what you mean, but roles from Cloudron itself are not transferred to the apps, as often roles within apps have different meaning than what they are on Cloudron.
  • How to horizontally scale directus using cloudron

    2
    1 Votes
    2 Posts
    113 Views
    nebulonN
    The Cloudron platform is not built to scale apps horizontally nor break out individual components. You can increase the resources on your server, basically scale vertically, but this may not suit your use-case. If this is the case then Cloudron is likely not the platform you were looking for. If you want, maybe you can share your use-case and requirements, why you want to pursue this and maybe we can help out.
  • Directus do not let me login "SERVICE UNAVAILABLE" error.

    Moved Solved
    3
    1
    1 Votes
    3 Posts
    90 Views
    P
    nice.. just acess trhough SSH and run the patch curl https://git.cloudron.io/platform/box/-/commit/16fa3390252e29f1803a18990c7b104817fa4d9f.diff | patch -d /home/yellowtent/box -p1 systemctl restart box now everything is working again.. thanks
  • SSO stopped working

    Solved
    6
    1 Votes
    6 Posts
    240 Views
    J
    https://forum.cloudron.io/topic/12817/oidc-login-broken-with-8-1-0-update/8 has info on how to apply the fix
  • OIDC login broken with 8.1.0 update

    Solved
    9
    1 Votes
    9 Posts
    170 Views
    M
    thanks @nebulon & @girish, this does indeed fix everything, appreciate it
  • Latest update required

    Solved
    2
    0 Votes
    2 Posts
    100 Views
    nebulonN
    The app package passed CI tests and is out by now.
  • Want to Connect to an existing MS-SQL

    2
    0 Votes
    2 Posts
    120 Views
    J
    Cloudron doesn't support having app's database outside of Cloudron. It will break much functionality like backup/restore/import etc. I think if you want the db outside of Cloudron, you have to host Directus outside Cloudron as well.
  • Update to Directus 11

    Solved
    8
    0 Votes
    8 Posts
    550 Views
    ruihildtR
    Ok this is solved. I tried to add the solved label, but I can't find it here. So thank you.
  • cannot install Directus CLI

    14
    0 Votes
    14 Posts
    1k Views
    J
    I've confirmed the latest version works without issue, following the steps I've outlined before. Essentially, Directus installed on Cloudron and hosting the frontend on another platform like Vercel (free plan). You need to install the Directus CLI on your local computer, edit the .env file with your Directus "Service Account" and you can deploy this solution. To be honest, based on it working, I would say another package with AgencyOS wouldn't be worthwhile once you get it deployed.
  • directus extension logs - how to view it in cloudron

    Moved
    2
    0 Votes
    2 Posts
    182 Views
    girishG
    @Jeyakumarrathnaselvi not sure but https://github.com/directus/directus/discussions/12855 suggested you have to use logger object .
  • Directus fail to create an user from Cloudron Open ID

    Moved Unsolved
    14
    1 Votes
    14 Posts
    1k Views
    girishG
    @nennogabriel said in Directus fail to create an user from Cloudron Open ID: the new version of Directus on cloudron dos not use LDAP and you cannot use OPENID but CLOUDRON as variable. what do you mean by this? Why can we not use OPENID?
  • Connect to Postgres via environment variables

    2
    0 Votes
    2 Posts
    302 Views
    E
    I could successfully connect to a test postgres database with these environment variables: DB_HOST=IP DB_PORT=Port DB_DATABASE="db_name" DB_USER="user_name" DB_PASSWORD="password" Then I ran npx directus bootstrap to initialise the database. When I run commands like npx directus count table_name it provides correct answers indicating that the database connection works. However, for some reason, the database doesn't show up in my GUI.
  • Setup CI/CD for my directus cloudron

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    O
    I was able to deploy with cloudron my nextjs frontend app fetching my directus backend via API here is the repository with STEP-BY-STEP guide: https://github.com/alexmazaltov/nextjs-app-for-directus-vai-cloudron
  • Issue with very high memory usage

    Unsolved
    5
    0 Votes
    5 Posts
    594 Views
    S
    @girish said in Issue with very high memory usage: so it's not related to cloudron end. not sure about this. When i create a Directus project on a VPS using docker (docker compose or via Portainer), with almost identical configuration as the Cloudron Directus project, i don't get this issue. Example: Container memory usage when uploading a 8GB file to Directus, barely goes up by some 200MB, whereas in Cloudron, the memory always gets consumed by the entire size of the file (8GB in this case).