Failed to receive status rpc error code unavailable desc error reading from server eof

I'm trying to access my ETCD database from a K8s controller, but getting rpc error/EOF when trying to open ETCD client. My setup: ETCD service is deployed in my K8s cluster and included in my Istio

I’m trying to access my ETCD database from a K8s controller, but getting rpc error/EOF when trying to open ETCD client.

My setup:

  • ETCD service is deployed in my K8s cluster and included in my Istio service mesh (its DNS record: my-etcd-cluster.my-etcd-namespace.svc.cluster.local)
  • I have a custom K8s controller developed with use of Kubebuilder framework and deployed in the same cluster, different namespace, but configured to be a part of the same Istio service mesh
  • I’m trying to connect to ETCD database from the controller, using Go client SDK library for ETCD

Here’s my affected Go code:

cli, err := clientv3.New(clientv3.Config{
    Endpoints:   []string{"http://my-etcd-cluster.my-etcd-namespace.svc.cluster.local:2379"},
    DialTimeout: 5 * time.Second,
    Username:    username,
    Password:    password,
})

if err != nil {
    return nil, fmt.Errorf("opening ETCD client failed: %v", err)
}

And here’s an error I’m getting when clientv3.New(...) gets executed:

{"level":"warn","ts":"2022-03-16T23:37:42.174Z","logger":"etcd-client","caller":"v3@v3.5.0/retry_interceptor.go:62","msg":"retrying of unary invoker failed",
"target":"etcd-endpoints://0xc00057f500/#initially=[http://my-etcd-cluster.my-etcd-namespace.svc.cluster.local:2379]","attempt":0,
"error":"rpc error: code = Unavailable desc = error reading from server: EOF"}
...
1.647473862175209e+09   INFO    controller.etcdclient   Finish reconcile loop for some-service/test-svc-client  {"reconciler group": "my-controller.something.io", "reconciler kind": "ETCDClient", "name": "test-svc-client", "namespace": "some-service", "reconcile-etcd-client": "some-service/test-svc-client"}
1.6474738621752858e+09  ERROR   controller.etcdclient   Reconciler error        {"reconciler group": "my-controller.something.io", "reconciler kind": "ETCDClient", "name": "test-svc-client", "namespace": "some-service", "error": "opening ETCD client failed: rpc error: code = Unavailable desc = error reading from server: EOF"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.0/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.0/pkg/internal/controller/controller.go:227

The same error happens when I’m passing some dummy, invalid credentials.

However, when I tried to access the database in a HTTP API manner:

postBody, _ := json.Marshal(map[string]string{
    "name":     username,
    "password": password,
})
responseBody := bytes.NewBuffer(postBody)

resp, err := http.Post("http://my-etcd-cluster.my-etcd-namespace.svc.cluster.local:2379/v3/auth/authenticate", "application/json", responseBody)
if err != nil {
    return ctrl.Result{}, fmt.Errorf("an error occured %w", err)
}
l.Info(fmt.Sprintf("code: %d", resp.StatusCode))
defer resp.Body.Close()

…I got 200 OK and a proper token (which is expected), so I believe my Istio configuration is ok and my controller should be able to see the ETCD db service. I have no clue why this doesn’t work when following the client SDK approach.

When I’m using port-forwarding of the ETCD service and accessing it locally, clientv3.New() and other client SDK methods work like a charm. What am I missing? I’d really appreciate any suggestions.

EDIT:
I’ve also added a simple pod to try accessing my etcd db via etcdctl:

apiVersion: v1
kind: Pod
metadata:
  name: test-pod
  namespace: my-controller-namespace
spec:
  containers:
  - name: etcdctl
    image: bitnami/etcd
    command:
    - sleep
    - infinity

When logged into the container via kubectl exec, I was able to access my db:

$ etcdctl --endpoints=my-etcd-cluster.my-etcd-namespace.svc.cluster.local:2379 --user="user" --password="password" put foo bob
OK

I guess the problem is somewhere in the SDK?

Содержание

  1. Получение «ошибка rpc: код = недоступное описание = ошибка чтения с сервера: EOF» при попытке создать новый клиент etcdv3
  2. Error: failed to receive status: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = «error reading from server: io: read/write on closed pipe», received prior goaway: code: NO_ERROR #1079
  3. Comments
  4. Footer
  5. error: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF When building docker about rasa HOT 2 OPEN
  6. Comments (2)
  7. Related Issues (20)
  8. Recommend Projects
  9. React
  10. Vue.js
  11. Typescript
  12. TensorFlow
  13. Django
  14. Laravel
  15. Recommend Topics
  16. javascript
  17. server
  18. Machine learning
  19. Visualization
  20. Recommend Org
  21. Facebook
  22. Microsoft
  23. Error: failed to receive status: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = «error reading from server: io: read/write on closed pipe», received prior goaway: code: NO_ERROR about buildx HOT 8 OPEN
  24. Comments (8)
  25. Related Issues (20)
  26. Recommend Projects
  27. React
  28. Vue.js
  29. Typescript
  30. TensorFlow
  31. Django
  32. Laravel
  33. Recommend Topics
  34. javascript
  35. server
  36. Machine learning
  37. Visualization
  38. Recommend Org
  39. Facebook
  40. Microsoft
  41. Получение «ошибка rpc: код = недоступное описание = ошибка чтения с сервера: EOF» при попытке создать новый клиент etcdv3

Получение «ошибка rpc: код = недоступное описание = ошибка чтения с сервера: EOF» при попытке создать новый клиент etcdv3

Я пытаюсь получить доступ к своей базе данных ETCD с контроллера K8s, но получаю сообщение об ошибке rpc/EOF при попытке открыть клиент ETCD.

  • Служба ETCD развернута в моем кластере K8s и включена в мою сервисную сетку Istio (ее DNS-запись: my-etcd-cluster.my-etcd-namespace.svc.cluster.local )
  • У меня есть собственный контроллер K8s, разработанный с использованием среды Kubebuilder и развернутый в том же кластере, в другом пространстве имен, но сконфигурированный как часть одной и той же сервисной сетки Istio.
  • Я пытаюсь подключиться к базе данных ETCD с контроллера, используя клиентскую библиотеку SDK Go для ETCD.

Вот мой затронутый код Go:

И вот ошибка, которую я получаю, когда выполняется clientv3.New(. ) :

Та же ошибка возникает, когда я передаю какие-то фиктивные, недействительные учетные данные.

Однако, когда я попытался получить доступ к базе данных с помощью HTTP API:

. Я получил 200 OK и правильный токен (что и ожидалось), поэтому я считаю, что моя конфигурация Istio в порядке, и мой контроллер должен видеть службу ETCD db. Я понятия не имею, почему это не работает, если следовать подходу клиентского SDK.

Когда я использую переадресацию портов службы ETCD и получаю к ней локальный доступ, clientv3.New() и другие методы клиентского SDK работают как часы. Что мне не хватает? Я был бы очень признателен за любые предложения.

Обновлено: Я также добавил простой модуль, чтобы попытаться получить доступ к моей базе данных etcd через etcdctl:

При входе в контейнер через kubectl exec я смог получить доступ к своей базе данных:

Источник

Error: failed to receive status: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = «error reading from server: io: read/write on closed pipe», received prior goaway: code: NO_ERROR #1079

buildx-version:0.7.0
buildkit-version:0.9.0
driver: —driver kubenetes


Error: failed to receive status: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = «error reading from server: io: read/write on closed pipe»

The text was updated successfully, but these errors were encountered:

Can you update buildx and BuildKit and let us known if you still have this issue? Thanks.

I am facing a similar error while building

Any updates on why this is happening and how it can be fixed?

After this error, it requires PC restart to fix the issue and after that only building for a single time, the error repeats and again I restart the PC.

After this error, it requires PC restart to fix the issue and after that only building for a single time, the error repeats and again I restart the PC.

This is what is happening to me right now. What fixed your issue?

This is very frustrating and not stable Docker Desktop for Windows. My issue is still not fixed even after restart couple of times. I re-installled few times and then use «docker system prune» command as well.

How to fix this issue ?

@st-sukanta @g-kartik @yohnster I have found the cause of the problem, which is caused by a sudden outage of the buildkit server.

I ran into this same error when trying to build a Dockerfile which had a make -j step, which can cause a ton of processes to run in parallel. The docker build process would halt for several minutes, docker ps calls would hang, and then eventually the build process would give this error. I was able to fix it by limiting the number of jobs make would start by changing the command to make -j $(nproc) .

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

error: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF When building docker about rasa HOT 2 OPEN

Any update on this. I face same issue when image size is big.

sync-by-unito commented on January 17, 2023

➤ Maxime Verger commented:

From now on, this Jira board is the place where you can browse (without an account) and create issues (you’ll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue!

  • Telegram connection HOT 2
  • M1 Support HOT 1
  • OSS HTTP API: Implement `POST /model` endpoint for loading a model HOT 2
  • Reload model from AWS S3 HOT 1
  • Using same slot in multiple forms causing no custom action call HOT 1
  • components module not found in RASA 3.3.0 HOT 1
  • Slow responses with many simultaneous interactions HOT 1
  • TypeError linked to protobuf on Rasa 3.3.2 / Python 3.9 when trying to import Validator HOT 2
  • rasa data validate does not properly ignore warnings HOT 3
  • JSONDecodeError when loading YAML file HOT 1
  • Could not load model due to Error initializing graph component for node ‘run_LanguageModelFeaturizer1’ HOT 1
  • rasa train does not pick GPU HOT 4
  • AttributeError: module ‘rasa_nlu.config’ has no attribute ‘load’ HOT 1
  • Explain-ability with LIME or SHAP HOT 2
  • Bugs encountered when using external PostgreSQL and Redis HOT 2
  • Problems with rasa installation on Python 3.10 HOT 2
  • Improving README.md steps in Development Internals HOT 3
  • Test feature request
  • Test bug
  • Training model not working on mac m1: 9284 illegal hardware instruction HOT 2

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

Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

javascript

JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

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

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.

Источник

Error: failed to receive status: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = «error reading from server: io: read/write on closed pipe», received prior goaway: code: NO_ERROR about buildx HOT 8 OPEN

Can you update buildx and BuildKit and let us known if you still have this issue? Thanks.

g-kartik commented on January 17, 2023

I am facing a similar error while building

g-kartik commented on January 17, 2023

Any updates on why this is happening and how it can be fixed?

g-kartik commented on January 17, 2023

After this error, it requires PC restart to fix the issue and after that only building for a single time, the error repeats and again I restart the PC.

yohnster commented on January 17, 2023

After this error, it requires PC restart to fix the issue and after that only building for a single time, the error repeats and again I restart the PC.

This is what is happening to me right now. What fixed your issue?

st-sukanta commented on January 17, 2023

This is very frustrating and not stable Docker Desktop for Windows. My issue is still not fixed even after restart couple of times. I re-installled few times and then use «docker system prune» command as well.

How to fix this issue ?

gitfxx commented on January 17, 2023

@st-sukanta @g-kartik @yohnster I have found the cause of the problem, which is caused by a sudden outage of the buildkit server.

Macil commented on January 17, 2023

I ran into this same error when trying to build a Dockerfile which had a make -j step, which can cause a ton of processes to run in parallel. The docker build process would halt for several minutes, docker ps calls would hang, and then eventually the build process would give this error. I was able to fix it by limiting the number of jobs make would start by changing the command to make -j $(nproc) .

  • Bake to OCI with multiple images
  • Is it possible to save buildx’s image as an image and push it to harbor through docker push or only through docker Buildx-Push to harbor HOT 1
  • docs: context attribute for docker exporter type
  • The node-amd64 and node-arm64 contexts are not available in buildx version 0.9.1
  • Error while installing jdbc jar in docker image HOT 1
  • bake flag -f additively combines some keys and overwrites others
  • Build steps are sometimes numbered in an incorrect order when using `docker build —progress plain` HOT 4
  • panic: runtime error: invalid memory address or nil pointer dereference in BuildWithResultHandler HOT 3
  • docker buildx create the fail is: Error response from daemon: Client sent an HTTP request to an HTTPS server.
  • Variable with COPY —from? HOT 3
  • Buildx 0.10.0 giving additional manifest to docker image? HOT 10
  • buildx push to self-signed private registry error HOT 2
  • buildx 0.10.0 manifesh push error HOT 5
  • improve docs on «emulated» vs «native» multi-arch builds HOT 1
  • Unable to build and push images to registry in GHActions: buildx failed with unexpected status: 400 Bad Request HOT 1
  • buildx segfault with empty newline continuation HOT 1
  • Request: sign the release binaries with GPG (or something else)
  • bake: prohibit read/write an arbitrary path on the client host filesystem HOT 2
  • Multiarch — merging manifest fails with httpReadSeeker «failed open — not found» HOT 1
  • ls: improve handling of invalid builders/context, clarify relation with context HOT 1

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

Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

javascript

JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

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

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.

Источник

Получение «ошибка rpc: код = недоступное описание = ошибка чтения с сервера: EOF» при попытке создать новый клиент etcdv3

Я пытаюсь получить доступ к своей базе данных ETCD с контроллера K8s, но получаю сообщение об ошибке rpc/EOF при попытке открыть клиент ETCD.

  • Служба ETCD развернута в моем кластере K8s и включена в мою сервисную сетку Istio (ее DNS-запись: my-etcd-cluster.my-etcd-namespace.svc.cluster.local )
  • У меня есть собственный контроллер K8s, разработанный с использованием среды Kubebuilder и развернутый в том же кластере, в другом пространстве имен, но сконфигурированный как часть одной и той же сервисной сетки Istio.
  • Я пытаюсь подключиться к базе данных ETCD с контроллера, используя клиентскую библиотеку SDK Go для ETCD.

Вот мой затронутый код Go:

И вот ошибка, которую я получаю, когда выполняется clientv3.New(. ) :

Та же ошибка возникает, когда я передаю какие-то фиктивные, недействительные учетные данные.

Однако, когда я попытался получить доступ к базе данных с помощью HTTP API:

. Я получил 200 OK и правильный токен (что и ожидалось), поэтому я считаю, что моя конфигурация Istio в порядке, и мой контроллер должен видеть службу ETCD db. Я понятия не имею, почему это не работает, если следовать подходу клиентского SDK.

Когда я использую переадресацию портов службы ETCD и получаю к ней локальный доступ, clientv3.New() и другие методы клиентского SDK работают как часы. Что мне не хватает? Я был бы очень признателен за любые предложения.

Обновлено: Я также добавил простой модуль, чтобы попытаться получить доступ к моей базе данных etcd через etcdctl:

При входе в контейнер через kubectl exec я смог получить доступ к своей базе данных:

Источник

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    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 photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

jaudiger

[Container] Fail to build a devcontainer: ERROR: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF

  • VSCode Version: 1.75

  • Local OS Version: Fedora 37

  • Remote OS Version: Fedora 37

  • Remote Extension/Connection Type: Containers

  • Logs:

[2023-02-03T08:26:11.196Z] Dev Containers 0.276.0 in VS Code 1.75.0 (e2816fe719a4026ffa1ee0189dc89bdfdbafb164).
[2023-02-03T08:26:11.196Z] Start: Resolving Remote
[2023-02-03T08:26:11.217Z] Setting up container for folder or workspace: /home/foo/bar
[2023-02-03T08:26:11.222Z] Start: Check Docker is running
[2023-02-03T08:26:11.223Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2023-02-03T08:26:11.280Z] Stop (57 ms): Run: docker version --format {{.Server.APIVersion}}
[2023-02-03T08:26:11.281Z] Server API version: 1.42
[2023-02-03T08:26:11.281Z] Stop (59 ms): Check Docker is running
[2023-02-03T08:26:11.282Z] Start: Run: docker volume ls -q
[2023-02-03T08:26:11.332Z] Stop (50 ms): Run: docker volume ls -q
[2023-02-03T08:26:11.333Z] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/home/foo/bar --filter label=vsch.quality=stable
[2023-02-03T08:26:11.386Z] Stop (53 ms): Run: docker ps -q -a --filter label=vsch.local.folder=/home/foo/bar --filter label=vsch.quality=stable
[2023-02-03T08:26:11.386Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/foo/bar --filter label=devcontainer.config_file=/home/foo/bar/.devcontainer/devcontainer.json
[2023-02-03T08:26:11.436Z] Stop (50 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/foo/bar --filter label=devcontainer.config_file=/home/foo/bar/.devcontainer/devcontainer.json
[2023-02-03T08:26:11.437Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/foo/bar
[2023-02-03T08:26:11.487Z] Stop (50 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/foo/bar
[2023-02-03T08:26:11.488Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/foo/bar
[2023-02-03T08:26:11.537Z] Stop (49 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/foo/bar
[2023-02-03T08:26:11.538Z] Start: Run: /usr/share/code/code --ms-enable-electron-run-as-node /home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/foo/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder tmp/devcontainers-62a0e236-7d04-4ae3-9796-8b1ec8d2c4a91675412770316 --workspace-folder /home/foo/bar --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/foo/bar --id-label devcontainer.config_file=/home/foo/bar/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/foo/bar/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=/run/user/1000/wayland-0,target=/tmp/vscode-wayland-352c4678588e167720eb909b8010065c301da55a.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-02-03T08:26:11.791Z] (node:8185) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[2023-02-03T08:26:11.791Z] (Use `code --trace-deprecation ...` to show where the warning was created)
[2023-02-03T08:26:11.792Z] @devcontainers/cli 0.29.0. Node.js v16.14.2. linux 6.1.8-200.fc37.x86_64 x64.
[2023-02-03T08:26:11.792Z] Start: Run: docker buildx version
[2023-02-03T08:26:11.870Z] Stop (78 ms): Run: docker buildx version
[2023-02-03T08:26:11.871Z] github.com/docker/buildx v0.10.2 00ed17d
[2023-02-03T08:26:11.871Z] 
[2023-02-03T08:26:11.871Z] Start: Resolving Remote
[2023-02-03T08:26:11.873Z] Start: Run: git rev-parse --show-cdup
[2023-02-03T08:26:11.878Z] Stop (5 ms): Run: git rev-parse --show-cdup
[2023-02-03T08:26:11.879Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/foo/bar --filter label=devcontainer.config_file=/home/foo/bar/.devcontainer/devcontainer.json
[2023-02-03T08:26:11.928Z] Stop (49 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/foo/bar --filter label=devcontainer.config_file=/home/foo/bar/.devcontainer/devcontainer.json
[2023-02-03T08:26:11.931Z] Start: Run: docker inspect --type image fedora-base-image:latest
[2023-02-03T08:26:11.980Z] Stop (49 ms): Run: docker inspect --type image fedora-base-image:latest
[2023-02-03T08:26:11.981Z] local container features stored at: /home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/node_modules/vscode-dev-containers/container-features
[2023-02-03T08:26:11.982Z] Start: Run: tar --no-same-owner -x -f -
[2023-02-03T08:26:12.000Z] Stop (18 ms): Run: tar --no-same-owner -x -f -
[2023-02-03T08:26:12.002Z] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-foo/container-features/0.29.0-1675412771981/Dockerfile-with-features -t vsc-foo-d59d9b82524cc32346608bd4ab3ef08d --target dev_containers_target_stage --build-arg ADDITIONAL_PACKAGES= --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/foo/bar/.devcontainer
[2023-02-03T08:26:12.196Z] 
[2023-02-03T08:26:12.196Z] [+] Building 0.0s (0/1)                                                         
[2023-02-03T08:26:12.335Z] [+] Building 0.1s (5/6)                                                         
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
[2023-02-03T08:26:12.335Z]  => [internal] load build definition from Dockerfile-with-features         0.0s
 => => transferring dockerfile: 1.37kB                                     0.0s
 => [internal] load metadata for docker.io/library/fedora-base-image  0.0s
 => [dev_container_auto_added_stage_label 1/2] FROM docker.io/library/fed  0.0s
 => CACHED [dev_container_auto_added_stage_label 2/2] RUN [[ ! -z "" ]]    0.0s
 => preparing layers for inline cache                                      0.1s
ERROR: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF
[2023-02-03T08:26:12.540Z] Stop (538 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-foo/container-features/0.29.0-1675412771981/Dockerfile-with-features -t vsc-foo-d59d9b82524cc32346608bd4ab3ef08d --target dev_containers_target_stage --build-arg ADDITIONAL_PACKAGES= --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/foo/bar/.devcontainer
[2023-02-03T08:26:12.541Z] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-foo/container-features/0.29.0-1675412771981/Dockerfile-with-features -t vsc-foo-d59d9b82524cc32346608bd4ab3ef08d --target dev_containers_target_stage --build-arg ADDITIONAL_PACKAGES= --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/foo/bar/.devcontainer
[2023-02-03T08:26:12.542Z]     at pie (/home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/spec-node/devContainersSpecCLI.js:1916:1698)
[2023-02-03T08:26:12.543Z]     at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-02-03T08:26:12.543Z]     at async vF (/home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/spec-node/devContainersSpecCLI.js:1915:1972)
[2023-02-03T08:26:12.544Z]     at async P7 (/home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/spec-node/devContainersSpecCLI.js:1915:901)
[2023-02-03T08:26:12.545Z]     at async Fie (/home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/spec-node/devContainersSpecCLI.js:1921:2093)
[2023-02-03T08:26:12.545Z]     at async Vf (/home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/spec-node/devContainersSpecCLI.js:1921:3241)
[2023-02-03T08:26:12.546Z]     at async eoe (/home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/spec-node/devContainersSpecCLI.js:2045:17324)
[2023-02-03T08:26:12.546Z]     at async Qse (/home/foo/.vscode/extensions/ms-vscode-remote.remote-containers-0.276.0/dist/spec-node/devContainersSpecCLI.js:2045:17065)

Steps to Reproduce:

  1. Trying to create a dev container

I don’t know what is causing this issue, this morning I upgraded at the same time, VSCode to 1.75 and Docker to 23.0.0. I think one of them seems to have triggered this issue I didn’t have yesterday.

pglira

pglira

It seems to be the docker upgrade, see #7955

rneuter

Same here, glad I’m not alone, it was driving me crazy.

I succeed to make it works by disabling all Dev Container Features in my .devcontainer.json configuration file. Do you have the same behavior?

pglira

I’ve tried to deactivate almost everything, but in my case the error still occurs.

jaudiger

Same here, the issue comes from the upgrade of Docker, thanks @pglira to point me out the closed issue.

Maybe the issue comes from the new default builder, I don’t know:

image

As for now, I’ll leave this issue opened, just to continue to investigate.

jaudiger

I found maybe a possible relating problem while digging into buildx issues: docker/buildx#1325.

pglira

I downgraded docker to 20.10.23 and now it works again.

For this I followed the instructions here: https://docs.docker.com/engine/install/ubuntu/ (I’m on Ubuntu 22.04)

2023_02_03_12_54_51

(However, it did not work immediately. For some reason I needed to reinstall also docker-desktop and to restart my pc twice but this might not be necessary in other cases.)

chrmarti

mmmherma

dlangerm

antonioconselheiro

stratmm

Had the same problem, docker-compose build worked but vscode devcontainers builds are failing with the same issue. Downgrading to 20.10.23 fixed the problem

mwinters-stuff

Workaround without changing docker version, if using linux is to add
export DOCKER_BUILDKIT=0
to your ~/.profile

Restart vscode and I was able to build the container again.

jensenbox

Plopping in a snippet of the error for search engines in case other people run into this:

 => preparing layers for inline cache                                                                                                                                                                                                        0.2s
ERROR: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF

I hope there is a fix soon!

jaudiger

elcojacobs

Easy workaround until the fix is live is to disable inline cache in devcontainer.json :

  "build": {
    "dockerfile": "Dockerfile",
    "cacheFrom": "brewblox/firmware-devcontainer:bullseye",
    "args": {
      "USERNAME": "vscode",
      "BUILDKIT_INLINE_CACHE": "0"
    }
  },

mksmtn

elcojacobs

I also found out that the slowest part of a container rebuild here was pushing it to the inline cache, which somehow took 10 minutes. Just rebuilding from the registry cache finishes in 10 seconds, so I might leave the inline cache disabled. Not sure what the benefit would be if we keep a registry container up-to-date.

telam

Plopping in a snippet of the error for search engines in case other people run into this:

 => preparing layers for inline cache                                                                                                                                                                                                        0.2s
ERROR: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF

I hope there is a fix soon!

Doing the community a service. Thank you!

revliscano

Same error here. After three hours of frustration I finally found this issue. I’m gonna downgrade Docker now to see if I’m lucky

Я пытаюсь получить доступ к своей базе данных ETCD с контроллера K8s, но получаю сообщение об ошибке rpc/EOF при попытке открыть клиент ETCD.

Моя установка:

  • Служба ETCD развернута в моем кластере K8s и включена в мою сервисную сетку Istio (ее DNS-запись: my-etcd-cluster.my-etcd-namespace.svc.cluster.local)
  • У меня есть собственный контроллер K8s, разработанный с использованием среды Kubebuilder и развернутый в том же кластере, в другом пространстве имен, но сконфигурированный как часть одной и той же сервисной сетки Istio.
  • Я пытаюсь подключиться к базе данных ETCD с контроллера, используя клиентскую библиотеку SDK Go для ETCD.

Вот мой затронутый код Go:

cli, err := clientv3.New(clientv3.Config{
    Endpoints:   []string{"http://my-etcd-cluster.my-etcd-namespace.svc.cluster.local:2379"},
    DialTimeout: 5 * time.Second,
    Username:    username,
    Password:    password,
})

if err != nil {
    return nil, fmt.Errorf("opening ETCD client failed: %v", err)
}

И вот ошибка, которую я получаю, когда выполняется clientv3.New(…):

{"level":"warn","ts":"2022-03-16T23:37:42.174Z","logger":"etcd-client","caller":"v3@v3.5.0/retry_interceptor.go:62","msg":"retrying of unary invoker failed",
"target":"etcd-endpoints://0xc00057f500/#initially=[http://my-etcd-cluster.my-etcd-namespace.svc.cluster.local:2379]","attempt":0,
"error":"rpc error: code = Unavailable desc = error reading from server: EOF"}
...
1.647473862175209e+09   INFO    controller.etcdclient   Finish reconcile loop for some-service/test-svc-client  {"reconciler group": "my-controller.something.io", "reconciler kind": "ETCDClient", "name": "test-svc-client", "namespace": "some-service", "reconcile-etcd-client": "some-service/test-svc-client"}
1.6474738621752858e+09  ERROR   controller.etcdclient   Reconciler error        {"reconciler group": "my-controller.something.io", "reconciler kind": "ETCDClient", "name": "test-svc-client", "namespace": "some-service", "error": "opening ETCD client failed: rpc error: code = Unavailable desc = error reading from server: EOF"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.0/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.0/pkg/internal/controller/controller.go:227

Та же ошибка возникает, когда я передаю какие-то фиктивные, недействительные учетные данные.

Однако, когда я попытался получить доступ к базе данных с помощью HTTP API:

postBody, _ := json.Marshal(map[string]string{
    "name":     username,
    "password": password,
})
responseBody := bytes.NewBuffer(postBody)

resp, err := http.Post("http://my-etcd-cluster.my-etcd-namespace.svc.cluster.local:2379/v3/auth/authenticate", "application/json", responseBody)
if err != nil {
    return ctrl.Result{}, fmt.Errorf("an error occured %w", err)
}
l.Info(fmt.Sprintf("code: %d", resp.StatusCode))
defer resp.Body.Close()

… Я получил 200 OK и правильный токен (что и ожидалось), поэтому я считаю, что моя конфигурация Istio в порядке, и мой контроллер должен видеть службу ETCD db. Я понятия не имею, почему это не работает, если следовать подходу клиентского SDK.

Когда я использую переадресацию портов службы ETCD и получаю к ней локальный доступ, clientv3.New() и другие методы клиентского SDK работают как часы. Что мне не хватает? Я был бы очень признателен за любые предложения.

Обновлено:
Я также добавил простой модуль, чтобы попытаться получить доступ к моей базе данных etcd через etcdctl:

apiVersion: v1
kind: Pod
metadata:
  name: test-pod
  namespace: my-controller-namespace
spec:
  containers:
  - name: etcdctl
    image: bitnami/etcd
    command:
    - sleep
    - infinity

При входе в контейнер через kubectl exec я смог получить доступ к своей базе данных:

$ etcdctl --endpoints=my-etcd-cluster.my-etcd-namespace.svc.cluster.local:2379 --user = "user" --password = "password" put foo bob
OK

Я предполагаю, что проблема где-то в SDK?

Понравилась статья? Поделить с друзьями:
  • Failed to read rom error 0fl01 atiflash
  • Failed to read patcher version information black desert как исправить
  • Failed to read initialization file fortnite как исправить
  • Failed to read from socket error is 10060
  • Failed to read detroit become human error