SMS service suddenly stop

SMS service suddenly stop SearchSearch
Author Message
gensupport
New member
Username: Gensupport

Post Number: 37
Registered: 12-2017
Posted on Monday, October 29, 2018 - 10:23 am:   

Dear Support,

Currently we are using Now SMS/MMS Gateway v2018.07.17 version.
May I know, is it this version is stable now?

Because I noticed that, suddenly it failed to receive sms from our database.
Sometimes I received error notification "Interface is not available" for all modems.
But when I checked from modem the status is "Connected".
Then I try to stop & start the SMS Gateway service, after that all modems up again and continue send the sms.

Sometimes I did not received error notification, I thought there is no problem with the service but there is no incoming traffic even I try send sms to nowsms.
Then I try restart again SMS Gateway service and received the incoming traffic after that.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8295
Registered: 10-2002
Posted on Monday, October 29, 2018 - 11:51 am:   

Hi,

There are 2 issues that we are aware of, which might be related.

If you have any USB or serial connected modems, version 2018.07.17 (and possibly other versions) has a restart problem. The current version download has been replaced with 2018.10.01.

If you do not have any USB or serial connected modems, this is not an issue.

If these are Android devices, we have been recently troubleshooting a problem where individual modems stop receiving SMS, but they can still send.

The problem is currently being discussed here: https://support.nowsms.com/discus/messages/73882/74234.html

An update to the Android app includes a potential fix, and displays some additional status information to try to troubleshoot the problem.

This update can be downloaded from the device only:

https://www.nowsms.com/apkdev

-bn

Bryce Norwood
Now SMS/MMS Support
gensupport
New member
Username: Gensupport

Post Number: 38
Registered: 12-2017
Posted on Tuesday, October 30, 2018 - 04:21 am:   

Hi,

"If you have any USB or serial connected modems, version 2018.07.17 (and possibly other versions) has a restart problem. The current version download has been replaced with 2018.10.01. "

I don't have problem with restart for connected modem and Now SMS/MMS Gateway interface.

"If these are Android devices, we have been recently troubleshooting a problem where individual modems stop receiving SMS, but they can still send."

And there is no problem with individual modem also, because I still can send test sms from interface for each of connected modem.

My problem is, Now SMS/MMS Gateway suddenly can not received the sms.
After I stop and start again SMS Gateway Service then seems okay, can received incoming sms.
FYI, we are using PHP script to send sms. That script select records from our database and send to nowsms. There is no issue previously, the issue exist after I upgrade to Now SMS/MMS Gateway v2018.07.17 version.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8297
Registered: 10-2002
Posted on Tuesday, October 30, 2018 - 05:34 pm:   

Hi,

Perhaps I do not understand, but your problem sounds like one of the ones I described.

First, can you confirm that all modems are Android devices.


quote:

And there is no problem with individual modem also, because I still can send test sms from interface for each of connected modem.




Yes, as I said, in the problem that I described, they can still send. Received messages are stuck.

Before I again assume that you are encountering the same problem, let me ask this.

When received SMS stops, does NowSMS show any messages being received ("Recent Activity" in the web interface or SMSIN-yyyymmdd.LOG)? I am guessing that NowSMS is not reporting any received messages. Am I correct?

In the web interface, under Admin/Status, are the modems connected? How many connections are showing? (I'm guessing 2 for each modem.)


quote:

My problem is, Now SMS/MMS Gateway suddenly can not received the sms.
After I stop and start again SMS Gateway Service then seems okay, can received incoming sms.




The other thread references a cloud customer...they do not have the power to stop and start the SMS gateway on the server side, so their problem might not appear exactly the same. But the underlying problem seems to be that the SMS receiver in the Android app gets stuck in its connection to the gateway. Starting or stopping the app or the gateway will restart this connection.

That is why I think the best solution is to try the app update. We are awaiting feedback from that other customer before we push this update out via the Google Play Store.

For now, this update can be downloaded from the device only:

https://www.nowsms.com/apkdev

-bn

Bryce Norwood
Now SMS/MMS Support
gensupport
New member
Username: Gensupport

Post Number: 39
Registered: 12-2017
Posted on Wednesday, October 31, 2018 - 03:40 am:   

Hi Bryce,

Yes,I'm using android device for all modems.

What I mean, I'm test from below interface and received message after that.
So, there is no problem with modems right? since I can received test sms.




"When received SMS stops, does NowSMS show any messages being received ("Recent Activity" in the web interface or SMSIN-yyyymmdd.LOG)? I am guessing that NowSMS is not reporting any received messages. Am I correct? "

SMSIN log still got record during that time.
SMSOUT and SMSWEB log don't have record.

Sample of log from SMSWEB:
2018-10-28 20:19:00:739,0.0.0.0,gensupp,5BD850A5,Text,Recip=+60198839123;Text="xxxxxx"
2018-10-28 20:50:58:394,0.0.0.0,gensupp,5BD858E5,Text,Recip=+60195130123;Text="xxxxxx"

Based on above log, nowsms not received any messages after 20:19:00:739 until I stop & start service, then continue received messages at 20:50:58:394.

Sample of log from SMSOUT:
2018-10-28 20:19:23:823,5BD850A3,0.0.0.0,+60197780000,OK -- NowSMSModem - gsm15,SubmitUser=gensupp;SMSCRouteName=gsm15;Text="xxxxxx"
2018-10-28 20:44:19:696,TEST9B2B,,601123456789,OK -- NowSMSModem - gsm15,SMSCRouteName=gsm15;Text="NowSMS Test Message"
2018-10-28 20:51:00:465,5BD858E5,0.0.0.0,+60195131234,OK -- NowSMSModem - gsm16,SubmitUser=gensupp;SMSCRouteName=gsm16;Text="xxxxxx"

TEST9B2B, I tested from the interface and received that sms after that which mean there is no problem with modem connection right?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8298
Registered: 10-2002
Posted on Wednesday, October 31, 2018 - 08:10 pm:   

Hi,

I'm sorry, but I still don't understand.

I think we are having some confusion over language/terminology, so let me try to clarify.

When I refer to sending and receiving, it is from the perspective of the NowSMS gateway and the modem.

When the modem sends a message, the gateway logs this to SMSOUT.

When the modem receives a message, the gateway logs this to SMSIN.

When your application submits a message, the gateway logs this to SMSWEB.

To try to avoid confusion, I will stop using send/receive, and instead will use the log file names.


The Android app update that I mentioned addresses an issue where SMSIN stops, but SMSOUT is ok.

I think that is the problem you are having? If not, please explain what stops.

-bn

Bryce Norwood
Now SMS/MMS Support
gensupport
New member
Username: Gensupport

Post Number: 40
Registered: 12-2017
Posted on Wednesday, October 31, 2018 - 09:52 pm:   

As i said before, SMSIN log still having records during that time..which mean no issue with modem right?

The problem is no record in SMSWEB and SMSOUT log during that time. We can not send messages to gateway until i restart the service. Something wrong right?
There is no issue with internet connection during that time.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8299
Registered: 10-2002
Posted on Wednesday, October 31, 2018 - 11:26 pm:   

OK, so when this happens, look for files in the SMS-IN directory. These are the IN messages.

If there are IN files in SMS-IN, but they are not processing, this suggests the 2-way command is hanging. What is your 2-way command? HTTP or local?

NowSMS normally waits up to 5 minutes for local, or 2 minutes for HTTP, before timing out and moving to the next message.

I probably need to see an SMSDEBUG.LOG to troubleshoot. If you want to send one to nowsms@nowsms.com with Attention: Bryce in the subject line. And please indicate the time period of interest.


-bn

Bryce Norwood
Now SMS/MMS Support
gensupport
New member
Username: Gensupport

Post Number: 44
Registered: 12-2017
Posted on Thursday, December 06, 2018 - 08:17 am:   

Hi,

Seems like this issue happened again.
I've checked files SMS-IN directory, yes still have IN messages.

We're using HTTP for 2-way command. Seems like not 2 minutes its hanging but until I restart the service. Its around 30 minutes.

I've checked in SMSDEBUG.LOG, there is nothing error showing during that time.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8305
Registered: 10-2002
Posted on Thursday, December 06, 2018 - 12:26 pm:   

Hi,

OK, this does not sound like the same problem.

I would like to see an SMSDEBUG.LOG, especially the part showing the last message processed...as this would help us understand what is getting stuck. If you have that, send to nowsms@nowsms.com with Attention: Bryce in the subject line.

One possible solution is to add 2WaySMSThreadCount=## to the [SMSGW] section of SMSGW.INI. I'd start with a lower number like 5.

This allows multiple 2-way commands to process at the same time.

After enabling this, continue to periodically check for IN messages stuck in the SMS-IN directory...there may be 1 or 2 that get stuck, while others continue to process. I've never seen this happen before, but based on what you have described, I am thinking we might see this type of problem.

Also add 2WayKeepAlive=No to SMSGW.INI. This setting probably won't make a difference, but it simplifies the HTTP command processing logic.

Is the HTTP command using https:// ?

-bn

Bryce Norwood
Now SMS/MMS Support
gensupport
New member
Username: Gensupport

Post Number: 45
Registered: 12-2017
Posted on Thursday, December 06, 2018 - 01:24 pm:   

Okay..i will try first.
Yes..i used https.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5986
Registered: 08-2008
Posted on Thursday, December 13, 2018 - 02:17 pm:   

Follow-up...

Are you still seeing a problem?

If no more problem, did you add 2WayKeepAlive=No to SMSGW.INI?

We have done further investigation, and believe our HTTPS implementation may have a problem with 2-way commands, especially when keep-alive sockets are enabled (the default). We are preparing an update, but I wanted to see what your experience has been with these settings.


--
Des
NowSMS Support
gensupport
New member
Username: Gensupport

Post Number: 46
Registered: 12-2017
Posted on Thursday, December 13, 2018 - 02:42 pm:   

Yes, already added 2WayKeepAlive=No to SMSGW.INI

Currently no issue, im still monitor it.
gensupport
New member
Username: Gensupport

Post Number: 48
Registered: 12-2017
Posted on Monday, January 07, 2019 - 09:23 am:   

Hi Des,

Seems like this issue happened again.
May I know, is it debug log only save the latest log?
Because I want check yesterday log, but it only show latest log.

Anyway, is it nowsms can restart by itself when there is no transaction coming within a few minutes?
I mean restart the main service not restart the process.
gensupport
New member
Username: Gensupport

Post Number: 50
Registered: 12-2017
Posted on Sunday, January 13, 2019 - 11:06 am:   

Hi support,

Need your help regarding this issue.
Today it suddenly stop 2 times.
gensupport
Frequent Contributor
Username: Gensupport

Post Number: 51
Registered: 12-2017
Posted on Sunday, January 13, 2019 - 01:41 pm:   

Hi,

May i know..is it related with content of sms that make it stop?
Or its due to too many incoming traffic?
Im still thinking why it always happen recently. If due to version, im already updated latest version of nowsms for android version and also gateway version.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8307
Registered: 10-2002
Posted on Monday, January 14, 2019 - 12:58 pm:   

Hi,

Assuming this is the same problem (2-way SMS commands stop processing), we believe this is an issue with our SSL/TLS driver when processing 2-way commands that use HTTPS.

An update that should resolve this problem can be downloaded at https://www.nowsms.com/download/nowsms20181121.zip

-bn

Bryce Norwood
Now SMS/MMS Support
gensupport
Frequent Contributor
Username: Gensupport

Post Number: 53
Registered: 12-2017
Posted on Monday, January 14, 2019 - 01:40 pm:   

Okay, will try update it.
Thanks.
gensupport
Frequent Contributor
Username: Gensupport

Post Number: 54
Registered: 12-2017
Posted on Thursday, January 24, 2019 - 11:32 am:   

Hi,

Seems like this issue still happen even i update the version.
I noticed, when queue is high then it stop / hang.
Is it related with config file that u ask me to change last time?

2WaySMSThreadCount=## to the [SMSGW] section of SMSGW.INI. I'd start with a lower number like 5.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8313
Registered: 10-2002
Posted on Friday, January 25, 2019 - 08:40 pm:   

Hi,

I think the only way we're going to figure out what is happening is to see an SMSDEBUG.LOG.

Make a backup copy of SMSDEBUG.LOG and SMSDEBUG.BAK before performing any restarts. We need to review these logs to understand the situation.

Send logs to nowsms@nowsms.com with Attention: Bryce in the subject line.

One question...when you say "when queue is high then it stop / hang. " I assume you mean SMS-IN directory queue. How large is this queue?

-bn
gensupport
Frequent Contributor
Username: Gensupport

Post Number: 55
Registered: 12-2017
Posted on Friday, January 25, 2019 - 11:23 pm:   

Okay...will provide the log later.
I can see the high queue at outbound queue under service tab..keep increasing..sometimes 500++ 3000+