rclone OneDrive: “Must be authenticated to use '/drive' syntax”












0















I'm just trying to use both rclone and OneDrive for the first time, in conjunction. On a Windows PC, I ran rsync config and it produced a configuration file. I can then rclone sync . OneDrive:test and within a few seconds the folder test appears in the OneDrive interface. I ultimately want to use this on a FreeBSD machine. I copied the entire config file verbatim from the Windows machine to the FreeBSD machine (it contains only one section describing the parameters for the OneDrive remote), but when I run the same test command rclone sync . OneDrive:test, I get the following output:



rclone@GALLERY:~ % rclone sync . OneDrive:test
2019/01/28 14:24:59 Failed to create file system for "OneDrive:test": failed to get root: unauthenticated: Must be authenticated to use '/drive' syntax
rclone@GALLERY:~ %


I'm not sure what to try next. The configuration is literally identical to the Windows machine where it works just fine. Eliding the personal bits, this is the contents of the config file:



[OneDrive]
type = onedrive
drive_type = business
token = {"access_token":"eyJ0eXAfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAVeiklCYIgAA","expiry":"2019-01-28T15:11:32.2443131-06:00"}
drive_id = b!KW9cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxvBSZB


What am I doing wrong?



And one other question as an aside -- what happens when that token expires? I don't see any refresh token, and the expiry is just 1 hour from the token creation. In my fervour to take out the actual token, I didn't notice that the selection I replaced with 'x's contained the end of the token and the start of a refresh token. So I guess I should re-ask this aside as, is rsync going to automatically refresh the token and rewrite the config file each time it expires? So, as long as I don't let the refresh token expire and don't have exceptionally bad luck with lost packets, I should get an unbroken chain of refreshes?




I have answered the aside. On the Windows machine where it's working, verbose debug output explicitly said the token had expired and it was rewriting the config file with a new token. So, that's that question!











