Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec make have a rpc receive error #98

Closed
dust1 opened this issue Nov 22, 2021 · 9 comments
Closed

exec make have a rpc receive error #98

dust1 opened this issue Nov 22, 2021 · 9 comments

Comments

@dust1
Copy link
Contributor

dust1 commented Nov 22, 2021

It looks like I have encountered the limitation of grpc transfer file size, But I can't find where I can set this value.

     BUILD  testing
[+] Building 3.6s (17/42)
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 32B                                                                                0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                    0.0s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 536B                                                                                  0.0s
 => [curl 1/8] FROM docker.io/library/ubuntu:20.04                                                                 0.0s
 => CACHED [curl 2/8] RUN apt-get update && apt-get install -qy build-essential curl sed                           0.0s
 => CACHED [curl 3/8] RUN apt-get install -qy musl-tools                                                           0.0s
 => CACHED [dropbear 4/11] RUN curl -fsSL --output tarball.tar.bz2 "https://matt.ucc.asn.au/dropbear/releases/dro  0.0s
 => CACHED [dropbear 5/11] RUN mkdir /build && tar xf tarball.tar.bz2 --strip-components=1 -C /build               0.0s
 => CACHED [dropbear 6/11] ADD dropbear/accept-empty-password-root-login.patch /build/accept-empty-password-root-  0.0s
 => CACHED [dropbear 7/11] ADD dropbear/localoptions.h /build/localoptions.h                                       0.0s
 => CACHED [dropbear 8/11] WORKDIR /build                                                                          0.0s
 => CACHED [dropbear 9/11] RUN sh -c 'patch --ignore-whitespace -p1 < accept-empty-password-root-login.patch'      0.0s
 => [dropbear 10/11] RUN ./configure CC=musl-gcc --enable-static --disable-largefile --disable-zlib --disable-sys  3.5s
 => => # checking for endutent... yes
 => => # checking for getutent... yes
 => => # checking for getutid... yes
 => => # checking for getutline... yes
 => => # checking for pututline... yes
 => => # checking for setutent... yes
 => CACHED [busybox 4/8] RUN curl -fsSL --output tarball.tar.bz2 "https://busybox.net/downloads/busybox-1.31.1.ta  0.0s
 => CACHED [busybox 5/8] RUN mkdir /build && tar xf tarball.tar.bz2 --strip-components=1 -C /build                 0.0s
 => CACHED [busybox 6/8] WORKDIR /build                                                                            0.0s
 => CACHED [busybox 7/8] ADD busybox/config /build/.config                                                         0.0s
 => [busybox 8/8] RUN yes n | make oldconfig     && ln -s /usr/bin/ar /usr/bin/musl-ar     && ln -s /usr/bin/stri  3.5s
 => => # ) [6] (NEW) Minimum password length (PASSWORD_MINLEN) [6] (NEW) Minimum password length (PASSWORD_MINLEN) [6]
 => => # (NEW) Minimum password length (PASSWORD_MINLEN) [6] (NEW) Minimum password length (PASSWORD_MINLEN) [6] (NEW)
 => => # Minimum password length (PASSWORD_MINLEN) [6] (NEW) Minimum password length (PASSWORD_MINLEN) [6] (NEW) Minimu
 => => # m password length (PASSWORD_MINLEN) [6] (NEW) Minimum password length (PASSWORD_MINLEN) [6] (NEW) Minimum pass
 => => # word length (PASSWORD_MINLEN) [6] (NEW) Minimum password length (PASSWORD_MINLEN) [6] (NEW) Minimum password l
 => => # ength (PASSWORD_MINLEN) [6] (NEW) Minimum password length (PASSWORD_MINLEN) [6] (NEW)
failed to receive status: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (5417870 vs. 4194304)
make[2]: *** [Makefile:193: build/kerla.initramfs] Error 1
make[1]: *** [Makefile:92: build-crate] Error 2
make: *** [Makefile:78: build] Error 2
@nuta
Copy link
Owner

nuta commented Nov 22, 2021

I'm not sure but moby/buildkit#1754 might be the fix for this. Could you tell me the version of Docker and try with newer one?

@dust1
Copy link
Contributor Author

dust1 commented Nov 22, 2021

I'm not sure but moby/buildkit#1754 might be the fix for this. Could you tell me the version of Docker and try with newer one?

my docker version is Docker version 19.03.8, build afacb8b7f0. It was good before.
there may be a problem with my local #![no_std] environment, so I want to re-clone and build it.
I am upgrading my docker to the latest version...

@nuta
Copy link
Owner

nuta commented Nov 22, 2021

