Help, github login now doesn't work (v0.47)

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?

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

{ "id": "1s1299", "launchConfig": { "imageUuid": "" } }

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:
< X-Api-Schemas:
{ [data not shown]
100 2625 100 2625 0 0 16806 0 --:–:-- --:–:-- --:–:-- 16826

  • Connection #0 to host left intact
    “id”: “1s1299”,
    “launchConfig”: {
    “environment”: {
    “SPRING_PROFILES_ACTIVE”: “ranchertest”
    “imageUuid”: “”,`

So it said it changed it but the response says no.

You could try these steps to get into Rancher and then look into re-enabling Github.