# No port 9462 or /etc/chef-manage directory

**URL:** <https://discourse.chef.io/t/no-port-9462-or-etc-chef-manage-directory/15319>\
**Category:** Chef Infra (archive)\
**Created:** [June 3, 2019, 3:06pm UTC](https://discourse.chef.io/t/no-port-9462-or-etc-chef-manage-directory/15319 "2019-06-03T15:06:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbrier](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fbrier](https://discourse.chef.io/u/fbrier)\
**Post date:** [June 3, 2019, 3:06pm UTC](https://discourse.chef.io/t/no-port-9462-or-etc-chef-manage-directory/15319/1 "2019-06-03T15:06:42Z")

</div>

I upgraded a VM running Ubuntu to 18.04. It contains my Chef server. The Chef server version is currently 12.19.31. I am getting "502 Bad Gateway" responses on the web UI. It does not appear that port 9462 is open [`ss -lntp|grep 9462`]. Also, the /etc/chef-manage directory that is supposed to contain the [manage.rb](https://docs.chef.io/config_rb_manage.html) does not exist. I attempted to run both:

```auto
chef-server-ctl reconfigure

```

and

```auto
chef-server-ctl install chef-manage

```

The first did not change anything. The second did not create the /etc/chef-manage directory. How do I create the /etc/chef-manage directory and a default manage.rb? This does not feel like something I should hand create. It is the manage.rb that specifies the port that the opscode-erchef service runs on, correct? Or is this a rabbit hole and the manage.rb has default values and is not needed? Thank you.

---

<div class="post-metadata">

**Author:** ![fbrier](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fbrier](https://discourse.chef.io/u/fbrier)\
**Post date:** [June 4, 2019, 5:18am UTC](https://discourse.chef.io/t/no-port-9462-or-etc-chef-manage-directory/15319/2 "2019-06-04T05:18:30Z")

</div>

Working again. The `chef-manage-ctl show-config` displayed an incomplete config, which pointed to a non-existent configuration directory. `chef-manage-ctl reconfigure` first asked for approving a large number of license agreements, then displayed a dismaying number of exceptions, but ended up creating and populating the missing `/var/opt/chef-manage/etc` directory. The `chef-manage-ctl show-config` now displays a much more complete config which included specifying the manage-erchef port. I rebooted and low-and-behold, the web UI now showed the proper login screen. Yeah!
