Cant start SEMS on dedicated node

Can’t start SEMS on dedicated server, management server starts fine, setting it up like the example.

/etc/yeti/management.cfg
daemon {
listen = {
“tcp://0.0.0.0:4444”
}
sctp {
address = “127.0.0.1”
port = 4444
}
http {
address = “127.0.0.1”
port = 3000
}
log_level = 2
}

Versions
Yeti Admin ver: 1.7.15. Routing ver 20181114213545. CDR ver 20180911180345.

** Management **

root@yetiweb:/var/log/yeti# netstat -lpn | grep yeti
tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 1747/yeti_managemen
tcp 0 0 0.0.0.0:4444 0.0.0.0:* LISTEN 1747/yeti_managemen
sctp 127.0.0.1:4444 LISTEN 1747/yeti_managemen
unix 2 [ ACC ] STREAM LISTENING 14621 642/unicorn master /run/yeti/yeti-unicorn.sock

** dedicated SEMS node **
running with sems -E -D3

 [2003/2003] [core/AmPlugIn.cpp:242] DEBUG: Initializing 9 plugins...
 [2003/2003] [core/AmPlugIn.cpp:855] DEBUG: DI Interface 'sctp_bus' registered.
 [2003/2003] [apps/sctp_bus/config.cpp:43] DEBUG: configuration file: /etc/sems/etc/sctp_bus.conf could not be read: No such file or directory
 [2003/2003] [apps/sctp_bus/SctpServerConnection.cpp:28] DEBUG: bind sctp socket to: 127.0.0.1:10101
 [2003/2003] [apps/sctp_bus/SctpBus.cpp:131] DEBUG: SctpBus configured
 [2003/2003] [apps/sctp_bus/SctpBus.cpp:158] DEBUG: SctpBus initialized
 [2003/2033] [core/AmThread.cpp:85] INFO: Thread 139799015249664 is starting.
 [2003/2032] [core/AmThread.cpp:85] INFO: Thread 139799016302336 is starting.
 [2003/2032] [yeti:yeti.cpp:249] DEBUG: start yeti-worker
 [2003/2031] [core/AmThread.cpp:85] INFO: Thread 139799017355008 is starting.
 [2003/2031] [apps/sctp_bus/SctpClientConnection.cpp:35] DEBUG: connect to 190.96.78.134:4444
 [2003/2030] [core/AmThread.cpp:85] INFO: Thread 139799576381184 is starting.
 [2003/2031] [apps/sctp_bus/SctpClientConnection.cpp:92] ERROR: 190.96.78.134:4444 (43,9) connection error: Connection refused
 [2003/2031] [apps/sctp_bus/SctpConnection.cpp:81] DEBUG: close connection with id 0, socket: 43
 [2003/2031] [apps/sctp_bus/SctpBus.cpp:457] DEBUG: remove fd 43 from the client connections sockets map
 [2003/2003] [yeti:yeti.cpp:132] ERROR: timeout waiting yeti config via SCTP
 [2003/2003] [yeti:SBC.cpp:148] ERROR: yeti configuration error
 [2003/2003] [core/AmThread.cpp:142] DEBUG: Thread yeti-worker 139799016302336 (139799016302336)calling on_stop, give it a chance to clean up.
 [2003/2003] [yeti:yeti.cpp:262] DEBUG: Yeti::on_stop
 [2003/2003] [yeti:SqlRouter.cpp:80] DEBUG: SqlRouter::stop()
 [2003/2032] [yeti:yeti.cpp:257] INFO: yeti-worker finished
 [2003/2032] [core/AmThread.cpp:92] INFO: Thread yeti-worker 139799016302336 is ending.
 [2003/2003] [core/AmThread.cpp:151] DEBUG: pthread_detach failed with code ESRCH: thread could not be found.
 [2003/2003] [core/AmThread.cpp:159] DEBUG: Thread yeti-worker 139799016302336 (139799016302336) finished detach.
 [2003/2003] [core/sems.cpp:699] INFO: Disposing plug-ins
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: session_timer
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: uac_auth
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: sctp_bus
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: yeti
 [2003/2003] [yeti:SqlRouter.cpp:75] INFO: SqlRouter instance[0x559d98613f20] destroyed
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: core
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: di_log
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: jsonrpc
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: registrar_client
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: sctp_bus
 [2003/2003] [apps/sctp_bus/SctpConnection.cpp:23] DEBUG: ~SctpConnection()
 [2003/2003] [apps/sctp_bus/SctpConnection.cpp:23] DEBUG: ~SctpConnection()
 [2003/2003] [apps/sctp_bus/SctpConnection.cpp:81] DEBUG: close connection with id 0, socket: 42
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: uac_auth
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: di_log
 [2003/2003] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: syslog
 [2003/2003] [core/SipCtrlInterface.cpp:430] DEBUG: Stopping SIP control interface threads
 [2003/2003] [core/SipCtrlInterface.cpp:461] DEBUG: dec_ref(0x559d985ced40)
 [2003/2003] [core/SipCtrlInterface.cpp:472] DEBUG: dec_ref(0x559d985cf170)
 [2003/2003] [core/sems.cpp:719] INFO: Exiting (failure)

@edson
in /etc/yeti/management.cfg replace

sctp {
  address = "127.0.0.1"
  port = 4444
}

with

sctp {
  address = "0.0.0.0"
  port = 4444
}

