karlsen-network / karlsend

Karlsend is an attempt to stay a GPU-friendly and ASIC-resistant BlockDAG implementation written in Go
https://karlsencoin.com
ISC License
63 stars 26 forks source link

Error running daemon #9

Open IamOldBoy opened 11 months ago

IamOldBoy commented 11 months ago

Hi guys, I'm currently creating a wallet but I'm receiving the following error when initially trying to run the daemon - "Error connecting to RPC server localhost: error connecting to address localhost:42110: error connecting to localhost:42110: context deadline exceeded". Any idea?

Error received after the following:

2023-12-07 12:48:09.702 [INF] KSWD: Listening to TCP on localhost:8082 2023-12-07 12:48:09.702 [INF] KSWD: Connecting to a node at localhost...

I hope someone has an idea. This is over my head :) Thanks!

IamOldBoy commented 11 months ago

The issue is when I run the BAT file -

image

"Unable to start karlsend: not found"

My BAT file states the following -

: XXX

karlsend.exe --utxoindex

goto xxx

Here is my Dir -

Mode LastWriteTime Length Name


-a---- 11/18/2023 6:34 AM 23070693 genkeypair.exe -a---- 11/18/2023 6:34 AM 25287855 karlsenctl.exe -a---- 12/6/2023 5:16 PM 41502753 karlsend-v1.0.0-win64.zip -a---- 11/18/2023 6:34 AM 38473722 karlsend.exe -a---- 11/18/2023 6:34 AM 29652776 karlsenminer.exe -a---- 11/18/2023 6:34 AM 33331151 karlsenwallet.exe -a---- 12/7/2023 12:55 PM 319 _KARLSEN.txt -a---- 12/6/2023 5:20 PM 49 __karlsend.bat

TheKurtix commented 10 months ago

Same problem

marsidorowicz commented 10 months ago

i have similar:

rpc error
github.com/karlsen-network/karlsend/infrastructure/network/rpcclient.init
        C:/karlsen_build/infrastructure/network/rpcclient/log.go:8
runtime.doInit1
        C:/Program Files/Go/src/runtime/proc.go:6740
runtime.doInit
        C:/Program Files/Go/src/runtime/proc.go:6707
runtime.main
        C:/Program Files/Go/src/runtime/proc.go:249
runtime.goexit
        C:/Program Files/Go/src/runtime/asm_amd64.s:1650
Method unavailable when karlsend is run without --utxoindex
github.com/karlsen-network/karlsend/infrastructure/network/rpcclient.(*RPCClient).convertRPCError
        C:/karlsen_build/infrastructure/network/rpcclient/rpcclient.go:181
github.com/karlsen-network/karlsend/infrastructure/network/rpcclient.(*RPCClient).GetBalancesByAddresses
        C:/karlsen_build/infrastructure/network/rpcclient/rpc_get_balances_by_addresses.go:17
github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server.(*server).collectAddresses
        C:/karlsen_build/cmd/karlsenwallet/daemon/server/sync.go:161
github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server.(*server).collectAddressesWithLock
        C:/karlsen_build/cmd/karlsenwallet/daemon/server/sync.go:152
github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server.(*server).collectRecentAddresses
        C:/karlsen_build/cmd/karlsenwallet/daemon/server/sync.go:129
github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server.(*server).sync
        C:/karlsen_build/cmd/karlsenwallet/daemon/server/sync.go:30
github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server.Start.func1
        C:/karlsen_build/cmd/karlsenwallet/daemon/server/server.go:102
github.com/karlsen-network/karlsend/util/panics.handleSpawnedFunction
        C:/karlsen_build/util/panics/panics.go:84
github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server.init.GoroutineWrapperFunc.func1.1
        C:/karlsen_build/util/panics/panics.go:33
runtime.goexit
        C:/Program Files/Go/src/runtime/asm_amd64.s:1650
error syncing the wallet
github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server.Start.func1
        C:/karlsen_build/cmd/karlsenwallet/daemon/server/server.go:104
github.com/karlsen-network/karlsend/util/panics.handleSpawnedFunction
        C:/karlsen_build/util/panics/panics.go:84
github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server.init.GoroutineWrapperFunc.func1.1
        C:/karlsen_build/util/panics/panics.go:33
runtime.goexit
        C:/Program Files/Go/src/runtime/asm_amd64.s:1650

like github.com/karlsen-network/karlsend/infrastructure/network/rpcclient.init is missing

also Method unavailable when karlsend is run without --utxoindex show up while karlsend.exe –-utxoindex runs in cmd as admin

if karlsend not running: 2023-12-08 11:19:53.918 [INF] KSWD: Listening to TCP on localhost:8082 2023-12-08 11:19:53.918 [INF] KSWD: Connecting to a node at localhost... Error connecting to RPC server localhost: error connecting to address localhost:42110: error connecting to localhost:42110: context deadline exceeded

this is what karlsend see while tryining tun daemon: 2023-12-08 11:25:05.959 [INF] TXMP: RPC Incoming connection from [::1]:62600 #1 2023-12-08 11:25:06.124 [INF] NTAR: Disconnected from <: [::1]:62600>

jasondaros commented 10 months ago

Same issue on linux while running command ./karlsend –utxoindex in another windows

marsidorowicz commented 10 months ago

let me add i tried with -- and - for utxoindex

marsidorowicz commented 10 months ago

guys silly thing when .\karlsend.exe --utxoindex doesnt works but .\karlsend.exe /utxoindex works

IamOldBoy commented 10 months ago

Solved for me. I deleted the datadir2 folder in C:\Users...\AppData\Local\Karlsend\karlsen-mainnet.