If the problem still occur, perhaps replacing the following line with yes n | make oldconfig > /dev/null might fix the problem:

RUN yes n | make oldconfig \

@dust1
Copy link
Contributor Author

dust1 commented Nov 22, 2021

If the problem still occur, perhaps replacing the following line with yes n | make oldconfig > /dev/null might fix the problem:

RUN yes n | make oldconfig \

I replaced it, and exec make has no error. but I waited too long, could it be my network problem ?

[+] Building 522.0s (19/42)
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 2.80kB                                                                             0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                    0.0s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 536B                                                                                  0.0s
 => [curl 1/8] FROM docker.io/library/ubuntu:20.04                                                                 0.0s
 => CACHED [curl 2/8] RUN apt-get update && apt-get install -qy build-essential curl sed                           0.0s
 => CACHED [curl 3/8] RUN apt-get install -qy musl-tools                                                           0.0s
 => CACHED [dropbear 4/11] RUN curl -fsSL --output tarball.tar.bz2 "https://matt.ucc.asn.au/dropbear/releases/dro  0.0s
 => CACHED [dropbear 5/11] RUN mkdir /build && tar xf tarball.tar.bz2 --strip-components=1 -C /build               0.0s
 => CACHED [dropbear 6/11] ADD dropbear/accept-empty-password-root-login.patch /build/accept-empty-password-root-  0.0s
 => CACHED [dropbear 7/11] ADD dropbear/localoptions.h /build/localoptions.h                                       0.0s
 => CACHED [dropbear 8/11] WORKDIR /build                                                                          0.0s
 => CACHED [dropbear 9/11] RUN sh -c 'patch --ignore-whitespace -p1 < accept-empty-password-root-login.patch'      0.0s
 => [dropbear 10/11] RUN ./configure CC=musl-gcc --enable-static --disable-largefile --disable-zlib --disable-sys  5.5s
 => CACHED [busybox 4/8] RUN curl -fsSL --output tarball.tar.bz2 "https://busybox.net/downloads/busybox-1.31.1.ta  0.0s
 => CACHED [busybox 5/8] RUN mkdir /build && tar xf tarball.tar.bz2 --strip-components=1 -C /build                 0.0s
 => CACHED [busybox 6/8] WORKDIR /build                                                                            0.0s
 => CACHED [busybox 7/8] ADD busybox/config /build/.config                                                         0.0s
 => [busybox 8/8] RUN yes n | make oldconfig > /dev/null     && ln -s /usr/bin/ar /usr/bin/musl-ar     && ln -s  521.9s
 => => # .config:1123:warning: trying to assign nonexistent symbol SHELL_HUSH
 => => # .config:1159:warning: unexpected data
 => => # .config:1172:warning: unexpected data
 => => # .config:1186:warning: trying to assign nonexistent symbol FEATURE_SYSLOGD_PRECISE_TIMESTAMPS
 => => # ' invalid for FEATURE_SYSLOGD_READ_BUFFER_SIZE
 => => # ' invalid for FEATURE_IPC_SYSLOG_BUFFER_SIZE
 => [dropbear 11/11] RUN make -j$(nproc)

@nuta
Copy link
Owner

nuta commented Nov 23, 2021

Which part did it took so long?

@dust1
Copy link
Contributor Author

dust1 commented Nov 23, 2021

RUN yes n | make oldconfig > /dev/null \
    && ln -s /usr/bin/ar /usr/bin/musl-ar \
    && ln -s /usr/bin/strip /usr/bin/musl-strip \
    && make -j$(nproc)

I'm not sure if it is the problem with this sentence, I found that grpc request will be initiated in Dockerfile, maybe it's my network problem.
In the evening, I will try to download the corresponding file separately.

@dust1
Copy link
Contributor Author

dust1 commented Nov 23, 2021

All files are downloaded without problems. when i cancel the task, It reminds me:

 => CANCELED [busybox 8/8] RUN yes n | make oldconfig > /dev/null     && ln -s /usr/bin/ar /usr/bin/musl-ar      277.4s
failed to solve: rpc error: code = Canceled desc = context canceled

It seems that the problem still lies in the rpc?

I tried to compile on another ubuntu and found that it succeeded without modifying the Dockerfile.
sad....

@dust1
Copy link
Contributor Author

dust1 commented Nov 24, 2021

I still haven't found the cause of the problem, but I have now migrated my work to another server.
Does this issue need to be closed? @nuta

@nuta
Copy link
Owner

nuta commented Nov 25, 2021

Glad to hear that you're not suffered from this strange issue. I'll close this issue but feel free to reopen when you got this again :)

@nuta nuta closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants