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


Directus

33 Topics 353 Posts
  • Directus - Package Updates

    Pinned
    4 Votes
    83 Posts
    1k Views

    [1.35.2]

    Update Directus to 10.6.3 Full changelog Fixed the format of the stored field conditions value (#19799) Introduced option to configure the display of repeater fields (#19703 by @Nitwel) Fixed replacing an asset when importing a file via URL (#19788 by @DanielBiegler) Removed padding in v-highlight to fix various display issues (#19740 by @paescuj) Enhanced display of status & role in user popup (#19790 by @paescuj) Fixed the format of the stored field conditions value (#19799 by @paescuj) Fixed rendering the user-popover for users without a role (#19774 by @0x2aff) Made search in data model page case-insensitive (#19751 by @paescuj) Made highlighted text more visible in dark mode (#19748 by @paescuj) Fixed loading JSON and YAML configuration files (#19745 by @jbmolle) Fixed updating filename and file-extension after replacing asset (#19771 by @0x2aff) Fixed replacing an asset when importing a file via URL (#19788 by @DanielBiegler) Fixed issue where user create/update wouldn't validate emails in the same way user authentication does (#19794 by @rijkvanzanten) Add error message for email validation failure (#19794 by @rijkvanzanten) Added an extra JSON Mime-Type check to the SDK response parsing (#19786 by @br41nslug) Fixed WebSocket subscription output typing in the SDK (#19791 by @br41nslug) Removed invalid type constraint on the SDK client request function (#19789 by @br41nslug) Removed default values for fetch credentials in the SDK (#19749 by @br41nslug) Added explicit usage of mode in login and refresh calls in the SDK (#19766 by @br41nslug) Enabled bundling of the package (#19714 by @paescuj)
  • Custom API endpoint

    Solved
    0 Votes
    14 Posts
    116 Views

    Thank you for helping me make it work.

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

  • How to balance with other apps?

    0 Votes
    4 Posts
    52 Views

    Those are only container upper limits, not what the apps will use.

    You can significantly increase the size of the swap file for more headroom, but things will slow down while swapping. You'll want more RAM as certain apps will use a lot more when you start heavier use.

    Cost wise, there are server providers that max RAM such as Contabo and SSDNodes at a decent price.

  • Is 350ms ping on directus normal?

    1 Votes
    2 Posts
    32 Views

    Directus is using postgres on Cloudron, see https://git.cloudron.io/cloudron/directus-app/-/blob/master/CloudronManifest.json#L15

    Regarding the ping, took me a bit to realize that you have to hover over that wifi signal strength icon. However on a fresh install here on a not so beefy server it shows values around 50ms. But more importantly I am not actually sure what this represents and what the usefulness of this is.

  • How to install npm packages in your app?

    Moved
    0 Votes
    5 Posts
    114 Views
  • 2 Votes
    4 Posts
    162 Views

    @pbischoff said in Scaling/vCPU core usage of Directus in Cloudron:

    But this is a problem for almost every node.js app of the cloudron App Store, isn't it? Do they all use only one vCPU core?

    Apps like NodeBB (this forum) support so called cluster mode - https://nodejs.org/api/cluster.html . Essentially, this creates worker threads to spread load across CPU. This is part of nodejs.

    But to keep in mind, nodejs by itself can handle quite a bit of parallelism with just one CPU. Most of the work done by the main process is just http request processing. This is usually I/O bound and not CPU bound. Nodejs being asynchronous can handle requests in parallel in just one process quite easily. We are talking about 1000s of requests a second.

    Many other nodejs apps like Cloudron code itself, peertube, offload the processing of static assets to a side installation of nginx. So, when downloading images/css files etc, it doesn't even hit nodejs. When node code has to do heavy work, it usually just puts it in a queue and the queue handler is a separate process (which can thus be restarted and killed easily). The queue handler will use another cpu core.

    For directus, I am not an expert on the app. But, you want to maybe use some worker thread or queue or something like that to make use of more CPUs.

  • Unable to connect to a DigitalOcean managed database

    Solved
    0 Votes
    10 Posts
    246 Views

    @girish said in Unable to connect to a DigitalOcean managed database:

    None of the feature like backup/restore will work

    So far, they've been working fine. Because, all that's required to be backed up in such cases is the app code. Of course, as the database is external, it is accepted that the backup system is external & independent to Cloudron.

    @girish said in Unable to connect to a DigitalOcean managed database:

    Not an expert on the apps and I don't know if it's the main purpose. But they work just fine with fresh databases as well where you use it like a nocode/locode app.

    Yes, pairing up with external databases is indeed, one of the primary features of these apps. And using a fresh database is just one of the features, and not always preferred.

    You might want to state clearly and prominently, particularly in the cases of such apps, that external connections are not allowed/recommended.

  • Can't set up a Directus instance at all

    Unsolved
    0 Votes
    15 Posts
    162 Views

    The latest package has a higher default memory limit and is more reliable now during initial setup. So please try to install a fresh instance.

  • Unable to update, automatically or manually

    Solved
    0 Votes
    5 Posts
    85 Views

    @devtron this should be out now. 1.24.1-2 is the correct package.

  • Directus not updating - manifest error

    Moved
  • Unable to set up s3 storage adapter

    Solved
    0 Votes
    3 Posts
    183 Views

    @girish Thanks!
    That was hasty on my part 😐

    Yeah, i've always used the .env setup with a docker-compose install of Directus.

  • 0 Votes
    12 Posts
    551 Views

    @girish Maybe you could add those steps to the help section?

  • Directus with LDAP or SSO auth

    2 Votes
    12 Posts
    923 Views

    @girish happy to report that this is working like a charm, thanks a lot!

  • Connect to existing database

    Solved
    0 Votes
    18 Posts
    1k Views

    I'm coming back to this because I'm still confused.

    I have a remotely hosted database. I want to build an admin on top of that. That database must continue to be remotely hosted.

    Can I build that admin using Directus on Cloudron?

    If so, any pointers would be appreciated.

    Thank you!

  • 2 Votes
    5 Posts
    191 Views

    @dev-cb I know you've already swapped, but wish I had seen this a few days ago.

    I run a slightly older version of Directus locally, but at least in it...

    (1) Repeaters can't reference collections. If you want to reference other collections, you have to create a relationship (like Many-to-Many). Which is not quite as convenient, but a bit more powerful.

    (2) As far as I know, nope. For this, you have to manipulate it in Gatsby. I do my manipulation in Elder.JS.

  • Directus Usage

    3 Votes
    7 Posts
    330 Views

    @michaelpope Awesome, thank you so much that gives me a good idea on how to approach it! I'm going to give that a shot and see how things turn out.

  • 0 Votes
    4 Posts
    139 Views

    @Jeyakumarrathnaselvi said in Search typing issue - page get refresh while typing:

    example if i type abcdefgh. it shows only abcdfg. e and h miss while page refresshing

    where do I have to test this to reproduce this bug?

  • 0 Votes
    4 Posts
    114 Views

    @Jeyakumarrathnaselvi Not sure what the issue is. Is there anything in the logs? If you can give me step by step instructions on how to reproduce this (for a person who doesn't know Directus much), I can try to check if this is a packaging bug.

  • Directus - request entity too large

    0 Votes
    3 Posts
    209 Views

    Yes, just bump it to a higher value and be sure to restart the app.

  • Directus new extension layout

    Moved
    0 Votes
    9 Posts
    553 Views

    @girish Thanks Girish. It worked. but there is a challenge with directus is they don't have an option to copy the existing layout of directus and make a small change and create it as a new extension. it doesn't help. we should develop from scratch as per them 😞