Doxense/foundationdb-dotnet-client

Failing just to connect - Hello world?

jjoergensen opened this issue · 2 comments

Hi,

I'm having some difficulty getting started with the FoundationDB .NET API. I'm not sure if I'm missing something obvious, but the documentation seems outdated and I'm having trouble just connecting to the cluster. I cloned the git repository and built it using VS2022. When I try to run FdbShell.exe -connfile=C:\ProgramData\foundationdb\fdb.cluster I get the following error: "Using API v620 (max 630)" and "Failed to get coordinators state from cluster: Operation aborted because the transaction timed out".

The cluster is running and I can use a simple 'fdbcli'. Can someone give me some guidance about the following:

  • After installing the Windows MSI, do I need to move the fdb_c.dll from C:\Program Files\foundationdb\bin to somewhere else? Do I need to copy it into my output folder?
  • Are there specific API version issues I need to be aware of to use this project?
  • Is there an easy way to figure out what goes wrong?

Here is what I installed on the server (Ubuntu):
foundationdb-clients_6.3.24-1_amd64.deb
foundationdb-server_6.3.24-1_amd64.deb

and on the client-side where the .net project runs, I installed foundationdb-6.3.24-x64.msi, but I also tested out foundationdb-6.3.12-x64.msi without any luck.

I'm stuck, so any clues would be very helpful. Thank you.

Looks like I could be facing some versioning issue with protocol incompatibilities - also mentioned here apple/foundationdb#6490 (comment)

I installed 6.3.23 instead and it solved my issue.