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

62 Topics 606 Posts
  • Directus - Package Updates

    Pinned
    143
    4 Votes
    143 Posts
    56k Views
    Package UpdatesP
    [2.9.2] Update directus to 11.9.2 Full Changelog Fixed a bug that caused an error when making unchanged edits to an O2M field (#25387 by @formfcw) Fixed requireSelection check for manual trigger flows (#25386 by @JoshTheDerf)
  • 2 Votes
    14 Posts
    195 Views
    D
    @jdaviescoates correct
  • App status stuck on "Starting..."

    Solved
    8
    2
    1 Votes
    8 Posts
    1k Views
    jamesJ
    Closed due to inactivity
  • Can't set up a Directus instance at all

    Solved
    16
    0 Votes
    16 Posts
    2k Views
    jamesJ
    Closed due to inactivity
  • Issue with very high memory usage

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    S
    Hi @james . Haven't encountered the issue in a while now, also because that particular Directus app is not in use anymore.
  • Access-Control-Allow-Origin

    Solved
    9
    2 Votes
    9 Posts
    2k Views
    dev-cbD
    I was digging deeper and found this article in the docs giving closure! So the correct env vars are: export CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_SRC="array:'self',http://localhost:3000" export CONTENT_SECURITY_POLICY_DIRECTIVES__CONNECT_SRC="array:'self',http://localhost:3000,ws://localhost:3000" export CONTENT_SECURITY_POLICY_DIRECTIVES__SCRIPT_SRC="array:'self','unsafe-inline'" export CONTENT_SECURITY_POLICY_DIRECTIVES__STYLE_SRC="array:'self','unsafe-inline'" Or specifically adjusted to your use case.
  • EROFS: read-only file system, mkdir '/home/cloudron/.pm2'

    2
    2 Votes
    2 Posts
    123 Views
    J
    thanks for reporting, made an internal task
  • Directus not updating to latest version

    4
    1 Votes
    4 Posts
    377 Views
    J
    @markjames said in Directus not updating to latest version: When I hit update it says 8.0.3 is pre release, use at my own risk. Yes, please update. 8.0.3 is quite old by now, the latest is in fact 8.3.0 (which is being rolled out).
  • Directus extensions endpoints not working

    5
    1
    1 Votes
    5 Posts
    507 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
    3k 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
    672 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
    241 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
    2k 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
    107 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
    275 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
    204 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
    666 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 directus oidc client
    9
    1 Votes
    9 Posts
    488 Views
    M
    thanks @nebulon & @girish, this does indeed fix everything, appreciate it
  • Latest update required

    Solved
    2
    0 Votes
    2 Posts
    267 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
    257 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.