-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 for business #254
Comments
It only does the consumer one at the moment. Unfortunately I don't have a onedrive for business account, but it should be relatively straight forward to make it work. Do you have a onedrive for business account? Would you be willing to do some testing? |
Yeah I have a Office 365 account. We are currently migrating from Dropbox to Office 365 for business. Let me know if you want me to do some testing. |
Thanks. I'll let you know! |
Hi, I'm also very interested in this and can provide an account if needed. Thanks! |
@skelluk an account I could use would help enormously (I only have the free onedrive account!). Email me offline at [email protected] - Thanks |
Also interested and willing to help with tests, but I will need to have access to any source code before executing it. |
@rafareino a onedrive for business account I could use would be really helpful! The source code for rclone is all on this site - it is a fully open source project. |
Sadly enough, I can't provide you with access to one business account Rafael Reinoldes "Experience is not what happens to a man; it is what a man does with what On Wed, Feb 17, 2016 at 10:57 AM, Nick Craig-Wood [email protected]
|
+1 |
I can provide my account for testing. Please contact me through private message for the account information and password. I can also do some testing if that'll be helpful. |
+1 |
I can provide an account for testing too, and i'm willing to help with test. |
+1 |
+1 |
+1, volunteer for testing |
Happy to test as well, came here immediately after noticing the OAuth is consumer only. Thanks for the project! |
Also interested to test (but can't provide an account, unfortunately). |
- 2 test fail (MimeType and modification date when copying) - no headless setup - uses the credentials for the "rclonetest" app I have created
I've merged @olihey 's excellent work now - please have a go with it and report back! https://beta.rclone.org/v1.37-130-gf91f89d4/ (uploaded in 15-30 mins) |
Thanks for the update. I've been testing the Beta v.1.37 and although it works fine connecting to an O365 Business Account, it only works for an hour (the Access Token duration). Is it implemented the procedure to use the Refresh Token to renew the Access Token once is expired? |
I haven't done anything special about the token refreshing and when I just tried it (haven't used rclone for days) I got: Did you ran rclone for over an hour? |
@egorian @olihey the token refreshing should be working fine. I tested it by uploading 1000 files using I can see the token being refreshed
And it ran for > 2hr. |
I just tested this and so far is working great. You guys rock! |
I've been trying the beta version and came across the following error:
Using |
Is this related to the OneDrive for Business or are you having the issue in general? |
Works for me with I'm getting |
@olihey Just receive this error with OneDrive for Business. |
@benad rclone mount is experimental and is only reliable to use for reading. Writing has issues in all providers as far as I know. |
@kz0 You can try with this: |
Same problem, this only happens with one specific file when copying to onedrive remote encrypted.
|
I'm also seeing this problem. In the process of doing a large sync of a local directory to an OneDrive remote with a crypt layer on top I'm seeing two types of errors:
and
After inspecting the files, I don't see anything peculiar about them. These are mostly folders full of PDF documents and where one PDF document may sync fine, another one doesn't. I'll try to run with higher debug levels to collect more data after my first pass at this large sync completes. EDIT:
|
I passed my source directory through a local
"filename" length is 206 character and total path length is 393. Perhaps this is to close to the 'official' 400 character limit? Any other guesses? I'll keep digging.. |
I’ve been able to successfully connect to the default https://orgname-my.sharepoint.com/ personal SharePoint Site. But I’m having difficultly figuring out how to connect to team sites on URLs such a: https://orgname.sharepoint.com/ and https://orgname.sharepoint.com/sites/Site-Name etc. The “rclone config” guided process doesn’t let you set the resource_url when setting it up. So I’ve tried editing ~/.config/rclone.conf using a few different methods (including with and without "Shared Documents" in various formats to cater for the stupid space between the words) to change the resource_url and reauthorize, I always get the error:
Does anyone know how I access team SharePoint sites? |
I now find myself needing to do the same thing. Have you made any progress? One thing I noticed, if you click the "Sync" button is will give you an URL like
Maybe that URL will work (obviously with the microsoftized url encoded parameters converted back to text)? |
Have a look at #1770 if the beta version let you select the Sharepoint side |
Is there any way to get OneDrive for Business to refresh tokens automatically? It's not useful at all if they keep expiring and we have to re-issue. |
@luisfavila I never had any problems with the refresh tokens. Can you share some logs? |
Also make sure you try with the latest beta! |
I'm going to close this issue now since onedrive for business and sharepoint have been working with rclone for some time now :-) |
Im sorry for answering so late. What I meant was even though if I manually authorize via rclone authorize "onedrive", it never saves the refresh_token. I get a JSON with access_token, refresh_token, token_type and expiry, but once I paste the information it somehow converts the access_token and doesn't save the refresh_token. |
@luisfavila Not sure what is going on here... Have you tried the copying the config method of configuration? |
@ncw I did, but when I add onedrive on my local computer it also ignores the refresh_token |
I found this was my issue. Also using sync to crypt directory in OD. Reducing the length of the original filename removed the error. |
I couldn't figure out from the docs, but is the OneDrive implementation the for business one or the consumer one?
The text was updated successfully, but these errors were encountered: