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

OneDrive - Failed to create file system for "onedrive:" #10

Open
yyscolin opened this issue Mar 30, 2021 · 5 comments
Open

OneDrive - Failed to create file system for "onedrive:" #10

yyscolin opened this issue Mar 30, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@yyscolin
Copy link

yyscolin commented Mar 30, 2021

I believe I have given the appropriate permissions, but I am getting this error:

[ 30/03/2021 22:06:38 ] ---
[ 30/03/2021 22:06:38 ] Checking OS...
[ 30/03/2021 22:06:38 ] OS supported
[ 30/03/2021 22:06:38 ] Start upload to Cloud...
[ 30/03/2021 22:06:38 ] [onedrive] Checking connect to onedrive...
[ 30/03/2021 22:06:38 ] [onedrive] [INFO] Connect onedrive successful
[ 30/03/2021 22:06:38 ] [onedrive] Checking folder name on Cloud...
2021/03/30 22:06:39 Failed to create file system for "onedrive:": failed to get root: unauthenticated: Authentication failed
[ 30/03/2021 22:06:39 ] [onedrive] [CHECK][FAIL] Can not find folder name mysqldumps. Exit
[ 30/03/2021 22:06:39 ] [WARNING] Email not config, do not send error email
[ 30/03/2021 22:06:39 ] Run time: 00h00m01s

Am I doing something wrongly?

I have also created a folder called "mysqldumps" on my OneDrive account.

Please help. Thanks in advance :D

@mbrother2
Copy link
Owner

@yyscolin

Please show the output of command rclone lsd onedrive:

@mbrother2 mbrother2 self-assigned this Apr 3, 2021
@mbrother2 mbrother2 added the question Further information is requested label Apr 3, 2021
@yyscolin
Copy link
Author

yyscolin commented Apr 3, 2021

Hi @mbrother2 , I got

Failed to create file system for "onedrive:": failed to get root: unauthenticated: Authentication failed

@mbrother2
Copy link
Owner

@yyscolin

Seem your authentication with one drive is not right. Please use command butdr.bash --account reset to reset your account and try again.

@yyscolin
Copy link
Author

yyscolin commented Apr 6, 2021

Actually I've done it many times with two different accounts and have the same problem, even with dropbox.

Let me first explain what I did for OneDrive:

  • Executed butdr.bash --account reset
  • Entered 4 for OneDrive when I got prompted Which cloud you will use?
  • Entered my client id when prompted
  • Entered my secret when prompted
  • Entered mysqldumps when prompted for OneDrive folder name
  • Went to the URL given, then gave the permissions when prompted, and was then redirected to a blank page https://login.microsoftonline.com/common/oauth2/nativeclient?code=M.R3_BAY.***************************
  • Enter verification code: M.R3_BAY.***************************
  • Which directory on your server do you want to upload to account onedrive?(default /home/butdr1/backup):
  • How many days do you want to keep backup on Cloud?(default 7):
  • Do you want only sync file(default no)(y/n): y
  • Do you want compress directory before upload?(default no)(y/n): n

Then I was given the results below:

[ 06/04/2021 12:12:13 ] Setup config file for account onedrive successful

[ 06/04/2021 12:12:13 ] +-----
[ 06/04/2021 12:12:13 ] | SUCESSFUL! Your informations:
[ 06/04/2021 12:12:13 ] |---
[ 06/04/2021 12:12:13 ] | Account            : onedrive
[ 06/04/2021 12:12:13 ] | Backup dir         : /home/butdr1/backup
[ 06/04/2021 12:12:13 ] | Keep backup        : 7 days
[ 06/04/2021 12:12:13 ] | Cloud folder name  : mysqldumps
[ 06/04/2021 12:12:13 ] | Sync file          : Yes
[ 06/04/2021 12:12:13 ] | Tar before upload  : No
[ 06/04/2021 12:12:13 ] +-----

It looks like the authentication seems correct.

But when I run cron_backup.bash -v I got the error:

[ 06/04/2021 12:14:19 ] ---
[ 06/04/2021 12:14:19 ] Checking OS...
[ 06/04/2021 12:14:19 ] OS supported
[ 06/04/2021 12:14:19 ] Start upload to Cloud...
[ 06/04/2021 12:14:19 ] [onedrive] Checking connect to onedrive...
[ 06/04/2021 12:14:20 ] [onedrive] [INFO] Connect onedrive successful
[ 06/04/2021 12:14:20 ] [onedrive] Checking folder name on Cloud...
2021/04/06 12:14:21 Failed to create file system for "onedrive:": failed to get root: unauthenticated: Authentication failed
[ 06/04/2021 12:14:21 ] [onedrive] [CHECK][FAIL] Can not find folder name mysqldumps. Exit
[ 06/04/2021 12:14:21 ] [WARNING] Email not config, do not send error email
[ 06/04/2021 12:14:21 ] Run time: 00h00m02s

Again, it seems like the authentication is correct from [onedrive] [INFO] Connect onedrive successful.

Could the verification code that I've used from the URL be the incorrect one?

Thank you in advance.

@mbrother2
Copy link
Owner

@yyscolin

Thank you for your reply, I will debug with my onedrive account. I will reply as soon as I have new information.

@mbrother2 mbrother2 added bug Something isn't working and removed question Further information is requested labels Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants