Cyberduck CLI and OneDrive

509 views
Skip to first unread message

Dominic Chan

unread,
Jan 21, 2018, 8:43:15 PM1/21/18
to Cyberduck
New to Cyberduck and the CLI. 

Testing the CLI connection to OneDrive, it connects and upload file, however, it doesn't save the OAuth code. Everytime I ran the command

duck --preserve --existing skip --assumeyes --upload onedrive://someus...@somedomain.com@graph.microsoft.com/somestring/foldername c:\upload

It opens up the web browser and present the OAuth Code again and need to copy and paste.  

I am trying to automate this task and does someone has a pointer how to deal with the OAuth code input?



thanks!

Dominic 


David Kocher

unread,
Jan 22, 2018, 10:17:11 AM1/22/18
to Cyberduck
I can reproduce the issue. Looks like a bug on Windows only – we will have a look.

– David



On Monday, January 22, 2018 at 2:43:15 AM UTC+1, Dominic Chan wrote:
New to Cyberduck and the CLI. 

Testing the CLI connection to OneDrive, it connects and upload file, however, it doesn't save the OAuth code. Everytime I ran the command

duck --preserve --existing skip --assumeyes --upload onedrive://someusername@somedomain.com@graph.microsoft.com/somestring/foldername c:\upload

David Kocher

unread,
Feb 15, 2018, 4:34:38 AM2/15/18
to Cyberduck
This is now fixed with version 6.4

– David

> On 22 Jan 2018, at 16:17, David Kocher <dko...@sudo.ch> wrote:
>
> I can reproduce the issue. Looks like a bug on Windows only – we will have a look.
>
> – David
>
>
> On Monday, January 22, 2018 at 2:43:15 AM UTC+1, Dominic Chan wrote:
> New to Cyberduck and the CLI.
>
> Testing the CLI connection to OneDrive, it connects and upload file, however, it doesn't save the OAuth code. Everytime I ran the command
>
> duck --preserve --existing skip --assumeyes --upload onedrive://someus...@somedomain.com@graph.microsoft.com/somestring/foldername c:\upload
>
> It opens up the web browser and present the OAuth Code again and need to copy and paste.
>
> I am trying to automate this task and does someone has a pointer how to deal with the OAuth code input?
>
>
>
> thanks!
>
> Dominic
>
>
>
> --
> --
> You received this message because you are subscribed to the Google Groups "Cyberduck" group. To post to this group, send email to cybe...@googlegroups.com
> To unsubscribe from this group, send email to cyberduck+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/cyberduck
> --
> Post bug reports and feature requests
> http://trac.cyberduck.ch/newticket
> --
> Support development
> http://cyberduck.ch/donate/
>
> ---
> You received this message because you are subscribed to the Google Groups "Cyberduck" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cyberduck+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

signature.asc

lcg.p...@gmail.com

unread,
Feb 18, 2018, 4:24:31 PM2/18/18
to Cyberduck
Hello,

I still see this with duck 6.4 on Windows 10 17.09 64bit.
PS C:\Users\lars > duck -V -v
Cyberduck 6.4.0 (27606).

Authentication for OneDrive or Dropbox succeeds and duck can access the contents fine. It does not store the provided OAuth tokens, though.

Regards,
Lars

Dominic Chan

unread,
Mar 13, 2018, 11:12:55 PM3/13/18
to Cyberduck
Just re-tested it. Same results, it does not keep the OAuth tokens.

D.

lcg.p...@gmail.com

unread,
Mar 14, 2018, 1:15:44 PM3/14/18
to Cyberduck
Hi Dominic,

I am glad that it was not just my machines with 6.4, then.

Still the same (broken) behaviour with 6.4.4; even though I confirm saving the credentials, duck opens the browser again 5s later from the same CLI window.

Cheers,
Lars
Message has been deleted

SnowmachineNSnowman

unread,
May 7, 2018, 12:10:00 PM5/7/18
to Cyberduck
Still no save for OAuth tokens on 6.4.6.  I am using with GoogleDrive

SnowmachineNSnowman

unread,
May 7, 2018, 1:30:16 PM5/7/18
to Cyberduck
I should have stated on Windows 10.  It seems to save fine on OS X.

Antonio R. Barbosa

