srsran / srsRAN_Project

Open source O-RAN 5G CU/DU solution from Software Radio Systems (SRS) https://docs.srsran.com/projects/project
https://www.srsran.com
GNU Affero General Public License v3.0
525 stars 179 forks source link

OSC RIC: appmgr can’t connect to dbaas – config seems to be ignored #944

Closed lmendyk closed 3 days ago

lmendyk commented 4 days ago

When starting appmgr, in the logs I get:

dial tcp [::1]:6379: connect: connection refused
{"ts":1732200055823,"crit":"ERROR","id":"appmgr","mdc":{"CONTAINER_NAME":"","HOST_NAME":"","PID":"8","POD_NAME":"","SERVICE_NAME":"","SYSTEM_NAME":"","time":"2024-11-21T14:40:55Z","xm":"0.4.3"},"msg":"Database connection not ready, waiting ..."}
{"ts":1732200060849,"crit":"ERROR","id":"appmgr","mdc":{"CONTAINER_NAME":"","HOST_NAME":"","PID":"8","POD_NAME":"","SERVICE_NAME":"","SYSTEM_NAME":"","time":"2024-11-21T14:41:00Z","xm":"0.4.3"},"msg":"Database connection not ready, waiting ..."}
{"ts":1732200065875,"crit":"ERROR","id":"appmgr","mdc":{"CONTAINER_NAME":"","HOST_NAME":"","PID":"8","POD_NAME":"","SERVICE_NAME":"","SYSTEM_NAME":"","time":"2024-11-21T14:41:05Z","xm":"0.4.3"},"msg":"Database connection not ready, waiting ..."}
…

The config file in the container seems to be OK, but the IP address and port seem to be ignored as no matter what I change it to I still get the same errors in the log .

root@appmgr:/opt/ric/config# cat appmgr.yaml 
loglevel: 1
local:
  host: ":8080"
xapp:
  namespace: "ricxapp"
  tarDir: "/tmp"
  schema: "descriptors/schema.json"
  config: "config/config-file.json"
  tmpConfig: "/tmp/config-file.json"
db:
  sessionNamespace: "XMSession"
  host: "ric-dbaas-service-tcp:6379"
  prot: "tcp"
  maxIdle: 80
  maxActive: 12000
pgawlowicz commented 4 days ago

could you remove the container and the image, and try to build again?

pgawlowicz commented 3 days ago

Closing as it is not issue of srsRAN Project.