[SUPPORT] Bversluis/ Onedrive


Recommended Posts

Support thread for unraid docker template.

 

This docker image was already created by the developer. I've just created the unraid template for it using driveone/onedrive:latest.

 

GitHub: https://github.com/abraunegg/onedrive
DockerHub: https://hub.docker.com/r/driveone/onedrive
 

Installation instructions:

  1. Before installing the Onedrive docker container, make sure you created a configuration and data folder first (see template for more information).
  2. Create the Onedrive docker container using the template.
  3. Stop the container and find the container ID. (In the right upper corner of the docker page, switch over from Basic view to Advanced view. Now you can see the Container ID for your newly made container (for example 72409c107bd0). Copy this number.
  4. Open the Unraid terminal and type: docker start your_container_ID --interactive (use right mouse paste to paste your container ID in the terminal)
  5. Press enter and the container starts in an interactive mode and a link to Microsoft is shown in the terminal. You open this link by clicking on it (or copy it to your browser) and log in with the Microsoft credentials of the Onedrive account you want to add. If successful, a blank page is shown. Copy the full address of this page and past it (right mouse and paste) in the terminal as the response URL and press enter. If the link is accepted, the client immediately starts downloading your files.
  6. You can close the terminal, restart the container and everything should be working from now on.
  7. For every Onedrive account you want to sync with Unraid, you need to create a new docker container with a different folder for the configuration and data files.

 

 

Alternative installation instructions for installation with docker compose in:

 

In case you may encounter permission errors when trying to access your downloaded files when using onedrive multiple accounts, check the solution below by Cholzer:

 

 

Edited by BVersluis
Additional information
Link to comment

This is awesome, thanks so much. Struggled getting rclone working but this works a treat. 

 

edit: I would like to sync / backup my onedrive share using rsync or vorta. I am getting permissions error since I assume the permissions are for each user. Should I rsync to another location? I have a backup folder under /data 

Edited by kri kri
  • Like 1
Link to comment
On 1/28/2023 at 2:28 AM, kri kri said:

Could this GUI addon be added? GitHub - bpozdena/OneDriveGUI: A simple GUI for OneDrive Linux client, with multi-account support.

Sorry, but there is no existing docker image as far as I know with the GUI installed. You could try install it in your docker container using the installation instructions, but there is no easy way. Creating a new fork/docker image is beyond my capabilities... If you want to solve your permission errors and want a GUI, it might be easier to create a linux VM instead of a docker container and follow the installation instructions from abraunegg and bpozdena to install the onedrive client and GUI. A docker container is more convenient and simple to use, but has it's limitations...

Edited by BVersluis
Link to comment

I am getting an error on one of my dockers:

 

ERROR: A database consistency issue has been caught. A --resync is needed to rebuild the database.

** Press ANY KEY to close this window ** 

 

Any ideas how to fix?

Edited by kri kri
Link to comment
17 hours ago, kri kri said:

I am getting an error on one of my dockers:

 

ERROR: A database consistency issue has been caught. A --resync is needed to rebuild the database.

** Press ANY KEY to close this window ** 

 

Any ideas how to fix?

https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md look under resync for possible causes and how to fix. Alternatively you can just remove the container and the content of the related data folder and reinstall...

Edited by BVersluis
Link to comment

Currently running this onedrive application in an ubuntu VM and want to move over to docker.

As I am using webhooks for realtime updates so I need to set webhook_enabled, webhook_public_url and the webhook_listening_port in the conf.
But where is the config for this docker located?
It is not in the /conf folder that has to be configured. 😅

 

*edit* I figured it out. :)
 

1. ideally you do this before you even add the onedrive docker template to your unraid server
2. create the configuration folder as described in the unraid onedrive docker manual
3. download the original config file from here https://raw.githubusercontent.com/abraunegg/onedrive/master/config

4. store that config file in the configuration folder of the onedrive docker

5. remove the # ONLY infront of the settings you want to change, and change the setting accordingly (in my case webhook_enabled, webhook_public_url and the webhook_listening_port as well as set sync_dir_permissions = "777" and sync_file_permissions = "777")

6. do not touch any of the other settings you dont want to change! (i.e. do not change the _dir paths!)
7. follow the rest of the onedrive docker manual

This way your changes also survive a docker restart.

Edited by cholzer
Link to comment
  • 1 month later...

Thank you so much for this! I've been waiting for an elegant solution to sync to OneDrive. Like @kri kri, I tried getting rclone to work and failed miserably.

 

One issue I did encounter was that I didn't have permission to access any of the folders that were downloaded from OneDrive to my server from my Windows client machine. I ran the permission fix in settings and seems to have fixed the current ones. I'm hoping it's a permanent fix and that I don't have to fix the permissions every time a new folder is created on the server. Has anyone else encountered this issue?

Link to comment
  • 1 month later...

I have successfully setup this container, and it immediately began to sync my local specified folder in unraid to the root of my personal OneDrive.

I was hoping to be able to specify a SharePoint location like the description suggested was possible. I would like these files to be owned by the organization and not be located and owned in the user's OneDrive folder. Perhaps a heavy Windows VM is the only way to accomplish this?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.