Update documentation.
authorJos Poortvliet <jospoortvliet@gmail.com>
Thu, 14 Apr 2022 13:35:15 +0000 (15:35 +0200)
committerCamila <hello@camila.codes>
Wed, 22 Jun 2022 14:10:19 +0000 (16:10 +0200)
- Fix table that was missing
- Updates targetChunkUploadDuration and maxChunkSize.
- Adds section about Cloudflare.

Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
doc/conffile.rst
doc/troubleshooting.rst

index 86b8f729a6d60e757061dbd491e0466dab345feb..278aae5b93b64c507dcb8c7ca0f3855f42a12526 100644 (file)
@@ -33,35 +33,35 @@ Some interesting values that can be set on the configuration file are:
 +---------------------------------+---------------+--------------------------------------------------------------------------------------------------------+
 
 
-+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``[General]`` section                                                                                                                                              |
-+==================================+===============+=================================================================================================================+
-| Variable                         | Default       | Meaning                                                                                                         |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``chunkSize``                    | ``10000000`` (10 MB)   | Specifies the chunk size of uploaded files in bytes.                                                   |
-|                                  |                        | The client will dynamically adjust this size within the maximum and minimum bounds (see below).        |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
++----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| ``[General]`` section                                                                                                                                                |
++==================================+==========================+========================================================================================================+
+| Variable                         | Default                  | Meaning                                                                                                |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``chunkSize``                    | ``10000000`` (10 MB)     | Specifies the chunk size of uploaded files in bytes.                                                   |
+|                                  |                          | The client will dynamically adjust this size within the maximum and minimum bounds (see below).        |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``minChunkSize``                 | ``1000000`` (1 MB)       | Specifies the minimum chunk size of uploaded files in bytes.                                           |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
 | ``maxChunkSize``                 | ``1000000000`` (1000 MB) | Specifies the maximum chunk size of uploaded files in bytes.                                           |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``minChunkSize``                 | ``1000000`` (1 MB)     | Specifies the minimum chunk size of uploaded files in bytes.                                           |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``targetChunkUploadDuration``    | ``6000`` (1 minute)    | Target duration in milliseconds for chunk uploads.                                                     |
-|                                  |                        | The client adjusts the chunk size until each chunk upload takes approximately this long.               |
-|                                  |                        | Set to 0 to disable dynamic chunk sizing.                                                              |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``promptDeleteAllFiles``         | ``true``               | If a UI prompt should ask for confirmation if it was detected that all files and folders were deleted. |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``timeout``                      | ``300``                | The timeout for network connections in seconds.                                                        |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``moveToTrash``                  | ``false``              | If non-locally deleted files should be moved to trash instead of deleting them completely.             |
-|                                  |                        | This option only works on linux                                                                        |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``showExperimentalOptions``      | ``false``              | Whether to show experimental options that are still undergoing testing in the user interface.          |
-|                                  |                        | Turning this on does not enable experimental behavior on its own. It does enable user inferface        |
-|                                  |                        | options that can be used to opt in to experimental features.                                           |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``showMainDialogAsNormalWindow`` | ``false``              | Whether the main dialog should be shown as a normal window even if tray icons are available.           |
-+----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``targetChunkUploadDuration``    | ``60000`` (1 minute)     | Target duration in milliseconds for chunk uploads.                                                     |
+|                                  |                          | The client adjusts the chunk size until each chunk upload takes approximately this long.               |
+|                                  |                          | Set to 0 to disable dynamic chunk sizing.                                                              |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``promptDeleteAllFiles``         | ``true``                 | If a UI prompt should ask for confirmation if it was detected that all files and folders were deleted. |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``timeout``                      | ``300``                  | The timeout for network connections in seconds.                                                        |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``moveToTrash``                  | ``false``                | If non-locally deleted files should be moved to trash instead of deleting them completely.             |
+|                                  |                          | This option only works on linux                                                                        |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``showExperimentalOptions``      | ``false``                | Whether to show experimental options that are still undergoing testing in the user interface.          |
+|                                  |                          | Turning this on does not enable experimental behavior on its own. It does enable user inferface        |
+|                                  |                          | options that can be used to opt in to experimental features.                                           |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``showMainDialogAsNormalWindow`` | ``false``                | Whether the main dialog should be shown as a normal window even if tray icons are available.           |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
 
 
 +----------------------------------------------------------------------------------------------------------------------------------------------------------+
index bdafba18f53ec9e08b22956a7759b7df7774dd0d..1a1be3251162ecbe7ca4ec58d167459dc4d52041 100644 (file)
@@ -66,6 +66,31 @@ configured on your client.
 See https://github.com/owncloud/client/issues/5226 for more discussion of this
 issue.
 
+"Connection closed" message when syncing files
+---------------------
+
+This message can be caused by using chunks that are too big or time-outs that
+are set too liberally. You can configure the chunking behavior of the client in
+the config file. For example, change these settings:
+
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``chunkSize``                    | ``10000000`` (10 MB)     | Specifies the chunk size of uploaded files in bytes.                                                   |
+|                                  |                          | The client will dynamically adjust this size within the maximum and minimum bounds (see below).        |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``minChunkSize``                 | ``1000000`` (1 MB)       | Specifies the minimum chunk size of uploaded files in bytes.                                           |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``maxChunkSize``                 | ``50000000`` (1000 MB) | Specifies the maximum chunk size of uploaded files in bytes.                                           |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+| ``targetChunkUploadDuration``    | ``6000`` (1 minute)      | Target duration in milliseconds for chunk uploads.                                                     |
+|                                  |                          | The client adjusts the chunk size until each chunk upload takes approximately this long.               |
+|                                  |                          | Set to 0 to disable dynamic chunk sizing.                                                              |
++----------------------------------+--------------------------+--------------------------------------------------------------------------------------------------------+
+
+Setting ``maxChunkSize`` to 50000000, for example, will decrease the
+individual chunk to about 50 mb. This causes additional overhead but
+might be required in some situations, for example behind CloudFlare which
+has been seen limiting upload chunks to 100mb. In other situations,
+limiting ``targetChunkUploadDuration`` can help to avoid time-outs.
 
 Isolating other issues
 ----------------------