title: Installing Xray and configure with Jfrog Artifcatory using Docker compose
body: <p>We were trying to Integrate Xray with our Jfrog Artifactory.In Amazon Linux 2 we are trying to install with docker compose,while we run the config.sh</p>
  <p><a href="https://i.stack.imgur.com/rIWHu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rIWHu.png" alt="enter image description here" /></a></p>
  <p>After running the bellow docker compose commands</p>
  <p>start rabbitmq:   docker-compose -p xray-rabbitmq -f docker-compose-rabbitmq.yaml up -d</p>
  <p>start postgresql:  docker-compose -p xray-postgres -f docker-compose-postgres.yaml up -d</p>
  <p>start: docker-compose -p xray up -d</p>
  <p>xray router is getting restarting after 20sec with following error</p>
  <p><a href="https://i.stack.imgur.com/WB0RL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WB0RL.png" alt="enter image description here" /></a></p>
  <p>We have checked whether any selinux,firewalld or iptables are blocking,but all are in disable state.</p>
  <p>Can someone help us to resolve the issue?</p>
  <hr />
  <p>Now Private IP is able to reach Artifactory server,we have created Xray in same VPC of Artifactory.
  Now all containers of Xray are running in Xray server,but now we have a different issue.
  In xray server container we are getting  the below logs</p>
  <pre><code>2021-08-12T13:41:17.601Z [jfxr ] [INFO ] [469946e5f04dd2c6] [updates_service:486           ] [main                ] Initializing JFrog vendor
  2021-08-12T13:41:17.700Z [jfxr ] [ERROR] [                ] [bin_mgr_cache:50              ] [main                ] Failed to get binary managerid:failed on GetAllBinaryManagerIds query
   --- at /go/src/jfrog.com/xray/internal/dbaccess/dao/binary_managers_dao.go:367 (binMgrDao.GetBinaryManagerId) ---
  Caused by: not found
  2021-08-12T13:41:17.701Z [jfxr ] [ERROR] [                ] [bin_mgr_cache:59              ] [main                ] Failed to get binary manager'' version, err :failed to fetch binary manager
   --- at /go/src/jfrog.com/xray/internal/dbaccess/dao/binary_managers_dao.go:290 (binMgrDao.GetBinMgrByID) ---
  Caused by: not found
  2021-08-12T13:41:17.701Z [jfxr ] [WARN ] [                ] [indexed_resources_cache:36    ] [main                ] Failed to get binary managerfor cache:failed to fetch binary manager
   --- at /go/src/jfrog.com/xray/internal/dbaccess/dao/binary_managers_dao.go:290 (binMgrDao.GetBinMgrByID) ---
  Caused by: not found
  </code></pre>
  <p>Any idea on this?</p>