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

58 Topics 562 Posts
  • Directus - Package Updates

    Pinned
    132
    4 Votes
    132 Posts
    26k Views
    Package UpdatesP

    [2.4.0]

    Update directus to 11.4.0 Full Changelog
  • First time setup/Admin notes show incorrect + LDAP default role not functioning

    Solved
    10
    1 Votes
    10 Posts
    102 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
    39 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
    272 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
    32 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
    87 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 Votes
    3 Posts
    72 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
    164 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
    142 Views
    M

    thanks @nebulon & @girish, this does indeed fix everything, appreciate it 🙏

  • Latest update required

    Solved
    2
    0 Votes
    2 Posts
    72 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
    95 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
    445 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
    154 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
    271 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
    534 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).

  • Unable to Access Environment Variables in Vue.js App on Cloudron

    4
    1 Votes
    4 Posts
    385 Views
    nebulonN

    It is only created within the directus app instance. Different apps run isolated from one another on Cloudron. So if I understand you correctly, you are trying to build your own custom app next to directus? If so you need to set the source your own /app/data/env.sh with the export of the env var.

  • Unable to install extensions from the Directus Marketplace

    Solved
    5
    0 Votes
    5 Posts
    853 Views
    nebulonN

    This should be fixed now with latest package. Unfortunately I found that if a previous extension installation failed, the database would contain that info, making it impossible to install the same extension again. So you may have to manually delete records from the database to get over this 😕