Problems with iOS File Sharing on Server 5.1
Problems with iOS File Sharing on Server 5.1
I am attempting to use iOS File Sharing on my server running El Capitan (10.11.4) and OS X Server 5.1. For a variety of other reasons, I wiped the machine and did a clean install of El Capitan (after erasing the partition) and then installed Server. Here is what I'm seeing:
I can create the shares on the server just fine, and set the AFP, SMB, and iOS check boxes in the Share Point's settings. Then, on an iOS device, I can go to “Settings -> Mail, Contacts, Calendars -> Add Account -> Other -> Add OS X Server Account “ and select the server and successfully log in.
Once that’s done, things works as expected for a little while. That is, on the iOS device, from the document picker, I can choose “Locations”, select the server, and see the share points. But, after a while (usually a couple hours), the iOS device will no longer connect. It “spins” for quite a while and comes back with either “Request Timed Out” or "Unable to Download" errors.
On the Server, I’ve checked the iOS File Sharing logs and see quite a few of these types of messages:
Apr 7 08:03:06 Server sdhd[4848] <Error>: #diupfiPPfIa0@diupfiPPfIa0: Could not connect to Postgres. Please make sure it is running and has the correct access.
Apr 7 10:42:30 Server sdmd[3352] <Error>: #@com.apple.root.default-qos: Could not connect to Postgres. Please make sure it is running and has the correct access.
And, even when it’s working, the logs show many of these types of messages:
Apr 6 23:03:07 Server sdmd[3352] <Error>: #8622B8F1-15EA-443B-B09C-A8E4DEFE1267@8622B8F1-15EA-443B-B09C-A8E4DEFE1267: Failed to set extended attributes on '/Library/Server/ServerDocs/Data/d079b9.app': No such file or directory
Apr 6 23:07:23 Server sdhd[4848] <Error>: #E0PXhD6VywmU@E0PXhD6VywmU: failed allocating documentID for path:'/Volumes/Shares/Shared/Public/.apdisk' parentFileID:79704 fileID:79705 size:292 mtime:1347727570 mode:-rw-r--r-- documentID:0 generationID:2 fd:5 refs:2147483647
I’ve looked at permissions (both file-level and share-level) of the share points, which seem fine. I’ve run “first aid” on the disks, which comes back fine. I even resorted to wiping the machine again, and reinstalling everything again, in case I inadvertently messed something up. The same problem occurs.
Any ideas as to what might be causing this or ways to fix and/or work around it? Or, perhaps other troubleshooting ideas?
(as an aside, I’ve been also seeing intermittent bonjour issues, where the server will stop showing up in Finder on Macs on the network, and even also stop accepting connection from a Mac trying to access the shares. This often just starts working again on its own. Not sure if it’s related.)
Thanks.