share|improve this question





























    0















    I'm just trying to use both rclone and OneDrive for the first time, in conjunction. On a Windows PC, I ran rsync config and it produced a configuration file. I can then rclone sync . OneDrive:test and within a few seconds the folder test appears in the OneDrive interface. I ultimately want to use this on a FreeBSD machine. I copied the entire config file verbatim from the Windows machine to the FreeBSD machine (it contains only one section describing the parameters for the OneDrive remote), but when I run the same test command rclone sync . OneDrive:test, I get the following output:



    rclone@GALLERY:~ % rclone sync . OneDrive:test
    2019/01/28 14:24:59 Failed to create file system for "OneDrive:test": failed to get root: unauthenticated: Must be authenticated to use '/drive' syntax
    rclone@GALLERY:~ %


    I'm not sure what to try next. The configuration is literally identical to the Windows machine where it works just fine. Eliding the personal bits, this is the contents of the config file:



    [OneDrive]
    type = onedrive
    drive_type = business
    token = {"access_token":"eyJ0eXAfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAVeiklCYIgAA","expiry":"2019-01-28T15:11:32.2443131-06:00"}
    drive_id = b!KW9cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxvBSZB


    What am I doing wrong?



    And one other question as an aside -- what happens when that token expires? I don't see any refresh token, and the expiry is just 1 hour from the token creation. In my fervour to take out the actual token, I didn't notice that the selection I replaced with 'x's contained the end of the token and the start of a refresh token. So I guess I should re-ask this aside as, is rsync going to automatically refresh the token and rewrite the config file each time it expires? So, as long as I don't let the refresh token expire and don't have exceptionally bad luck with lost packets, I should get an unbroken chain of refreshes?




    I have answered the aside. On the Windows machine where it's working, verbose debug output explicitly said the token had expired and it was rewriting the config file with a new token. So, that's that question!











    share|improve this question



























      0












      0








      0








      I'm just trying to use both rclone and OneDrive for the first time, in conjunction. On a Windows PC, I ran rsync config and it produced a configuration file. I can then rclone sync . OneDrive:test and within a few seconds the folder test appears in the OneDrive interface. I ultimately want to use this on a FreeBSD machine. I copied the entire config file verbatim from the Windows machine to the FreeBSD machine (it contains only one section describing the parameters for the OneDrive remote), but when I run the same test command rclone sync . OneDrive:test, I get the following output:



      rclone@GALLERY:~ % rclone sync . OneDrive:test
      2019/01/28 14:24:59 Failed to create file system for "OneDrive:test": failed to get root: unauthenticated: Must be authenticated to use '/drive' syntax
      rclone@GALLERY:~ %


      I'm not sure what to try next. The configuration is literally identical to the Windows machine where it works just fine. Eliding the personal bits, this is the contents of the config file:



      [OneDrive]
      type = onedrive
      drive_type = business
      token = {"access_token":"eyJ0eXAfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAVeiklCYIgAA","expiry":"2019-01-28T15:11:32.2443131-06:00"}
      drive_id = b!KW9cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxvBSZB


      What am I doing wrong?



      And one other question as an aside -- what happens when that token expires? I don't see any refresh token, and the expiry is just 1 hour from the token creation. In my fervour to take out the actual token, I didn't notice that the selection I replaced with 'x's contained the end of the token and the start of a refresh token. So I guess I should re-ask this aside as, is rsync going to automatically refresh the token and rewrite the config file each time it expires? So, as long as I don't let the refresh token expire and don't have exceptionally bad luck with lost packets, I should get an unbroken chain of refreshes?




      I have answered the aside. On the Windows machine where it's working, verbose debug output explicitly said the token had expired and it was rewriting the config file with a new token. So, that's that question!











      share|improve this question
















      I'm just trying to use both rclone and OneDrive for the first time, in conjunction. On a Windows PC, I ran rsync config and it produced a configuration file. I can then rclone sync . OneDrive:test and within a few seconds the folder test appears in the OneDrive interface. I ultimately want to use this on a FreeBSD machine. I copied the entire config file verbatim from the Windows machine to the FreeBSD machine (it contains only one section describing the parameters for the OneDrive remote), but when I run the same test command rclone sync . OneDrive:test, I get the following output:



      rclone@GALLERY:~ % rclone sync . OneDrive:test
      2019/01/28 14:24:59 Failed to create file system for "OneDrive:test": failed to get root: unauthenticated: Must be authenticated to use '/drive' syntax
      rclone@GALLERY:~ %


      I'm not sure what to try next. The configuration is literally identical to the Windows machine where it works just fine. Eliding the personal bits, this is the contents of the config file:



      [OneDrive]
      type = onedrive
      drive_type = business
      token = {"access_token":"eyJ0eXAfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAVeiklCYIgAA","expiry":"2019-01-28T15:11:32.2443131-06:00"}
      drive_id = b!KW9cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxvBSZB


      What am I doing wrong?



      And one other question as an aside -- what happens when that token expires? I don't see any refresh token, and the expiry is just 1 hour from the token creation. In my fervour to take out the actual token, I didn't notice that the selection I replaced with 'x's contained the end of the token and the start of a refresh token. So I guess I should re-ask this aside as, is rsync going to automatically refresh the token and rewrite the config file each time it expires? So, as long as I don't let the refresh token expire and don't have exceptionally bad luck with lost packets, I should get an unbroken chain of refreshes?




      I have answered the aside. On the Windows machine where it's working, verbose debug output explicitly said the token had expired and it was rewriting the config file with a new token. So, that's that question!








      onedrive freebsd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 28 at 21:23







      Jonathan Gilbert

















      asked Jan 28 at 20:28









      Jonathan GilbertJonathan Gilbert

      1014




      1014






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I have figured out the problem. FreeBSD's package system has rclone version 1.43. The version on Windows where I observed it working was version 1.45. This doesn't seem like that big of a difference, but it would appear that 1.45 works and 1.43 doesn't work. I uninstalled the FreeBSD 1.43 package and instead used the 1.45 distribution offered by the rclone web site, and with no other changes, it now works. Go figure!






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399409%2frclone-onedrive-must-be-authenticated-to-use-drive-syntax%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I have figured out the problem. FreeBSD's package system has rclone version 1.43. The version on Windows where I observed it working was version 1.45. This doesn't seem like that big of a difference, but it would appear that 1.45 works and 1.43 doesn't work. I uninstalled the FreeBSD 1.43 package and instead used the 1.45 distribution offered by the rclone web site, and with no other changes, it now works. Go figure!






            share|improve this answer




























              0














              I have figured out the problem. FreeBSD's package system has rclone version 1.43. The version on Windows where I observed it working was version 1.45. This doesn't seem like that big of a difference, but it would appear that 1.45 works and 1.43 doesn't work. I uninstalled the FreeBSD 1.43 package and instead used the 1.45 distribution offered by the rclone web site, and with no other changes, it now works. Go figure!






              share|improve this answer


























                0












                0








                0







                I have figured out the problem. FreeBSD's package system has rclone version 1.43. The version on Windows where I observed it working was version 1.45. This doesn't seem like that big of a difference, but it would appear that 1.45 works and 1.43 doesn't work. I uninstalled the FreeBSD 1.43 package and instead used the 1.45 distribution offered by the rclone web site, and with no other changes, it now works. Go figure!






                share|improve this answer













                I have figured out the problem. FreeBSD's package system has rclone version 1.43. The version on Windows where I observed it working was version 1.45. This doesn't seem like that big of a difference, but it would appear that 1.45 works and 1.43 doesn't work. I uninstalled the FreeBSD 1.43 package and instead used the 1.45 distribution offered by the rclone web site, and with no other changes, it now works. Go figure!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 28 at 21:31









                Jonathan GilbertJonathan Gilbert

                1014




                1014






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399409%2frclone-onedrive-must-be-authenticated-to-use-drive-syntax%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    Puebla de Zaragoza

                    Musa