iotaledger / iotaledger/wasp

No locks available for node without access/validation permissions

Open
#571 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
7
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I created a new setup of four validators and one public node.

I created the chain with the four validator peers and forgot to add the public node as an access node.

Upon connecting to the public node via the EVM JSON RPC, this was posted into the logs:

```
wasp | 2025-04-08T20:24:33.755094561Z ERROR WebAPI Internal Server Error: rocksdb database initialization failed: could not open new DB 'waspdb/chains/index/0x629aeef09ab0874db9b9d9dbf8098ef9e1d4f466ca7569c4ad18d1db4b0e9e7b': IO error: lock hold by current process, acquire time 1744142519 acquiring thread 16: waspdb/chains/index/0x629aeef09ab0874db9b9d9dbf8098ef9e1d4f466ca7569c4ad18d1db4b0e9e7b/LOCK: No locks available
wasp | requestURI: /v1/chain/evm
wasp | goroutine 1259 [running]:
wasp | runtime/debug.Stack()
wasp | /usr/local/go/src/runtime/debug/stack.go:26 +0x5e
wasp | github.com/iotaledger/wasp/packages/webapi/httpserver.NewEcho.func2({0x28d06b0, 0xc0003343c0}, {0x2880340, 0xc00049be40}, {0xc0007cef40?, 0x54a945?, 0x18971d0?})
wasp | /scratch/packages/webapi/httpserver/httpserver.go:89 +0x7a
wasp | github.com/iotaledger/wasp/packages/webapi/httpserver.NewEcho.RecoverWithConfig.func5.1.1()
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/middleware/recover.go:104 +0x5d1
wasp | panic({0x1fbb280?, 0xc00049be40?})
wasp | /usr/local/go/src/runtime/panic.go:792 +0x132
wasp | github.com/iotaledger/wasp/packages/evm/jsonrpc.NewIndex(0xc0001580c0, {0x22e6205?, 0x0?}, {0xc000222480?, 0x9c03f7?})
wasp | /scratch/packages/evm/jsonrpc/index.go:39 +0xb5
wasp | github.com/iotaledger/wasp/packages/evm/jsonrpc.NewEVMChain({0x28b38c0, 0xc000158018}, 0xc0005cf530, 0x1, {0x22e6205, 0x7}, {0x20a4d41, 0x13}, {0x28c7640, 0xc000659a00})
wasp | /scratch/packages/evm/jsonrpc/evmchain.go:79 +0x1ee
wasp | github.com/iotaledger/wasp/packages/webapi/services.(*EVMService).getEVMBackend(0xc000219300)
wasp | /scratch/packages/webapi/services/evm.go:92 +0x25b
wasp | github.com/iotaledger/wasp/packages/webapi/services.(*EVMService).HandleJSONRPC(0xc0003343c0?, 0xc000879900, 0xc0009020c0)
wasp | /scratch/packages/webapi/services/evm.go:117 +0x1d
wasp | github.com/iotaledger/wasp/packages/webapi/controllers/chain.(*Controller).handleJSONRPC(0xc000219380, {0x28d06b0, 0xc0003343c0})
wasp | /scratch/packages/webapi/controllers/chain/evm.go:11 +0xab
wasp | github.com/labstack/echo/v4.(*Echo).add.func1({0x28d06b0, 0xc0003343c0})
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45
wasp | github.com/iotaledger/wasp/packages/authentication.AddAuthentication.func1.1({0x28d06b0, 0xc0003343c0})
wasp | /scratch/packages/authentication/routes.go:55 +0xaf
wasp | github.com/labstack/echo/v4/middleware.CORSWithConfig.func1.1({0x28d06b0, 0xc0003343c0})
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/middleware/cors.go:215 +0x482
wasp | github.com/labstack/echo/v4/middleware.LoggerWithConfig.func2.1({0x28d06b0, 0xc0003343c0})
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/middleware/logger.go:125 +0xd8
wasp | github.com/labstack/echo/v4/middleware.BodyLimitWithConfig.func1.1({0x28d06b0, 0xc0003343c0})
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/middleware/body_limit.go:85 +0x15c
wasp | github.com/iotaledger/wasp/components/webapi.NewEcho.func3.1({0x28d06b0, 0xc0003343c0})
wasp | /scratch/components/webapi/component.go:179 +0x156
wasp | github.com/iotaledger/wasp/components/webapi.NewEcho.func2.1({0x28d06b0, 0xc0003343c0})
wasp | /scratch/components/webapi/component.go:156 +0x182
wasp | github.com/iotaledger/wasp/components/webapi.NewEcho.func1.1({0x28d06b0, 0xc0003343c0})
wasp | /scratch/components/webapi/component.go:119 +0xc8
wasp | github.com/iotaledger/wasp/packages/webapi/httpserver.NewEcho.RecoverWithConfig.func5.1({0x28d06b0, 0xc0003343c0})
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/middleware/recover.go:130 +0x111
wasp | github.com/labstack/echo/v4.(*Echo).ServeHTTP.func1({0x28d06b0, 0xc0003343c0})
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/echo.go:662 +0x126
wasp | github.com/iotaledger/wasp/components/webapi.NewEcho.RemoveTrailingSlash.RemoveTrailingSlashWithConfig.func5.1({0x28d06b0, 0xc0003343c0})
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/middleware/slash.go:117 +0x1fd
wasp | github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc0004f1448, {0x2891a60, 0xc0009a0620}, 0xc0008797c0)
wasp | /go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323
wasp | net/http.serverHandler.ServeHTTP({0xc00062bc80?}, {0x2891a60?, 0xc0009a0620?}, 0x6?)
wasp | /usr/local/go/src/net/http/server.go:3301 +0x8e
wasp | net/http.(*conn).serve(0xc000644cf0, {0x2897198, 0xc000668960})
wasp | /usr/local/go/src/net/http/server.go:2102 +0x625
wasp | created by net/http.(*Server).Serve in goroutine 215
wasp | /usr/local/go/src/net/http/server.go:3454 +0x485
```

The error did not went away after restarting.

After adding the node as an access node and restarting, the error went away.

The error resulted from a misconfiguration, but it should not happen regardless.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.