# Error nginx load-balance rancher - ha

**URL:** <https://forums.suse.com/t/error-nginx-load-balance-rancher-ha/2813>\
**Category:** Rancher 1.x\
**Created:** [May 16, 2016, 3:36pm UTC](https://forums.suse.com/t/error-nginx-load-balance-rancher-ha/2813 "2016-05-16T15:36:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando\_Felicissimo](https://avatars.discourse-cdn.com/v4/letter/f/76d3ee/32.png) [@Fernando\_Felicissimo](https://forums.suse.com/u/Fernando_Felicissimo)\
**Post date:** [May 16, 2016, 3:36pm UTC](https://forums.suse.com/t/error-nginx-load-balance-rancher-ha/2813/1 "2016-05-16T15:36:08Z")

</div>

As we talked I changed my topology replacing the BIG IP by NGINX to the load-balance between Rancher hosts.

In this new topology I’m having trouble on the “Stacks” with this state of “Degraded” and “initializing”.

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/2/23857d5bc363fa71dcbfdd518c74d56b63b406ef.png)

**NGINX CONFIGURATION:**

upstream phenix.magazineluiza.intranet {  
server 10.31.0.248;  
server 10.31.0.249;  
server 10.31.0.253;  
}

server {  
ssl on;  
listen 10.31.0.240:443 ssl;  
server\_name phenix.magazineluiza.intranet;  
ssl\_certificate ssl/phenix.magazineluiza.intranet/server.crt;  
ssl\_certificate\_key ssl/phenix.magazineluiza.intranet/server.key;

```
location / {
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Port $server_port;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://phenix.magazineluiza.intranet;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    # This allows the ability for the execute shell window to remain open for up to 15 minutes. Without this parameter, the default is 1 minute and will automatically close.
    proxy_read_timeout 900s;
}

```

}

server {  
listen 80;  
server\_name phenix.magazineluiza.intranet;  
return 301 https://$server\_name$request\_uri;  
}

rancher-ha.log

> **[rancher-ha.log](https://www.dropbox.com/s/3yxptfa7ywus1xa/rancher-ha.log?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![pontidmc](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pontidmc](https://forums.suse.com/u/pontidmc)\
**Post date:** [October 7, 2016, 9:01am UTC](https://forums.suse.com/t/error-nginx-load-balance-rancher-ha/2813/2 "2016-10-07T09:01:12Z")

</div>

Hello Fernando,  
I have the same problem actually. Did you manage to solve that ?

regards,  
Marc

---

<div class="post-metadata">

**Author:** ![Fernando\_Felicissimo](https://avatars.discourse-cdn.com/v4/letter/f/76d3ee/32.png) [@Fernando\_Felicissimo](https://forums.suse.com/u/Fernando_Felicissimo)\
**Post date:** [October 7, 2016, 12:34pm UTC](https://forums.suse.com/t/error-nginx-load-balance-rancher-ha/2813/3 "2016-10-07T12:34:49Z")

</div>

Hi Marc,

I’m using different external hum balancer If not the “Big IP F5” but seems  
in place to own Rancher HAVE some explanations to use nginx.

regards,

[image: assinatura\_campanha.jpg]

\*Fernando \*  
_Felicíssimo_TI Infra | Analista de Redes  
( (16) 3713-8186

_[image: cid:image002.gif@01CDFD7B.64423E00]_[image:  
cid:image003.gif@01CDFD7B.64423E00]  
[http://www.facebook.com/#!/magazineluiza](http://www.facebook.com/#%21/magazineluiza) [image:  
cid:image004.gif@01CDFD7B.64423E00]  
[http://www.twitter.com/magazineluiza](http://www.twitter.com/magazineluiza) [image:  
cid:image005.gif@01CDFD7B.64423E00]  
[http://www.youtube.com/magazineluizacom](http://www.youtube.com/magazineluizacom) [image:  
cid:image006.gif@01CDFD7B.64423E00] [http://blogdalu.magazineluiza.com.br/](http://blogdalu.magazineluiza.com.br/)

\*Aviso 1:\*\*‘\*Esta mensagem é direcionada apenas para os endereços  
constantes no cabeçalho inicial. Se você não está listado nos endereços  
constantes no cabeçalho, pedimos-lhe que desconsidere completamente o  
conteúdo dessa mensagem e cuja cópia, encaminhamento e/ou execução das  
ações citadas estão imediatamente anuladas e proibidas’.

\*Aviso 2:\*\*‘\*Apesar do Magazine Luiza tomar todas as precauções razoáveis  
para assegurar que nenhuma virose esteja presente nesse e-mail, a empresa  
não poderá aceitar a responsabilidade por quaisquer perdas ou danos  
causados por esse e-mail ou por seus anexos’.

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/9/938e37cd838e60d3e62b9365e81f637f7e2ffde2.gif)

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/e/e8a88caa975f60f99df107f5baa326c4a2a556e3.gif)

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/2/2e4cf75d84202a0765b3e1b1528ea82cf2a7550f.jpg)

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/9/9727b9cc752c49efad9e4eb2e54735156f466cfc.gif)

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/53e6412f1e0a177970279aab2a0c9bd8988e2ae8.gif)

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5f339ebbf65f53029db6cce9a076a0b2ecb36c94.gif)

---

<div class="post-metadata">

**Author:** ![pontidmc](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pontidmc](https://forums.suse.com/u/pontidmc)\
**Post date:** [October 7, 2016, 1:44pm UTC](https://forums.suse.com/t/error-nginx-load-balance-rancher-ha/2813/4 "2016-10-07T13:44:01Z")

</div>

Thank you for the response.

Yes as you said I used the rancher documentation in order to configure NGINX.

But I’m still having trouble on go-machine-service and rancher-compose-executor with the state of “Degraded” and “initializing”.

Do you still have this kind of status ?

regards,  
Marc
