Comments (3)
Seems like redis recently made backward incompatible API changes: redis/go-redis#1333
May be solved by #17
from ortelius.
The build still fails after #17. Same error on services/avm_index/redis.go
# github.com/ava-labs/ortelius/services/avm_index
services/avm_index/redis.go:44:20: not enough arguments in call to pipe.Set
have (string, []byte, number)
want (context.Context, string, interface {}, time.Duration)
services/avm_index/redis.go:48:21: not enough arguments in call to pipe.Incr
have (string)
want (context.Context, string)
services/avm_index/redis.go:52:22: cannot use recentTxsKey (type string) as type context.Context in argument to pipe.LPush:
string does not implement context.Context (missing Deadline method)
services/avm_index/redis.go:56:22: not enough arguments in call to pipe.LTrim
have (string, number, number)
want (context.Context, string, int64, int64)
services/avm_index/redis.go:60:21: not enough arguments in call to pipe.Exec
have ()
want (context.Context)
services/avm_index/redis.go:66:21: not enough arguments in call to r.client.cmdable.Get
have (string)
want (context.Context, string)
services/avm_index/redis.go:75:21: not enough arguments in call to r.client.cmdable.Get
have (string)
want (context.Context, string)
services/avm_index/redis.go:84:24: not enough arguments in call to r.client.cmdable.LRange
have (string, number, int64)
want (context.Context, string, int64, int64)
ERROR: Service 'stream-consumer' failed to build: The command '/bin/sh -c go get ./cmds/...' returned a non-zero code: 2
Passing client.Context() as first parameter leads to a successful build:
Step 5/12 : RUN go get ./cmds/...
---> Using cache
---> 25bcc524fba4
Step 6/12 : RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /opt/orteliusd ./cmds/orteliusd/*.go
---> Using cache
---> ff2bdb53f029
Step 7/12 : FROM scratch
--->
Step 8/12 : VOLUME /var/log/ortelius
---> Using cache
---> 5c98b86b0f65
Step 9/12 : VOLUME /var/lib/ortelius
---> Using cache
---> 76e5b4eac49e
Step 10/12 : COPY --from=0 /opt/orteliusd /opt/orteliusd
---> Using cache
---> 130f04e45ee2
Step 11/12 : COPY --from=0 /go/src/github.com/ava-labs/ortelius/docker/config.json /var/lib/ortelius/config.json
---> Using cache
---> c1b85b4dfab1
Step 12/12 : ENTRYPOINT ["/opt/orteliusd"]
---> Using cache
---> 55dd94a01b3b
Successfully built 55dd94a01b3b
Successfully tagged docker_api:latest
Updated #17
from ortelius.
This is fixed now. Thanks for the report.
from ortelius.
Related Issues (20)
- Migration for PostgreSQL is not correct HOT 2
- Redis and mysql too many open files error HOT 4
- may avaxAssetID,xChainID be configured from config file HOT 1
- Transaction Details Not Found: AcHrhZQFHnAkbp5U4LmbpjjUnSFAZqnDcLwNr54NYJo8WAbjU HOT 2
- transaction ID was not found in the Avalanche Explorer: AcHrhZQFHnAkbp5U4LmbpjjUnSFAZqnDcLwNr54NYJo8WAbjU HOT 1
- Transaction Details Not Found
- Binance withdrawal pending HOT 1
- Axav ; Transaction Details Not Found HOT 8
- Avax trasnfer HOT 1
- failed to load resource HOT 5
- May the ortelius call an http api on X chain transactions HOT 1
- Ortelius missing transactions HOT 3
- Indexer Erroring out with Duplicate Entries for Production Build HOT 10
- Can you provide a public ortelius api for the mainnet? HOT 1
- producer and indexer error HOT 1
- Weird result when using the api to fetch CChain transactions HOT 1
- MySQL and API listening publicly intended?
- indexer uses a method(debug_traceTransaction) that doesn't exist
- How to configure cchainid ppm-id and aim-id
- failed to decode client response: no containers have been accepted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ortelius.