and restart yeti-management process.

I did that at some point, but I reverted it, when I did it the error was:

[3256/3256] [core/AmPlugIn.cpp:242] DEBUG: Initializing 9 plugins…
[3256/3256] [core/AmPlugIn.cpp:855] DEBUG: DI Interface ‘sctp_bus’ registered.
[3256/3256] [apps/sctp_bus/config.cpp:43] DEBUG: configuration file: /etc/sems/etc/sctp_bus.conf could not be read: No such file or directory
[3256/3256] [apps/sctp_bus/SctpServerConnection.cpp:28] DEBUG: bind sctp socket to: 127.0.0.1:10101
[3256/3256] [apps/sctp_bus/SctpBus.cpp:131] DEBUG: SctpBus configured
[3256/3256] [apps/sctp_bus/SctpBus.cpp:158] DEBUG: SctpBus initialized
[3256/3286] [core/AmThread.cpp:85] INFO: Thread 139929686939392 is starting.
[3256/3285] [core/AmThread.cpp:85] INFO: Thread 139929687992064 is starting.
[3256/3285] [yeti:yeti.cpp:249] DEBUG: start yeti-worker
[3256/3284] [core/AmThread.cpp:85] INFO: Thread 139929689044736 is starting.
[3256/3284] [apps/sctp_bus/SctpClientConnection.cpp:35] DEBUG: connect to 190.96.78.134:4444
[3256/3283] [core/AmThread.cpp:85] INFO: Thread 139930237724416 is starting.
[3256/3284] [apps/sctp_bus/SctpClientConnection.cpp:103] INFO: connected to 190.96.78.134:4444/-1 (43)
[3256/3284] [apps/sctp_bus/SctpClientConnection.cpp:180] INFO: SCTP_ASSOC_CHANGE: 4. remote: 190.96.78.134:4444
[3256/3284] [apps/sctp_bus/SctpBus.cpp:321] DEBUG: process sctp send raw event request yeti -> 0:mgmt
[3256/3284] [apps/sctp_bus/SctpClientConnection.cpp:268] DEBUG: SEND sctp_bus event request 8:yeti/4 -> 0:mgmt seq: 1
[3256/3256] [yeti:cdr/TrustedHeaders.cpp:47] ERROR: pqxx_exception: could not connect to server: Connection refused
Is the server running on host “127.0.0.1” and accepting
TCP/IP connections on port 5432?

[3256/3256] [yeti:cdr/TrustedHeaders.cpp:60] ERROR: can’t load trusted headers config
[3256/3256] [yeti:yeti.cpp:183] ERROR: TrustedHeaders configure failed
[3256/3256] [yeti:SBC.cpp:148] ERROR: yeti configuration error
[3256/3256] [core/AmThread.cpp:142] DEBUG: Thread yeti-worker 139929687992064 (139929687992064)calling on_stop, give it a chance to clean up.
[3256/3256] [yeti:yeti.cpp:262] DEBUG: Yeti::on_stop
[3256/3256] [yeti:SqlRouter.cpp:80] DEBUG: SqlRouter::stop()
[3256/3285] [yeti:yeti.cpp:257] INFO: yeti-worker finished
[3256/3285] [core/AmThread.cpp:92] INFO: Thread yeti-worker 139929687992064 is ending.
[3256/3256] [core/AmThread.cpp:151] DEBUG: pthread_detach failed with code ESRCH: thread could not be found.
[3256/3256] [core/AmThread.cpp:159] DEBUG: Thread yeti-worker 139929687992064 (139929687992064) finished detach.
[3256/3256] [core/sems.cpp:699] INFO: Disposing plug-ins
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: session_timer
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: uac_auth
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: sctp_bus
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: yeti
[3256/3256] [yeti:SqlRouter.cpp:75] INFO: SqlRouter instance[0x55e8ceda2f20] destroyed
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: core
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: di_log
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: jsonrpc
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: registrar_client
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: sctp_bus
[3256/3256] [apps/sctp_bus/SctpConnection.cpp:23] DEBUG: ~SctpConnection()
[3256/3256] [apps/sctp_bus/SctpConnection.cpp:81] DEBUG: close connection with id 0, socket: 43
[3256/3256] [apps/sctp_bus/SctpConnection.cpp:23] DEBUG: ~SctpConnection()
[3256/3256] [apps/sctp_bus/SctpConnection.cpp:81] DEBUG: close connection with id 0, socket: 42
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: uac_auth
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: di_log
[3256/3256] [core/AmPlugIn.cpp:117] DEBUG: decreasing reference to plug-in factory: syslog
[3256/3256] [core/SipCtrlInterface.cpp:430] DEBUG: Stopping SIP control interface threads
[3256/3256] [core/SipCtrlInterface.cpp:461] DEBUG: dec_ref(0x55e8ced5dd40)
[3256/3256] [core/SipCtrlInterface.cpp:472] DEBUG: dec_ref(0x55e8ced5e170)
[3256/3256] [core/sems.cpp:719] INFO: Exiting (failure)
[3256/3256] [apps/jsonrpc/RpcPeer.cpp:83] DEBUG: destroying connection ‘’

I think I’ve got it working, the template of the node defined in /etc/yeti/system.cfg should point to a reachable IP address to the node in the yeti and cdr sections. And obviously modify permissions in postgresql (/etc/postgresql/10/main/pg_hba.conf) so the node can connect to the databases.