"LockFileEx() failed" error when opening .realm on Windows via WSL

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Describe the bug
      If I attempt to open a database in Realm Studio that lives on the WSL instance, I get an error:

      LockFileEx() failed: Incorrect function.
      

      and

      "No schema selected"
      

      This happens with both "File open" and double-clicking the file.

      To Reproduce
      Steps to reproduce the behavior:

      1. Create a realm file in a WSL instance
      2. Try and open it
      3. See error

      Expected behavior
      If I copy the .realm file to the Windows file system, it opens just fine.

      Screenshots

      Versions:

      • OS: Ubuntu 20.04.3 LTS on Windows 11 via WSL (2)
      • Studio Version: 11.1.1
      • Realm Object Server version [e.g. 3.0.1] <-- never heard of it

      Additional context
      I also tried opening it when it wasn't in use, same result.

              Assignee:
              Unassigned
              Reporter:
              Unito Sync Bot
              Archiver:
              Marc Greenfield

                Created:
                Updated:
                Resolved:
                Archived: