2011.05.23 version: SMPP Server will not start

2011.05.23 version: SMPP Server will not start SearchSearch
Author Message
Alexandre
Frequent Contributor
Username: Alexd

Post Number: 169
Registered: 01-2008
Posted on Thursday, June 02, 2011 - 11:14 am:   

Hi!

With the inclusion of SMPP server, NowSMS wrote "SMPP Server Port already in use". I tried to change the port 2775 to any other, but the error remains. What could it be?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3209
Registered: 08-2008
Posted on Thursday, June 02, 2011 - 12:35 pm:   

Hi Alexandre,

This appears to be a cosmetic error that occurs if the SSL SMPP server port number is left blank.

Put a port number into that configuration setting, and the error will go away.

You do need to generate an SSL certificate on the SSL/TLS page before you will be allowed to configure this. It can be self-signed, it is not necessary to get the certificate signed by a certificate authority.

Or, ignore the error until we get another update together, as it is will not affect operation.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3215
Registered: 08-2008
Posted on Thursday, June 02, 2011 - 09:39 pm:   

Follow-up: a fix for this has been posted at http://www.nowsms.com/download/nowsms20110602.zip
Alexandre
Frequent Contributor
Username: Alexd

Post Number: 170
Registered: 01-2008
Posted on Friday, June 03, 2011 - 03:00 pm:   

http://www.nowsms.com/download/nowsms20110602.zip
404 - Page not found :(
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3218
Registered: 08-2008
Posted on Friday, June 03, 2011 - 03:09 pm:   

It seems to be working for me. Try clearing your browser cache.

Maybe the cluster server behind the web server is having synchronisation problems. I will look into that.
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 212
Registered: 07-2006
Posted on Friday, June 03, 2011 - 06:24 pm:   

Hi Des,

New version doesn't start. SMSDEBUG.LOG
21:23:08:117 [0] UseRouteCache: Yes
21:23:10:117 [0] main: Before InitStatCounters
21:23:10:117 [0] main: After InitStatCounters
21:23:10:211 [0] main: Before CheckDatabaseIntegrity

If we delete or move old DR files somewhere it starts. What it could be?

Regards,
Alex K.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3224
Registered: 08-2008
Posted on Friday, June 03, 2011 - 06:27 pm:   

Hi Alex,

If you let it proceed, how long are you waiting?

It should take 2 minutes max.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3225
Registered: 08-2008
Posted on Friday, June 03, 2011 - 06:50 pm:   

Hi again Alex,

Also, I'm a little bit confused. This database check at startup has been present since 2010-04-15.

This new version does try to speed it up. And in my tests, it is significantly faster.

Is it really taking that much longer?

I have conferred with engineering again to emphasize that these checks are causing severe startup delays. As a result, they have agreed that most of these integrity checks can occur post startup, and not delay startup. So we wait again for an update.

--
Des
NowSMS Support
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 213
Registered: 07-2006
Posted on Friday, June 03, 2011 - 06:59 pm:   

Hi Des,

Confirm. I was meslead because inactive window of smpp connections. Now all is fine. Any forecasts when queue pre-processing will be speed up?

Regards,
Alex K.
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 214
Registered: 07-2006
Posted on Monday, June 06, 2011 - 12:07 am:   

Hi Des,

Seems a new version also has a bugs:
- Meesages don't get issued RouteName parameter with PreAuth callback.
- Same problem with DR, message don't appear in logs and no callback was issued.

Regards,
Alex K.
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 215
Registered: 07-2006
Posted on Monday, June 06, 2011 - 10:54 am:   

let me re-check today. I'll update ASAP.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3233
Registered: 08-2008
Posted on Monday, June 06, 2011 - 08:39 pm:   

Hi Alex,

1.) I don't see any problems with RouteName in the PreAuth callback.

Keep in mind that the SMSCRoute= parameter will only be present for the SMSSend PreAuth callback if the message was submitted with an explicit route specified in the submission.

Similarly, the SMSCRoute= parameter will only be present for the SMSSend callback if the above is true, or if the SMSSend PreAuth callback supplied routing information (SMSCRoute=) in its response.

There is no change in this behaviour.

What is changed in this new release is that previously the SMSOut and SMSIn callbacks did not include SMSCRoute. The SMSOut and SMSIn callbacks include an SMSCName= parameter which identifies the SMSC with which the message was exchanged, where this name is either a host name/IP address (e.g., "SMPP - 1.2.3.4:5678") or modem driver name. The new release adds an SMSCRouteName= parameter to identify the more friendly named SMSGW.INI RouteName= parameter.

The parameters do have different names (SMSCRoute= vs. SMSCRouteName=), which is on purpose.

2.) If a DR message ID cannot be resolved it is not logged (or accounting callback) until more attempts can be made to resolve the DR message ID. (These are the sometimes infamous *.RCT files.)

3.) There are not any further optimisations that we can apply to the startup queue scan at this time. The scan process should be relatively quick even if there is a large queue ... unless you have a situation where a directory has a large number of messages to process. (If I recall correctly, there was a change made to reduce the number of subdirectories created for long message processing ... made largely at your suggestion. As a result, if you have a large queue of many long messages, that could be a startup delay problem. I am going to ask our team to revisit this issue, because directories with large numbers of files at the same level are a definite problem.)

--
Des
NowSMS Support
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 216
Registered: 07-2006
Posted on Wednesday, June 08, 2011 - 02:11 pm:   

Hi Des,

New realeaseis is fine, seems it was conflict with previous version. After reboot problem disappeared. Good work!

Regards,
Alex K.
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 217
Registered: 07-2006
Posted on Thursday, June 09, 2011 - 01:14 pm:   

Hi Des,

Seems that new version is unable to start during HTPP and SMPP requests. We've rolled back the 20140411. SMPP window didn't become active even in 20 mins after exception (ThreadProcessInboundSMS). Please advise. Something is still very bad oin your start-up mechanism. Is it possible to turn off all your startup checks like adding some key into SMSGW.INI?

Regards,
Alex K.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3246
Registered: 08-2008
Posted on Thursday, June 09, 2011 - 01:56 pm:   

Hi Alex,

Ah ... exception errors.

There is a severe problem with versions 2011.05.23 thru 2011.06.06 inclusive. Inbound messages with any SMPPOptions settings trigger a severe problem in some new logic.

2011.06.08 corrects this problem. http://www.nowsms.com/download/nowsms20110608.zip

--
Des
NowSMS Support
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 219
Registered: 07-2006
Posted on Wednesday, June 15, 2011 - 09:38 am:   

Hi Des,

Today we've installed new version and exception occured in 3 hours (ThreadProcessInboundSMS) Any ideas what caused that?

Regards,
Alex K.
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 220
Registered: 07-2006
Posted on Wednesday, June 15, 2011 - 09:49 am:   

damn .rct file caused 10 nowsms reboots in row. You should look into
[SMS-IN]
ModemName=SMPP - SMSGW117:2775
Sender=+XXXXXXXXX
PhoneNumber=TOGAS
Data=id:SAR-+XXXXXXXXXX-84174a38-2-2 sub:001 dlvrd:001 submit date:1106151406 done date:1106151406 stat:DELIVRD err:000 Text:e@?$$ !
ReceiptDelivered=Yes
ReceiptMessageId=SAR-+XXXXXXXXXX-84174a38-2-2
SMPPOptions=SMPPOption_source_subaddress=A03739303337303333303030

Regards,
Alex K.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3261
Registered: 08-2008
Posted on Wednesday, June 15, 2011 - 03:01 pm:   

Hi Alex,

This particular feature addition has been the cause of numerous problems introduced in 2011.05.23:


quote:

* SMPP: TLV parameters defined in GSM Assocation IR.75 are automatically supported by default using the HexString encoding: SMPPOption_source_subaddress (0x202) and SMPPOption_dest_subaddress (0x203).




This should be the last of the fixes to prevent the problems that this feature has caused:

http://www.nowsms.com/download/nowsms20110615.zip

--
Des
NowSMS Support
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 221
Registered: 07-2006
Posted on Wednesday, June 15, 2011 - 05:07 pm:   

Can i have 100 euro for each found bug? :-)
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 222
Registered: 07-2006
Posted on Wednesday, June 15, 2011 - 05:49 pm:   

Another thought, I noticed very low CPU activity during start-up. Are you sure there is nothing to do to speed start-up more? Add threads or something? Start-up is very important, especially when random exceptions occur.

Regards,
Alex K.