knix-microfunctions / knix

Serverless computing platform with process-based lightweight function execution and container-based application isolation. Works in Knative and bare metal/VM environments.

Home Page:https://knix.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error when deploy the knix on a host machine

lambda7xx opened this issue · comments

  • I use the ansible to deploy the knix ,
  • After I run the make, I meet this error.
cd ../../LoggingService; make; cd -
make[1]: Entering directory '/root/knix/LoggingService'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/root/knix/LoggingService'
/root/knix/deploy/ansible
cd ../../TriggersFrontend/; make; cd -
make[1]: Entering directory '/root/knix/TriggersFrontend'
docker run --rm --name build_triggers_frontend \
	--user `id -u`:`id -g` \
	-v /root/knix/TriggersFrontend:/code -w /code \
	-e http_proxy \
	-e https_proxy \
	rust:1.47-buster bash -c 'cargo build --release'
    Updating crates.io index
 Downloading crates ...
  Downloaded tinyvec_macros v0.1.0
  Downloaded amq-protocol-tcp v6.0.2
  Downloaded matches v0.1.8
  Downloaded pollster v0.2.0
  Downloaded amq-protocol-uri v6.0.2
  Downloaded fxhash v0.2.1
  Downloaded actix-testing v1.0.1
  Downloaded foreign-types-shared v0.1.1
  Downloaded cfg-if v1.0.0
  Downloaded time-macros v0.1.1
  Downloaded instant v0.1.7
  Downloaded tower-service v0.3.0
  Downloaded http-body v0.3.1
  Downloaded actix-threadpool v0.3.3
  Downloaded actix-macros v0.1.2
  Downloaded cookie-factory v0.3.1
  Downloaded dtoa v0.4.6
  Downloaded tcp-stream v0.20.6
  Downloaded block-buffer v0.9.0
  Downloaded untrusted v0.7.1
  Downloaded try-lock v0.2.3
  Downloaded either v1.6.1
  Downloaded atty v0.2.14
  Downloaded form_urlencoded v1.0.1
  Downloaded cpuid-bool v0.1.2
  Downloaded thread_local v1.0.1
  Downloaded match_cfg v0.1.0
  Downloaded bytestring v0.1.5
  Downloaded humantime v1.3.0
  Downloaded cfg-if v0.1.10
  Downloaded alloc-stdlib v0.2.1
  Downloaded pinky-swear v4.4.0
  Downloaded adler v0.2.3
  Downloaded pin-utils v0.1.0
  Downloaded tokio-macros v0.2.5
  Downloaded amq-protocol-types v6.0.2
  Downloaded serde_urlencoded v0.6.1
  Downloaded opaque-debug v0.3.0
  Downloaded openssl-probe v0.1.2
  Downloaded want v0.3.0
  Downloaded tap v1.0.0
  Downloaded alloc-no-stdlib v2.0.3
  Downloaded futures-task v0.3.21
  Downloaded futures-executor v0.3.6
  Downloaded const_fn v0.4.2
  Downloaded doc-comment v0.3.3
  Downloaded futures-sink v0.3.21
  Downloaded funty v1.0.1
  Downloaded actix-codec v0.3.0
  Downloaded cache-padded v1.1.1
  Downloaded tokio-amqp v0.1.3
  Downloaded lazy_static v1.4.0
  Downloaded lru-cache v0.1.2
  Downloaded futures-core v0.3.21
  Downloaded actix-connect v2.0.0
  Downloaded pem v0.8.1
  Downloaded percent-encoding v2.1.0
