Share via

OneDrive on Linux

Anonymous
2024-04-26T02:38:41+00:00

Hello!

I have a Linux Mint 21.3 - Virginia (Mate) on an old MBP2010. It is working pretty good.

And I have some cloud clients installed. Ex. NextCloud and DropBox.

Also, I have Onedrive 2.4.13-1build1. But, synchronizing is not working fine. Many folders are not fully synced.

And upoloading sync not work too...

What it should be?

Thanks a lot for any tip!

Microsoft 365 and Office | OneDrive | For home | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Anonymous
    2024-04-30T08:59:16+00:00

    I have Onedrive 2.4.13-1build1. But, synchronizing is not working fine. Many folders are not fully synced.

    And upoloading sync not work too...

    What it should be?

    Firstly, Microsoft does not provide the OneDrive client you are using, so your first port of call should be https://github.com/abraunegg/onedrive where the documentation for the client you have installed can be found.

    From there, you will read that v2.4.13 as you have installed is not supported (due to you installing from distribution repositories). To install the client correctly on any Ubuntu (or Ubuntu based distribution like Linux Mint) you must install the client the correct way following these instructions: https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md

    Post installation of the correct client version (currently v2.4.25 at the time this was written) - please re-try any sync activity to ensure there are no more issues.

    If you do encounter any issues:

    1. Read the documentation to assist
    2. Have a question that cannot be answered, please raise a discussion item on GitHub: https://github.com/abraunegg/onedrive/discussions
    3. Potentially found a bug? Please raise an issue on GitHub: https://github.com/abraunegg/onedrive/issues

    Now - for this message in your log file:

    abr 26 11:50:50 MBP2010 onedrive[1301]: ERROR: Microsoft OneDrive API returned an error with the following message: 
    abr 26 11:50:50 MBP2010 onedrive[1301]:   Error Message:    Timeout was reached on handle 55B810085230 
    abr 26 11:50:50 MBP2010 onedrive[1301]:   Calling Function: download() 
    abr 26 11:50:53 MBP2010 onedrive[1301]: ERROR: File download size mis-match. Increase logging verbosity to determine why. 
    abr 26 11:50:53 MBP2010 onedrive[1301]: ERROR: File download hash mis-match. Increase logging verbosity to determine why.
    

    Essentially your current client version (v2.4.13) is having trouble communicating with the Microsoft OneDrive service - mainly due to you running an obsolete client version which was released Jul 14, 2021 on a Linux distribution based on Ubuntu 22.04.

    The timeout is hit because your system (Linux Mint) cannot resolve various aspects to communicate with Microsoft OneDrive and the underlying cause here is actually 'curl' and how it can flip-flop between IPv4 and IPv6 resolution (which causes the error you are seeing).

    When you install the correct client version, you can then use the configuration option 'ip_protocol_version' to specify what TCP/IP protocol version to use to communicate with Microsoft OneDrive. Please read the client documentation for futher assistance.

    20+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-11-20T17:24:06+00:00

    Alex,

    Thanks for digging in to this !

    Your reply was informative and went beyond what I would expect since the client is a 3rd party application.

    This helped me take the right route when I connected OneDrive to my Linux server.

    Best regards,

    Chuck

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-04-30T14:00:35+00:00

    Thanks a lot Alex!!!

    I will follow your orientations asap and post a feedback later.

    Best regards!!!

    0 comments No comments
  4. Anonymous
    2024-04-26T15:03:48+00:00

    Thanks a lot, Parth P.

    First steps in 1 you suggested are for Windows, not for Linux, aren't they?

    Also, I have checked steps 3,4,5...

    PS. my config file at ~/.config/onedrive is set with ful default parameters:

    Configuration for OneDrive Linux Client

    This file contains the list of supported configuration fields

    with their default values.

    All values need to be enclosed in quotes

    When changing a config option below, remove the '#' from the start of the line

    For explanations of all config options below see docs/USAGE.md or the man page.

    sync_dir = "~/OneDrive"

    skip_file = "~*|.~*|*.tmp"

    monitor_interval = "300"

    skip_dir = ""

    log_dir = "/var/log/onedrive/"

    drive_id = ""

    upload_only = "false"

    check_nomount = "false"

    check_nosync = "false"

    download_only = "false"

    disable_notifications = "false"

    disable_upload_validation = "false"

    enable_logging = "false"

    force_http_11 = "false"

    local_first = "false"

    no_remote_delete = "false"

    skip_symlinks = "false"

    debug_https = "false"

    skip_dotfiles = "false"

    skip_size = "1000"

    dry_run = "false"

    min_notify_changes = "5"

    monitor_log_frequency = "6"

    monitor_fullscan_frequency = "12"

    sync_root_files = "false"

    classify_as_big_delete = "1000"

    user_agent = ""

    remove_source_files = "false"

    skip_dir_strict_match = "false"

    application_id = ""

    resync = "false"

    resync_auth = "false"

    bypass_data_preservation = "false"

    azure_ad_endpoint = ""

    azure_tenant_id = "common"

    sync_business_shared_folders = "false"

    sync_dir_permissions = "700"

    sync_file_permissions = "600"

    rate_limit = "131072"

    webhook_enabled = "false"

    webhook_public_url = ""

    webhook_listening_host = ""

    webhook_listening_port = "8888"

    webhook_expiration_interval = "86400"

    webhook_renewal_interval = "43200"

    space_reservation = "50"

    display_running_config = "false"

    read_only_auth_scope = "false"

    cleanup_local_files = "false"

    operation_timeout = "3600"

    dns_timeout = "60"

    connect_timeout = "10"

    data_timeout = "600"

    ip_protocol_version = "0"

    >>>

    >>>>>>

    <<<<<<< Service status shows some errors... I think I will need go deeper to solved. >>>>

    >

    newton@MBP2010:~$ systemctl status --user onedrive.service

    ● onedrive.service - OneDrive Free Client

    Loaded: loaded (/usr/lib/systemd/user/onedrive.service; enabled; vendor preset: enabled)

    Active: active (running) since Thu 2024-04-25 23:10:58 -03; 12h ago

    Docs: https://github.com/abraunegg/onedrive

    Main PID: 1301 (onedrive)

    Tasks: 6 (limit: 9281)

    Memory: 1.8G

    CPU: 1min 37.199s

    CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/onedrive.service

             └─1301 /usr/bin/onedrive --monitor 
    

    abr 26 10:56:44 MBP2010 onedrive[1301]: ERROR: File download size mis-match. Increase logging verbosity to determine why.

    abr 26 10:56:44 MBP2010 onedrive[1301]: ERROR: File download hash mis-match. Increase logging verbosity to determine why.

    abr 26 10:56:46 MBP2010 onedrive[1301]: Downloading file Eduardo/Water Park - Projeto Rafael Emídio_árvores.blend1 ...

    abr 26 11:50:50 MBP2010 onedrive[1301]: [953B blob data]

    abr 26 11:50:50 MBP2010 onedrive[1301]: ERROR: Microsoft OneDrive API returned an error with the following message:

    abr 26 11:50:50 MBP2010 onedrive[1301]: Error Message: Timeout was reached on handle 55B810085230

    abr 26 11:50:50 MBP2010 onedrive[1301]: Calling Function: download()

    abr 26 11:50:53 MBP2010 onedrive[1301]: ERROR: File download size mis-match. Increase logging verbosity to determine why.

    abr 26 11:50:53 MBP2010 onedrive[1301]: ERROR: File download hash mis-match. Increase logging verbosity to determine why.

    abr 26 11:51:03 MBP2010 onedrive[1301]: Downloading file Software/VmWare Fusion Player/VMware-Fusion-12.2.4-20071091_x86.dmg ... newton@MBP2010:~$

    Thanks again....

    0 comments No comments
  5. Anonymous
    2024-04-26T03:22:56+00:00

    Hello there,

    Sorry to hear you're experiencing issues with OneDrive synchronizing and hope the following solutions help you fix this frustrating syncing issue:

    1. Clear sign in credentials:

    1.1)Press the Windows key + R to open a "Run" dialog.

    1.2)Enter the path %localappdata%\Microsoft\OneDrive\settings and select OK.

    1.3)Delete the PreSignInSettingsConfig.json file.

    1. Unlink your OneDrive account:

    2.1)Select the OneDrive cloud in your notification area to show the OneDrive pop-up.

    2.2)Select the OneDrive Help and Settings icon then select Settings.

    2.3)Go to the Account tab.

    2.4) Select Unlink this PC.

    These steps was referenced from the following source and for further clarification please visit: https://support.microsoft.com/office/fix-onedrive-sync-problems-0b10108f-8459-4a7a-b912-28f8adec5a81

    1. Check for Updates: Make sure you have the latest version of the OneDrive client installed. These updates can help with bug fixes and performance related problems that could be causing your issue.

    4)Review Configuration: Double-check your OneDrive configuration settings to ensure that you've configured it correctly. Make sure that you've selected the folders you want to sync and that the sync settings match your preferences.

    1. Check Storage Space: Ensure that you have enough storage space available on your OneDrive account to accommodate all the files you're trying to sync. If you're running out of space, it can cause synchronization issues.

    I hope the following solutions help solve your issue and should you have anymore problems/concerns please do not hesitate to contact me again.

    Thanks,

    Parth P.

    0 comments No comments