BVersluis Posted January 20 Share Posted January 20 (edited) 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: Before installing the Onedrive docker container, make sure you created a configuration and data folder first (see template for more information). Create the Onedrive docker container using the template. 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. Open the Unraid terminal and type: docker start your_container_ID --interactive (use right mouse paste to paste your container ID in the terminal) 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. You can close the terminal, restart the container and everything should be working from now on. 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 March 18 by BVersluis Additional information Quote Link to comment
kri kri Posted January 23 Share Posted January 23 (edited) 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 January 24 by kri kri 1 Quote Link to comment
kri kri Posted January 28 Share Posted January 28 Could this GUI addon be added? GitHub - bpozdena/OneDriveGUI: A simple GUI for OneDrive Linux client, with multi-account support. Quote Link to comment
BVersluis Posted January 29 Author Share Posted January 29 (edited) 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 January 29 by BVersluis Quote Link to comment
kri kri Posted January 29 Share Posted January 29 (edited) 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 January 29 by kri kri Quote Link to comment
BVersluis Posted January 30 Author Share Posted January 30 (edited) 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 January 30 by BVersluis Quote Link to comment
cholzer Posted February 7 Share Posted February 7 (edited) 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 February 7 by cholzer Quote Link to comment
bigrizz Posted March 10 Share Posted March 10 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? Quote Link to comment
cholzer Posted March 10 Share Posted March 10 8 minutes ago, bigrizz said: Has anyone else encountered this issue? yeah, here is the real fix. Quote Link to comment
MSDFRIDGE Posted April 20 Share Posted April 20 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? Quote Link to comment
kri kri Posted April 21 Share Posted April 21 What is my best bet for copying a folder into my synced onedrive folder? I would like to rysnc / copy a set of folders into my onedrive folder. My onedrive is syncing to /mnt/user/data/onedrive/username Thanks! Quote Link to comment
Recommended Posts
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.