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

Provisioning a host on Rancher server with SSL fails #1350

Closed
apobbati opened this issue Jun 27, 2015 · 3 comments
Closed

Provisioning a host on Rancher server with SSL fails #1350

apobbati opened this issue Jun 27, 2015 · 3 comments

Comments

@apobbati
Copy link

Steps to reproduce:

  1. Create a Rancher Server setup according to Can not access to Rancher Management Server behind Nginx as https reverse proxy #1151 (Basically a Nginx w/ SSL in front of Rancher)
  2. Click on Infrastructure -> Add Host
  3. Configure the host settings and click on Create
  4. Check the logs and you will see something similar to the below.
14:15:57.484 [main] INFO  ConsoleStatus - [DONE ] [67664ms] Startup Succeeded, Listening on port 8081
time="2015-06-27T14:16:53Z" level=info msg="Setting log level" logLevel=info
time="2015-06-27T14:16:53Z" level=info msg="Starting go-machine-service..." gitcommit=480875d
time="2015-06-27T14:16:53Z" level=error msg="Unable to create EventRouter" Err="Bad response from [http://<my-rancher-server>/v1], statusCode [401]. Status [401 Unauthorized]. Body: [{\"id\":\"a0af77c7-251f-4e6e-bc22-6a083f804f28\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":401,\"code\":\"Unauthorized\",\"message\":\"Unauthorized\",\"detail\":null}]"
time="2015-06-27T14:16:53Z" level=info msg="Exiting go-machine-service..."

I am able to successfully navigate around the UI but can't do much of anything.

@apobbati apobbati reopened this Jun 30, 2015
@apobbati
Copy link
Author

Anybody else having this problem?

@cloudnautique
Copy link
Contributor

@apobbati, in your nginx configuration are you passing the x-api-request-url header? That will update the schema to return the SSL url. Check out #140 (comment)? for instructions.

Also, did you set the https://rancher.example.com/v1/setings/api.host to a space " " ? There is a bug that forces http when that is set to a string value. #1380

@apobbati
Copy link
Author

apobbati commented Jul 2, 2015

Thank you! It worked like a charm. I did not set the https://rancher.example.com/v1/setings/api.host to a space.

@apobbati apobbati closed this as completed Jul 2, 2015
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

2 participants