warning: spurious network error (2 tries remaining): failed to get 200 response from `https://static.crates.io/crates/async-task/async-task-4.0.2.crate`, got 503
warning: spurious network error (2 tries remaining): failed to get 200 response from `https://static.crates.io/crates/actix-service/actix-service-1.0.6.crate`, got 503
  Downloaded radium v0.5.3
  Downloaded spin v0.5.2
  Downloaded rand_chacha v0.2.2
  Downloaded copyless v0.1.5
  Downloaded amq-protocol v6.0.2
  Downloaded actix-tls v2.0.0
  Downloaded fnv v1.0.7
  Downloaded time-macros-impl v0.1.1
  Downloaded termcolor v1.1.0
  Downloaded actix-rt v1.1.1
  Downloaded generic-array v0.14.4
  Downloaded concurrent-queue v1.2.2
  Downloaded itoa v1.0.2
  Downloaded tokio-rustls v0.14.1
  Downloaded slab v0.4.2
  Downloaded actix-router v0.2.5
  Downloaded proc-macro-hack v0.5.18
  Downloaded mqtt4bytes v0.2.0
  Downloaded ipnet v2.3.0
  Downloaded mio-uds v0.6.8
  Downloaded httpdate v0.3.2
  Downloaded language-tags v0.2.2
  Downloaded itoa v0.4.6
  Downloaded net2 v0.2.37
  Downloaded version_check v0.9.2
  Downloaded sha-1 v0.9.1
  Downloaded wyz v0.2.0
  Downloaded iovec v0.1.4
  Downloaded hostname v0.3.1
  Downloaded tokio-tls v0.3.1
  Downloaded arrayvec v0.5.1
  Downloaded awc v2.0.3
  Downloaded pkg-config v0.3.18
  Downloaded num_cpus v1.13.0
  Downloaded scopeguard v1.1.0
  Downloaded resolv-conf v0.6.3
  Downloaded byteorder v1.3.4
  Downloaded digest v0.9.0
  Downloaded futures-macro v0.3.21
  Downloaded futures-io v0.3.21
  Downloaded enum-as-inner v0.3.3
  Downloaded threadpool v1.8.1
  Downloaded thiserror-impl v1.0.21
  Downloaded async-channel v1.5.1
  Downloaded event-listener v2.5.1
  Downloaded linked-hash-map v0.5.3
  Downloaded getrandom v0.1.15
  Downloaded futures-channel v0.3.21
  Downloaded hyper-tls v0.4.3
  Downloaded tinyvec v0.3.4
  Downloaded foreign-types v0.3.2
  Downloaded static_assertions v1.1.0
  Downloaded bitflags v1.2.1
  Downloaded serde_urlencoded v0.7.1
  Downloaded signal-hook-registry v1.2.1
  Downloaded autocfg v1.0.1
  Downloaded actix-web-codegen v0.3.0
  Downloaded thiserror v1.0.21
  Downloaded crc32fast v1.2.0
  Downloaded mime v0.3.16
  Downloaded actix-utils v2.0.0
  Downloaded time v0.1.44
  Downloaded ppv-lite86 v0.2.9
  Downloaded num-integer v0.1.43
  Downloaded cookie v0.14.2
  Downloaded memchr v2.3.3
  Downloaded parking_lot v0.11.0
  Downloaded log v0.4.11
  Downloaded quick-error v1.2.3
  Downloaded rand_core v0.5.1
  Downloaded indexmap v1.6.0
  Downloaded unicode-xid v0.2.1
  Downloaded rustc-demangle v0.1.17
  Downloaded lock_api v0.4.6
  Downloaded tokio-util v0.3.1
  Downloaded pin-project-lite v0.2.9
  Downloaded parking_lot_core v0.8.0
  Downloaded addr2line v0.13.0
  Downloaded arc-swap v0.4.8
  Downloaded unicase v2.6.0
  Downloaded futures v0.3.6
  Downloaded crossbeam-utils v0.8.8
  Downloaded actix-server v1.0.4
  Downloaded sct v0.6.0
  Downloaded quote v1.0.7
  Downloaded once_cell v1.4.1
  Downloaded pin-project-lite v0.1.10
  Downloaded proc-macro2 v1.0.24
  Downloaded async-task v4.0.2
  Downloaded socket2 v0.3.17
  Downloaded standback v0.2.11
  Downloaded mime_guess v2.0.3
  Downloaded env_logger v0.7.1
  Downloaded pin-project-internal v1.0.10
  Downloaded native-tls v0.2.4
  Downloaded smallvec v1.8.0
  Downloaded httparse v1.3.4
  Downloaded async-trait v0.1.41
  Downloaded pin-project-internal v0.4.26
  Downloaded tracing v0.1.21
  Downloaded rumqttc v0.1.2
  Downloaded unicode-bidi v0.3.4
  Downloaded typenum v1.12.0
  Downloaded derive_more v0.99.11
  Downloaded num-traits v0.2.12
  Downloaded actix-service v1.0.6
  Downloaded cc v1.0.61
  Downloaded tinyvec v1.0.1
  Downloaded backtrace v0.3.52
  Downloaded bytes v0.5.6
  Downloaded webpki v0.21.3
  Downloaded base64 v0.12.3
  Downloaded miniz_oxide v0.4.3
  Downloaded openssl-sys v0.9.58
  Downloaded serde_derive v1.0.116
  Downloaded tracing-core v0.1.17
  Downloaded heck v0.3.1
  Downloaded pin-project v0.4.26
  Downloaded time v0.2.22
  Downloaded mio v0.7.6
  Downloaded ryu v1.0.5
  Downloaded pin-project v1.0.10
  Downloaded hashbrown v0.9.1
  Downloaded base64 v0.13.0
  Downloaded url v2.1.1
  Downloaded trust-dns-resolver v0.19.5
  Downloaded serde v1.0.116
  Downloaded flate2 v1.0.18
  Downloaded crossbeam-channel v0.5.0
  Downloaded http v0.2.1
  Downloaded h2 v0.2.6
  Downloaded unicode-segmentation v1.6.0
  Downloaded unicode-normalization v0.1.13
  Downloaded bitvec v0.19.4
  Downloaded mio v0.6.22
  Downloaded serde_json v1.0.58
  Downloaded json v0.12.4
  Downloaded aho-corasick v0.7.13
  Downloaded rand v0.7.3
  Downloaded chrono v0.4.19
  Downloaded reqwest v0.10.8
  Downloaded lapin v1.6.1
  Downloaded actix-web v3.1.0
  Downloaded actix-http v2.2.2
  Downloaded futures-util v0.3.21
  Downloaded nom v6.0.1
  Downloaded hyper v0.13.10
  Downloaded brotli-decompressor v2.3.2
  Downloaded openssl v0.10.30
  Downloaded object v0.20.0
  Downloaded rustls v0.18.1
  Downloaded trust-dns-proto v0.19.5
  Downloaded regex v1.3.9
  Downloaded idna v0.2.0
  Downloaded syn v1.0.67
  Downloaded regex-syntax v0.6.18
  Downloaded tokio v0.2.22
