keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.91k stars 1.23k forks source link

keybase service not functional (devel mode)? #25300

Open lonnietc opened 1 year ago

lonnietc commented 1 year ago

Hello,

I have been able to compile the v6.0.2 version on my Windows system with Golang v1.17.13 and am now trying to run things in "Developer mode" for testing.

As I understand, I need to start the keybase service first which seems to start up fine (although I do not get any debug information) since the help says that the keybase service daemon is for " start the Keybase service to power all other CLI options"

PS D:\Test> .\keybase.exe service
- WARNING Running in devel mode
- INFO Binding to pipe:\\.\pipe\kbservice\Users\lonni\AppData\Local\KeybaseDevel\keybased.sock

Then I tried to do a number of other functions listed in the keybase help but I always get the message:

- ERROR API network error: Post "http://localhost:3000/_/api/1.0/invitation_request.json": dial tcp [::1]:3000: connectex: No connection could be made because the target machine actively refused it. (code 1601)

which seems to suggest that the local service is not running, but I thought that it was started with the "keybase service" command.

Can you please help as I want to run a copy keybase as a local service to connect to and develop some things?

Any help would be greatly appreciated. Thanks

lonnietc commented 1 year ago

Hello,

Is there any update on this as it would be helpful to know how to run the local service to connect to for Development Mode.

Thanks

lonnietc commented 1 year ago

Hello @joshblum and @MarcoPolo,

I wanted to follow up to see if you had received me message since I would like to run keybase as a local server so that I can connect to it locally in developer mode and do a bit of development on my Windows 11 (64-bit) system.

In one terminal I start the "keybase.exe service"

test> .\keybase.exe service

and then in another terminal I use the keybase developer name "max" (for example) and try to login, or use any other CLI command as well with the same result:

test> .\keybase.exe login

As you can see, it seems that the keybase service is running the server/daemon on the localhost port 3000.

How can I start the local server for development?

Thanks for anything that you might be able to do in assisting me to get this started.

Any help would be greatly appreciated.

lonnietc commented 1 year ago

@mmaxim and @chrisnojima

Hello All,

Would it be possible to get some help with this issue?

In "Devel Mode", I just want to run the "keybase service" in a terminal (Windows) and then use some of the keybase client commands () in the CLI to connect to the localhost running the service and complete the commands.

I have also been able to compile the "go/kbfs/kbfsdokan" and use it to mount "M:" in different ways with:

kbfsdokan.exe -debug -localuser max -bserver=memory -mdserver=memory -local-fav-storage=memory M:
and
kbfsdokan.exe -debug -localuser max -bserver=dir:fpdata -mdserver=dir:fpdata -local-fav-storage=memory M:

I would like to see the kbfsdokan mount will send the files over to localhost keybase service running on the system as well, but that is not happening for some reason.

Can you please help me? Thanks in advance.