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

[Bug] OneDrive upload failed #184

Closed
jinoo2005609 opened this issue Aug 5, 2024 · 3 comments
Closed

[Bug] OneDrive upload failed #184

jinoo2005609 opened this issue Aug 5, 2024 · 3 comments

Comments

@jinoo2005609
Copy link
Contributor

Describe the bug

I'm getting an error uploading to OneDrive.

To Reproduce

To reproduce this error, link account to OneDrive and do /drivebackup backup command.

Screenshots / Videos

image

Server and Plugin Versions

Paper 1.20.4-497, DriveBackupV2 1.7.0, OpenJDK 21

Logs

[14:53:25 WARN]: ratismal.drivebackup.DriveBackup.lib.JSONException: JSONObject[
"@odata.count"] not found.
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.DriveBa
ckup.lib.JSONObject.get(JSONObject.java:596)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.DriveBa
ckup.lib.JSONObject.getInt(JSONObject.java:768)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploade
rs.onedrive.OneDriveUploader.getChildren(OneDriveUploader.java:384)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploaders.onedrive.OneDriveUploader.getFolder(OneDriveUploader.java:343)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploaders.onedrive.OneDriveUploader.createFolder(OneDriveUploader.java:244)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploaders.onedrive.OneDriveUploader.createPath(OneDriveUploader.java:228)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploaders.onedrive.OneDriveUploader.uploadFile(OneDriveUploader.java:134)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.UploadThread.uploadFile(UploadThread.java:412)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.UploadThread.uploadBackupFiles(UploadThread.java:381)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.UploadThread.run(UploadThread.java:272)
[14:53:25 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)

Config

DriveBackupV2 - by Max Maeder (MaxTheGinus)

DOCUMENTATION HAS MOVED

Now available online at: https://github.com/MaxMaeder/DriveBackupV2/wiki

version: 2

delay: 60
backup-thread-priority: 1
keep-count: 20
local-keep-count: 5
zip-compression: 1
backups-require-players: true
disable-saving-during-backups: true

scheduled-backups: true
backup-schedule-list:

  • days:
    • everyday
      time: 00:00

backup-list:

  • glob: world*
    format: Backup-%NAME-%FORMAT.zip
    create: true
  • path: plugins
    format: Backup-plugins-%FORMAT.zip
    create: true

local-save-directory: backups
remote-save-directory: backups

googledrive:
enabled: false
shared-drive-id: ''
onedrive:
enabled: true
dropbox:
enabled: false
webdav:
enabled: false
hostname: http://example.com/directory
username: Username
password: Password
nextcloud:
enabled: false
hostname: https://example.com/remote.php/dav/files/user/
username: Username
password: Password
chunk-size: 20000000
s3:
enabled: false
endpoint: https://s3.us-west-2.amazonaws.com
access-key: AKIAxxxxxxxxxxxxxxxx
secret-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
bucket: bucket
ftp:
enabled: false
hostname: ftp.example.com
port: 21
sftp: false
ftps: false
username: Username
password: Password

messages:
send-in-chat: true
prefix: '&6[&4서버 백업&6] '
default-color: '&3'

advanced:
metrics: true
update-check: true
suppress-errors: false
debug: false
date-language: en
date-timezone: +09:00
ftp-file-separator: /

Additional Information

No response

@StillGreen-san
Copy link
Collaborator

a fix has been implemented and will be available in the next release, if you need an immediate fix you can grab a dev build

Warning! These builds have not been fully tested and may be broken, or have unknown bugs. Should you use these builds, you'll be using them at your own risk.
You can download dev builds of DriveBackupV2 from our GitHub actions at https://github.com/MaxMaeder/DriveBackupV2/actions/workflows/maven.yml?query=branch%3Amaster
Alternate Link
https://nightly.link/MaxMaeder/DriveBackupV2/workflows/maven/master

@rhld16
Copy link
Collaborator

rhld16 commented Aug 8, 2024

Fixed with v1.8.0

@rhld16 rhld16 closed this as completed Aug 8, 2024
@jinoo2005609
Copy link
Contributor Author

Thanks for the quick fix!

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

3 participants