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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Nextcloud Client - Timeout with Large Files

Nextcloud Client - Timeout with Large Files

Scheduled Pinned Locked Moved Solved Nextcloud
14 Posts 5 Posters 4.4k Views 6 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.
  • girishG girish

    @neurokrish I think request_terminate_timeout in a PHP-fpm configuration. We use modphp in cloudron, so that setting is not the fix.

    Do you see any error in the nextcloud logs when the upload fails ?

    neurokrishN Offline
    neurokrishN Offline
    neurokrish
    wrote on last edited by neurokrish
    #4

    @girish the file uploaded successfully. I noticed that each time it tried to upload the file, some of it was presumably cached somewhere. So, it did not restart from zero but at some % of the file (e.g., starts at 300 MB or 500 MB and so on for a 770 MB file). In the end as this happened, it had only a part of the file left to upload and perhaps could finish it within a certain time limit set somewhere.

    So, I guess, we need to increase the timeout period for the client but I have no idea how. Here is some more info. from their website, which may help you troubleshoot.

    EDIT: that link is probably for file upload through GUI. may be one can play with the chunk size for upload and change it to 20 MB from the default of 10 MB. This way, the upload will be faster and get around the timeout issue? Not sure..

    nebulonN 1 Reply Last reply
    0
    • neurokrishN neurokrish

      @girish the file uploaded successfully. I noticed that each time it tried to upload the file, some of it was presumably cached somewhere. So, it did not restart from zero but at some % of the file (e.g., starts at 300 MB or 500 MB and so on for a 770 MB file). In the end as this happened, it had only a part of the file left to upload and perhaps could finish it within a certain time limit set somewhere.

      So, I guess, we need to increase the timeout period for the client but I have no idea how. Here is some more info. from their website, which may help you troubleshoot.

      EDIT: that link is probably for file upload through GUI. may be one can play with the chunk size for upload and change it to 20 MB from the default of 10 MB. This way, the upload will be faster and get around the timeout issue? Not sure..

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

      @neurokrish do you see any errors reported by the app in the app logs at the point when the upload fails? Also check if the app gets restarted due to memory limits on Cloudron side.

      neurokrishN 3 Replies Last reply
      0
      • nebulonN nebulon

        @neurokrish do you see any errors reported by the app in the app logs at the point when the upload fails? Also check if the app gets restarted due to memory limits on Cloudron side.

        neurokrishN Offline
        neurokrishN Offline
        neurokrish
        wrote on last edited by neurokrish
        #6

        @nebulon nothing in the log file of the nextcloud Cloudron app. However, after looking around, I think it is the Windows client issue. I have the exact same error as mentioned here (looked into the Windows client logs) . They suggest a fix changing values in mod_reqtimeout in apache. Can you look into this and let me know if I can change anything to test?

        1 Reply Last reply
        0
        • nebulonN nebulon

          @neurokrish do you see any errors reported by the app in the app logs at the point when the upload fails? Also check if the app gets restarted due to memory limits on Cloudron side.

          neurokrishN Offline
          neurokrishN Offline
          neurokrish
          wrote on last edited by
          #7

          @nebulon, FYI the errors I see in the Windows client log files are, "RemoteHostClosedError Connection closed" QVariant(Invalid) QVariant(Invalid) , QNetworkReply::RemoteHostClosedError and "Connection closed" ..

          1 Reply Last reply
          0
          • nebulonN nebulon

            @neurokrish do you see any errors reported by the app in the app logs at the point when the upload fails? Also check if the app gets restarted due to memory limits on Cloudron side.

            neurokrishN Offline
            neurokrishN Offline
            neurokrish
            wrote on last edited by
            #8

            @nebulon from Nextcloud docs,

            a7d19e90-fef7-41ab-820e-d723c4e6d6c4-image.png

            girishG 1 Reply Last reply
            0
            • neurokrishN neurokrish

              @nebulon from Nextcloud docs,

              a7d19e90-fef7-41ab-820e-d723c4e6d6c4-image.png

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

              @neurokrish this module is not enabled on Cloudron's apache. So, I think it's probably some client side issue.

              neurokrishN 1 Reply Last reply
              0
              • girishG girish

                @neurokrish this module is not enabled on Cloudron's apache. So, I think it's probably some client side issue.

                neurokrishN Offline
                neurokrishN Offline
                neurokrish
                wrote on last edited by
                #10

                @girish thanks for letting me know. Ya, probably an issue on the client side then.

                1 Reply Last reply
                0
                • marcusquinnM Offline
                  marcusquinnM Offline
                  marcusquinn
                  wrote on last edited by
                  #11

                  I'm getting this issue now.

                  Have tried updating to the latest version of the client, and restarting that. Already check not to have folder size limits in the client app.

                  Adding this to php.ini, allocating 2GB Resources, and restarting the app:

                  memory_limit = 2056M
                  upload_max_filesize = 2G
                  post_max_size = 2G
                  max_execution_time = 3600
                  max_input_time = 3600
                  

                  500MB seems to be the hard file size limit that has the issue. Everything else syncing fine, which makes me think it's a setting somewhere blocking these.

                  Did you find a fix @neurokrish @girish

                  Web Design https://www.evergreen.je
                  Development https://brandlight.org
                  Life https://marcusquinn.com

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    contactlight11
                    wrote on last edited by contactlight11
                    #12

                    Has anyone found a fix for this? I am still encountering it for large files (an 800MB file will make it to ~650MB and then timeout the upload, seemingly independent of upload speed)

                    My php.ini:

                    upload_max_filesize=100G
                    post_max_size=100G
                    max_input_time=3600
                    max_execution_time=3600
                    memory_limit=3072M
                    

                    Edit: I found the fix. In my case, this was caused by Cloudflare proxy being enabled on the Nextcloud domain.

                    marcusquinnM 1 Reply Last reply
                    3
                    • C contactlight11

                      Has anyone found a fix for this? I am still encountering it for large files (an 800MB file will make it to ~650MB and then timeout the upload, seemingly independent of upload speed)

                      My php.ini:

                      upload_max_filesize=100G
                      post_max_size=100G
                      max_input_time=3600
                      max_execution_time=3600
                      memory_limit=3072M
                      

                      Edit: I found the fix. In my case, this was caused by Cloudflare proxy being enabled on the Nextcloud domain.

                      marcusquinnM Offline
                      marcusquinnM Offline
                      marcusquinn
                      wrote on last edited by
                      #13

                      @contactlight11 Ahhh, interesting! Might have been my issue, too. Will check later.

                      Web Design https://www.evergreen.je
                      Development https://brandlight.org
                      Life https://marcusquinn.com

                      marcusquinnM 1 Reply Last reply
                      1
                      • marcusquinnM marcusquinn

                        @contactlight11 Ahhh, interesting! Might have been my issue, too. Will check later.

                        marcusquinnM Offline
                        marcusquinnM Offline
                        marcusquinn
                        wrote on last edited by
                        #14

                        @marcusquinn Hmmm, I still have Cloudflare proxy enabled on that subdomain, but the problem mysteriously fixed itself.

                        Only other things I can think of were that I probably rebooted the entire server at some point, and my computer. Perhaps something needed a reboot 🤷‍♂️

                        Maybe see if the issue comes back with Cloudflare Proxy re-enabled @contactlight11 ?

                        Web Design https://www.evergreen.je
                        Development https://brandlight.org
                        Life https://marcusquinn.com

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