warning: spurious network error (2 tries remaining): [18] Transferred a partial file (transfer closed with 4651250 bytes remaining to read)
  Downloaded libc v0.2.79
  Downloaded lexical-core v0.7.4
warning: spurious network error (2 tries remaining): [18] Transferred a partial file (transfer closed with 753644 bytes remaining to read)
warning: spurious network error (2 tries remaining): [18] Transferred a partial file (transfer closed with 776788 bytes remaining to read)
  Downloaded gimli v0.22.0
  Downloaded encoding_rs v0.8.24
  Downloaded brotli v3.3.4
  Downloaded ring v0.16.15
   Compiling actix-web v3.1.0
error[E0277]: the trait bound `serde_urlencoded::ser::Error: actix_http::ResponseError` is not satisfied
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-3.1.0/src/types/form.rs:167:36
    |
167 |             Err(e) => return err(e.into()),
    |                                    ^^^^ the trait `actix_http::ResponseError` is not implemented for `serde_urlencoded::ser::Error`
    |
    = note: required because of the requirements on the impl of `std::convert::From<serde_urlencoded::ser::Error>` for `actix_http::Error`
    = note: required because of the requirements on the impl of `std::convert::Into<actix_http::Error>` for `serde_urlencoded::ser::Error`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `actix-web`.

To learn more, run the command again with --verbose.
Makefile:26: recipe for target 'target/release/TriggersFrontend' failed
make[1]: *** [target/release/TriggersFrontend] Error 101
make[1]: Leaving directory '/root/knix/TriggersFrontend'
/root/knix/deploy/ansible
ansible-playbook -e "@settings.json" init_once.yaml 2>&1 >init_once.log.tmp


@ksatzke @iakkus thank you very much

Hi, remove the TriggersFrontend from the makefile; this is Rust complaining about that, not riak.

You can try the attached Makefile.
Makefile.zip

thanks. It seems still have some problem.

cd ../../riak && make lib/jiffy.tgz && cd -
make[1]: Entering directory '/root/knix/riak'
mkdir -p lib
echo "Building jiffy"
Building jiffy
Error response from daemon: No such image: riak_libs_build:0.9.0-21-gde7d426-dirty
Error response from daemon: Get "http://localhost:5000/v2/": dial tcp [::1]:5000: connect: connection refused
Error response from daemon: No such image: localhost:5000/riak_libs_build:0.9.0-21-gde7d426-dirty
Error response from daemon: No such image: riak_libs_build:0.9.0-21-gde7d426-dirty
Dockerfile is newer than the container
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.92kB done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/ubuntu:18.04
#3 DONE 0.7s

#4 [1/5] FROM docker.io/library/ubuntu:18.04@sha256:8aa9c2798215f99544d1ce7439ea9c3a6dfd82de607da1cec3a8a2fae005931b
#4 DONE 0.0s

#5 [2/5] RUN apt-get update &&     apt-get install -y --no-install-recommends       build-essential       cmake       make       wget       unzip       libssl1.0.0       libssl1.0-dev       libasl-dev       libsasl2-dev       pkg-config       libsystemd-dev       zlib1g-dev       flex       bison       tar       mtools       git       ca-certificates       automake       autoconf       libncurses5-dev
#5 CACHED

#6 [3/5] RUN set -ex &&     mkdir -p /usr/local/bin &&     cd /usr/local/bin &&     wget --no-check-certificate https://raw.githubusercontent.com/kerl/kerl/master/kerl &&     chmod a+x kerl &&     mkdir /build &&     cd /build
#6 CACHED

#7 [4/5] RUN set -ex &&     cd /build &&     kerl build git https://github.com/basho/otp.git OTP_R16B02_basho10 R16B02-basho10 &&     kerl install R16B02-basho10 /build/erlang/R16B02-basho10 &&     . /build/erlang/R16B02-basho10/activate
#7 CACHED

