Forum Discussion
MacOS Monterey - Disable Files on Demand
I use OneDrive to synch all my files with another computer at work and just upgraded to Monterey. I need to be able to search for data in the files using Spotlight/Quick Look etc. so I typically do a full sync and disable files on demand.
Since this is no longer an option with Monterey, I have instead enabled "Always Keep On This Device" from the OneDrive root folder. However, I am now seeing files that are both "Always Available on this Device" and "Not Downloaded". Aren't these two mutually exclusive?
Is there any way to disable Files on demand?
MacOS is 12.1
OneDrive is Version 21.245.1128.0002 (Standalone) with Insider Preview Updates enabled
Thanks.
- That sounds strange. I would expect it to be one or the other as you say. On my own Mac running Monterey I cannot duplicate your issue. As you say, you can't disable FOD from the OneDrive client settings but you should be able to do this with a PList as per https://docs.microsoft.com/en-us/onedrive/deploy-and-configure-on-macos#filesondemandenabled
- JoaoGomesCopper Contributor
I am also affected by this and, as such decided to investigate what was happening. I don't think you will like what I'm about to tell you…
Apparently, Microsoft is now making use of a new framework by Apple, which works almost exactly like iCloud Drive, except instead of storing your stuff in /Users/[your account]/Library/Mobile Documents, it stores it in /Users/[your account]/Library/CloudStorage.
But not really, that's just where the “file system” is stored, and it works more like a bunch of hard/symlinks than anything else; the actual files (those which you decided to store locally, that is, but mine were fortunately still there, though I was afraid they might be gone, because in their “proper” location they all seemed to be available only on the cloud!) are still stored locally in the folder of your choice, except instead of getting a true folder, you get an alias, and the actual folder is now hidden and called “.ODContainer-OneDrive” (or “.ODContainer-OneDrive-[the name of your content provider” in case you have more than one account connected at the same time; in my case, that would be my University's SharePoint account).
Here's the thing: this is a total mess, because you never get direct access even to those files set to be always available, i.e. you can't perform QuickLook actions on them. And, I'm guessing, they weren't being properly indexed by Spotlight, as you pointed out. For advanced users, this is completely unacceptable. Yes, some people will enjoy using OneDrive as a convenient cloud-based “locker”, but many others really do need a multi-device, always available offline sync and backup solution, which allows their file structure to behave as a first-class citizen at all times.So, for me, even if I did enjoy separating my files across different volumes, some in a OneDrive account and others in a Google Drive drive one, I just can't work with this anymore. To add insult to injury, even though those never synced across devices in the first place, all my custom icons and tags stopped displaying properly with this update (though, funnily and happily enough – as you will see in just a bit –, they were preserved in the .ODContainer-OneDrive folders), and my direct aliases (on the Dock and elsewhere) to folders inside of OneDrive stopped working altogether. Surely they could've come up with a migration tool which kept these aliases working, am I right? To launch such a destructive update is just amateurish, IMHO.
But really, that's not even the worst part. That Microsoft thought changing the entire working model of their OneDrive solution without prior notice was just fine and dandy, instead of doing it properly (if not that elegantly, of course) like Google did, with their successive Google Drive –> Google Backup and Sync –> Google Drive transitions and lots of advance warnings about support cut-off dates, is downright insulting. Yes, in the long run, I could accept the added opacity in the Finder, sure, but doing it like this makes it extra unacceptable, as it effectively constitutes a breach of confidence on a tool supposedly geared towards productivity. Well, these shenanigans really messed up with my productivity, and will keep having repercussions in the coming days (I don't even know if I have enough free space on my laptop to emulate the file structure I have on this Mac, for instance, and will likely be forced to anticipate by several months – and at a terrible time both financially and logistically, no less – an SSD upgrade I was mulling over), so… yeah, not very Microsoft-y of you, Microsoft.
So… do you want to know how I fixed this? Easy:
1. I quit all instances of OneDrive;
2. With the Finder active, I pressed Command+Shift+. (that is a period, yes), to make hidden files and folders temporarily visible;
3. I renamed said “.ODContainer-OneDrive” folders and removed the dot, thus making them visible;
4. I dragged the entire contents of my OneDrive folders (both of them; it's basically dead to me, and I'll only use it if someone specifically asks me to share folders through either of my accounts) into… my Google Drive folder.
5. ????
6. PROFIT!!! (because my Uni fees/scholarship cover both Office365 and GSuite subscriptions, and while the former only gives us 1 TB of free cloud storage, the latter is unlimited).
To the guys at Microsoft: sorry! It was good while it lasted, and I very much enjoyed auto-saving and one-click access to versioning when working in Word documents… But I'm more of an iWork and LibreOffice guy these days, and I always keep Time Machine backups anyway. I don't need your wares that much anymore, and your service is most definitely not dependable. Also, I will not be missing its ridiculous character set limitations (as a matter of fact, I shall be renaming a few of my files with lots of hash and pipe signs, and spaces at the end, as a way of celebration).- Yann GourvennecBrass ContributorIndeed it looks like Onedrive is definitely broken. Not that it ever worked well mind you. But now, it's completely screwed
- TAIngallsCopper Contributor
I have a 2020 mac mini that I recently updated OneDrive on and also ran in to this issue. I use CloudBerry to back up my OneDrive folder so it's very useful to be able to disable files on demand.
I did find the option to right click on the top level folder and select always keep on this device, but that didn't seem to work as expected.
My silly solution is to first set the top level folder to always keep on this device and to then run a recursive md5 check sum on every file in the OneDrive folder.find . -type f -exec md5 '{}' \;
After the md5 check sum finished each file no longer showed the cloud icon and only showed the always available on this device icon. I was also then able to successfully run a backup of the folder.
This isn't my favorite solution, but it seems to be working. I though others mind find this useful.
BTW my 2015 mac book pro hasn't gotten the most recent update to OneDrive that changed the behavior of disabling files on demand.
- Yann GourvennecBrass ContributorSounds a bit convoluted but I'm making a note of it just in case I run into this problem once more. I use Crashplan instead of Cloudberry and what you wrote made me think that maybe I'm not using the best solution and certainly not the cheapest. I'm definitely going to investigate.
- TAIngallsCopper Contributor
I did some more testing and found that files that are created on another system will show up as "Always Available on This Device" but won't be downloaded and will cause my backup to stall. To remediate this I created a small BASH script that finds any file modified since yesterday and runs the MD5 checksum on it. I then have my backup plan configured to run the script before running the backup. Hopefully this will cause any new files to be downloaded / actually available on this device.
#!/bin/bash find /Users/MYUSERNAME/OneDrive/ -type f -newermt $(date -v -1d +'%Y-%m-%d') -exec md5 '{}' \; > /Users/MYUSERNAME/pre-backup.log
Hopefully this will work for other backup solutions as well.
- DavidBurbidgeBrass ContributorUpon doing this (with a phone call to my computer science major son at college), it worked but when I tested it by creating a document on another computer and letting it flow through OneDrive, there were two problems. First, it never appeared until I right clicked the folder and selected Always Keep on this Device. Second, that file was not downloaded, just visible.
- S_FitzgeraldCopper Contributor
TAIngalls Thanks! your MD5 trick worked for me to fix the two icons issue, but it takes a long time to run. Do you know of another command that could do the same thing but a bit faster? I have 150 Gb of small (node.js etc) files to get through.
- TAIngallsCopper Contributor
The first time that you run the find with md5 it will take quite a long time. After the first long run you should be able to run the following that only scans items modified within the last day. I did see that someone else ran "head -n 1" instead to only read the first line of each file. I chose to go with md5 since I wasn't sure if something like the head command would have issues with binary files or not.
find /Users/USERNAME/OneDrive/ -type f -newermt $(date -v -1d +'%Y-%m-%d') -exec md5 '{}' \;
- RhettKBrass ContributorAlso affected by this. OneDrive has become unworkable on Mac. Microsoft, please fix ASAP.
- DavidBurbidgeBrass Contributor
I found this:
It is from January 12, 2022 but references plans back to June. It appears this is all intentional by MS. It says:
macOS 12.2 will be the last version that supports the classic Files On-Demand experience. For future macOS versions, this means:
- Files On-Demand will default to on for all users and cannot be disabled.
- Devices will migrate automatically to the new Files On-Demand as soon as they receive a macOS update. You cannot delay this update without also delaying an update to macOS.
- Both our Standalone and App Store versions of OneDrive will have the same behavior.
- Users running a developer or beta version of macOS will have the same experience as a release version of macOS.
It is not a quirk or programming oversight. It is the way they want it. But, is it MS being difficult or Apple not allowing freer access for companies to create apps for Macs?
The MS tech helper I am working with told me to use SharePoint. However, I learned that SharePoint's access to files is via OneDrive. Therefore, the files still are not on your computer.
I conclude the only answer is to fine a new cloud storage program. Or buy a PC?
- Yann GourvennecBrass ContributorI agree David, I'm thinking of moving back to Dropbox
- Yann GourvennecBrass ContributorWhat's funny though is that it's sort of working more or less properly on my new M1 MBP but my older 2016 MBP is going berserk trying to sync files which do not exist and cannot be deleted because it thinks they are in the cloud even though when you go to sharepoint they can't be seen either. I could then consider using Sharepoint online exclusively — one person in my team is doing so — but as it happens, some files are not rendered properly online. This is utter buggeration 😞
- obaskirtBrass Contributor
Today morning after many attempts, I have updated the macOS to Monterey 12.2 and re-installed the One Drive 22.0002.0103.0004 version. After these changes, I selected the "Always keep on this device" option for the root folder and also for critical folders I clicked the download cloud icon and OD started to download the files up until now and still downloading... It took more than 10 hours and it could not finish 84 GB of files. I will keep the MacBook open till morning, I hope at least some critical folders will be downloaded and I can work properly tomorrow.
- garethoakes1Copper Contributor
Well this is a complete sh!t-sh0w. I had all my files wiped today, thanks Apple and Microsoft for such a great solution </sarcasm>.
find . -type f -exec head -c 1 {} \;
I set my folders to be "Always available on this device" and forced the sync using the above. This is faster than md5 because it only reads the first byte from every file. That is enough to trigger the sync. MD5 checksum requires all bytes in the file to be downloaded first, and then needs CPU time to compute the checksum.
- Yann GourvennecBrass ContributorYou need to be a sysadmin these days to use cloud sync don’t you? Baffling. I’ll back all my files up on a stupid disconnected hard drive next weekend. One never knows. I lost a whole chunk of my client archive yesterday. Fortunately I was able to retrieve everything from my Time Capsule. Close shave.
- DavidBurbidgeBrass Contributor
Same problem for me. I cannot imagine why this was changed by Apple. I have found when I look at the OneDrive icon in the top toolbar, it shows a files as being synced/downloaded. But it is not in the spot in OneDrive where it should be. Also, when you click the OneDrive with down arrow icon and download files, it any file is added by someone who shares the folder, the icon reverts to undownloaded. Then you have to redo the download.
MS tech's only solution was to use Sharepoint. If you have done so and it works, please let me know. Thanks.
- DavidBurbidgeBrass Contributor*if any file is added...
- Yann GourvennecBrass ContributorHi David, as I wrote above, I've let sleeping dogs lie for a while and I was right to. This very afternoon, Onedrive stopped syncing and after a little while it crashed altogether. I had to reboot and upon restart, Onedrive fired up and started to sync my 60,000+ files. Last time I looked (it's on my other computer back in the office), the second icon had disappeared for all downloaded files and Onedrive was sort of working properly. Still cautious here but it looks like it was a bug and fixed itself upon the way, without even downloading a new version. Go figure it out. Anyway, don't panic, use the sharepoint (i.e. online version) if needs be. You will still be able to open your files using the Mac Apps. In due course, onedrive will certainly crash on your computer as it did on mine and all will end well. Good luck! Your sharepoint link should look like
https://ms365accountname-my.sharepoint.com/personal/username_accountame_com/
- obaskirtBrass Contributor
I am having the same problem. The app automatically updated and killed my day and still struggling. The option "always keep on device" does not download the files and all my work projects are under One Drive and I could not work today and still cannot work. I don't know how to solve this issue, at worst I will manually download files and work them locally with out using One Drive but I am not sure how to update it maybe do it manually time to time. This is a huge epic fail and very bad breaking change for all of us.
- zuscikmCopper ContributorI am not sure this is an Apple/Mac issue. I have 2 iMac desktops (1 at home, 1 at work). Both are running the same operating system: Monterey 12.1. There was no hiccup with my work computer, I can disable Files on Demand in OneDrive Preferences (that option is available). The other no longer shows the option to disable Files on Demand in Preferences. Has there been versioning of OneDrive such that a newer version is the one with the issue?
- obaskirtBrass Contributor
This problem completely killed me, literally killed me. Thanks to Microsoft and One Drive super uber developers and testers. I had a perfect life before this Files on Demand feature.
I even cannot see what's happening behind the scenes. Many files are downloading uploading etc. My available hard disk size is changing between 150GB to 70GB it is not stable.
Tomorrow I have to work and I don't know what to do. Probably I will download very important folders manually and I will delete this stupid version and wait for a proper fix.
This version created a very very bad problems. In the future, synching files will be a pain and I have to do it manually.- SarditiCopper Contributor
I can't have only on demand as sometimes I am with slow internet connection. Is the only option leaving One Drive and moving to Drop Box or iCloud? Is there any real option of disabling One Drive files on demand?
- DavidBurbidgeBrass Contributor
I agree this is caused by Microsoft and not Apple. On my second Macbook (a new Air), OneDrive has not changed. It shows OneDrive version 21.220.1024.0555. On my Pro, which is having these new problems, the version is 22.007.0109.0002.
Luckily I had not used the Air for a few days. I have disabled auto updates on it and will hustle it back and forth to work until (I hope) this is resolved by Microsoft.
And, the older OneDrive has a button to turn on Files on Demand, at the preferences. The 2022 version removes this option. I am working with a MS tech person who said he is going to research a resolution. If I get one, I will share it.
- ABCorbettCopper ContributorLooks like this announcement may be related?
https://www.macrumors.com/2022/01/25/macos-12-3-cloud-storage-changes/
- Yann GourvennecBrass ContributorMaybe an issue with Monterey + M1 machines, there is a separate version of Onedrive. I'm only having the problem with my M1 machine, not my Intel machine.
- DavidBurbidgeBrass ContributorFor what it is worth, I have been working with MS tech support. No help but after we worked for an two days, he said he thinks it's a "bug" and he is going to send it up the chain of command for review. Perhaps with enough calls to tech support and enough cases going up the chain, they will modify the program.
- ruilealCopper Contributor
I lost a large part of the day to try and understand why are my "always keep on this machine" files not keeping local. This is kind a massive showstopper for any regular one drive user on the Mac, IMHO.
In the mean time discovered that there is a developer preview for the M1 - version 22.012.0116.0001. Way faster than the intel version on my M1 MBP. However still the same issues.
Also, when I force a "always keep on this machine" (like 2nd time) on a folder, I get an error dialog: "Couldn’t communicate with a helper application".
A business application with these types of bugs in 2022 is not understandable. Please MSFT fix this!- garylynchCopper Contributor
ruileal I get the same error message.
I am totally confused by this.
The capacity of my hard disk on my iMac is 2.12TB and I only have 800GB free - which is about right as up until all these problems, my iMac was the only computer I own where i chose to keep files locally (although I use TimeMachine and do monthly drive images using Carbon Copy Cloner onto an physical hard disk).
So I do have a lot of physical content on my machine but most of my subfolders in OneDrive display the 'cloud/Arrow' icon as do the files within those folders - which I guess means that they are not physical on the iMac. So are they on the machine (which disc usage indicates) or not on my machine (as indicated by the icons)?
+ Selecting 'always keep on this device' does not change the status of the icon and clicking on the icon on the parent OneDrive folder (or one of its second lever sub folders) does not download all the content below it. It only seems to work at the folder level. for me. Am i doing something wrong?
Finally see below. On my iMac (pic 1) OneDrive is version 22.002.0103.004 and on my MacBook Air (pic 2) Onedrive is 21.230.1206.004. Both are running Monterey 12.2. The Air is working fine, is there anyway of downgrading OneDrive on the iMac so I can get on with life?
Not sure if this is a Microsoft or Apple problem, but it stinks!
- AlphanumbersCopper ContributorI have a customer that has just encountered this issue after updating to monterey.
All other Windows machines work flawless.
All week he's had this problem with files synchronising as he keeps a copy of all files local.
I've had MS support on who just took screenshots. Apparently there's a fix being released on 14th Feb but thats too far away.
It's taking far too long for files to sync from/to this Mac and it's become unreliable for him to work with colleagues on documents as his files are not being pushed/pulled in a timely fashion. Also, losing the auto save function isnt ideal.- ragettyCopper ContributorI have 21.230.1206.0004 on an Intel MBP, some folders are cloud-only / view on demand, other selected folders are syncing corrrectly. Finder integration is fine.
The just today updated to 22.002.0103.0004 on a new M1 Pro MBP is a FAIL – I have lost Finder control of what is avialable on demand and what is synced to the MBP (i.e. the Finder icons are missing, the Context Menu is a DNS - reactivating the extension did not help).- garylynchCopper ContributorHi
Yes that's the version on my iMac and it's the same version that Microsoft suggested I use. I did install (from the app store) 22.002.0201.0005 last night but had to remove it after multiple problems and go back to the one above. I do have an MacBook air (with Monterey 12.2) with 21.230.1206.0004 working as it should. Just wish I could down grade to that!