Empty folders (sent, inbox)

Hi,
I’m using playsms with smstools v3.1.20. I can send messages from playsms, but “my sent messages” folder is always empty, even though messages are successfully sent. I can receive messages but they are only visible inside “All inbox” folder. In the Route incoming SMS section I have configured Route all sandbox SMS to users to admin user so I expect to see my messages inside My account > inbox for admin user.

Permisions are set like this: ls -ltrR /var/spool/sms
/var/spool/sms:
total 28
drwxrwxrwx 2 www-data www-data 4096 Sep 2 12:44 checked
drwxrwxrwx 5 www-data www-data 4096 Sep 2 13:35 backup
drwxrwxrwx 2 www-data www-data 4096 Sep 2 21:02 outgoing
drwxrwxrwx 2 www-data www-data 4096 Sep 2 21:02 failed
drwxrwxrwx 2 www-data www-data 4096 Sep 2 21:21 incoming
drwxrwxrwx 2 www-data www-data 4096 Sep 2 21:30 modem1
drwxrwxrwx 2 www-data www-data 4096 Sep 2 21:30 sent

/var/spool/sms/checked:
total 0

/var/spool/sms/backup:
total 12
drwxrwxrwx 2 www-data www-data 4096 Sep  2 20:13 failed
drwxrwxrwx 2 www-data www-data 4096 Sep  2 21:21 incoming
drwxrwxrwx 2 www-data www-data 4096 Sep  2 21:30 sent

/var/spool/sms/backup/failed:
total 4
-rwxrwxrwx 1 www-data www-data 205 Sep  2 20:13 out.20170902180659.0.1.5

/var/spool/sms/backup/incoming:
total 20
-rwxrwxrwx 1 www-data www-data 180 Sep  2 13:25 modem1.f78tNK
-rwxrwxrwx 1 www-data www-data 252 Sep  2 21:07 modem1.4LxDfz
-rwxrwxrwx 1 www-data www-data 252 Sep  2 21:08 modem1.MU66VV
-rwxrwxrwx 1 www-data www-data 180 Sep  2 21:21 modem1.8zQs3w
-rwxrwxrwx 1 www-data www-data 251 Sep  2 21:21 modem1.cASf2P

/var/spool/sms/backup/sent:
total 32
-rwxrwxrwx 1 www-data www-data 167 Sep  2 13:35 out.20170902113519.0.1.2
-rwxrwxrwx 1 www-data www-data 275 Sep  2 13:36 out.20170902113602.0.1.3
-rwxrwxrwx 1 www-data www-data 211 Sep  2 20:12 out.20170902180619.0.1.4
-rwxrwxrwx 1 www-data www-data 216 Sep  2 21:02 out.20170902185752.0.1.6
-rwxrwxrwx 1 www-data www-data 187 Sep  2 21:05 out.20170902190514.0.1.7
-rwxrwxrwx 1 www-data www-data 212 Sep  2 21:18 out.20170902191835.0.1.8
-rwxrwxrwx 1 www-data www-data 187 Sep  2 21:19 out.20170902191949.0.1.9
-rw-r--r-- 1 root     root     194 Sep  2 21:30 out.20170902193010.0.1.10

/var/spool/sms/outgoing:
total 0

/var/spool/sms/failed:
total 44
-rwxrwxrwx 1 www-data www-data  66 Sep  2 12:49 send_Q6Oh4o
-rwxrwxrwx 1 www-data www-data  67 Sep  2 12:49 send_xiiBdx
-rwxrwxrwx 1 www-data www-data 197 Sep  2 20:18 send_4KSk7L
-rwxrwxrwx 1 www-data www-data 197 Sep  2 20:20 send_3EmVmr
-rwxrwxrwx 1 www-data www-data 197 Sep  2 20:22 send_QOSqRT
-rwxrwxrwx 1 www-data www-data 116 Sep  2 20:32 send_HjPv37
-rwxrwxrwx 1 www-data www-data 200 Sep  2 20:36 send_TmEXq2
-rwxrwxrwx 1 www-data www-data 210 Sep  2 20:37 send_lZyY2K
-rwxrwxrwx 1 www-data www-data 188 Sep  2 20:38 send_Kr8jMv
-rwxrwxrwx 1 www-data www-data  98 Sep  2 20:45 send_mGCCDT
-rwxrwxrwx 1 www-data www-data  97 Sep  2 20:45 send_6I691g

/var/spool/sms/incoming:
total 0

/var/spool/sms/modem1:
total 0

/var/spool/sms/sent:
total 36
-rwxrwxrwx 1 www-data www-data 137 Sep  2 12:48 send_RNbRlx
-rwxrwxrwx 1 www-data www-data 135 Sep  2 12:49 send_WjEnvl
-rwxrwxrwx 1 www-data www-data 135 Sep  2 12:49 send_o8XNrH
-rwxrwxrwx 1 www-data www-data 135 Sep  2 12:49 send_anEd1Y
-rwxrwxrwx 1 www-data www-data 136 Sep  2 12:49 send_YSvRH9
-rwxrwxrwx 1 www-data www-data 135 Sep  2 12:49 send_QKToY1
-rwxrwxrwx 1 www-data www-data 136 Sep  2 13:02 send_TGGpX5
-rwxrwxrwx 1 www-data www-data 142 Sep  2 20:37 send_mI6lvu
-rwxrwxrwx 1 www-data www-data 136 Sep  2 20:47 send_kARqqi

example log file for sending one message:

2017-09-02 22:01:28 PID59ab0008bae0c admin L2 sendsms # start uid:1 sender_id:[07777777777] smsc:[]
2017-09-02 22:01:28 PID59ab0008bae0c admin L2 sendsms_queue_create # saving queue_code:e463a069582cc9868c7c65ad18a50496 src:07777777777 scheduled:2017-09-02 22:01:28
2017-09-02 22:01:28 PID59ab0008bae0c admin L2 sendsms_queue_create # saved queue_code:e463a069582cc9868c7c65ad18a50496 id:12
2017-09-02 22:01:28 PID59ab0008bae0c admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
2017-09-02 22:01:28 PID59ab0008bae0c admin L2 sendsms_queue_push # saving queue_code:e463a069582cc9868c7c65ad18a50496 dst:06666666666
2017-09-02 22:01:29 PID59ab0008bae0c admin L2 sendsms_queue_push # saved queue_code:e463a069582cc9868c7c65ad18a50496 smslog_id:12
2017-09-02 22:01:29 PID59ab0008bae0c admin L2 sendsms # end queue_code:e463a069582cc9868c7c65ad18a50496 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 sendsmsd # start processing queue_code:e463a069582cc9868c7c65ad18a50496 chunk:0 queue_count:1 sms_count:1 scheduled:2017-09-02 22:01:28 uid:1 gpid:0 sender_id:07777777777
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 sendsmsd # sending queue_code:e463a069582cc9868c7c65ad18a50496 smslog_id:12 to:06666666666 sms_count:1 counter:1
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 recvsms_process # using default SMSC smsc:[smstools]
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 sendsms_process # start
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:06666666666 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 sendsms # saving smslog_id:12 u:1 parent_uid:0 g:0 gw:smstools smsc:smstools s:07777777777 d:06666666666 type:text unicode:0 status:0
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 sendsms_process # saved smslog_id:12 id:12
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 smstools_hook_sendsms # saved outfile:/var/spool/sms/modem1/out.20170902200130.0.1.12 smsc:[smstools]
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 simplerate_hook_rate_deduct # enter smslog_id:12
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 simplebilling_hook_billing_post # saving smslog_id:12 rate: count:1 charge:0
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 simplebilling_hook_billing_post # saved smslog_id:12 id:22
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 sendsms_process # end
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 sendsmsd # result queue_code:e463a069582cc9868c7c65ad18a50496 to:06666666666 flag:1 smslog_id:12
2017-09-02 22:01:30 PID59ab000a22fb4 - L2 sendsmsd # finish processing queue_code:e463a069582cc9868c7c65ad18a50496 uid:1 sender_id:07777777777 queue_count:1 sms_count:1

what can I do about my problem to start seeing messages ?

What´s your linux? I have seen this happening on ubuntu. On CentOS works fine.

1 Like

Ubuntu 16.04… Is this a common issue?

Can be… As I said, had this issue, but hadn´t time do investigate, and have seen another posts with the same.

I hope someone can give me some ideas on how to fix this, because it’s pretty annoying not seeing the messages you’ve sent and their status. It’s just not practical to check the logs.