Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Time machine failures on QNAP

I've been running Time Machine on my QNAP for a couple months now but this week this error started showing up on my MBP.


"An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."


I deleted the whole backup and re-setup Time Machine on the QNAP NAS. The backup first appears to run the initial backup but now fails completely. QNAP does regular disk checks and reports no issues with any of the drives. I have no problem accessing any of the other data on the NAS.


This error is rather unhelpful honestly.


I usually not bother with Time Machine and use other backup methods but thought I'd give it a try since I have a bunch of extra space on the NAS. I still have Crashplan running on my machine. I had been considering moving away from a this paid service to just using Glacier, S3 or another cloud drive service for offsite backup. Most of the stuff I care about tends to end up in iCloud or Google Drive already.


User uploaded file

MacBook Pro with Retina display, iOS 10.2, Touchbar

Posted on Mar 17, 2017 1:35 PM

Reply
Question marked as Best reply

Posted on Mar 20, 2017 6:52 AM

(More as information for everyone and not just yourself.)


QNAP make NAS devices, that is a box with its own internal storage, processor, network interface and software. Like almost all NAS devices the QNAP box is running a variety of Linux.


Again like almost all NAS devices - especially those using Linux it runs a version of the open source Netatalk software to implement support for AFP. Where the QNAP might fall down a bit is that I believe they are not as quick at updating their version of Netatalk software as for example NetGear.


As others have mentioned in the past Apple has made subtle changes to the AFP protocol and this means the Netatalk project developers have had to discover these changes and make matching changes. Whilst I cannot guarantee it, I suspect that Apple have stopped making changes to AFP since they have dropped some not so subtle hints that they intend to discontinue AFP at some point.


Apple now want everyone to use SMB instead and have been saying so for the last few years. Initially this resulted in a potential problem since they had originally left Time Machine still only able to work over AFP and not SMB. With the aforementioned not so subtle hints that AFP was doomed this left a gapping hole. I did therefore each year a new version of OS X came out remind them of this via the beta-test program. When Sierra came out Apple finally resolved this issue. Sierra can now backup over SMB to a suitable SMB server.


A suitable SMB server does not have to be a genuine Mac server. This time Apple have actually provided official technical information allowing other software developers to make sure their SMB implementation is able to do the things Time Machine needs. See https://developer.apple.com/library/content/releasenotes/NetworkingInternetWeb/T ime_Machine_SMB_Spec/


Going back to NAS devices, just like Netatalk is the software typically used for AFP, SAMBA is the software typically used for implementing SMB in NAS devices. Whilst the current official release of SAMBA does not yet have all the changes needed for full Time Machine compatibility added - something I am surprised about, the SAMBA developers are aware of this and do appear to be working on this and a pre-release version may have already added all the needed changes. See https://bugzilla.samba.org/show_bug.cgi?id=12380


I would suggest checking for any available software updates for your QNAP and installing them, this may include Netatalk updates. At some future time a further QNAP update will hopefully also include a SAMBA update with the required changes for that as well.


For what it's worth I currently use a NetGear ReadyNAS as a Time Machine server via AFP and find it no less reliable than a genuine Apple Time Machine solution. If you want the latest, most compatible, genuine 100% Time Machine solution then using a Mac running Sierra and Server.app as a Time Machine server is the best option.


A Time Capsule would not be anywhere near the best option, not only does it only do AFP for Time Machine backups, it has already been officially discontinued and is therefore unlikely to every get Time Machine over SMB support added to it. This also ignores the fact that the hard drive inside a Time Capsule is notorious for failing.

19 replies
Question marked as Best reply

Mar 20, 2017 6:52 AM in response to gadgetvirtuoso

(More as information for everyone and not just yourself.)


QNAP make NAS devices, that is a box with its own internal storage, processor, network interface and software. Like almost all NAS devices the QNAP box is running a variety of Linux.


Again like almost all NAS devices - especially those using Linux it runs a version of the open source Netatalk software to implement support for AFP. Where the QNAP might fall down a bit is that I believe they are not as quick at updating their version of Netatalk software as for example NetGear.


As others have mentioned in the past Apple has made subtle changes to the AFP protocol and this means the Netatalk project developers have had to discover these changes and make matching changes. Whilst I cannot guarantee it, I suspect that Apple have stopped making changes to AFP since they have dropped some not so subtle hints that they intend to discontinue AFP at some point.


Apple now want everyone to use SMB instead and have been saying so for the last few years. Initially this resulted in a potential problem since they had originally left Time Machine still only able to work over AFP and not SMB. With the aforementioned not so subtle hints that AFP was doomed this left a gapping hole. I did therefore each year a new version of OS X came out remind them of this via the beta-test program. When Sierra came out Apple finally resolved this issue. Sierra can now backup over SMB to a suitable SMB server.


A suitable SMB server does not have to be a genuine Mac server. This time Apple have actually provided official technical information allowing other software developers to make sure their SMB implementation is able to do the things Time Machine needs. See https://developer.apple.com/library/content/releasenotes/NetworkingInternetWeb/T ime_Machine_SMB_Spec/


Going back to NAS devices, just like Netatalk is the software typically used for AFP, SAMBA is the software typically used for implementing SMB in NAS devices. Whilst the current official release of SAMBA does not yet have all the changes needed for full Time Machine compatibility added - something I am surprised about, the SAMBA developers are aware of this and do appear to be working on this and a pre-release version may have already added all the needed changes. See https://bugzilla.samba.org/show_bug.cgi?id=12380


I would suggest checking for any available software updates for your QNAP and installing them, this may include Netatalk updates. At some future time a further QNAP update will hopefully also include a SAMBA update with the required changes for that as well.


For what it's worth I currently use a NetGear ReadyNAS as a Time Machine server via AFP and find it no less reliable than a genuine Apple Time Machine solution. If you want the latest, most compatible, genuine 100% Time Machine solution then using a Mac running Sierra and Server.app as a Time Machine server is the best option.


A Time Capsule would not be anywhere near the best option, not only does it only do AFP for Time Machine backups, it has already been officially discontinued and is therefore unlikely to every get Time Machine over SMB support added to it. This also ignores the fact that the hard drive inside a Time Capsule is notorious for failing.

Mar 23, 2017 10:48 PM in response to gadgetvirtuoso

After a bunch of troubleshooting the ultimately solution appears to be similar as to this other thread.


Re: Backup weak variable error


I didn't find this error specifically but I did find a number of errors in the log that were quite similar and thought it couldn't hurt to try turning off Cloud Drive.


It took a while for the TM backup to complete but both appear to be running successful again. I'm going to try turning Cloud Drive back on and see if the backups continue to run without any further interference.


