Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Video upload failing with unknown error

    PeerTube
    3
    9
    465
    Loading More Posts
    • 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.
    • ianhyzy
      ianhyzy last edited by

      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

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @ianhyzy last edited by 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.

        ianhyzy 1 Reply Last reply Reply Quote 0
        • ianhyzy
          ianhyzy @girish last edited by

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

          ianhyzy 1 Reply Last reply Reply Quote 0
          • ianhyzy
            ianhyzy @ianhyzy last edited by

            @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.

            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @ianhyzy last edited by

              @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?

              nebulon 1 Reply Last reply Reply Quote 2
              • nebulon
                nebulon Staff @girish last edited by

                @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 Reply Quote 0
                • ianhyzy
                  ianhyzy last edited by

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

                  nebulon 1 Reply Last reply Reply Quote 0
                  • nebulon
                    nebulon Staff @ianhyzy last edited by

                    @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?

                    ianhyzy 1 Reply Last reply Reply Quote 0
                    • ianhyzy
                      ianhyzy @nebulon last edited by

                      @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 Reply Quote 1
                      • First post
                        Last post
                      Powered by NodeBB