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

52 Topics 520 Posts
  • Directus - Package Updates

    Pinned
    125
    4 Votes
    125 Posts
    20k Views
    Package UpdatesP

    [2.2.2]

    Update directus to 11.2.2 Full Changelog Fixed enforcing chunkSize when TUS is not enabled and updated the default TUS_CHUNK_SIZE to 8mb (#​24002 by @​ComfortablyCoding)
  • SSO stopped working

    5
    1 Votes
    5 Posts
    33 Views
    J

    @andreasdueren yes, this was a regression in 8.1. https://git.cloudron.io/platform/box/-/commit/16fa3390252e29f1803a18990c7b104817fa4d9f is the fix

  • OIDC login broken with 8.1.0 update

    Solved
    9
    1 Votes
    9 Posts
    56 Views
    M

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

  • Latest update required

    Solved
    2
    0 Votes
    2 Posts
    32 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
    42 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
    240 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
    936 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
    117 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
    219 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
    955 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
    410 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
    313 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
    657 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 😕

  • 0 Votes
    3 Posts
    335 Views
    girishG

    There are some further notes in https://docs.directus.io/getting-started/architecture.html#versioning . For them, "Minor — A new feature or meaningful improvement to an existing feature: may or may not be breaking."

    I think Cloudron packaging has to follow what upstream does, otherwise, every minor release now becomes a major in Cloudron. Maybe best to turn off automatic updates for Directus and analyze each Cloudron package update?

  • App status stuck on "Starting..."

    Unsolved
    7
    1 Votes
    7 Posts
    531 Views
    girishG

    @shrey said in App status stuck on "Starting...":

    ECONNREFUSED

    This is normal. When the app is still starting up, it's not responding to health check requests and refusing connection. As long as it becomes 'Running' eventually, all is good.

  • Installing Directus Extensions

    Solved
    13
    2 Votes
    13 Posts
    1k Views
    andreasduerenA

    Seems to work like a charm!

  • Access-Control-Allow-Origin

    Solved
    6
    2 Votes
    6 Posts
    1k Views
    J

    @samsls Thanks for following up with me on this!

    I used the Directus CLI with a Token for the admin account to import the data into a "default vanilla installation of Directus". Everything imported without any issues. Afterwards, I deployed the front end using Vercel from a private GitHub repo.

    Based on the reply from @girish, I put some additional configuration into the env.sh file and restarted Directus.

    export CORS_ENABLED="true" export CORS_ORIGIN="domain1.com,app-name.vercel.app" export CORS_METHODS="GET,POST,PATCH,DELETE,OPTIONS" export CORS_ALLOWED_HEADERS="Content-Type,Authorization" export CORS_EXPOSED_HEADERS="Content-Range" export CORS_CREDENTIALS="true" export CORS_MAX_AGE="18000"

    I've placed that into the env.sh as a wide-open test to at least see if I could get it working, but no luck.

    I know there are some other options, that you can force some of these settings into your Vercel deployment using the vercel.json file, but haven't gotten to that yet.

    There are some open issues that it seems they're looking into based on their GitHub.

    CORS issues for client portal in "PROD" like deployment Fetch the data from the server side instead of the client?
  • Directs freezing in one data model after upgrade

    Solved
    5
    1 Votes
    5 Posts
    356 Views
    andreasduerenA

    Yes seems to work thank you!

  • Custom API endpoint

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    ruihildtR

    Thank you for helping me make it work.

    Strange this .mjs thing with them, I'm going to open an issue with them.