Comments (7)
I figured out that the problem is with the line below. I had to change it to netstat -an | grep :::443 && break
to get past it for now.
from quickstart.
Then I ran into another problem below. Has this been tested with vagrant? Thanks.
server-01: ++ docker run --net=host --rm appropriate/curl -s 'https://127.0.0.1/v3-public/localProviders/local?action=login' -H 'content-type: application/json' --data-binary '{"username":"admin","password":"admin"}' --insecure
server-01: Unable to find image 'appropriate/curl:latest' locally
server-01: latest: Pulling from appropriate/curl
server-01: ff3a5c916c92: Pulling fs layer
server-01: 3151abf94102: Pulling fs layer
server-01: 58ae3cb4aac4: Pulling fs layer
server-01: 58ae3cb4aac4: Verifying Checksum
server-01: 58ae3cb4aac4: Download complete
server-01: 3151abf94102: Verifying Checksum
server-01: 3151abf94102: Download complete
server-01: ff3a5c916c92: Verifying Checksum
server-01: ff3a5c916c92: Download complete
server-01: ff3a5c916c92: Pull complete
server-01: 3151abf94102: Pull complete
server-01: 58ae3cb4aac4: Pull complete
server-01: Digest: sha256:c8bf5bbec6397465a247c2bb3e589bb77e4f62ff88a027175ecb2d9e4f12c9d7
server-01: Status: Downloaded newer image for appropriate/curl:latest
server-01: + LOGINRESPONSE=
server-01: ++ jq -r .token
server-01: ++ echo
server-01: + LOGINTOKEN=
server-01: + docker run --net=host --rm appropriate/curl -s 'https://127.0.0.1/v3/users?action=changepassword' -H 'content-type: application/json' -H 'Authorization: Bearer ' --data-binary '{"currentPassword":"admin","newPassword":"admin"}' --insecure
server-01: ++ docker run --net host --rm appropriate/curl -s https://127.0.0.1/v3/token -H 'content-type: application/json' -H 'Authorization: Bearer ' --data-binary '{"type":"token","description":"automation","name":""}' --insecure
server-01: + APIRESPONSE=
server-01: ++ jq -r .token
server-01: ++ echo
server-01: + APITOKEN=
server-01: ++ docker run --net host --rm appropriate/curl -s https://127.0.0.1/v3/settings/server-url -H 'content-type: application/json' -H 'Authorization: Bearer ' -X PUT --data-binary '{"name":"server-url","value":"https://172.22.101.101"}' --insecure
server-01: + SERVERURLRESPONSE=
server-01: ++ docker run --net host --rm appropriate/curl -s https://127.0.0.1/v3/cluster -H 'content-type: application/json' -H 'Authorization: Bearer ' --data-binary '{"type":"cluster","rancherKubernetesEngineConfig":{"ignoreDockerVersion":false,"sshAgentAuth":false,"type":"rancherKubernetesEngineConfig","kubernetesVersion":"v1.11.2-rancher1-1","authentication":{"type":"authnConfig","strategy":"x509"},"network":{"type":"networkConfig","plugin":"flannel","flannelNetworkProvider":{"iface":"eth1"},"calicoNetworkProvider":null},"ingress":{"type":"ingressConfig","provider":"nginx"},"services":{"type":"rkeConfigServices","kubeApi":{"podSecurityPolicy":false,"type":"kubeAPIService"},"etcd":{"type":"etcdService","extraArgs":{"heartbeat-interval":500,"election-timeout":5000}}}},"name":"quickstart"}' --insecure
server-01: + CLUSTERRESPONSE=
server-01: ++ jq -r .id
server-01: ++ echo
server-01: + CLUSTERID=
server-01: ++ docker run --net=host --rm appropriate/curl -s https://127.0.0.1/v3/clusterregistrationtoken -H 'content-type: application/json' -H 'Authorization: Bearer ' --data-binary '{"type":"clusterRegistrationToken","clusterId":""}' --insecure
server-01: + CLUSTERREGTOKEN=
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
from quickstart.
I've had the same two issues today. Thanks for the tip about using netstat rather than wget.
I've tried re-provisioning server-01 several times to get the provisioning script to work.
It seems as though lines 35-38 of configure_rancher_server.sh only intermittently work. Sometimes it will correctly return the data to LOGINRESPONSE, and then the remainder of the script works. Other times, it returns blank and of course nothing else in the script works.
I suspect more of a bug in the Vagrant base VM somehow? I can't see any logical reason why it works sometimes and not others with no changes.
But to re-run the script run: 'vagrant provision server-01'. Then after you get lucky and that is successful, you can 'vagrant provision node-01' too which seemed to work first try for me.
from quickstart.
@tbigby-kristin I was wondering when Rancher is going to look into this issue so I went ahead and make some modification to make it work. Below is the PR if you're interested.
from quickstart.
I am in the same boat , I don't think this script was tested before releasing it to the masses.
while true; do wget -T 5 -c https://localhost/ping && break sleep 5 done
from quickstart.
@chngtrn Thanks very much for the PR - worked well for me rebuilding my cluster just now.
from quickstart.
@chngtrn Thanks very much for the PR - worked well for me rebuilding my cluster just now.
No problem. Glad I could help.
from quickstart.
Related Issues (20)
- [docs] Warning: Value for undeclared variable - The root module does not declare a variable named "ssh_key_file_name" but a value was found in file "terraform.tfvars" HOT 3
- RKE version is not supported in GCP quickstart HOT 3
- Add password policy hint as comment in terraform.tfvars.example HOT 2
- quickstart on DigitalOcean failed - RKE version is not supported HOT 4
- Cannot deploy Quick Start on AWS - module.rancher_common.helm_release.cert_manager HOT 6
- quickstart-aws-custom Cluster stuck in "Provisioning" State HOT 2
- Error: could not download chart HOT 6
- Rancher terraform quick start doesn't work in aws HOT 4
- Rancher terraform does not work with Hetzner HOT 4
- Vagrant Quickstart example stuck at curl. HOT 1
- Failed to download (Helm) Cert Manager in AWS HOT 1
- AWS quickstart - how to override sslip autogenerated URL? HOT 2
- Rancher Vagrant Quickstart cannot get past curl - certificate expired HOT 2
- Vagrant -- Node kernel panic when creating virtual machine HOT 1
- Request use of AWS Elastic IP support HOT 2
- [AWS] Fail to search the Windows Server AMI HOT 9
- AWS terraform deploy fail
- 14 resources consistently fail to destroy on AWS
- Vagrant images using old images: Rancher 2.6 & RKE v1.22
- Cert issue with cloudflare when pulling images HOT 4
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
-
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
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.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickstart.