Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup Upload Error #19

Open
Dreandor opened this issue May 21, 2023 · 1 comment
Open

Backup Upload Error #19

Dreandor opened this issue May 21, 2023 · 1 comment

Comments

@Dreandor
Copy link

[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

@sa-shiro
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants