1

I am using ObjectBox Admin in Windows through WSL (Docker in WSL, using objectbox-admin.sh) and accessing a db file in Documents folder (shared with WSL).

From a browser I can access the contents in ObjectBox Admin (at localhost:8081) without problem, but when CRUD action takes place, the UI doesn't show the updated data that are in the boxes. Even page refresh (CTRL-R) doesn't help.

In order to solve this, I need to stop the docker container and restart it in order to reload the DB from the disk and then refresh the page in the browser.

Is this the typical behavior for anyone else or it is just on my system ?

5
  • 2
    I can reproduce this. This occurs when the database file is stored on a Windows file system. It works fine when the database file is stored within the WSL distro's file system. Commented Jan 13 at 13:55
  • Tried the case on my Linux system and it seems that you are right: objectbox admin works as expected. On wsl there are issues with file permissions, since the antivirus or smt else, doesn't allow Android Studio to create files direct in a WSL directory (ie \\wsl.localhost\Ubuntu\home\user) Commented Feb 2 at 17:11
  • Also, there is a note in the web page that I just noticed: "For database files stored on a Windows file system (NTFS), to see changes to the database, Admin needs to be restarted." Commented Feb 2 at 17:30
  • I added that note based on this question 😄, so thank you for making us aware! Commented Feb 4 at 6:20
  • Ha ha ha. So recursive... Commented Feb 24 at 14:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.