objectbox / objectbox-dart

Flutter database for super-fast Dart object persistence
https://docs.objectbox.io/getting-started
Apache License 2.0
918 stars 116 forks source link

ObjectBox Admin with Docker not working in Windows #603

Closed VarmaTech closed 1 month ago

VarmaTech commented 2 months ago

Hi,

https://docs.objectbox.io/data-browser#run-via-docker

As per the document we have download and did the steps to view data.mdb file but below is the error we got

$ ./objectbox-admin.sh 
Objectbox Admin (Docker-Version)

NOTE: No database found at location '.', trying default location ('./objectbox') ..
Found database at local location '/d/browserOB/objectbox'.
Open http://127.0.0.1:8081 in a browser.
Once done, hit CTRL+C to stop 'ObjectBox Admin' Docker container.
==================================================================
Starting server on http://0.0.0.0:8081
Could not start server: Database at path doesn't exist: /db

usage: ./objectbox-admin.sh [options] [<database-directory>]

<database-directory> ( defaults to ./objectbox ) should contain an objectbox "data.mdb" file.

Available (optional) options:
  [--port <port-number>] Mapped bind port to localhost (defaults to 8081)
greenrobot-team commented 2 months ago

Thanks for reporting! I assume by Windows you mean via WSL2? What distro are you using? We have tested this with Ubuntu 22.04.

Edit: The path /d/browserOB/objectbox hints that this was likely not run from a Linux distro.

github-actions[bot] commented 1 month ago

Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue.