kneodev / ksmppd

Kurt's SMPP Daemon (SMPP Server for Kannel)
Other
56 stars 39 forks source link

DLR delivery pauses after some time #94

Closed wasimbaig closed 4 years ago

wasimbaig commented 6 years ago

DLR delivery to esme pauses after some time. I am unable to find anything in logs that would point to this. It was intermittent before, a ksmppd restart would resolve it for a week or so. But for the last couple of days its gone really bad. I can only get ksmppd to deliver DLR for a minute or so, and then it just stops doing so.

screenshot from 2018-07-01 18-19-22

Restart ksmppd and a flood of DLR goes out for a minute or so, and then trickles to a stop.

screenshot from 2018-07-01 18-04-54

Submit sm continue throughout and kannel continues to pass DLR to MySQL.

Ksmppd doesn't pass them on, for any esme.

Help.

wasimbaig commented 6 years ago

2018-07-01 12:53:28 [18109] [4] DEBUG: SMPP[] has 0/500 in queues (500) 2018-07-01 12:53:28 [18109] [4] DEBUG: SMPP[] has 0/500 in queues (500) 2018-07-01 12:53:28 [18109] [4] DEBUG: SMPP[***] has 0/500 in queues (500)

But I have a mysql table with 2 million DLR waiting to go out.

ib1corp commented 6 years ago

Hi, did u find a solution to this?

wasimbaig commented 6 years ago

No, I am not exactly sure what triggers it either

On Mon, Jul 23, 2018, 4:00 PM ib1corp notifications@github.com wrote:

Hi, did u find a solution to this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kneodev/ksmppd/issues/94#issuecomment-407019732, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA-0OmJLvrFtZDydXZGX06j63Zn4YDbks5uJazYgaJpZM4U-UxU .

donald-jackson commented 6 years ago

I presume there is some event taking place which is either locking the outbound queues or a repeated error, can you share more logs?

wasimbaig commented 6 years ago

Further debugging showed

  1. ksmppd was infact sending all the dlrs sent to it by bearerbox
  2. a bad smsc wasn't acking deliver_sm, max-pending-submits=100, deliver_sm would get queued up in store
  3. once that bad smsc was removed from routing, all the other smsc started getting deliver_sm
  4. things back to normal

Donald, thanks for looking at the log files. Much appreciated.

On 31 July 2018 at 14:46, Donald Jackson notifications@github.com wrote:

I presume there is some event taking place which is either locking the outbound queues or a repeated error, can you share more logs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kneodev/ksmppd/issues/94#issuecomment-409162121, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA-0CL0mmzk3IgcCrKfAFQkvd3su7npks5uMCdkgaJpZM4U-UxU .

-- wasim h. baig | principal consultant | convergence pk | +92 30 0850 8070 | peace be upon you ...

x3dph commented 6 years ago

i have a question regarding DLR return. my setup is SMPP Client <=> KSMPPD <=> HTTP Gateway how can i return the delivery receipt to SMPP Client? what are the response in the HTTP Gateway needed to return DLR, or how can i push back the DLR.

thank you

donald-jackson commented 4 years ago

Fixed in e40daa5195b578b2f89e7d2c80b90f2516beca11

calvincaraig commented 3 years ago

hi @donald-jackson , can you clarify what was found in the log files to indicate the problem here?

Im currently experiencing this but we only have 1 smsc setting in place in the config file.