#8 [5/5] RUN set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     ./rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz
#8 0.322 + . /build/erlang/R16B02-basho10/activate
#8 0.322 + kerl_deactivate nondestructive
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ -n  ]
#8 0.322 + [ ! nondestructive = nondestructive ]
#8 0.322 + unset KERL_ENABLE_PROMPT
#8 0.322 + unset KERL_PROMPT_FORMAT
#8 0.322 + _KERL_SAVED_REBAR_PLT_DIR=
#8 0.322 + export _KERL_SAVED_REBAR_PLT_DIR
#8 0.322 + _KERL_PATH_REMOVABLE=/build/erlang/R16B02-basho10/bin
#8 0.322 + PATH=/build/erlang/R16B02-basho10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#8 0.322 + export PATH _KERL_PATH_REMOVABLE
#8 0.322 + _KERL_MANPATH_REMOVABLE=/build/erlang/R16B02-basho10/lib/erlang/man:/build/erlang/R16B02-basho10/man
#8 0.322 + MANPATH=/build/erlang/R16B02-basho10/lib/erlang/man:/build/erlang/R16B02-basho10/man:
#8 0.322 + export MANPATH _KERL_MANPATH_REMOVABLE
#8 0.322 + REBAR_PLT_DIR=/build/erlang/R16B02-basho10
#8 0.322 + export REBAR_PLT_DIR
#8 0.322 + _KERL_ACTIVE_DIR=/build/erlang/R16B02-basho10
#8 0.322 + export _KERL_ACTIVE_DIR
#8 0.322 + find /build/erlang/R16B02-basho10 -type d -path *erl_interface*/bin
#8 0.330 + _KERL_ERL_CALL_REMOVABLE=/build/erlang/R16B02-basho10/lib/erl_interface-3.7.14/bin
#8 0.330 + PATH=/build/erlang/R16B02-basho10/lib/erl_interface-3.7.14/bin:/build/erlang/R16B02-basho10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#8 0.330 + export PATH _KERL_ERL_CALL_REMOVABLE
#8 0.330 + export _KERL_SAVED_ERL_AFLAGS= 
#8 0.330 + echo 
#8 0.330 + grep kernel shell_history
#8 0.331 + true
#8 0.331 + kernel_history=
#8 0.331 + [ -z  ]
#8 0.331 + export ERL_AFLAGS=-kernel shell_history enabled 
#8 0.331 + [ -f /root/.kerlrc ]
#8 0.331 + [ -n  ]
#8 0.331 + [ -d /build/erlang/R16B02-basho10/lib/docsh ]
#8 0.331 + [ -n  ]
#8 0.331 + [ -n  ]
#8 0.331 + cd /build
#8 0.331 + git clone https://github.com/davisp/jiffy.git
#8 0.331 Cloning into 'jiffy'...
#8 2.213 + cd jiffy
#8 2.213 + ./rebar compile
#8 2.213 /bin/sh: 1: ./rebar: not found
#8 ERROR: process "/bin/sh -c set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     ./rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz" did not complete successfully: exit code: 127
------
 > [5/5] RUN set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     ./rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz:
#8 0.331 + [ -n  ]
#8 0.331 + [ -d /build/erlang/R16B02-basho10/lib/docsh ]
#8 0.331 + [ -n  ]
#8 0.331 + [ -n  ]
#8 0.331 + cd /build
#8 0.331 + git clone https://github.com/davisp/jiffy.git
#8 0.331 Cloning into 'jiffy'...
#8 2.213 + cd jiffy
#8 2.213 + ./rebar compile
#8 2.213 /bin/sh: 1: ./rebar: not found
------
Dockerfile:57
--------------------
  56 |     
  57 | >>> RUN set -ex && \
  58 | >>>     . /build/erlang/R16B02-basho10/activate && \
  59 | >>>     cd /build && \
  60 | >>>     git clone https://github.com/davisp/jiffy.git && \
  61 | >>>     cd jiffy && \
  62 | >>>     ./rebar compile && \
  63 | >>>     cd .. && \
  64 | >>>     chmod -R 777 jiffy && \
  65 | >>>     tar --exclude .git -cvzf jiffy.tgz jiffy && \
  66 | >>>     chmod 777 jiffy.tgz
  67 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     ./rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz" did not complete successfully: exit code: 127
6346  /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
github.com/docker/docker/vendor/github.com/moby/buildkit/executor/runcexecutor.exitError
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/executor/runcexecutor/executor.go:360
github.com/docker/docker/vendor/github.com/moby/buildkit/executor/runcexecutor.(*runcExecutor).Run
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/executor/runcexecutor/executor.go:334
github.com/docker/docker/vendor/github.com/moby/buildkit/solver/llbsolver/ops.(*execOp).Exec
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go:365
github.com/docker/docker/vendor/github.com/moby/buildkit/solver.(*sharedOp).Exec.func2
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/jobs.go:838
github.com/docker/docker/vendor/github.com/moby/buildkit/util/flightcontrol.(*call).run
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/util/flightcontrol/flightcontrol.go:121
sync.(*Once).doSlow
	/usr/local/go/src/sync/once.go:74
sync.(*Once).Do
	/usr/local/go/src/sync/once.go:65
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1594

6346  /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
github.com/docker/docker/vendor/github.com/moby/buildkit/solver/llbsolver/ops.(*execOp).Exec
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go:385
github.com/docker/docker/vendor/github.com/moby/buildkit/solver.(*sharedOp).Exec.func2
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/jobs.go:838
github.com/docker/docker/vendor/github.com/moby/buildkit/util/flightcontrol.(*call).run
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/util/flightcontrol/flightcontrol.go:121
sync.(*Once).doSlow
	/usr/local/go/src/sync/once.go:74
sync.(*Once).Do
	/usr/local/go/src/sync/once.go:65
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1594

6346  /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
github.com/docker/docker/vendor/github.com/moby/buildkit/solver.(*edge).execOp
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/edge.go:904
github.com/docker/docker/vendor/github.com/moby/buildkit/solver/internal/pipe.NewWithFunction.func2
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/internal/pipe/pipe.go:82
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1594

22426 v0.10.2 /usr/libexec/docker/cli-plugins/docker-buildx -D -l debug buildx build --build-arg http_proxy= --build-arg https_proxy= --build-arg VERSION=0.9.0-21-gde7d426-dirty -f Dockerfile -t riak_libs_build:0.9.0-21-gde7d426-dirty .
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryClient.func1.1.1
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:72
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.UnaryClientInterceptor.func1
	go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc@v0.29.0/interceptor.go:99
github.com/moby/buildkit/client.filterInterceptor.func1
	github.com/moby/buildkit@v0.11.2/client/client.go:294
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryClient.func1.1.1
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:72
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryClient.func1
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:81
google.golang.org/grpc.(*ClientConn).Invoke
	google.golang.org/grpc@v1.50.1/call.go:35
github.com/moby/buildkit/api/services/control.(*controlClient).Solve
	github.com/moby/buildkit@v0.11.2/api/services/control/control.pb.go:2208
github.com/moby/buildkit/client.(*Client).solve.func2
	github.com/moby/buildkit@v0.11.2/client/solve.go:258
golang.org/x/sync/errgroup.(*Group).Go.func1
	golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75
runtime.goexit
	runtime/asm_amd64.s:1594

22426 v0.10.2 /usr/libexec/docker/cli-plugins/docker-buildx -D -l debug buildx build --build-arg http_proxy= --build-arg https_proxy= --build-arg VERSION=0.9.0-21-gde7d426-dirty -f Dockerfile -t riak_libs_build:0.9.0-21-gde7d426-dirty .
github.com/moby/buildkit/client.(*Client).solve.func2
	github.com/moby/buildkit@v0.11.2/client/solve.go:273
golang.org/x/sync/errgroup.(*Group).Go.func1
	golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75
runtime.goexit
	runtime/asm_amd64.s:1594

Makefile:24: recipe for target 'lib/jiffy.tgz' failed
make[1]: *** [lib/jiffy.tgz] Error 1
make[1]: Leaving directory '/root/knix/riak'
Makefile:49: recipe for target '../../riak/knix_riak_deployment_package.tar.gz' failed
make: *** [../../riak/knix_riak_deployment_package.tar.gz] Error 2


Hi, remove the TriggersFrontend from the makefile; this is Rust complaining about that, not riak.

You can try the attached Makefile. Makefile.zip

and it seems the rebat not found and so the riak failes.

cd ../../riak && make lib/jiffy.tgz && cd -
make[1]: Entering directory '/root/knix/riak'
mkdir -p lib
echo "Building jiffy"
Building jiffy
Error response from daemon: No such image: riak_libs_build:0.9.0-21-gde7d426-dirty
Error response from daemon: Get "http://localhost:5000/v2/": dial tcp 127.0.0.1:5000: connect: connection refused
Error response from daemon: No such image: localhost:5000/riak_libs_build:0.9.0-21-gde7d426-dirty
Error response from daemon: No such image: riak_libs_build:0.9.0-21-gde7d426-dirty
Dockerfile is newer than the container
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 3.93kB done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/ubuntu:18.04
#3 DONE 0.7s

#4 [1/5] FROM docker.io/library/ubuntu:18.04@sha256:8aa9c2798215f99544d1ce7439ea9c3a6dfd82de607da1cec3a8a2fae005931b
#4 DONE 0.0s

#5 [2/5] RUN apt-get update &&     apt-get install -y --no-install-recommends       build-essential       cmake       make       wget       unzip       libssl1.0.0       libssl1.0-dev       libasl-dev       libsasl2-dev       pkg-config       libsystemd-dev       zlib1g-dev       flex       bison       tar       mtools       git       ca-certificates       automake       autoconf       libncurses5-dev
#5 CACHED

#6 [3/5] RUN set -ex &&     mkdir -p /usr/local/bin &&     cd /usr/local/bin &&     wget --no-check-certificate https://raw.githubusercontent.com/kerl/kerl/master/kerl &&     chmod a+x kerl &&     mkdir /build &&     cd /build
#6 CACHED

