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. PeerTube
  3. Video upload failing with unknown error

Video upload failing with unknown error

Scheduled Pinned Locked Moved Solved PeerTube
9 Posts 3 Posters 1.9k Views 4 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.
    • ianhyzyI Offline
      ianhyzyI Offline
      ianhyzy
      wrote on last edited by
      #1

      I'm trying to upload a 2.5GB video to PeerTube. When I do, it upload to about 25% and then fails with "Unknown error". There's some old GitHub posts that say it's an nginx config change that can help but it's not clear: https://github.com/Chocobozzz/PeerTube/issues/1359

      girishG 1 Reply Last reply
      0
      • ianhyzyI ianhyzy

        I'm trying to upload a 2.5GB video to PeerTube. When I do, it upload to about 25% and then fails with "Unknown error". There's some old GitHub posts that say it's an nginx config change that can help but it's not clear: https://github.com/Chocobozzz/PeerTube/issues/1359

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

        @ianhyzy Cloudron's nginx does not have a upload limit (client_max_body_size is 0 i.e unlimited). So, this is either coming from the app or maybe it's just taking a long time to upload 2.5GB. Are you able to upload smaller videos say 500MB and then 1GB and so on? Might be a good idea to time the uploads as well as I suspect it is probably hitting some peertube frontend timeout.

        ianhyzyI 1 Reply Last reply
        0
        • girishG girish

          @ianhyzy Cloudron's nginx does not have a upload limit (client_max_body_size is 0 i.e unlimited). So, this is either coming from the app or maybe it's just taking a long time to upload 2.5GB. Are you able to upload smaller videos say 500MB and then 1GB and so on? Might be a good idea to time the uploads as well as I suspect it is probably hitting some peertube frontend timeout.

          ianhyzyI Offline
          ianhyzyI Offline
          ianhyzy
          wrote on last edited by
          #3

          @girish I uplaoded a small 3MB video as a test with no issues

          ianhyzyI 1 Reply Last reply
          0
          • ianhyzyI ianhyzy

            @girish I uplaoded a small 3MB video as a test with no issues

            ianhyzyI Offline
            ianhyzyI Offline
            ianhyzy
            wrote on last edited by
            #4

            @ianhyzy 742b83bf-a1c3-424e-a60e-48bc4ae090ff-image.png this is what shows up in the dev console. It was roughly 60 seconds so it may be a timeout thing.

            girishG 1 Reply Last reply
            0
            • ianhyzyI ianhyzy

              @ianhyzy 742b83bf-a1c3-424e-a60e-48bc4ae090ff-image.png this is what shows up in the dev console. It was roughly 60 seconds so it may be a timeout thing.

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

              @ianhyzy I tried to upload a big video file here ~600MB (big buck bunny) and this takes forever. What I recommend is to maybe upload it to some file server and then import via URL - https://docs.joinpeertube.org/use-create-upload-video . If you don't have a file server, you can install surfer and scp the file into it's data directory and then surfer will give you a public link that you can put inside peertube. Somehow, I don't think browsers are meant to upload such large files reliably.

              @nebulon how did you manage to import the large videos in our peertube instance?

              nebulonN 1 Reply Last reply
              2
              • girishG girish

                @ianhyzy I tried to upload a big video file here ~600MB (big buck bunny) and this takes forever. What I recommend is to maybe upload it to some file server and then import via URL - https://docs.joinpeertube.org/use-create-upload-video . If you don't have a file server, you can install surfer and scp the file into it's data directory and then surfer will give you a public link that you can put inside peertube. Somehow, I don't think browsers are meant to upload such large files reliably.

                @nebulon how did you manage to import the large videos in our peertube instance?

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #6

                @girish actually I just uploaded via the browser. Depending on upstream bandwidth it takes a bit, but I just left it in the background. None of those videos were over 1Gb though.

                1 Reply Last reply
                0
                • ianhyzyI Offline
                  ianhyzyI Offline
                  ianhyzy
                  wrote on last edited by
                  #7

                  I found the solution to this: give peertube more RAM (and possibly, pre-transcode video to MP4 so the server doesn't have to)

                  nebulonN 1 Reply Last reply
                  0
                  • ianhyzyI ianhyzy

                    I found the solution to this: give peertube more RAM (and possibly, pre-transcode video to MP4 so the server doesn't have to)

                    nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #8

                    @ianhyzy did it generally fail without the app being restarted due to running out of memory? If so this makes it harder to detect that, or what was the clue in your case?

                    ianhyzyI 1 Reply Last reply
                    0
                    • nebulonN nebulon

                      @ianhyzy did it generally fail without the app being restarted due to running out of memory? If so this makes it harder to detect that, or what was the clue in your case?

                      ianhyzyI Offline
                      ianhyzyI Offline
                      ianhyzy
                      wrote on last edited by
                      #9

                      @nebulon Peertube only gave me the OOM error very recently, it wasn't doing it before. After bumping up both the CPU and RAM it will still error on large videos it has to transcode, but I can pre-transcode them to h264/aac and it will upload fine (I just have to find a way to rip the subtitles too)

                      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