unread,
May 19, 2018, 9:02:26 PM5/19/18
to Cyberduck
I'm having the same problem using Cyberduck 6.4.6 (27773).


Em domingo, 21 de janeiro de 2018 22:43:15 UTC-3, Dominic Chan escreveu:
New to Cyberduck and the CLI. 

Testing the CLI connection to OneDrive, it connects and upload file, however, it doesn't save the OAuth code. Everytime I ran the command

duck --preserve --existing skip --assumeyes --upload onedrive://someusername@somedomain.com@graph.microsoft.com/somestring/foldername c:\upload

David Kocher

unread,
May 30, 2018, 3:07:23 PM5/30/18
to cybe...@googlegroups.com
Please update to version 6.6.0 which should resolve this issue.

– David

> On 20 May 2018, at 03:02, Antonio R. Barbosa <alvoe...@gmail.com> wrote:
>
> I'm having the same problem using Cyberduck 6.4.6 (27773).
>
> Em domingo, 21 de janeiro de 2018 22:43:15 UTC-3, Dominic Chan escreveu:
> New to Cyberduck and the CLI.
>
> Testing the CLI connection to OneDrive, it connects and upload file, however, it doesn't save the OAuth code. Everytime I ran the command
>
> duck --preserve --existing skip --assumeyes --upload onedrive://someus...@somedomain.com@graph.microsoft.com/somestring/foldername c:\upload
>
> It opens up the web browser and present the OAuth Code again and need to copy and paste.
>
> I am trying to automate this task and does someone has a pointer how to deal with the OAuth code input?
>
>
>
> thanks!
>
> Dominic
>
>
>

dam...@id3media.com

unread,
Jun 27, 2018, 5:41:32 PM6/27/18
to Cyberduck


On Wednesday, May 30, 2018 at 12:07:23 PM UTC-7, David Kocher wrote:
Please update to version 6.6.0 which should resolve this issue.

– David


I am still having issues with OAuth not being stored. I'm using v6.6.2 on CentOS 7.5

Dominic Chan

unread,
Jul 8, 2018, 2:30:19 PM7/8/18
to cybe...@googlegroups.com
I am on Windows 7 Pro with version 6.6.2.28219  it stores the OAuth (finally) but now the upload function doesn't work at all. I have been using the following and was working


duck --preserve --assumeyes --existing skip --upload onedrive://some...@something.onmicrosoft.com@graph.microsoft.com/bunchofcharacters/Backup 'c:\Some Data\Backup'



--
--
You received this message because you are subscribed to the Google Groups "Cyberduck" group. To post to this group, send email to cybe...@googlegroups.com
To unsubscribe from this group, send email to cyberduck+unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/cyberduck
--
Post bug reports and feature requests
http://trac.cyberduck.ch/newticket
--
Support development
http://cyberduck.ch/donate/

---
You received this message because you are subscribed to a topic in the Google Groups "Cyberduck" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cyberduck/yI3ucv1aJko/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cyberduck+unsubscribe@googlegroups.com.

Greg

unread,
Jul 10, 2018, 4:21:45 AM7/10/18
to Cyberduck
Another issue with OneDrive, could be my fault:

duck -v --synchronize onedrive://url/filepath/ --existing download

It does save the auth code, but the transfer never works. It just halts at "Transfer Incomplete..." Any ideas?

Bash log from macOS:

> POST /common/oauth2/v2.0/token HTTP/1.1

> Accept-Encoding: gzip

> User-Agent: Google-HTTP-Java-Client/1.24.0-SNAPSHOT (gzip)

> Content-Length: 1012

> Content-Type: application/x-www-form-urlencoded; charset=UTF-8

> Host: login.microsoftonline.com

> Connection: Keep-Alive

< HTTP/1.1 200 OK

< Cache-Control: no-cache, no-store

< Pragma: no-cache

< Content-Type: application/json; charset=utf-8

< Expires: -1

< Server: Microsoft-IIS/10.0

< Strict-Transport-Security: max-age=31536000; includeSubDomains

< X-Content-Type-Options: nosniff

< x-ms-request-id: 51e94ecf-5fbf-432b-b981-f73fc8f01900

< P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"