#7 [4/5] RUN set -ex &&     cd /build &&     kerl build git https://github.com/basho/otp.git OTP_R16B02_basho10 R16B02-basho10 &&     kerl install R16B02-basho10 /build/erlang/R16B02-basho10 &&     . /build/erlang/R16B02-basho10/activate
#7 0.194 + cd /build
#7 0.194 + kerl build git https://github.com/basho/otp.git OTP_R16B02_basho10 R16B02-basho10
#7 39.83 APPLICATIONS DISABLED (See: /root/.kerl/builds/R16B02-basho10/otp_build_git.log)
#7 39.83  * jinterface     : No Java compiler found
#7 39.83  * odbc           : ODBC library - link check failed
#7 39.83 
#7 39.83 APPLICATIONS INFORMATION (See: /root/.kerl/builds/R16B02-basho10/otp_build_git.log)
#7 39.83  * wx             : wxWidgets not found, wx will NOT be usable
#7 39.83 
#7 39.83 DOCUMENTATION INFORMATION (See: /root/.kerl/builds/R16B02-basho10/otp_build_git.log)
#7 39.83  * documentation  : 
#7 39.83  *                  xsltproc is missing.
#7 39.83  *                  fop is missing.
#7 39.83  *                  xmllint is missing.
#7 39.83  *                  The documentation can not be built.
#7 39.83 
#7 534.0 + kerl install R16B02-basho10 /build/erlang/R16B02-basho10
#7 542.2 . /build/erlang/R16B02-basho10/activate
#7 542.2 + . /build/erlang/R16B02-basho10/activate
#7 542.2 + kerl_deactivate nondestructive
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ -n  ]
#7 542.2 + [ ! nondestructive = nondestructive ]
#7 542.2 + unset KERL_ENABLE_PROMPT
#7 542.2 + unset KERL_PROMPT_FORMAT
#7 542.2 + _KERL_SAVED_REBAR_PLT_DIR=
#7 542.2 + export _KERL_SAVED_REBAR_PLT_DIR
#7 542.2 + _KERL_PATH_REMOVABLE=/build/erlang/R16B02-basho10/bin
#7 542.2 + PATH=/build/erlang/R16B02-basho10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#7 542.2 + export PATH _KERL_PATH_REMOVABLE
#7 542.2 + _KERL_MANPATH_REMOVABLE=/build/erlang/R16B02-basho10/lib/erlang/man:/build/erlang/R16B02-basho10/man
#7 542.2 + MANPATH=/build/erlang/R16B02-basho10/lib/erlang/man:/build/erlang/R16B02-basho10/man:
#7 542.2 + export MANPATH _KERL_MANPATH_REMOVABLE
#7 542.2 + REBAR_PLT_DIR=/build/erlang/R16B02-basho10
#7 542.2 + export REBAR_PLT_DIR
#7 542.2 + _KERL_ACTIVE_DIR=/build/erlang/R16B02-basho10
#7 542.2 + export _KERL_ACTIVE_DIR
#7 542.2 + find /build/erlang/R16B02-basho10 -type d -path *erl_interface*/bin
#7 542.3 + _KERL_ERL_CALL_REMOVABLE=/build/erlang/R16B02-basho10/lib/erl_interface-3.7.14/bin
#7 542.3 + PATH=/build/erlang/R16B02-basho10/lib/erl_interface-3.7.14/bin:/build/erlang/R16B02-basho10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#7 542.3 + export PATH _KERL_ERL_CALL_REMOVABLE
#7 542.3 + export _KERL_SAVED_ERL_AFLAGS= 
#7 542.3 + echo 
#7 542.3 + grep kernel shell_history
#7 542.3 + true
#7 542.3 + kernel_history=
#7 542.3 + [ -z  ]
#7 542.3 + export ERL_AFLAGS=-kernel shell_history enabled 
#7 542.3 + [ -f /root/.kerlrc ]
#7 542.3 + [ -n  ]
#7 542.3 + [ -d /build/erlang/R16B02-basho10/lib/docsh ]
#7 542.3 + [ -n  ]
#7 542.3 + [ -n  ]
#7 DONE 542.7s

#8 [5/5] RUN set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     ./rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz
#8 0.305 + . /build/erlang/R16B02-basho10/activate
#8 0.305 + kerl_deactivate nondestructive
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ -n  ]
#8 0.305 + [ ! nondestructive = nondestructive ]
#8 0.305 + unset KERL_ENABLE_PROMPT
#8 0.305 + unset KERL_PROMPT_FORMAT
#8 0.305 + _KERL_SAVED_REBAR_PLT_DIR=
#8 0.305 + export _KERL_SAVED_REBAR_PLT_DIR
#8 0.305 + _KERL_PATH_REMOVABLE=/build/erlang/R16B02-basho10/bin
#8 0.305 + PATH=/build/erlang/R16B02-basho10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#8 0.305 + export PATH _KERL_PATH_REMOVABLE
#8 0.305 + _KERL_MANPATH_REMOVABLE=/build/erlang/R16B02-basho10/lib/erlang/man:/build/erlang/R16B02-basho10/man
#8 0.305 + MANPATH=/build/erlang/R16B02-basho10/lib/erlang/man:/build/erlang/R16B02-basho10/man:
#8 0.305 + export MANPATH _KERL_MANPATH_REMOVABLE
#8 0.305 + REBAR_PLT_DIR=/build/erlang/R16B02-basho10
#8 0.305 + export REBAR_PLT_DIR
#8 0.305 + _KERL_ACTIVE_DIR=/build/erlang/R16B02-basho10
#8 0.305 + export _KERL_ACTIVE_DIR
#8 0.305 + find /build/erlang/R16B02-basho10 -type d -path *erl_interface*/bin
#8 0.313 + _KERL_ERL_CALL_REMOVABLE=/build/erlang/R16B02-basho10/lib/erl_interface-3.7.14/bin
#8 0.313 + PATH=/build/erlang/R16B02-basho10/lib/erl_interface-3.7.14/bin:/build/erlang/R16B02-basho10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#8 0.313 + export PATH _KERL_ERL_CALL_REMOVABLE
#8 0.313 + export _KERL_SAVED_ERL_AFLAGS= 
#8 0.313 + echo 
#8 0.313 + grep kernel shell_history
#8 0.314 + true
#8 0.314 + kernel_history=
#8 0.314 + [ -z  ]
#8 0.314 + export ERL_AFLAGS=-kernel shell_history enabled 
#8 0.314 + [ -f /root/.kerlrc ]
#8 0.314 + [ -n  ]
#8 0.314 + [ -d /build/erlang/R16B02-basho10/lib/docsh ]
#8 0.314 + [ -n  ]
#8 0.314 + [ -n  ]
#8 0.314 + cd /build
#8 0.314 + git clone https://github.com/davisp/jiffy.git
#8 0.315 Cloning into 'jiffy'...
#8 2.011 + cd jiffy
#8 2.011 + ./rebar compile
#8 2.011 /bin/sh: 1: ./rebar: not found
#8 ERROR: process "/bin/sh -c set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     ./rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz" did not complete successfully: exit code: 127
------
 > [5/5] RUN set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     ./rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz:
