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

your offline-installation-tool.sh have some prolems: invalid reference format #2041

Open
usernameisnull opened this issue Jul 2, 2022 · 4 comments

Comments

@usernameisnull
Copy link

usernameisnull commented Jul 2, 2022

bash -x offline-installation-tool.sh -s -l images-list.txt -d ./kubesphere-images

+ echo 'Save images: istio-images to ./kubesphere-images/istio-images.tar.gz  <<<'
Save images: istio-images to ./kubesphere-images/istio-images.tar.gz  <<<
+ docker save $'istio/pilot:1.11.1\r' $'istio/proxyv2:1.11.1\r' $'jaegertracing/jaeger-operator:1.27\r' $'jaegertracing/jaeger-agent:1.27\r' $'jaegertracing/jaeger-collector:1.27\r' $'jaegertracing/jaeger-query:1.27\r' $'jaegertracing/jaeger-es-index-cleaner:1.27\r' $'kubesphere/kiali-operator:v1.38.1\r' $'kubesphere/kiali:v1.38\r'
+ gzip -c
Error response from daemon: invalid reference format
+ echo ''

+ images=
'+ echo '##weave-scope-images
++ sed -e 's/[[:space:]]//g'
++ sed s/#//g
+ name=weave-scope-images
+ (( index++ ))
+ continue
+ for image in $(<${ImagesList})
 =~ ^##.* ]]rks/scope:1.13.0
+ docker pull $'weaveworks/scope:1.13.0\r'
invalid reference format
' images=' weaveworks/scope:1.13.0
+ [[ 114 -eq 115-1 ]]
 ]][ -n  weaveworks/scope:1.13.0
+ docker save $'weaveworks/scope:1.13.0\r'
+ gzip -c
Error response from daemon: invalid reference format
@usernameisnull usernameisnull changed the title your off your offline-installation-tool.sh have some prolems: invalid reference format Jul 2, 2022
@usernameisnull
Copy link
Author

when push,same error

+ imageurl=$'10.6.182.195/kubesphere/kubesphere/ks-installer:v3.3.0\r'
+ echo $'10.6.182.195/kubesphere/kubesphere/ks-installer:v3.3.0\r'
10.6.182.195/kubesphere/kubesphere/ks-installer:v3.3.0
+ docker tag $'kubesphere/ks-installer:v3.3.0\r' $'10.6.182.195/kubesphere/kubesphere/ks-installer:v3.3.0\r'
Error parsing reference: "kubesphere/ks-installer:v3.3.0\r" is not a valid repository/tag: invalid reference format
+ docker push $'10.6.182.195/kubesphere/kubesphere/ks-installer:v3.3.0\r'
invalid reference format

@chengongliang
Copy link

dos2unix images-list.txt

@LittleMilkCow
Copy link

dos2unix images-list.txt

hello, @chengongliang ,i tried to install dos2unix and use it to conver images-list.txt to a unix file, and then the error of 'invalid reference format' is gone.
however, i still get the error like this:
Save images: k8s-images to ./kubesphere-images/k8s-images.tar.gz <<< Error response from daemon: reference does not exist

@willzhang
Copy link

yes it have problems

root@ubuntu:~# curl -L -O https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/images-list.txt

you will see ^M$

root@ubuntu:~# cat -A images-list.txt
##k8s-images^M$
kubesphere/kube-apiserver:v1.23.7^M$
kubesphere/kube-controller-manager:v1.23.7^M$
kubesphere/kube-proxy:v1.23.7^M$
kubesphere/kube-scheduler:v1.23.7^M$
kubesphere/kube-apiserver:v1.24.1^M$
kubesphere/kube-controller-manager:v1.24.1^M$
kubesphere/kube-proxy:v1.24.1^M$
kubesphere/kube-scheduler:v1.24.1^M$
kubesphere/kube-apiserver:v1.22.10^M$
kubesphere/kube-controller-manager:v1.22.10^M$
....

you should do this , the problems will resoved.

sed -i 's/\r$//' images-list.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants