Unable to access chef management console

Hello,

I have just provisioned a Centos 7.2 VM with a virtualbox provider and it runs on my localhost 127.0.0.1 and I can successfully ssh into the vm using port 2222. Port forwarding is set to 8080 on the vagrant vm. This mean, accessing “localhost:8080” will access port 80 on the guest Centos machine.

But, am unable to access the chef management console from http://127.0.0.1:8080. I receive an access denied HTTP 403 message from my browser.

The chef-server and chef-manage packages are installed and they are up and running as shown below:

[vagrant@localhost main]$ sudo chef-server-ctl status

run: bookshelf: (pid 20818) 17580s; run: log: (pid 20823) 17579s
run: nginx: (pid 9464) 1503s; run: log: (pid 21165) 17572s
run: oc_bifrost: (pid 20563) 17598s; run: log: (pid 20570) 17597s
run: oc_id: (pid 20643) 17592s; run: log: (pid 9460) 1504s
run: opscode-erchef: (pid 21008) 17577s; run: log: (pid 20894) 17578s
run: opscode-expander: (pid 20711) 17581s; run: log: (pid 20814) 17580s
run: opscode-solr4: (pid 20688) 17583s; run: log: (pid 20697) 17583s
run: postgresql: (pid 20545) 17599s; run: log: (pid 20549) 17598s
run: rabbitmq: (pid 21456) 17554s; run: log: (pid 21181) 17571s
run: redis_lb: (pid 7146) 1535s; run: log: (pid 21154) 17572s

[vagrant@localhost main]$ sudo chef-manage-ctl status

run: redis: (pid 28181) 10415s; run: log: (pid 28187) 10414s
run: web: (pid 28209) 10391s; run: log: (pid 28215) 10391s
run: worker: (pid 28162) 10416s; run: log: (pid 28220) 10390s
[vagrant@localhost main]$

I have also enabled http and https services to run on the vagrant linux host but when I try to access the chef web console from my local windows machine’s browser (http://127.0.0.1:8080), I get a certificate exception, which is natural…but when I accept the exception, an access denied error is thrown by the browser.

Why am I unable to access my chef management console?

Please help.

Need error logs to find out