#8 0.314 + [ -n  ]
#8 0.314 + [ -d /build/erlang/R16B02-basho10/lib/docsh ]
#8 0.314 + [ -n  ]
#8 0.314 + [ -n  ]
#8 0.314 + cd /build
#8 0.314 + git clone https://github.com/davisp/jiffy.git
#8 0.315 Cloning into 'jiffy'...
#8 2.011 + cd jiffy
#8 2.011 + ./rebar compile
#8 2.011 /bin/sh: 1: ./rebar: not found
------
Dockerfile:57
--------------------
  56 |     
  57 | >>> RUN set -ex && \
  58 | >>>     . /build/erlang/R16B02-basho10/activate && \
  59 | >>>     cd /build && \
  60 | >>>     git clone https://github.com/davisp/jiffy.git && \
  61 | >>>     cd jiffy && \
  62 | >>>     ./rebar compile && \
  63 | >>>     cd .. && \
  64 | >>>     chmod -R 777 jiffy && \
  65 | >>>     tar --exclude .git -cvzf jiffy.tgz jiffy && \
  66 | >>>     chmod 777 jiffy.tgz
  67 |     # #   Copyright 2020 The KNIX Authors
--------------------
ERROR: failed to solve: process "/bin/sh -c set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     ./rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz" did not complete successfully: exit code: 127
73267  /usr/bin/dockerd -H unix:// -H tcp://0.0.0.0:2375
github.com/docker/docker/vendor/github.com/moby/buildkit/executor/runcexecutor.exitError
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/executor/runcexecutor/executor.go:360
github.com/docker/docker/vendor/github.com/moby/buildkit/executor/runcexecutor.(*runcExecutor).Run
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/executor/runcexecutor/executor.go:334
github.com/docker/docker/vendor/github.com/moby/buildkit/solver/llbsolver/ops.(*execOp).Exec
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go:365
github.com/docker/docker/vendor/github.com/moby/buildkit/solver.(*sharedOp).Exec.func2
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/jobs.go:838
github.com/docker/docker/vendor/github.com/moby/buildkit/util/flightcontrol.(*call).run
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/util/flightcontrol/flightcontrol.go:121
sync.(*Once).doSlow
	/usr/local/go/src/sync/once.go:74
sync.(*Once).Do
	/usr/local/go/src/sync/once.go:65
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1594

73267  /usr/bin/dockerd -H unix:// -H tcp://0.0.0.0:2375
github.com/docker/docker/vendor/github.com/moby/buildkit/solver/llbsolver/ops.(*execOp).Exec
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go:385
github.com/docker/docker/vendor/github.com/moby/buildkit/solver.(*sharedOp).Exec.func2
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/jobs.go:838
github.com/docker/docker/vendor/github.com/moby/buildkit/util/flightcontrol.(*call).run
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/util/flightcontrol/flightcontrol.go:121
sync.(*Once).doSlow
	/usr/local/go/src/sync/once.go:74
sync.(*Once).Do
	/usr/local/go/src/sync/once.go:65
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1594

73267  /usr/bin/dockerd -H unix:// -H tcp://0.0.0.0:2375
github.com/docker/docker/vendor/github.com/moby/buildkit/solver.(*edge).execOp
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/edge.go:904
github.com/docker/docker/vendor/github.com/moby/buildkit/solver/internal/pipe.NewWithFunction.func2
	/go/src/github.com/docker/docker/vendor/github.com/moby/buildkit/solver/internal/pipe/pipe.go:82
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1594

89887 v0.10.2 /usr/libexec/docker/cli-plugins/docker-buildx -D -l debug buildx build --build-arg http_proxy= --build-arg https_proxy= --build-arg VERSION=0.9.0-21-gde7d426-dirty -f Dockerfile -t riak_libs_build:0.9.0-21-gde7d426-dirty .
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryClient.func1.1.1
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:72
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.UnaryClientInterceptor.func1
	go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc@v0.29.0/interceptor.go:99