< Set-Cookie: esctx=*********; domain=.login.microsoftonline.com; path=/; secure; HttpOnly

< Set-Cookie: x-ms-gateway-slice=013; path=/; secure; HttpOnly

< Set-Cookie: stsservicecookie=ests; path=/; secure; HttpOnly

< Date: Tue, 10 Jul 2018 08:17:48 GMT

Prepare Shared with Everyone ↔ maler (Download)…

> GET /v1.0/me/drives HTTP/1.1

> Host: graph.microsoft.com

> Connection: Keep-Alive

> User-Agent: Cyberduck/6.6.2.28219 (Mac OS X/10.13.4) (x86_64)

> Accept-Encoding: gzip,deflate

> Authorization: ********

< HTTP/1.1 200 OK

< Cache-Control: private

< Transfer-Encoding: chunked

< Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8

< Content-Encoding: gzip

< Vary: Accept-Encoding

< request-id: *********

< client-request-id: *********

< x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"SliceC","Ring":"5","ScaleUnit":"002","Host":"AGSFE_IN_8","ADSiteName":"WEU"}}

< OData-Version: 4.0

< Duration: 1450.3312

< Strict-Transport-Security: max-age=31536000

< Date: Tue, 10 Jul 2018 08:17:49 GMT

> GET /v1.0/me/drives HTTP/1.1

> Host: graph.microsoft.com

> Connection: Keep-Alive

> User-Agent: Cyberduck/6.6.2.28219 (Mac OS X/10.13.4) (x86_64)

> Accept-Encoding: gzip,deflate

> Authorization: ********

< HTTP/1.1 200 OK

< Cache-Control: private

< Transfer-Encoding: chunked

< Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8

< Content-Encoding: gzip

< Vary: Accept-Encoding

< request-id: *********

< client-request-id: *********

< x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"SliceC","Ring":"5","ScaleUnit":"002","Host":"AGSFE_IN_8","ADSiteName":"WEU"}}

< OData-Version: 4.0

< Duration: 603.2734

< Strict-Transport-Security: max-age=31536000

Transfer incomplete…

[1]+  Exit 1                  





søndag 8. juli 2018 20.30.19 UTC+2 skrev Dominic Chan følgende:
I am on Windows 7 Pro with version 6.6.2.28219  it stores the OAuth (finally) but now the upload function doesn't work at all. I have been using the following and was working


duck --preserve --assumeyes --existing skip --upload onedrive://something@something.onmicrosoft.com@graph.microsoft.com/bunchofcharacters/Backup 'c:\Some Data\Backup'



On Wed, Jun 27, 2018 at 5:41 PM, <dam...@id3media.com> wrote:


On Wednesday, May 30, 2018 at 12:07:23 PM UTC-7, David Kocher wrote:
Please update to version 6.6.0 which should resolve this issue.

– David


I am still having issues with OAuth not being stored. I'm using v6.6.2 on CentOS 7.5

--
--
You received this message because you are subscribed to the Google Groups "Cyberduck" group. To post to this group, send email to cybe...@googlegroups.com
To unsubscribe from this group, send email to cyberduck+...@googlegroups.com

For more options, visit this group at http://groups.google.com/group/cyberduck
--
Post bug reports and feature requests
http://trac.cyberduck.ch/newticket
--
Support development
http://cyberduck.ch/donate/

---
You received this message because you are subscribed to a topic in the Google Groups "Cyberduck" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cyberduck/yI3ucv1aJko/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cyberduck+...@googlegroups.com.

Greg

unread,
Jul 11, 2018, 6:55:06 AM7/11/18
to Cyberduck
Not a fix, just mentioning that moving over to Dropbox worked immediately. So that could be a solution/workaround for some, if OneDrive isn't a requirement.

Dominic Chan

unread,
Jul 11, 2018, 9:07:05 AM7/11/18
to cybe...@googlegroups.com
OneDrive is the requirement.

To unsubscribe from this group, send email to cyberduck+unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/cyberduck
--
Post bug reports and feature requests
http://trac.cyberduck.ch/newticket
--
Support development
http://cyberduck.ch/donate/

---
You received this message because you are subscribed to a topic in the Google Groups "Cyberduck" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cyberduck/yI3ucv1aJko/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cyberduck+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages