Restore Metadata Errors

Hello:

I’m trying some complete-volume file restores on macOS client 2.2.4; the restore seems to go well - but at the end of the process I’m getting 9000+ errors in the server log, all showing stuff along these lines:

Errors    23/02/18 16:18    Error setting access and modification time of symlink "/Volumes/USB/var" -1 errno: 62
Errors    23/02/18 16:18    Error setting unix metadata of /Volumes/USB/var

All the errors appear to be symlink specific - I can’t see any such errors that relate to normal files. I’ve tried running urbackupclientctl as a normal user, and as root - with the same issue.

Any thoughts? Any further information which would be helpful?

Thanks,

Pants.

Hello:

Please forgive me if this is useless noise, but I’ve been digging around to look into this issue. I’m only an amateur developer - so be gentle on me!

It looks like the error comes from line 629 of urbackup_backend / urbackupclient / FileMetadataDownloadThread.cpp:

int fd = open(fn.c_str(), O_WRONLY | O_NOFOLLOW | O_SYMLINK | O_CLOEXEC);

But according to open(2) [osx man page] :

If O_NOFOLLOW is used in the mask and the target file passed to open() is a symbolic link then the open() will fail.

Does this explain the error?

Thanks,

Pants.

That was exacly the problem. Should be fixed with the new client version.

Hi @uroni

I saw the release notes for 2.2.5 this morning and smiled bigly - many thanks!

Pants.