Do you recall having every typed a password for OneDrive? Do you see anything like that now?
OneDrive is confusing because it has so many variations. Is yours Personal or “for Business”?
Make sure you configured Duplicati with the right storage type for your specific storage provider.
For OneDrive Personal, you probably want Microsoft OneDrive v2 which lacks --auth-password.
Sometimes changing types can leave leftovers from other types. You can try Advanced options on screen 5 for Options to see if you see that one. Another way to see options is to look at Commandline for that job.
Commandline configuration doesn’t persist. You can certainly do a backup run to see if it succeeds, but eventually you’ll have to get the job fixed. Did you look to see if that option was also in the advanced options? Sometimes options can get in places that are hard to get to, but first let’s see if they’re in any easier place…
If regular Advanced options doesn’t show it then let you remove it, try the three-dot menu to Edit as text.
I figured it out! You might want to add this to your KB, or manual or something. It seems that if you use Google Password Manager to save your login password for Duplicati, it will automatically enter it in the auth-password field (even though that field doesn’t exist on the screen).
I looked at the command line again, and realized that the password that it was displaying was my Duplicati password…so I cleared the password manager, and created a new cloud backup job, and now it works!
Just in case, like me, you are looking here because you have warnings like:
The supplied option --auth-username is not supported and will be ignored
The supplied option --auth-password is not supported and will be ignored
Initially I configured my backup job to use OneDrive for Business, but then could not do any operations afterwards due to limits for OneDrive for Business. I reconfigured the job to use OneDrivev2 which fixed my issues, but then got the errors above.
This happens, as @ts678 suggests above, because “changing types can leave leftovers…”. To clean things up, edit the configuration of the job then choose your previous type (in my case OneDrive for Business), remove the data (username and password) then switch back to your new type before clicking Next through the screens then click Save. If you check the Commandline before and after you should see the extraneous options disappear.
This absolutely works! I added localhost to LastPass URL rules including host and port matching to prevent the error in the future. Seems like the assumption being made by Duplicati warrants a bug report?