Karl Pielorz
2016-10-24 10:43:16 UTC
Hi,
We've been running Gammu under CentOS 7 recently - but the sms daemon keeps
'hanging'.
Symptoms are - it'll start, in the logs you can 'see' it chatting to our
Huawei USB modem, and running 'gammu-smsd-inject' can be used to send
messages.
After a 'random' amount of time (20 minutes? - maybe an hour or few) - the
daemon stops 'noticing' there are SMS's to be sent.
In the logs - we can still see it conversing with the modem (getting signal
strength info, network info etc.) 'dmesg' etc. confirm the modem isn't
hanging, or disappearing (i.e. off the USB bus).
At this point 'kill' won't kill the daemon - you can 'kill -9' it - if you
restart it, it fires up - chats to the modem, see's there's a message to
send - and sends it. But then randomly 'hangs' again later.
We're running 'CentOS Linux release 7.2.1511' - and I compiled Gammu 1.37.4
from source.
We're using a very simple conifg - with 'files' queues for in/out SMS'd etc
(config is below).
Any suggestions? - It doesn't seem to 'crash' - it just stops noticing
there's stuff to send (and at that point a regular SIGTERM won't quit it -
only a SIGKILL.
I've found a few posts / articles about this - but nothing with any
concrete fixes / relevant to the versions I'm running.
Thanks,
-Karl
gammu.cfg:
[gammu]
port = /dev/ttyUSB2
connection = at115200
synchronizetime = yes
logfile = /var/log/gammu-three.log
logformat = textall
debuglevel = 255
StatusFrequency = 0
[smsd]
Service = files
logfile = /var/log/gammu-three.log
debuglevel = 255
InboxPath = /var/spool/sms/inbox-three/
OutboxPath = /var/spool/sms/outbox-three/
SentSMSPath = /var/spool/sms/sent-three/
ErrorSMSPath = /var/spool/sms/error-three/
PhoneID = three
ReceiveFrequency = 15
Receive = true
We've been running Gammu under CentOS 7 recently - but the sms daemon keeps
'hanging'.
Symptoms are - it'll start, in the logs you can 'see' it chatting to our
Huawei USB modem, and running 'gammu-smsd-inject' can be used to send
messages.
After a 'random' amount of time (20 minutes? - maybe an hour or few) - the
daemon stops 'noticing' there are SMS's to be sent.
In the logs - we can still see it conversing with the modem (getting signal
strength info, network info etc.) 'dmesg' etc. confirm the modem isn't
hanging, or disappearing (i.e. off the USB bus).
At this point 'kill' won't kill the daemon - you can 'kill -9' it - if you
restart it, it fires up - chats to the modem, see's there's a message to
send - and sends it. But then randomly 'hangs' again later.
We're running 'CentOS Linux release 7.2.1511' - and I compiled Gammu 1.37.4
from source.
We're using a very simple conifg - with 'files' queues for in/out SMS'd etc
(config is below).
Any suggestions? - It doesn't seem to 'crash' - it just stops noticing
there's stuff to send (and at that point a regular SIGTERM won't quit it -
only a SIGKILL.
I've found a few posts / articles about this - but nothing with any
concrete fixes / relevant to the versions I'm running.
Thanks,
-Karl
gammu.cfg:
[gammu]
port = /dev/ttyUSB2
connection = at115200
synchronizetime = yes
logfile = /var/log/gammu-three.log
logformat = textall
debuglevel = 255
StatusFrequency = 0
[smsd]
Service = files
logfile = /var/log/gammu-three.log
debuglevel = 255
InboxPath = /var/spool/sms/inbox-three/
OutboxPath = /var/spool/sms/outbox-three/
SentSMSPath = /var/spool/sms/sent-three/
ErrorSMSPath = /var/spool/sms/error-three/
PhoneID = three
ReceiveFrequency = 15
Receive = true