SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sun May 05, 2024 15:59
SMSTools3 Community » Help and support Bottom

[outdated] smsd 3.1.5 cannot start!!

  This topic is locked

Page:  1

Author Post
Member
Registered:
Oct 2009
Location: Malaysia
I am facing a problem like this after i upgrade to 3.1.5. smsd runs well in my server in 3.1.3 version. but cannot run in new version please help

root@xxxxxx [~/goodies/smstools3]# /etc/init.d/sms3 start
Starting SMS Daemon: sh: /tmp/smsd_script.3TskpW: Permission denied
Shell /bin/sh testing failed: Failed to execute test script.
There was 1 major problem found.
Cannot start. See the log file for details.
smsd failed.

i attach the smsd.log file:

2009-10-16 22:02:33,2, smsd: Smsd v3.1.5 started.
2009-10-16 22:02:33,2, smsd: Running as root:root.
2009-10-16 22:02:33,7, smsd: Running startup_check (shell): /tmp/smsd_script.FvphNS /tmp/smsd_data.cPCu0N
2009-10-16 22:02:33,3, smsd: Done: startup_check (shell), execution time 0 sec., status: 32256
2009-10-16 22:02:33,2, smsd: Shell /bin/sh testing failed: Failed to execute test script.
2009-10-16 22:02:33,2, smsd: There was 1 major problem found.
2009-10-16 22:02:33,2, smsd: Smsd mainprocess terminated.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
What operating system you are running, name and version?

Member
Registered:
Oct 2009
Location: Malaysia
Topic owner
2.6.21-1.3194.fc7

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
I did not yet find out the actual reason for sure, but as a workaround include this setting in the global part of smsd.conf:
executable_check = no

If the smsd still cannot run properly, please let me know with all possible details.

Member
Registered:
Oct 2009
Location: Malaysia
Topic owner
Thanks! it works!

But anyhow, why the smsd cannot test the file? what does that test means for, when i disabled it, does it okay in the future?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Executable_check is a part of startup checking where smsd tries to detect any possible trouble which may cause failure when smsd is running. For example, if an eventhandler is not executable for smsd, it will cause a failure when it is called later.

I know that 3.1.5 is running on Fedora, but I do not know what version of it.

Probably there in your system is some security feature which prevents to run scripts in the /tmp directory. Can you test this with some simple script, like:
#!/bin/sh
echo OK


After chmod 700, can it be run?

If you can modify sources of smsd, you could change the smsd_cfg.c. There are two lines with "/tmp" string:

sprintf(tmp_data, "%s/smsd_data.XXXXXX", "/tmp");
sprintf(tmp_script, "%s/smsd_script.XXXXXX", "/tmp");


If you change both "/tmp" to "/var/spool/sms" and recompile and run without executable_check = no setting, does it make any difference?

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.