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. Pixelfed
  3. Cannot increase max upload size

Cannot increase max upload size

Scheduled Pinned Locked Moved Solved Pixelfed
15 Posts 3 Posters 2.2k 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.
  • jdaviescoatesJ jdaviescoates

    Oh, but uploading a 72MB video still isn't actually working 😭

    It gets to 100% and then just shows this 😞

    f739b8cc-58aa-496d-9b10-8b431756e5c8-image.png

    I see this in the logs:

    Sep 27 00:09:322023/09/26 23:09:32 [error] 76#76: *150 client intended to send too large body: 72204366 bytes, client: 172.18.0.1, server: _, request: "POST /api/compose/v0/media/upload HTTP/1.1", host: "bridport.pics", referrer: "https://bridport.pics/i/web/compose"

    How is it too large when I've set the max to higher than that? 🤔

    jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    wrote on last edited by
    #4

    @jdaviescoates said in Cannot increase max upload size:

    I see this in the logs:

    Sep 27 00:09:322023/09/26 23:09:32 [error] 76#76: *150 client intended to send too large body: 72204366 bytes, client: 172.18.0.1, server: _, request: "POST /api/compose/v0/media/upload HTTP/1.1", host: "bridport.pics", referrer: "https://bridport.pics/i/web/compose"

    How is it too large when I've set the max to higher than that? 🤔

    A quick search would seem to suggest this is an Nginx error so methinks perhaps @Staff need to adjust the Pixelfed app package to fix it? 🤷

    I use Cloudron with Gandi & Hetzner

    girishG 1 Reply Last reply
    0
    • jdaviescoatesJ jdaviescoates

      @jdaviescoates said in Cannot increase max upload size:

      I see this in the logs:

      Sep 27 00:09:322023/09/26 23:09:32 [error] 76#76: *150 client intended to send too large body: 72204366 bytes, client: 172.18.0.1, server: _, request: "POST /api/compose/v0/media/upload HTTP/1.1", host: "bridport.pics", referrer: "https://bridport.pics/i/web/compose"

      How is it too large when I've set the max to higher than that? 🤔

      A quick search would seem to suggest this is an Nginx error so methinks perhaps @Staff need to adjust the Pixelfed app package to fix it? 🤷

      girishG Do not disturb
      girishG Do not disturb
      girish
      Staff
      wrote on last edited by
      #5

      @jdaviescoates the nginx allows unlimited body sizes and uploads, it's up to the app to restrict however it wants.

      I am guessing this is an issue because of pixelfed's apache configuration. Let me check.

      1 Reply Last reply
      0
      • girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #6

        Turns out there is a nginx inside pixelfed, forgot about that. @jdaviescoates does it work with the latest package?

        jdaviescoatesJ 2 Replies Last reply
        1
        • girishG girish

          Turns out there is a nginx inside pixelfed, forgot about that. @jdaviescoates does it work with the latest package?

          jdaviescoatesJ Online
          jdaviescoatesJ Online
          jdaviescoates
          wrote on last edited by
          #7

          @girish said in Cannot increase max upload size:

          Turns out there is a nginx inside pixelfed, forgot about that. @jdaviescoates does it work with the latest package?

          I'll let you know as soon as my backup completes (somehow it seems to be taking longer than ever - and quite often seems to completely stall - since I moved everything to a dedicated server... looking forward to the various additional backup improvements/ options coming soon...)

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          0
          • girishG girish

            Turns out there is a nginx inside pixelfed, forgot about that. @jdaviescoates does it work with the latest package?

            jdaviescoatesJ Online
            jdaviescoatesJ Online
            jdaviescoates
            wrote on last edited by
            #8

            @girish said in Cannot increase max upload size:

            Turns out there is a nginx inside pixelfed, forgot about that. @jdaviescoates does it work with the latest package?

            Nope.

            But now getting a different error:

            Sep 27 09:18:062023/09/27 08:18:06 [error] 64#64: *104 FastCGI sent in stderr: "PHP message: PHP Warning: POST Content-Length of 72204366 bytes exceeds the limit of 67108864 bytes in Unknown on line 0" while reading response header from upstream, client: 172.18.0.1, server: _, request: "POST /api/compose/v0/media/upload HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "bridport.pics", referrer: "https://bridport.pics/i/web/compose"

            I use Cloudron with Gandi & Hetzner

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

              I was trying to reproduce this, but for some reason I can't find out how to enable video uploads or are you trying to upload a gif or so which is that large?

              jdaviescoatesJ 1 Reply Last reply
              1
              • nebulonN nebulon

                I was trying to reproduce this, but for some reason I can't find out how to enable video uploads or are you trying to upload a gif or so which is that large?

                jdaviescoatesJ Online
                jdaviescoatesJ Online
                jdaviescoates
                wrote on last edited by jdaviescoates
                #10

                @nebulon said in Cannot increase max upload size:

                I was trying to reproduce this, but for some reason I can't find out how to enable video uploads or are you trying to upload a gif or so which is that large?

                No a .mp4 video.

                Perhaps try these Media Types setting at the bottom of /i/admin/settings -> Media

                09053086-f040-4fc8-a3c9-9e8402e477c7-image.png

                I use Cloudron with Gandi & Hetzner

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

                  I can reproduce the same behavior now. Kind of obscure what all has to be done to just increase the app's upload limit itself. Now it seems some other value for php itself has to be set. Still hunting for that...

                  jdaviescoatesJ 2 Replies Last reply
                  1
                  • nebulonN nebulon

                    I can reproduce the same behavior now. Kind of obscure what all has to be done to just increase the app's upload limit itself. Now it seems some other value for php itself has to be set. Still hunting for that...

                    jdaviescoatesJ Online
                    jdaviescoatesJ Online
                    jdaviescoates
                    wrote on last edited by jdaviescoates
                    #12

                    @nebulon said in Cannot increase max upload size:

                    Still hunting for that...

                    Thanks! 🙏

                    But yeah 67108864 bytes in Unknown on line 0 doesn't seem to really give much of a clue does it!

                    Here's hoping you find it somewhere! 🤞

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    0
                    • nebulonN nebulon

                      I can reproduce the same behavior now. Kind of obscure what all has to be done to just increase the app's upload limit itself. Now it seems some other value for php itself has to be set. Still hunting for that...

                      jdaviescoatesJ Online
                      jdaviescoatesJ Online
                      jdaviescoates
                      wrote on last edited by
                      #13

                      @nebulon you've probably thought of this already, but possible clue here:

                      https://github.com/pixelfed/support/issues/56#issuecomment-542843670

                      I use Cloudron with Gandi & Hetzner

                      jdaviescoatesJ 1 Reply Last reply
                      0
                      • jdaviescoatesJ jdaviescoates

                        @nebulon you've probably thought of this already, but possible clue here:

                        https://github.com/pixelfed/support/issues/56#issuecomment-542843670

                        jdaviescoatesJ Online
                        jdaviescoatesJ Online
                        jdaviescoates
                        wrote on last edited by jdaviescoates
                        #14

                        @jdaviescoates said in Cannot increase max upload size:

                        @nebulon you've probably thought of this already, but possible clue here:

                        https://github.com/pixelfed/support/issues/56#issuecomment-542843670

                        Yep!

                        Increasing the Max Upload values in the app admin settings, and in env.production (not actually sure if you need to do both?), and then running the cache clearing commands as shown in the docs

                        And then adding this:

                        ; Maximum allowed size for uploaded files.
                        upload_max_filesize = 150M
                        
                        ; Must be greater than or equal to upload_max_filesize
                        post_max_size = 150M
                        

                        To php.ini using the File Manager

                        And then restarting the app.

                        Made it work! 🙌

                        https://bridport.pics/i/web/post/612580411517313025

                        I use Cloudron with Gandi & Hetzner

                        1 Reply Last reply
                        1
                        • jdaviescoatesJ jdaviescoates has marked this topic as solved on
                        • nebulonN Offline
                          nebulonN Offline
                          nebulon
                          Staff
                          wrote on last edited by
                          #15

                          Tried to document this, but found some inconsistencies within pixelfed on how to properly configure this. Trying to get some answers about this at https://github.com/pixelfed/pixelfed/issues/4678

                          1 Reply Last reply
                          1
                          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