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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. App Packaging & Development
  3. example apps in packaging tutorial not building / installing

example apps in packaging tutorial not building / installing

Scheduled Pinned Locked Moved App Packaging & Development
4 Posts 2 Posters 36 Views 2 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
    aaaaargZombies
    wrote last edited by
    #1

    Hi all, I'd like to package a small node app for personal use. I'm following the packaging tutorial but I can't get the example apps to install.

    Steps taken

    • install the cloudron CLI
    • logged onto my server
    • prove it's logged in by listing already installed apps
    • clone the example TS repo https://git.cloudron.io/docs/tutorial-typescript-app
    • hop into the repo directory
    • run cloudron install
    • get a HTTP error
    $ cloudron install     
    No build detected. This package will be built on the server.
    Location: tutorial
    Failed to install app: 400 message: "incorrect mime type. expecting application/json"
    

    Am I missing something or has some part of the process changed since the documentation was written?

    Any insights greatly appreciated!

    1 Reply Last reply
    2
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @aaaaargzombies and welcome to the Cloudron Forum

      I have to apologize.
      The tutorial repository is very much out of date.

      If you pull the repo again and checkout the branch fix/build it should work.
      When the fix/build branch was already merged https://git.cloudron.io/docs/tutorial-typescript-app/-/merge_requests/1 you can simply pull the master branch and it should work.

      1 Reply Last reply
      1
      • A Offline
        A Offline
        aaaaargZombies
        wrote last edited by
        #3

        Thanks for the speedy response. Sadly that didn't fix my issue, so assuming it should work I did some poking around to see what might be the cause of the rejected mime type. TLDR I'm on version 9.0.17 and should try upgrading.

        More detailed explanation if anyone finds this topic by searching in the future, it looks like json is being enforced here

        https://git.cloudron.io/platform/box/-/blob/v9.0.17/src/server.js?ref_type=tags#L268

        but the CLI sends a multipart form, so it can attach the tar bundled app here

        https://git.cloudron.io/platform/cloudron-cli/-/blob/master/src/actions.js?ref_type=heads#L699

        that's cleared up in the later version 9.1.0

        https://git.cloudron.io/platform/box/-/blob/v9.1.0/src/server.js?ref_type=tags#L275

        Hopefully that will resolve my issue 🤞

        jamesJ 1 Reply Last reply
        0
        • A aaaaargZombies

          Thanks for the speedy response. Sadly that didn't fix my issue, so assuming it should work I did some poking around to see what might be the cause of the rejected mime type. TLDR I'm on version 9.0.17 and should try upgrading.

          More detailed explanation if anyone finds this topic by searching in the future, it looks like json is being enforced here

          https://git.cloudron.io/platform/box/-/blob/v9.0.17/src/server.js?ref_type=tags#L268

          but the CLI sends a multipart form, so it can attach the tar bundled app here

          https://git.cloudron.io/platform/cloudron-cli/-/blob/master/src/actions.js?ref_type=heads#L699

          that's cleared up in the later version 9.1.0

          https://git.cloudron.io/platform/box/-/blob/v9.1.0/src/server.js?ref_type=tags#L275

          Hopefully that will resolve my issue 🤞

          jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #4

          Hello @aaaaargzombies

          @aaaaargZombies said:

          TLDR I'm on version 9.0.17 and should try upgrading.

          Yes, you should update to Cloudron 9.1.3 for cloudron install to work without the need to build and push the image before installing.

          1 Reply Last reply
          1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          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