github.com/moby/buildkit/client.filterInterceptor.func1
	github.com/moby/buildkit@v0.11.2/client/client.go:294
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryClient.func1.1.1
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:72
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryClient.func1
	github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:81
google.golang.org/grpc.(*ClientConn).Invoke
	google.golang.org/grpc@v1.50.1/call.go:35
github.com/moby/buildkit/api/services/control.(*controlClient).Solve
	github.com/moby/buildkit@v0.11.2/api/services/control/control.pb.go:2208
github.com/moby/buildkit/client.(*Client).solve.func2
	github.com/moby/buildkit@v0.11.2/client/solve.go:258
golang.org/x/sync/errgroup.(*Group).Go.func1
	golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75
runtime.goexit
	runtime/asm_amd64.s:1594

89887 v0.10.2 /usr/libexec/docker/cli-plugins/docker-buildx -D -l debug buildx build --build-arg http_proxy= --build-arg https_proxy= --build-arg VERSION=0.9.0-21-gde7d426-dirty -f Dockerfile -t riak_libs_build:0.9.0-21-gde7d426-dirty .
github.com/moby/buildkit/client.(*Client).solve.func2
	github.com/moby/buildkit@v0.11.2/client/solve.go:273
golang.org/x/sync/errgroup.(*Group).Go.func1
	golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75
runtime.goexit
	runtime/asm_amd64.s:1594

make[1]: *** [Makefile:26: lib/jiffy.tgz] Error 1
make[1]: Leaving directory '/root/knix/riak'
make: *** [Makefile:56: ../../riak/knix_riak_deployment_package.tar.gz] Error 2


I install the rebar and the error is like this

#8 0.360 Cloning into 'jiffy'...
#8 2.007 + cd jiffy
#8 2.007 + rebar compile
#8 2.328 ERROR: Failed to load /build/jiffy/rebar.config: {error,
#8 2.328                                                   {66,file,
#8 2.328                                                    {error,undef,
#8 2.328                                                     [{string,split,
#8 2.328                                                       ["2.6.4","."],
#8 2.328                                                       []},
#8 2.328                                                      {erl_eval,do_apply,6,
#8 2.328                                                       [{file,"erl_eval.erl"},
#8 2.328                                                        {line,569}]},
#8 2.328                                                      {erl_eval,expr,5,
#8 2.328                                                       [{file,"erl_eval.erl"},
#8 2.328                                                        {line,243}]},
#8 2.328                                                      {erl_eval,expr,5,
#8 2.328                                                       [{file,"erl_eval.erl"},
#8 2.328                                                        {line,364}]},
#8 2.328                                                      {erl_eval,exprs,5,
#8 2.328                                                       [{file,"erl_eval.erl"},
#8 2.328                                                        {line,118}]},
#8 2.328                                                      {file,eval_stream2,6,
#8 2.328                                                       [{file,"file.erl"},
#8 2.328                                                        {line,1368}]},
#8 2.328                                                      {file,script,2,
#8 2.328                                                       [{file,"file.erl"},
#8 2.328                                                        {line,1067}]},
#8 2.328                                                      {rebar_config,new,2,
#8 2.328                                                       [{file,
#8 2.328                                                         "src/rebar_config.erl"},
#8 2.328                                                        {line,238}]}]}}}
#8 ERROR: process "/bin/sh -c set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz" did not complete successfully: exit code: 1
------
 > [5/5] RUN set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz:
#8 2.328                                                      {file,eval_stream2,6,
#8 2.328                                                       [{file,"file.erl"},
#8 2.328                                                        {line,1368}]},
#8 2.328                                                      {file,script,2,
#8 2.328                                                       [{file,"file.erl"},
#8 2.328                                                        {line,1067}]},
#8 2.328                                                      {rebar_config,new,2,
#8 2.328                                                       [{file,
#8 2.328                                                         "src/rebar_config.erl"},
#8 2.328                                                        {line,238}]}]}}}
------
Dockerfile:58
--------------------
  57 |     
  58 | >>> RUN set -ex && \
  59 | >>>     . /build/erlang/R16B02-basho10/activate && \
  60 | >>>     cd /build && \
  61 | >>>     git clone https://github.com/davisp/jiffy.git && \
  62 | >>>     cd jiffy && \
  63 | >>>     rebar compile && \
  64 | >>>     cd .. && \
  65 | >>>     chmod -R 777 jiffy && \
  66 | >>>     tar --exclude .git -cvzf jiffy.tgz jiffy && \
  67 | >>>     chmod 777 jiffy.tgz
  68 |     # #   Copyright 2020 The KNIX Authors
--------------------
ERROR: failed to solve: process "/bin/sh -c set -ex &&     . /build/erlang/R16B02-basho10/activate &&     cd /build &&     git clone https://github.com/davisp/jiffy.git &&     cd jiffy &&     rebar compile &&     cd .. &&     chmod -R 777 jiffy &&     tar --exclude .git -cvzf jiffy.tgz jiffy &&     chmod 777 jiffy.tgz" did not complete successfully: exit code: 1
73267  /usr/bin/dockerd -H unix:// -H tcp://0.0.0.0:2375