Backup Upload Error
Opened this issue · 1 comments
[So. 00:03:33 INFO ] Dropbox: Uploading backup [backup-2023-05-21~00-00-00-world.zip] ...
[So. 00:03:53 INFO ] Dropbox: Upload successfully. Backup stored on your dropbox account.
[So. 00:03:53 WARN ServerBackup] Plugin ServerBackup v2.9.4 generated an exception while executing task 107402
java.lang.RuntimeException: com.dropbox.core.v2.files.UploadErrorException: Exception in 2/files/upload: "payload_too_large"
at ServerBackup-2.9.4.jar//de.seblii.serverbackup.utils.DropboxManager.uploadToDropbox(DropboxManager.java:71)
at ServerBackup-2.9.4.jar//de.seblii.serverbackup.ZipManager.lambda$zip$2(ZipManager.java:182)
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101)
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: com.dropbox.core.v2.files.UploadErrorException: Exception in 2/files/upload: "payload_too_large"
at ServerBackup-2.9.4.jar//com.dropbox.core.v2.files.UploadUploader.newException(UploadUploader.java:37)
at ServerBackup-2.9.4.jar//com.dropbox.core.v2.files.UploadUploader.newException(UploadUploader.java:23)
at ServerBackup-2.9.4.jar//com.dropbox.core.DbxUploader.finish(DbxUploader.java:287)
at ServerBackup-2.9.4.jar//com.dropbox.core.DbxUploader.uploadAndFinish(DbxUploader.java:126)
at ServerBackup-2.9.4.jar//com.dropbox.core.DbxUploader.uploadAndFinish(DbxUploader.java:96)
at ServerBackup-2.9.4.jar//com.dropbox.core.v2.DbxUploadStyleBuilder.uploadAndFinish(DbxUploadStyleBuilder.java:92)
at ServerBackup-2.9.4.jar//de.seblii.serverbackup.utils.DropboxManager.uploadToDropbox(DropboxManager.java:69)
... 7 more
The current implementation of the Dropbox Uploader uses one single chunk which is limited to 150MiB per request (enforced by Dropbox).
In order to upload files larger than 150MiB sequential upload has to be implemented (the file has to be uploaded in several chunks where one chunk cannot be larger than 150MiB per request)