Error: proto: cannot parse invalid wire-format data

I am trying to create a multi node Singlestore setup by installing kubectl in my linux box and I created the 4 yaml files as listed below based on the documentation (SingleStoreDB Cloud · SingleStore Documentation) and when I try to deploying the DB Cluster. I get error when I run the below command

cslucano@baremetal02:~$ kubectl create -f rbac.yaml
error: proto: cannot parse invalid wire-format data

-rw-rw-r-- 1 cslucano cslucano 1135 Apr 4 14:36 deployment.yaml
-rw-rw-r-- 1 cslucano cslucano 1212 Apr 4 14:37 rbac.yaml
-rw-rw-r-- 1 cslucano cslucano 883 Apr 4 14:37 memsql-cluster-crd.yaml
-rw-rw-r-- 1 cslucano cslucano 932 Apr 4 14:46 memsql-cluster.yaml

Hi Anurag! :raising_hand_woman: I understand this can be frustrating. Sorry you are having these issues. What version are you running?

@MariaSilverhardt Here are the version of docker and kubernetes

cslucano@baremetal02:~$ docker version
Client:
 Version:           20.10.7
 API version:       1.41
 Go version:        go1.13.8
 Git commit:        20.10.7-0ubuntu5~20.04.2
 Built:             Mon Nov  1 00:34:17 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.7
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.8
  Git commit:       20.10.7-0ubuntu5~20.04.2
  Built:            Fri Oct 22 00:45:53 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.5.5-0ubuntu3~20.04.1
  GitCommit:
 runc:
  Version:          1.0.1-0ubuntu2~20.04.1
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:
cslucano@baremetal02:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5", GitCommit:"c285e781331a3785a7f436042c65c5641ce8a9e9", GitTreeState:"clean", BuildDate:"2022-03-16T15:58:47Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"linux/amd64"}
error: unable to parse the server version: invalid character '<' looking for beginning of value
1 Like

@MariaSilverhardt

I did move past the last step where I was stuck, and it was because we had chose to not pull the images of some of the some of the memsql components which were marked as optional in the documentation i.e. memsql/node and memsql/tools. Once I got these two images in my server, and I ran the step#1 of ‘Deploy a SingleStore DB Cluster’, I was able to Install the RBAC Resources

cslucano@baremetal02:~$ kubectl create -f rbac.yaml
serviceaccount/memsql-operator created
role.rbac.authorization.k8s.io/memsql-operator created
rolebinding.rbac.authorization.k8s.io/memsql-operator created

But in next step of ‘Install the MemSQL cluster resource definition’, I get error

cslucano@baremetal02:~$ kubectl create -f memsql-cluster-crd.yaml
error: unable to recognize “memsql-cluster-crd.yaml”: no matches for kind “CustomResourceDefinition” in version “apiextensions.k8s.io/v1beta1

In Single Store community, I see someone else also face the same issue -

Right now, I am going to try Kubernetes v1.21 as per the above article. I will put another post sharing the outcome. Thanks!

1 Like

Thanks for the update, Anurag, and best luck :four_leaf_clover: Can’t wait to hear how it turns out.