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. Garage packaging status, next steps

Garage packaging status, next steps

Scheduled Pinned Locked Moved App Packaging & Development
23 Posts 7 Posters 1.2k Views 8 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.
  • timconsidineT timconsidine

    @robi said in Garage packaging status, next steps:

    More options is better than less IMHO

    In that spirit, I made my own package, principally so I could learn about Garage :
    https://forum.cloudron.io/post/117911

    d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote last edited by
    #14

    @timconsidine hi Tim,

    I tried to use the community app but I get a 413 response code (which suggests the payload is too large). It happens at the very first backup attempt.

    Any suggestions? Is there anything I may have missed, or anything you had to do after deploying the app? Did you ever run into the 413?

    I’m using tarball and encryption in case that matters at all.

    --
    Dustin Dauncey
    www.d19.ca

    timconsidineT 1 Reply Last reply
    0
    • jadudmJ Offline
      jadudmJ Offline
      jadudm
      wrote last edited by jadudm
      #15

      There's a good chance this is an Nginx error; we've seen this before on other packages. There's a limit on the front-side as to how large a file can be passed through an Nginx proxy. For example:

      https://forum.cloudron.io/topic/14972/413-content-too-large-on-video-upload-inner-nginx-client_max_body_size-seems-too-low/2?_=1775394530576

      It might be a similar problem here. Fixable, but it will require an update on the package.

      I use Cloudron on a DXP2800 NAS w/ 8TB in ZFS RAID1

      d19dotcaD 1 Reply Last reply
      0
      • jadudmJ jadudm

        There's a good chance this is an Nginx error; we've seen this before on other packages. There's a limit on the front-side as to how large a file can be passed through an Nginx proxy. For example:

        https://forum.cloudron.io/topic/14972/413-content-too-large-on-video-upload-inner-nginx-client_max_body_size-seems-too-low/2?_=1775394530576

        It might be a similar problem here. Fixable, but it will require an update on the package.

        d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote last edited by d19dotca
        #16

        @jadudm Agreed. But isn’t that something configurable in the package? Looks like it isn’t a user-facing setting, but I assume this can be taken care of in the code part of the package? I’m not super familiar with packing apps just yet so correct me if I’m wrong.

        Probably worth setting the client max body size to 0 for unlimited since there will be all sorts of sizes to an app that’s used for backups. I’m just surprised nobody else has run into this issue, it happens immediately upon backup.

        --
        Dustin Dauncey
        www.d19.ca

        1 Reply Last reply
        0
        • d19dotcaD d19dotca

          @timconsidine hi Tim,

          I tried to use the community app but I get a 413 response code (which suggests the payload is too large). It happens at the very first backup attempt.

          Any suggestions? Is there anything I may have missed, or anything you had to do after deploying the app? Did you ever run into the 413?

          I’m using tarball and encryption in case that matters at all.

          timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote last edited by timconsidine
          #17

          @d19dotca errr...

          No I have not experienced that.
          Personally I use rsync not tarball.
          I will try a tarball backup later.

          If it's a backup issue, is it an app issue ?
          I don't understand this.

          EDIT : that's meant as unhelpful, just not sure where to start looking - will ask AI
          But did you see that an official version is close ?

          https://forum.cloudron.io/post/122927

          Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

          jadudmJ 1 Reply Last reply
          1
          • jdaviescoatesJ Online
            jdaviescoatesJ Online
            jdaviescoates
            wrote last edited by jdaviescoates
            #18

            I just saw that @girish is looking at this, so it sounds like there might be an official packing in the pipeline:

            @girish said:

            The garage app is packaged, just reviewing it and have to a get an initial package out.

            Edit: heh, and also just realised that @timconsidine just linked to that too! 😆

            I use Cloudron with Gandi & Hetzner

            girishG 1 Reply Last reply
            1
            • timconsidineT timconsidine

              @d19dotca errr...

              No I have not experienced that.
              Personally I use rsync not tarball.
              I will try a tarball backup later.

              If it's a backup issue, is it an app issue ?
              I don't understand this.

              EDIT : that's meant as unhelpful, just not sure where to start looking - will ask AI
              But did you see that an official version is close ?

              https://forum.cloudron.io/post/122927

              jadudmJ Offline
              jadudmJ Offline
              jadudm
              wrote last edited by jadudm
              #19

              @timconsidine Serving as your meat-based AI... 😄

              In theory, it would be an app issue. Because Nginx is serving as a proxy in front of Garage---it is handling the HTTPS and some domain routing to the app itself---the behavior of that HTTP server becomes "a thing." In this case, Nginx has a maximum client body size:

              https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size

              For many apps, this is never an issue; for apps that involve uploading files (Immich, Garage, etc.), clients routinely send large files. While I might think I'm connected to my Garage instance, what I'm actually connected to is Nginx, which is proxying my connection through to Garage in the backend. Therefore, the behavior of the proxy matters, and in this case, it has to do with the filesize limits of the proxy. When doing file uploads, we can easily exceed the per-request filesize limit on the proxy, and Nginx returns a 413 as a result.

              You wouldn't see it if you're using rsync backups and dealing with small files. However, a tarball backup can easily generate a request that comes in at gigabytes in size; as a result, Nginx says "no" and returns a 413.

              Hence, @d19dotca thinking that setting that value in the Nginx config to 0 would likely eliminate the error.

              All of that said, there's also the possible arrival of an officially maintained Garage package, which we might want to move to anyway. However, it is good to have options to experiment with!

              I use Cloudron on a DXP2800 NAS w/ 8TB in ZFS RAID1

              timconsidineT 1 Reply Last reply
              2
              • jadudmJ jadudm

                @timconsidine Serving as your meat-based AI... 😄

                In theory, it would be an app issue. Because Nginx is serving as a proxy in front of Garage---it is handling the HTTPS and some domain routing to the app itself---the behavior of that HTTP server becomes "a thing." In this case, Nginx has a maximum client body size:

                https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size

                For many apps, this is never an issue; for apps that involve uploading files (Immich, Garage, etc.), clients routinely send large files. While I might think I'm connected to my Garage instance, what I'm actually connected to is Nginx, which is proxying my connection through to Garage in the backend. Therefore, the behavior of the proxy matters, and in this case, it has to do with the filesize limits of the proxy. When doing file uploads, we can easily exceed the per-request filesize limit on the proxy, and Nginx returns a 413 as a result.

                You wouldn't see it if you're using rsync backups and dealing with small files. However, a tarball backup can easily generate a request that comes in at gigabytes in size; as a result, Nginx says "no" and returns a 413.

                Hence, @d19dotca thinking that setting that value in the Nginx config to 0 would likely eliminate the error.

                All of that said, there's also the possible arrival of an officially maintained Garage package, which we might want to move to anyway. However, it is good to have options to experiment with!

                timconsidineT Offline
                timconsidineT Offline
                timconsidine
                App Dev
                wrote last edited by
                #20

                @jadudm thanks for the clarification
                will certainly bear that in mind for future issues

                for this one on my Garage app, I'm not sure what to do. If an App Store version is coming, even unstable, that might be better for this wanting Garage.

                I will try find time to check out my Garage packaging code with this issue in mind.

                Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                1 Reply Last reply
                0
                • jadudmJ Offline
                  jadudmJ Offline
                  jadudm
                  wrote last edited by
                  #21

                  It might be in the location block that you would need to add it:

                  https://forgejo.tcjc.uk/cca/cloudron-garage-s3/src/commit/d8e09cf79461b108f369f2ec5a87f025a1967e64/nginx.conf#L65

                  Which would parallel the fix described here:

                  https://forum.cloudron.io/topic/14972/413-content-too-large-on-video-upload-inner-nginx-client_max_body_size-seems-too-low/2?_=1775394530576#:~:text=Example%3A-,location,-/api/ { client_max_body_size 200M

                  It might even be that @d19dotca can make that change to his own config for local testing. But, I agree, an officially packaged version will likely address this, and be integrated fully with backups, etc.

                  I use Cloudron on a DXP2800 NAS w/ 8TB in ZFS RAID1

                  1 Reply Last reply
                  1
                  • timconsidineT Offline
                    timconsidineT Offline
                    timconsidine
                    App Dev
                    wrote last edited by
                    #22

                    Still a little unsure about this.
                    If the Garage app is storing large volumes, say 5Gb, is backup by tarball appropriate, do we want to be facilitating that ?
                    That said, I guess it still needs fixing for smaller tarballs.

                    Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                    1 Reply Last reply
                    0
                    • jdaviescoatesJ jdaviescoates

                      I just saw that @girish is looking at this, so it sounds like there might be an official packing in the pipeline:

                      @girish said:

                      The garage app is packaged, just reviewing it and have to a get an initial package out.

                      Edit: heh, and also just realised that @timconsidine just linked to that too! 😆

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote last edited by girish
                      #23

                      @jdaviescoates apologies. I meant seaweedfs is packaged and not garage! (added a note in the original thread about this).

                      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