kiboro
February 4, 2016, 12:04pm
1
I had firewall issues on the rancher host so I rebooted. Now I can’t log in to Rancher via github. Just keeps saying “the code password is incorrect or expired”. This is version 0.47 and I don’t want to try upgrading in this state in case I make things even worse. I have checked the date and time on the server and it’s correct - actually on ntp so should be.
Any suggestions?
kiboro
February 4, 2016, 1:02pm
2
As a side comment to this I tried using the API without success.
curl --user $RANCHER_ACCESS_KEY:$RANCHER_SECRET_KEY -X PUT -H "Content-Type: application/json" --data @~/payload.json -v http://rancher.pibenchmark.com:8080/v1/projects/1a5/services/1s1299
payload.json:
{ "id": "1s1299", "launchConfig": { "imageUuid": "docker:docker.pibenchmark.com/pi-cmm-angular:0.0.24" } }
Result (trimmed):
`< HTTP/1.1 200 OK
< Content-Length: 2625
< Content-Type: application/json; charset=utf-8
< Date: Thu, 04 Feb 2016 12:55:22 GMT
< Server: Jetty(9.2.11.v20150529)
< X-Api-Account-Id: 1a5
< X-Api-Client-Ip: 10.20.13.213
< X-Api-Schemas: http://rancher.pibenchmark.com:8080/v1/projects/1a5/schemas
<
{ [data not shown]
100 2625 100 2625 0 0 16806 0 --:–:-- --:–:-- --:–:-- 16826
Connection #0 to host rancher.pibenchmark.com left intact
{
“id”: “1s1299”,
“launchConfig”: {
“environment”: {
“SPRING_PROFILES_ACTIVE”: “ranchertest”
},
“imageUuid”: “docker:docker.pibenchmark.com/pi-cmm-angular:0.0.23”,`
So it said it changed it but the response says no.
denise
February 4, 2016, 5:57pm
3