This other site (http://pondini.org/TM/Troubleshooting.html) is also helpful with a number of different issues. None of these worked or didn't apply in this case.

Mar 17, 2017 1:53 PM in response to John Galt

Not true according to Apple's support documents. Mine is the Network volume using AFP.


Backup disks you can use with Time Machine - Apple Support


Backup disks you can use with Time Machine

You can use Time Machine with a drive connected to your Mac, a drive built into or connected to a Time Capsule, or a supported network volume.

Time Machine can back up the data on your Mac to these backup disks:

  • An external USB, Thunderbolt, or FireWire drive connected to your Mac
  • An AirPort Time Capsule's built-in drive (any model)
  • An external USB drive connected to an AirPort Time Capsule (any model) or AirPort Extreme (802.11ac model only)
  • Network volumes connected using Apple File Protocol (AFP)

Mar 19, 2017 3:54 PM in response to John Galt

So I also have another external drive that I connected to my Airport Extreme. I've tried to use both the shared storage and my account storage and both end up with the same result. The TM error is a lot less than helpful. I've trashed the setup on the drive to start fresh several time without any success.


Going this route is totally Apple's supported method but it isn't any more robust as far as I can tell.



User uploaded file

Mar 20, 2017 7:40 AM in response to gadgetvirtuoso

In case you are confused by some of the replies to this Discussion, all models of the AirPort Time Capsule are still being produced, still available, and as of Saturday there were still plenty of them on the shelf at the Apple Store Union Square:


User uploaded file


I have yet to experience a single failure to back up or restore, nor a single Time Capsule hard disk failure. This despite using many Macs, many Time Capsules, many AEBSs, in many locations, over many years, using many OS X / macOS versions, using every conceivable supported Time Machine configuration.


It has not been 99.999% reliable. It has been 100% reliable.


Best wishes with your unsupported configuration.

Mar 17, 2017 10:18 PM in response to John Galt

John Galt wrote:


AFP is proprietary software that Apple does not license to anyone.

Apple did develop this proprietary protocol but there's no licensing for it. There are lots of open source projects that have implemented it to allow people to connect and use Macs with their servers. SMB 2 and 3 are more popular and more widely available but you still need AFP if you want any kind of TM support.


https://developer.apple.com/library/content/documentation/Networking/Conceptual/ AFP/Introduction/Introduction.html

Mar 19, 2017 5:35 PM in response to gadgetvirtuoso

Use Console.app to search for 'backup' in the system logs, which should contain more specific information.


If I understand correctly, you are getting the same message with both an external disk and a NAS as the TM target, which suggests to me you need to try either (a) rebuild your Spotlight index:


How to rebuild the Spotlight index on your Mac - Apple Support


and/or (b) use Disk Utility 'First Aid' to check and repair the disk you are attempting to backup.


The 'problem may be temporary' suggests to me that a third-party application is interfering with the copying process. If you have installed a third-party 'antivirus' or 'cleaner' app it's probably that so uninstall it. Actually, uninstall it in any case.


C.

Mar 17, 2017 2:21 PM in response to gadgetvirtuoso

Don't think you read the entire thing:


Use a network-based disk

If your backup disk is on a network, the network server must use Apple File Protocol (AFP) file sharing. Both your Mac and the networked backup disk should have OS X v10.5.6 or later. The AFP disk must also be "mounted" (available to your Mac) when you set it as your backup disk in Time Machine preferences.

  1. From the Finder, choose Go > Connect to Server.
  2. Enter the server address, or your AirPort Extreme Base Station's LAN IP address (by default 10.0.1.1).
  3. Enter the username and password required to access the network disk(s).
  4. Select the desired disk(s) from the available volumes.
  5. Select the volume from Time Machine.

After you select the network disk in Time Machine preferences as a backup disk, Time Machine automatically connects to it when it’s time to backup or restore your data.


Since your QNAP doesn't run OS X 10.5.6 or newer, think a reliable Time Machine backup is what you don't have. You're relying on QNAP to perfectly emulate AFP server that is built in to OS X/macOS, which is up to QNAP not Apple. Other vendors (like WD MyCloud's) have similar problems as you have, thinking that AFP emulation (or also SMB I think) is not so easy perhaps.

Good luck...

Mar 17, 2017 2:27 PM in response to dot.com

Perhaps you might have your QNAP and another Mac as test beds and do backups to both and analyze and compare the network traffic between the two and see what is different. That would be a wonderful research project and go a long way in explaining why these AFP emulator NAS devices have a problem. Look forward to seeing the results of anyone who tackles that problem.

Mar 17, 2017 11:16 PM in response to gadgetvirtuoso

There are lots of open source projects that have implemented it to allow people to connect and use Macs with their servers. SMB 2 and 3 are more popular and more widely available but you still need AFP if you want any kind of TM support.


Correct. Since Apple can (and does) change AFP at their whim those open-source products will never be reliable with Time Machine... as I wrote.


It has been nearly a decade after Time Machine was first implemented, yet questions such as yours continue to appear on this site with disturbing regularity. Apple has never supported anything other than the devices specified in Time Machine's support documentation. If you want to use your non-Apple NAS for backups, use something else.

Mar 18, 2017 9:17 AM in response to gadgetvirtuoso

Well the implementation is up to QNAP and anyone else - if they have a bug or a difference between what Apple has done to implement AFP and what they do, then guess what? Something may not work the same as what the Apple implementation does.


So still have to agree with what John Galt and others say about third-party NAS devices - they might work and them might not, and looks like you're in the latter category. What does QNAP say about what sort of issues their box has with Time Machine? Wonder if they have some sort of test bed that does comparison of what their NAS solutions do versus a real OS X/macOS computer does? Good question for them.


Wonder if you might try to use SMB instead of AFP if your results would change?


Anyway, good luck...

Time machine failures on QNAP

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.