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. Support
  3. Failed to install app: 402 message: Missing token

Failed to install app: 402 message: Missing token

Scheduled Pinned Locked Moved Solved Support
apicli
23 Posts 3 Posters 2.8k 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.
    • A Offline
      A Offline
      abbe
      wrote on last edited by girish
      #1

      Hello everyone, i am facing a weired problem (which i did not faced before), that when i try installing my custom app on my cloudron i get the following error message <Failed to install app: 402 message: Missing token> though i am successfully logged into my domain plus its opened in my browser. The .cloudron.json file presists and it contains a token. Is this token the required one? or am i missing something ? I tried to reinstall teh CLI, but with no luck.

      Thanks in advance.

      murgeroM 1 Reply Last reply
      0
      • A abbe

        @girish as mentioned before, a simple list command works, but not the install!

        when i try to issue the command <cloudron login domain.com> i get an error saying "Failed to login: self signed certificate"

        but giving <cloudron login my.domain.com> returns a positive output "Existing token still valid. Login successful."

        issuing the command inspect gives a JSON load, with the following values:
        {
        "apiEndpoint": "my.domain.com",
        "appStoreOrigin": "https://api.cloudron.io",
        "apps": []
        }

        should i navigate to my.domain.com/#/domains to renew teh certs i haev ? or will this be a bad move to take ?

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

        @abbe whoops, sorry, that was a mistake in my login command (corrected now).

        Actually, I just realized now that your cloudron is probably all fresh. Has it even logged into the app store? Go to the dashboard and click on App Store. Is it logged in there? Without logging into app store, you cannot install apps. This is needed to get the application manifests.

        A 1 Reply Last reply
        2
        • A abbe

          Hello everyone, i am facing a weired problem (which i did not faced before), that when i try installing my custom app on my cloudron i get the following error message <Failed to install app: 402 message: Missing token> though i am successfully logged into my domain plus its opened in my browser. The .cloudron.json file presists and it contains a token. Is this token the required one? or am i missing something ? I tried to reinstall teh CLI, but with no luck.

          Thanks in advance.

          murgeroM Offline
          murgeroM Offline
          murgero
          App Dev
          wrote on last edited by
          #2

          @abbe Can you post the cloudronmanifest?

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~

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

            Does a simple cloudron list work?

            A 1 Reply Last reply
            0
            • girishG girish marked this topic as a question on
            • murgeroM murgero

              @abbe Can you post the cloudronmanifest?

              A Offline
              A Offline
              abbe
              wrote on last edited by
              #4

              @murgero here is a screenshot of my json file4e2b21ac-8373-4d38-b6f3-6e126bd5af4d-image.png

              murgeroM 1 Reply Last reply
              0
              • girishG girish

                Does a simple cloudron list work?

                A Offline
                A Offline
                abbe
                wrote on last edited by
                #5

                @girish yes, a simple list command works!

                1 Reply Last reply
                0
                • A abbe

                  @murgero here is a screenshot of my json file4e2b21ac-8373-4d38-b6f3-6e126bd5af4d-image.png

                  murgeroM Offline
                  murgeroM Offline
                  murgero
                  App Dev
                  wrote on last edited by
                  #6

                  @abbe I may be wrong, but aren't you missing some options in there?

                  id is defintiely required, no?

                  This is my usual template for cloudronmanifest.json:

                  {
                    "id": "package.name.something",
                    "title": "AppName",
                    "author": "AppAuther",
                    "description": "file://DESCRIPTION.md",
                    "tagline": "Some tagline",
                    "version": "0.0.1",
                    "healthCheckPath": "/",
                    "httpPort": 8888,
                    "addons": {
                      "localstorage": {}
                    },
                    "manifestVersion": 2,
                    "memoryLimit": 536870912,
                    "website": "https://example.com",
                    "contactEmail": "support@clourdon.io",
                    "tags": [ "automation" ],
                    "changelog": "file://CHANGELOG.md",
                    "documentationUrl": "https://docs.cloudron.io/apps/someapp/",
                    "icon": "file://logo.png"
                  }
                  
                  

                  --
                  https://urgero.org
                  ~ Professional Nerd. Freelance Programmer. ~

                  A 1 Reply Last reply
                  0
                  • murgeroM murgero

                    @abbe I may be wrong, but aren't you missing some options in there?

                    id is defintiely required, no?

                    This is my usual template for cloudronmanifest.json:

                    {
                      "id": "package.name.something",
                      "title": "AppName",
                      "author": "AppAuther",
                      "description": "file://DESCRIPTION.md",
                      "tagline": "Some tagline",
                      "version": "0.0.1",
                      "healthCheckPath": "/",
                      "httpPort": 8888,
                      "addons": {
                        "localstorage": {}
                      },
                      "manifestVersion": 2,
                      "memoryLimit": 536870912,
                      "website": "https://example.com",
                      "contactEmail": "support@clourdon.io",
                      "tags": [ "automation" ],
                      "changelog": "file://CHANGELOG.md",
                      "documentationUrl": "https://docs.cloudron.io/apps/someapp/",
                      "icon": "file://logo.png"
                    }
                    
                    
                    A Offline
                    A Offline
                    abbe
                    wrote on last edited by
                    #7

                    @murgero the issue is still showing up although i added the ID Field.
                    i don't know about it, but i think it is not required ? i have checked teh docu to see which fields are required, and all of the required fields are found in my file.... but i am sure i am missing something (this why i tried to reinstall the CLI)

                    murgeroM 1 Reply Last reply
                    0
                    • A abbe

                      @murgero the issue is still showing up although i added the ID Field.
                      i don't know about it, but i think it is not required ? i have checked teh docu to see which fields are required, and all of the required fields are found in my file.... but i am sure i am missing something (this why i tried to reinstall the CLI)

                      murgeroM Offline
                      murgeroM Offline
                      murgero
                      App Dev
                      wrote on last edited by murgero
                      #8

                      @abbe Well Failed to install app: 402 message: Missing token 402 is an error returned by the server, that error specifically is a client side error. In HTTP, 402 means payment required but IDK how that applies here if your license is good.

                      Edit: Are you on the free cloudron? Even with CLI, it'll only allow 2 apps.

                      --
                      https://urgero.org
                      ~ Professional Nerd. Freelance Programmer. ~

                      A 1 Reply Last reply
                      0
                      • murgeroM murgero

                        @abbe Well Failed to install app: 402 message: Missing token 402 is an error returned by the server, that error specifically is a client side error. In HTTP, 402 means payment required but IDK how that applies here if your license is good.

                        Edit: Are you on the free cloudron? Even with CLI, it'll only allow 2 apps.

                        A Offline
                        A Offline
                        abbe
                        wrote on last edited by
                        #9

                        @murgero i have seen before in the forum that someone already faced the same issue, but the topic did not last any further, but i have also seen that deleting the .cloudron.json might solve the issue, but it does not. (it is also a second reason why i reinstalled the cli)

                        yes i am on the free plan, but i have no apps installed yet on it.

                        murgeroM 1 Reply Last reply
                        0
                        • A abbe

                          @murgero i have seen before in the forum that someone already faced the same issue, but the topic did not last any further, but i have also seen that deleting the .cloudron.json might solve the issue, but it does not. (it is also a second reason why i reinstalled the cli)

                          yes i am on the free plan, but i have no apps installed yet on it.

                          murgeroM Offline
                          murgeroM Offline
                          murgero
                          App Dev
                          wrote on last edited by
                          #10

                          @abbe You're sure no apps are installed? What comes up when you do cloudron list?

                          --
                          https://urgero.org
                          ~ Professional Nerd. Freelance Programmer. ~

                          A 1 Reply Last reply
                          0
                          • murgeroM murgero

                            @abbe You're sure no apps are installed? What comes up when you do cloudron list?

                            A Offline
                            A Offline
                            abbe
                            wrote on last edited by abbe
                            #11

                            @murgero yes i am, <6dd58452-414f-446e-8b39-57ace5a0c6ce-image.png >

                            Edit: also the dashboard is empty ! so, yes there are no apps installed yet

                            murgeroM 1 Reply Last reply
                            0
                            • A abbe

                              @murgero yes i am, <6dd58452-414f-446e-8b39-57ace5a0c6ce-image.png >

                              Edit: also the dashboard is empty ! so, yes there are no apps installed yet

                              murgeroM Offline
                              murgeroM Offline
                              murgero
                              App Dev
                              wrote on last edited by
                              #12

                              @abbe That's weird, I assume you've done the usual bit of rebooting the server and such?

                              --
                              https://urgero.org
                              ~ Professional Nerd. Freelance Programmer. ~

                              A 1 Reply Last reply
                              0
                              • murgeroM murgero

                                @abbe That's weird, I assume you've done the usual bit of rebooting the server and such?

                                A Offline
                                A Offline
                                abbe
                                wrote on last edited by
                                #13

                                @murgero yes i did 😬

                                murgeroM 1 Reply Last reply
                                0
                                • A abbe

                                  @murgero yes i did 😬

                                  murgeroM Offline
                                  murgeroM Offline
                                  murgero
                                  App Dev
                                  wrote on last edited by
                                  #14

                                  @abbe In your profile on your cloudron, under the API section, does the current token show "read-only"?

                                  --
                                  https://urgero.org
                                  ~ Professional Nerd. Freelance Programmer. ~

                                  A 1 Reply Last reply
                                  0
                                  • murgeroM murgero

                                    @abbe In your profile on your cloudron, under the API section, does the current token show "read-only"?

                                    A Offline
                                    A Offline
                                    abbe
                                    wrote on last edited by
                                    #15

                                    @murgero it says no API Token created ?

                                    murgeroM 1 Reply Last reply
                                    0
                                    • A abbe

                                      @murgero it says no API Token created ?

                                      murgeroM Offline
                                      murgeroM Offline
                                      murgero
                                      App Dev
                                      wrote on last edited by
                                      #16

                                      @abbe I figured the cli tool would make a token - I am probably wrong on that. Sorry.

                                      --
                                      https://urgero.org
                                      ~ Professional Nerd. Freelance Programmer. ~

                                      A 1 Reply Last reply
                                      0
                                      • murgeroM murgero

                                        @abbe I figured the cli tool would make a token - I am probably wrong on that. Sorry.

                                        A Offline
                                        A Offline
                                        abbe
                                        wrote on last edited by abbe
                                        #17

                                        @murgero i was on the same boat, i was just playing around with the tokens. no problem 🙂

                                        Edit: i even logged out and deleted all tokens i had and re-created one for the CLI, changed the null value of the json file and logged in again, but still no answer...

                                        girishG 1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          abbe
                                          wrote on last edited by
                                          #18

                                          Can i link my Domain with several accounts and servers ? So i might get rid of this issue ... or the Domain is only linked to ONE Cloudron Server ?

                                          1 Reply Last reply
                                          0
                                          • A abbe

                                            @murgero i was on the same boat, i was just playing around with the tokens. no problem 🙂

                                            Edit: i even logged out and deleted all tokens i had and re-created one for the CLI, changed the null value of the json file and logged in again, but still no answer...

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

                                            @abbe said in Failed to install app: 402 message: Missing token:

                                            Edit: i even logged out and deleted all tokens i had and re-created one for the CLI, changed the null value of the json file and logged in again, but still no answer...

                                            Did you try my earlier suggestion ?

                                            • cloudron login my.domain.com
                                            • cloudron inspect

                                            Does the above work?

                                            A 1 Reply Last reply
                                            0
                                            • girishG girish

                                              @abbe said in Failed to install app: 402 message: Missing token:

                                              Edit: i even logged out and deleted all tokens i had and re-created one for the CLI, changed the null value of the json file and logged in again, but still no answer...

                                              Did you try my earlier suggestion ?

                                              • cloudron login my.domain.com
                                              • cloudron inspect

                                              Does the above work?

                                              A Offline
                                              A Offline
                                              abbe
                                              wrote on last edited by
                                              #20

                                              @girish as mentioned before, a simple list command works, but not the install!

                                              when i try to issue the command <cloudron login domain.com> i get an error saying "Failed to login: self signed certificate"

                                              but giving <cloudron login my.domain.com> returns a positive output "Existing token still valid. Login successful."

                                              issuing the command inspect gives a JSON load, with the following values:
                                              {
                                              "apiEndpoint": "my.domain.com",
                                              "appStoreOrigin": "https://api.cloudron.io",
                                              "apps": []
                                              }

                                              should i navigate to my.domain.com/#/domains to renew teh certs i haev ? or will this be a bad move to take ?

                                              murgeroM girishG 2 Replies 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