Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simply does not work with Outlook 2016 ProPlus #12

Closed
WmHBlair opened this issue Dec 9, 2017 · 13 comments
Closed

Simply does not work with Outlook 2016 ProPlus #12

WmHBlair opened this issue Dec 9, 2017 · 13 comments

Comments

@WmHBlair
Copy link

WmHBlair commented Dec 9, 2017

There are multiple problems when used with Office 2016 ProPlus (Enterprise). In brief: (1) Long waits after the message indicating it's trying to get the file lock. None of the PST files are locked. This happens for every PST file. (2) There is no long wait to get the file lock for the OST file, but it never gets it and gives up almost immediately. (3) It does claim, once it does lock each PST file, that it's backing it up. However, a binary compare of the original with the backup copy reveals literally tens of thousands or hundreds of thousands (or even millions+) of differences. It does not make a bit-for-bit copy of the original file. (4) It hangs on the last PST file that is selected to be backed up. That said, it allocates a file of the correct size for that file, but no data is ever copied into it. (5) The backups that it does appear to make get made about four to seven times as fast as a simple file copy. I don't see how this program can make bit-for-bit copies any faster than Windows Explorer (or another backup utility). For example, it supposedly copies one of my 9GB PST files in 17 seconds (to a file server across a gigabit LAN connection). That's impossible (as long as my switch does not run any faster than 1Gb).

@HoffmannTom
Copy link
Owner

Hello,
thanks for your feedback.

  1. The addin is checking whether it can get an exklusive file lock to the pst or ost files.
    If it cant get such a lock, it means another program has an open handle to the file.
    I received feedback that sometimes skype has locked the file.
    You can use "process explorer" from sysinternals from microsoft to check for open handles
    (find --> find handles...)
  2. it the addin doesnt wait at ost files it means that an exclusive lock could be achieved.
    What do you mean with "give up" ? Is there an error message?
    Please note that backing up ost files is mostly not useful as it is only a cache file and cant be restored on another computer.
  3. The files are copied via WIN-API which is the same as copying with explorer or command line.
    If there are differences, one of the file was altered afterwards, you compare the wrong files or you have a hardware issue.
  4. What is the last message shown? Can you try to change the backup location to a local folder?
  5. The copy is made via Win-API (CopyFileEx). Maybe you can select only this file and check the shown transfer speed (without the other pst or ost files).

The Enterprise edition has some extra features but I dont think that the version is related to your issues.
I hope some of the hints mentioned above helps you to figure out the issue.

Greetings,
Thomas

@WmHBlair
Copy link
Author

WmHBlair commented Dec 10, 2017 via email

@HoffmannTom
Copy link
Owner

Hello,
it seems that the problems boil down to the issue with the file lock.
The backup program tries to get a lock via "CreateFile" API:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx
Maybe I can add some more debug messages to reveal the reason why this call fails.

to 2)
The backup window will stay open if there occured any error message and if a file could not be backed up.
This should prevent missing any important information. If every task was successfull, the window
will close automatically. In the current development version, a "done-message" was added.

You can get in touch via email at the old project location at:
https://www.codeplex.com/site/users/view/ThomasHoffmann
I will reply and then we can send files directly via email.

Greetings,
Thomas

@HoffmannTom
Copy link
Owner

Addendum:
Getting a file lock can also fail if there are not enough permissions to this file.
Maybe you can also try out "ProcMon" and monitor failed access rights (result = denied).

@WmHBlair
Copy link
Author

WmHBlair commented Dec 10, 2017 via email

@WmHBlair
Copy link
Author

WmHBlair commented Dec 10, 2017 via email

@WmHBlair
Copy link
Author

WmHBlair commented Dec 10, 2017 via email

@HoffmannTom
Copy link
Owner

Hello,
I created a temporary mail address: outlookbackup@shared-files.de
Greetings,
Thomas

@WmHBlair
Copy link
Author

WmHBlair commented Dec 10, 2017 via email

@HoffmannTom
Copy link
Owner

Hello,
I sent you a version with additional error information.
Hope this will lead us to the reason why an exclusive file lock is not possible.

Greetings,
Thomas

@WmHBlair
Copy link
Author

WmHBlair commented Dec 13, 2017 via email

@WmHBlair
Copy link
Author

WmHBlair commented Dec 23, 2017 via email

@HoffmannTom
Copy link
Owner

The issue was related to permissions. Due to moving the pst files to another location, the user had less permissions than the plugin requested.
The plugin was changed that less permissions are necessary.
Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants