# Chef Tiered installation problems

**URL:** <https://discourse.chef.io/t/chef-tiered-installation-problems/7891>\
**Category:** Chef Infra (archive)\
**Created:** [February 29, 2016, 7:06pm UTC](https://discourse.chef.io/t/chef-tiered-installation-problems/7891 "2016-02-29T19:06:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmlavinjr](https://avatars.discourse-cdn.com/v4/letter/l/f6c823/32.png) [@lmlavinjr](https://discourse.chef.io/u/lmlavinjr)\
**Post date:** [February 29, 2016, 7:06pm UTC](https://discourse.chef.io/t/chef-tiered-installation-problems/7891/1 "2016-02-29T19:06:57Z")

</div>

Here’s what I’ve been doing with Chef Server and where I currently stand:

I then created a tiered (NOT HA) Chef Server environment of a front end and a back end. The design looks like this:

see attachment

Chef is installed on both servers. The chef-server.rb file determines the configuration. Ours looks like this:

topology “tier”

server “[h30x17i200.g3921.gde.oraclecorp.com](http://h30x17i200.g3921.gde.oraclecorp.com)”,  
:ipaddress =\> “10.152.173.94”,  
:role =\> “backend”,  
:bootstrap =\> true

backend\_vip “[h30x17i200.g3921.gde.oraclecorp.com](http://h30x17i200.g3921.gde.oraclecorp.com)”,  
:ipaddress =\> “10.152.173.94”,  
:device =\> “eth0”

server “[h2y317c700.g3819.gde.oraclecorp.com](http://h2y317c700.g3819.gde.oraclecorp.com)”,  
:ipaddress =\> “10.152.173.13”,  
:role =\> “frontend”

api\_fqdn “[jfoo.gde.oraclecorp.com](http://jfoo.gde.oraclecorp.com)”  
#api\_fqdn “[h2y317c700.g3819.gde.oraclecorp.com](http://h2y317c700.g3819.gde.oraclecorp.com)”

The backend is set up first, and then the front end.

The front end has the following processes:

run: nginx: (pid 30064) 364s; run: log: (pid 30036) 377s  
run: oc\_bifrost: (pid 30071) 363s; run: log: (pid 29156) 73339s  
run: oc\_id: (pid 30102) 363s; run: log: (pid 29170) 73338s  
run: opscode-erchef: (pid 30629) 8s; run: log: (pid 30031) 377s

The back end has the following processes:

run: bookshelf: (pid 9337) 164874s; run: log: (pid 9381) 164873s  
run: nginx: (pid 16954) 234s; run: log: (pid 9607) 164868s  
run: oc\_bifrost: (pid 8231) 164881s; run: log: (pid 8342) 164881s  
run: oc\_id: (pid 8502) 164880s; run: log: (pid 8538) 164880s  
run: opscode-erchef: (pid 16588) 70191s; run: log: (pid 9422) 164872s  
run: opscode-expander: (pid 9194) 164876s; run: log: (pid 9296) 164875s  
run: opscode-expander-reindexer: (pid 9275) 164875s; run: log: (pid 9321) 164874s  
run: opscode-solr4: (pid 9064) 164877s; run: log: (pid 9131) 164877s  
run: postgresql: (pid 8104) 164882s; run: log: (pid 8123) 164882s  
run: rabbitmq: (pid 27162) 165032s; run: log: (pid 7889) 164883s  
run: redis\_lb: (pid 16544) 70194s; run: log: (pid 9545) 164869s

However, I cannot get the front end to accept and Chef commands, due to nginx errors. From a self test:

[root@h2y317c700 ~]# chef-server-ctl test  
Configuring logging…  
Creating platform…  
Configured URL: [https://jfoo.gde.oraclecorp.com](https://jfoo.gde.oraclecorp.com)  
Creating org pedant\_testorg\_h2y317c700\_30884  
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/multitenant/platform.rb: (RuntimeError)n create\_org’: Bad error code 502 from create org:  
502 Bad Gateway

# 502 Bad Gateway

* * *
ngx\_openresty/1.4.3.6
