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
A

aaaaargZombies

@aaaaargZombies
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • example apps in packaging tutorial not building / installing
    A aaaaargZombies

    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!

    App Packaging & Development

  • example apps in packaging tutorial not building / installing
    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 🤞

    App Packaging & Development
  • Login

  • Don't have an account? Register

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