Error in Public Folders: StgOpenStorageOnILockBytes failed %1 already exists (0x80030050)

This article is meant for users of CodeTwo Public Folders. This software has been discontinued. You can check the list of currently available CodeTwo products here.

Problem:

The connection status window in CodeTwo Public Folders displays the following error message:

Error: SocketReader: dead connection detected

The log files contain the following error message:

StgOpenStorageOnILockBytes failed %1 already exists. (0x80030050)

Solution:

This problem is a result of the corruption of certain items in your CodeTwo Public Folders Syncing Master database. To fix it, the corrupted items must be removed from the database. The easiest way to achieve that is to download our dedicated tool that scans your database and removes the corrupted items for you:

  1. Use the links below to download an appropriate tool version.
  2. Copy the IOpenStorageTest.exe file to your database folders which are located as described below.
    • The main database:
      C:\ProgramData\CodeTwo\Public Folders\Syncing Master\Data
    • The copy of users' shared data:
      C:\ProgramData\CodeTwo\Public Folders\Syncing Master\DataUsers
  3. Stop the synchronization service before you run the tool. You can do this from the Other tab in the program's Administration Panel.

     

    329-1
    Fig. 1. Stopping the synchronization in the Syncing Master's Administration Panel.

  4. Right-click on each executable file (IOpenStorageTest.exe) and select the Run as administrator command. Launch the tool in both folders. The tool scans the database folders.
  5. When the scanning is complete, a window pops up, asking you for confirmation to delete the corrupted items.
  6. A copy of the deleted items will be created on your desktop.
  7. Start the synchronization service again, in your Syncing Master's Administration Panel.