# Creating a queue. qmgr: cannot connect

**URL:** <https://community.openpbs.org/t/creating-a-queue-qmgr-cannot-connect/2425>\
**Category:** Users/Site Administrators\
**Created:** [January 9, 2021, 5:14am UTC](https://community.openpbs.org/t/creating-a-queue-qmgr-cannot-connect/2425 "2021-01-09T05:14:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [January 13, 2021, 9:54am UTC](https://community.openpbs.org/t/creating-a-queue-qmgr-cannot-connect/2425/2 "2021-01-13T09:54:33Z")

</div>

Can you run this command and check the output  
qmgr -c “print queue @default”

Also, please check these pre-requisites :

> [@Pbs\_server is not running](https://community.openpbs.org/t/pbs-server-is-not-running/1512/8):
>
> Thank you for sharing the logs. make sure ports 15001 to 15007 , 17001 are not blocked and SELinux disabled & system is rebooted after disabling SELinux. make sure the /etc/hosts is populated correctly ( DNS is properly configured for forward and reverse address resolution) on the headnode and across all the compute nodes 03/18/2019 08:56:45;0002;Server@centos7-1;Svr;Server@centos7-1;PBS dataservice not running:[Connection: failed: could not connect to server: Connection refused Is the ser…

---

_[View the full topic](https://community.openpbs.org/t/creating-a-queue-qmgr-cannot-connect/2425)._
