Error in TestRegistration

Hi.

The following logs are generated when TestRegistration is run.
Should I reinstall free5gc?

=== RUN TestRegistration
2024-10-29T02:09:45.592270536Z [INFO][AMF][Ngap] [AMF] SCTP Accept from: 127.0.0.1:9487
2024-10-29T02:09:45.593822696Z [INFO][AMF][Ngap] Create a new NG connection for: 127.0.0.1:9487
2024-10-29T02:09:45.595253854Z [INFO][AMF][Ngap][ran_addr:127.0.0.1:9487] Handle NGSetupRequest
2024-10-29T02:09:45.595313890Z [INFO][AMF][Ngap][ran_addr:127.0.0.1:9487] Send NG-Setup response
2024-10-29T02:09:46.372809568Z [WARN][CHF][CGF] Login to Webconsole FTP fail: dial tcp 127.0.0.1:2122: connect: connection refused, retrying [2]
2024-10-29T02:09:47.395590098Z [WARN][CHF][CGF] Login to Webconsole FTP fail: dial tcp 127.0.0.1:2122: connect: connection refused, retrying [3]
2024-10-29T02:09:48.411568271Z [INFO][address:127.0.0.113:2121][category:FTP][component:CHF] Listening…
2024-10-29T02:09:48.411670110Z [INFO][category:FTP][component:CHF] Starting…
2024-10-29T02:10:13.841948490Z [ERRO][NRF][NFM] SetLocationHeader err: RestfulAPIGetOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
2024-10-29T02:10:14.112505619Z [ERRO][NRF][NFM] SetLocationHeader err: RestfulAPIGetOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
2024-10-29T02:10:14.330137198Z [ERRO][NRF][NFM] SetLocationHeader err: RestfulAPIGetOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
2024-10-29T02:10:14.531101622Z [ERRO][NRF][NFM] SetLocationHeader err: RestfulAPIGetOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
2024-10-29T02:10:14.747464913Z [ERRO][NRF][NFM] SetLocationHeader err: RestfulAPIGetOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
2024-10-29T02:10:14.946749813Z [ERRO][NRF][NFM] SetLocationHeader err: RestfulAPIGetOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
2024-10-29T02:10:15.172554741Z [ERRO][NRF][NFM] SetLocationHeader err: RestfulAPIGetOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
2024-10-29T02:10:15.356682456Z [ERRO][NRF][NFM] SetLocationHeader err: RestfulAPIGetOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
InsertAuthSubscriptionToMongoDB err: RestfulAPIPutOne err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }
exit status 1
FAIL test 32.034s
2024-10-29T02:10:18.627979646Z [INFO][UPF][Main] Shutdown UPF …
2024-10-29T02:10:18.628007934Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] Stopping pfcp server
2024-10-29T02:10:18.628042812Z [ERRO][UPF][PFCP][LAddr:10.200.200.101:8805] read udp4 10.200.200.101:8805: use of closed network connection
2024-10-29T02:10:18.628050866Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] pfcp reciver stopped
2024-10-29T02:10:18.628077987Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] pfcp server stopped
2024-10-29T02:10:18.681261018Z [INFO][UPF][Perio] recv event[TYPE_SERVER_CLOSE][{eType:4 lSeid:0 urrid:0 period:0}]
2024-10-29T02:10:18.681312235Z [INFO][UPF][Perio] perio server

I think your mongodb didn’t run properly.

Use this command to see the mongodb is running or not.

$ sudo service mongodb status