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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Directus
  3. Can't set up a Directus instance at all

Can't set up a Directus instance at all

Scheduled Pinned Locked Moved Unsolved Directus
15 Posts 3 Posters 2.0k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      S Offline
      shrey
      wrote on last edited by
      #1

      Just installed a fresh Directus app (2nd one on this server) and then tried logging in with the provided First-Time info.

      But, getting an error:
      "Invalid Credentials"

      Haven't made any customisations, anywhere, yet.

      girishG 1 Reply Last reply
      0
      • S shrey

        Just installed a fresh Directus app (2nd one on this server) and then tried logging in with the provided First-Time info.

        But, getting an error:
        "Invalid Credentials"

        Haven't made any customisations, anywhere, yet.

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @shrey Is this with or without Cloudron user management ? Do you see any error in the logs?

        S 2 Replies Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          Just to double check, be sure to have 'Default' in the login dropdown. I checked with and without Cloudron user management and things seem to work.

          fac1a582-8919-4147-bac4-9ad762d07551-image.png

          S 1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            Another thing: can you go to Services -> Postgresql -> Increase memory limit. And then re-install directus? Maybe the migration is not completing because Postgresql is restarting or something.

            S 1 Reply Last reply
            0
            • girishG girish

              @shrey Is this with or without Cloudron user management ? Do you see any error in the logs?

              S Offline
              S Offline
              shrey
              wrote on last edited by
              #5

              @girish
              56b915b3-46ad-44ce-97d3-776c4f71a0ed-image.png

              When i visit the Directus admin page for the first time, i do notice this error in the console:

              POST https://my-domain/auth/refresh 400`
              
              {"errors":[{"message":"\"refresh_token\" is required in either the JSON payload or Cookie","extensions":{"code":"INVALID_PAYLOAD"}}]}
              
              1 Reply Last reply
              0
              • girishG girish

                Just to double check, be sure to have 'Default' in the login dropdown. I checked with and without Cloudron user management and things seem to work.

                fac1a582-8919-4147-bac4-9ad762d07551-image.png

                S Offline
                S Offline
                shrey
                wrote on last edited by
                #6

                @girish i don't have this option, Default/LDAP.

                557bd9ba-26cf-4284-9ef4-a83346a3eb67-image.png

                1 Reply Last reply
                0
                • girishG girish

                  Another thing: can you go to Services -> Postgresql -> Increase memory limit. And then re-install directus? Maybe the migration is not completing because Postgresql is restarting or something.

                  S Offline
                  S Offline
                  shrey
                  wrote on last edited by
                  #7

                  @girish
                  increased it from 2GB to 4GB

                  Still getting the same error when trying to login: Invalid Credentials

                  1 Reply Last reply
                  0
                  • girishG girish

                    @shrey Is this with or without Cloudron user management ? Do you see any error in the logs?

                    S Offline
                    S Offline
                    shrey
                    wrote on last edited by
                    #8

                    @girish this is the only error that i see in the server logs, right after installation:

                    Feb 21 16:39:28 ==> Enabling postgis extension
                    Feb 21 16:39:29 CREATE EXTENSION
                    Feb 21 16:39:29 ==> New install, initializing
                    Feb 21 16:39:32 Killed
                    Feb 21 16:39:32 npm notice
                    Feb 21 16:39:32 npm notice New major version of npm available! 8.19.2 -> 9.5.0
                    Feb 21 16:39:32 npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.5.0
                    Feb 21 16:39:32 npm notice Run npm install -g npm@9.5.0 to update!
                    Feb 21 16:39:32 npm notice
                    Feb 21 16:39:32
                    Feb 21 16:39:33 ==> Enabling postgis extension
                    Feb 21 16:39:33 NOTICE: extension "postgis" already exists, skipping
                    Feb 21 16:39:33 CREATE EXTENSION
                    Feb 21 16:39:33 ==> New install, initializing
                    Feb 21 16:39:36 [11:09:35.848] INFO: Initializing bootstrap...
                    Feb 21 16:39:36 [11:09:35.898] INFO: Database already initialized, skipping install
                    Feb 21 16:39:36 [11:09:35.898] INFO: Running migrations...
                    Feb 21 16:39:36 [11:09:35.906] INFO: Done
                    Feb 21 16:39:37 ==> DB Migration
                    Healtheck error: Error: connect ECONNREFUSED 172.18.18.24:80552023-02-21T11:09:40.000Z [11:09:40.218] INFO: Running migrations...
                    Feb 21 16:39:40 [11:09:40.241] INFO: Database up to date
                    Feb 21 16:39:41 ==> Starting Directus
                    Feb 21 16:39:45 [11:09:44.403] INFO: Server started at http://0.0.0.0:8055
                    Feb 21 16:39:51 [11:09:50] GET /server/ping 200 20ms
                    Feb 21 16:39:13 Starting supervisor
                    
                    girishG 1 Reply Last reply
                    0
                    • S shrey

                      @girish this is the only error that i see in the server logs, right after installation:

                      Feb 21 16:39:28 ==> Enabling postgis extension
                      Feb 21 16:39:29 CREATE EXTENSION
                      Feb 21 16:39:29 ==> New install, initializing
                      Feb 21 16:39:32 Killed
                      Feb 21 16:39:32 npm notice
                      Feb 21 16:39:32 npm notice New major version of npm available! 8.19.2 -> 9.5.0
                      Feb 21 16:39:32 npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.5.0
                      Feb 21 16:39:32 npm notice Run npm install -g npm@9.5.0 to update!
                      Feb 21 16:39:32 npm notice
                      Feb 21 16:39:32
                      Feb 21 16:39:33 ==> Enabling postgis extension
                      Feb 21 16:39:33 NOTICE: extension "postgis" already exists, skipping
                      Feb 21 16:39:33 CREATE EXTENSION
                      Feb 21 16:39:33 ==> New install, initializing
                      Feb 21 16:39:36 [11:09:35.848] INFO: Initializing bootstrap...
                      Feb 21 16:39:36 [11:09:35.898] INFO: Database already initialized, skipping install
                      Feb 21 16:39:36 [11:09:35.898] INFO: Running migrations...
                      Feb 21 16:39:36 [11:09:35.906] INFO: Done
                      Feb 21 16:39:37 ==> DB Migration
                      Healtheck error: Error: connect ECONNREFUSED 172.18.18.24:80552023-02-21T11:09:40.000Z [11:09:40.218] INFO: Running migrations...
                      Feb 21 16:39:40 [11:09:40.241] INFO: Database up to date
                      Feb 21 16:39:41 ==> Starting Directus
                      Feb 21 16:39:45 [11:09:44.403] INFO: Server started at http://0.0.0.0:8055
                      Feb 21 16:39:51 [11:09:50] GET /server/ping 200 20ms
                      Feb 21 16:39:13 Starting supervisor
                      
                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #9

                      @shrey said in Can't set up a Directus instance at all:

                      Feb 21 16:39:29 ==> New install, initializing
                      Feb 21 16:39:32 Killed

                      Right, it's running out of memory and thus the migration is not completing. I think you will see some oom message in dmesg output. Can you check how much memory the server has in free -m output?

                      S 2 Replies Last reply
                      0
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #10

                        I see directus has basically no specific memory limit set. Maybe we can bump this...

                        1 Reply Last reply
                        0
                        • girishG girish

                          @shrey said in Can't set up a Directus instance at all:

                          Feb 21 16:39:29 ==> New install, initializing
                          Feb 21 16:39:32 Killed

                          Right, it's running out of memory and thus the migration is not completing. I think you will see some oom message in dmesg output. Can you check how much memory the server has in free -m output?

                          S Offline
                          S Offline
                          shrey
                          wrote on last edited by
                          #11

                          @girish where do i run this command free -m ?

                          girishG 1 Reply Last reply
                          0
                          • S shrey

                            @girish where do i run this command free -m ?

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #12

                            @shrey sorry, you have to ssh into the server and check.

                            1 Reply Last reply
                            0
                            • girishG girish

                              @shrey said in Can't set up a Directus instance at all:

                              Feb 21 16:39:29 ==> New install, initializing
                              Feb 21 16:39:32 Killed

                              Right, it's running out of memory and thus the migration is not completing. I think you will see some oom message in dmesg output. Can you check how much memory the server has in free -m output?

                              S Offline
                              S Offline
                              shrey
                              wrote on last edited by
                              #13

                              @girish

                              28d60533-9c65-43ef-9ff5-985c77d1bc3f-image.png

                              1 Reply Last reply
                              0
                              • girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #14

                                I will link the other thread here - https://forum.cloudron.io/topic/8697/unable-to-connect-to-a-digitalocean-managed-database/9 . Cloudron is not designed to use an external database and you will hit all sorts of random issues. Sorry about that, maybe we should make this clear somewhere.

                                1 Reply Last reply
                                0
                                • nebulonN Offline
                                  nebulonN Offline
                                  nebulon
                                  Staff
                                  wrote on last edited by
                                  #15

                                  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.

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Bookmarks
                                    • Search